From 2a45f52e92148c0468b3fe6aff69292f52ad752c Mon Sep 17 00:00:00 2001 From: The Buildbot Date: Thu, 15 Feb 2024 15:55:13 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/angular-schule/buch/commit/152c4c2594b19670833e220c205ef25cfd05fa9a --- .nojekyll | 0 404.html | 2 +- index.html | 2 +- main-K57ITG6D.js | 9 --------- main-S6UT3C3F.js | 9 +++++++++ polyfills-RX4V3J3S.js => polyfills-RT5I6R6G.js | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 .nojekyll delete mode 100644 main-K57ITG6D.js create mode 100644 main-S6UT3C3F.js rename polyfills-RX4V3J3S.js => polyfills-RT5I6R6G.js (71%) diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html index 1b845a8..c138eb8 100644 --- a/404.html +++ b/404.html @@ -12,5 +12,5 @@
Loading ...
- + diff --git a/index.html b/index.html index 1b845a8..c138eb8 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,5 @@
Loading ...
- + diff --git a/main-K57ITG6D.js b/main-K57ITG6D.js deleted file mode 100644 index fac814d..0000000 --- a/main-K57ITG6D.js +++ /dev/null @@ -1,9 +0,0 @@ -var Rm=Object.defineProperty,Om=Object.defineProperties;var Fm=Object.getOwnPropertyDescriptors;var Nl=Object.getOwnPropertySymbols;var Pm=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable;var Rl=(t,e,r)=>e in t?Rm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||={})Pm.call(e,r)&&Rl(t,r,e[r]);if(Nl)for(var r of Nl(e))km.call(e,r)&&Rl(t,r,e[r]);return t},H=(t,e)=>Om(t,Fm(e));var Ol=null;var Ws=1,Fl=Symbol("SIGNAL");function ve(t){let e=Ol;return Ol=t,e}var Pl={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 Lm(t){if(!(Ys(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ws)){if(!t.producerMustRecompute(t)&&!qs(t)){t.dirty=!1,t.lastCleanEpoch=Ws;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ws}}function kl(t){return t&&(t.nextProducerIndex=0),ve(t)}function Ll(t,e){if(ve(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ys(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function qs(t){Ei(t);for(let e=0;e0}function Ei(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Vm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function jm(){throw new Error}var Bm=jm;function jl(t){Bm=t}function x(t){return typeof t=="function"}function An(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var bi=An(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function rn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var te=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(x(n))try{n()}catch(o){e=o instanceof bi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Bl(o)}catch(s){e=e??[],s instanceof bi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new bi(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Bl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&rn(r,e)}remove(e){let{_finalizers:r}=this;r&&rn(r,e),e instanceof t&&e._removeParent(this)}};te.EMPTY=(()=>{let t=new te;return t.closed=!0,t})();var Qs=te.EMPTY;function Ii(t){return t instanceof te||t&&"closed"in t&&x(t.remove)&&x(t.add)&&x(t.unsubscribe)}function Bl(t){x(t)?t():t.unsubscribe()}var Ge={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var xn={setTimeout(t,e,...r){let{delegate:n}=xn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=xn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function _i(t){xn.setTimeout(()=>{let{onUnhandledError:e}=Ge;if(e)e(t);else throw t})}function Cr(){}var Ul=Ks("C",void 0,void 0);function $l(t){return Ks("E",void 0,t)}function Hl(t){return Ks("N",t,void 0)}function Ks(t,e,r){return{kind:t,value:e,error:r}}var on=null;function Nn(t){if(Ge.useDeprecatedSynchronousErrorHandling){let e=!on;if(e&&(on={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=on;if(on=null,r)throw n}}else t()}function zl(t){Ge.useDeprecatedSynchronousErrorHandling&&on&&(on.errorThrown=!0,on.error=t)}var sn=class extends te{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ii(e)&&e.add(this)):this.destination=Hm}static create(e,r,n){return new Rn(e,r,n)}next(e){this.isStopped?Xs(Hl(e),this):this._next(e)}error(e){this.isStopped?Xs($l(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Xs(Ul,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Um=Function.prototype.bind;function Js(t,e){return Um.call(t,e)}var ea=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Mi(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Mi(n)}else Mi(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Mi(r)}}},Rn=class extends sn{constructor(e,r,n){super();let i;if(x(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&Ge.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Js(e.next,o),error:e.error&&Js(e.error,o),complete:e.complete&&Js(e.complete,o)}):i=e}this.destination=new ea(i)}};function Mi(t){Ge.useDeprecatedSynchronousErrorHandling?zl(t):_i(t)}function $m(t){throw t}function Xs(t,e){let{onStoppedNotification:r}=Ge;r&&xn.setTimeout(()=>r(t,e))}var Hm={closed:!0,next:Cr,error:$m,complete:Cr};var On=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ye(t){return t}function ta(...t){return na(t)}function na(t){return t.length===0?ye:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var B=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=Gm(r)?r:new Rn(r,n,i);return Nn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Gl(n),new n((i,o)=>{let s=new Rn({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[On](){return this}pipe(...r){return na(r)(this)}toPromise(r){return r=Gl(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Gl(t){var e;return(e=t??Ge.Promise)!==null&&e!==void 0?e:Promise}function zm(t){return t&&x(t.next)&&x(t.error)&&x(t.complete)}function Gm(t){return t&&t instanceof sn||zm(t)&&Ii(t)}function ra(t){return x(t?.lift)}function k(t){return e=>{if(ra(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(t,e,r,n,i){return new ia(t,e,r,n,i)}var ia=class extends sn{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Fn(){return k((t,e)=>{let r=null;t._refCount++;let n=R(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Pn=class extends B{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ra(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new te;let r=this.getSubject();e.add(this.source.subscribe(R(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=te.EMPTY)}return e}refCount(){return Fn()(this)}};var Wl=An(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var me=(()=>{class t extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Si(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Wl}next(r){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Qs:(this.currentObservers=null,o.push(r),new te(()=>{this.currentObservers=null,rn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new B;return r.source=this,r}}return t.create=(e,r)=>new Si(e,r),t})(),Si=class extends me{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Qs}};var ue=class extends me{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var oa={now(){return(oa.delegate||Date).now()},delegate:void 0};var Ti=class extends te{constructor(e,r){super()}schedule(e,r=0){return this}};var Er={setInterval(t,e,...r){let{delegate:n}=Er;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=Er;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Ai=class extends Ti{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return Er.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&Er.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,rn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var kn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};kn.now=oa.now;var xi=class extends kn{constructor(e,r=kn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var ql=new xi(Ai);var Fe=new B(t=>t.complete());function Zl(t){return t&&x(t.schedule)}function Yl(t){return t[t.length-1]}function Ni(t){return x(Yl(t))?t.pop():void 0}function Pt(t){return Zl(Yl(t))?t.pop():void 0}function Kl(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function Ql(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function an(t){return this instanceof an?(this.v=t,this):new an(t)}function Jl(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(C,j){o.push([f,h,C,j])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(C){d(o[0][3],C)}}function u(f){f.value instanceof an?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Xl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Ql=="function"?Ql(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Ri=t=>t&&typeof t.length=="number"&&typeof t!="function";function Oi(t){return x(t?.then)}function Fi(t){return x(t[On])}function Pi(t){return Symbol.asyncIterator&&x(t?.[Symbol.asyncIterator])}function ki(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Wm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Li=Wm();function Vi(t){return x(t?.[Li])}function ji(t){return Jl(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield an(r.read());if(i)return yield an(void 0);yield yield an(n)}}finally{r.releaseLock()}})}function Bi(t){return x(t?.getReader)}function oe(t){if(t instanceof B)return t;if(t!=null){if(Fi(t))return qm(t);if(Ri(t))return Zm(t);if(Oi(t))return Ym(t);if(Pi(t))return ed(t);if(Vi(t))return Qm(t);if(Bi(t))return Km(t)}throw ki(t)}function qm(t){return new B(e=>{let r=t[On]();if(x(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zm(t){return new B(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,_i)})}function Qm(t){return new B(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function ed(t){return new B(e=>{Jm(t,e).catch(r=>e.error(r))})}function Km(t){return ed(ji(t))}function Jm(t,e){var r,n,i,o;return Kl(this,void 0,void 0,function*(){try{for(r=Xl(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function _e(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Ui(t,e=0){return k((r,n)=>{r.subscribe(R(n,i=>_e(n,t,()=>n.next(i),e),()=>_e(n,t,()=>n.complete(),e),i=>_e(n,t,()=>n.error(i),e)))})}function $i(t,e=0){return k((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function td(t,e){return oe(t).pipe($i(e),Ui(e))}function nd(t,e){return oe(t).pipe($i(e),Ui(e))}function rd(t,e){return new B(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function id(t,e){return new B(r=>{let n;return _e(r,e,()=>{n=t[Li](),_e(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>x(n?.return)&&n.return()})}function Hi(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(r=>{_e(r,e,()=>{let n=t[Symbol.asyncIterator]();_e(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function od(t,e){return Hi(ji(t),e)}function sd(t,e){if(t!=null){if(Fi(t))return td(t,e);if(Ri(t))return rd(t,e);if(Oi(t))return nd(t,e);if(Pi(t))return Hi(t,e);if(Vi(t))return id(t,e);if(Bi(t))return od(t,e)}throw ki(t)}function q(t,e){return e?sd(t,e):oe(t)}function I(...t){let e=Pt(t);return q(t,e)}function Ln(t,e){let r=x(t)?t:()=>t,n=i=>i.error(r());return new B(e?i=>e.schedule(n,0,i):n)}function sa(t){return!!t&&(t instanceof B||x(t.lift)&&x(t.subscribe))}var Et=An(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function T(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:Xm}=Array;function ev(t,e){return Xm(e)?t(...e):t(e)}function zi(t){return T(e=>ev(t,e))}var{isArray:tv}=Array,{getPrototypeOf:nv,prototype:rv,keys:iv}=Object;function Gi(t){if(t.length===1){let e=t[0];if(tv(e))return{args:e,keys:null};if(ov(e)){let r=iv(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function ov(t){return t&&typeof t=="object"&&nv(t)===rv}function Wi(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function br(...t){let e=Pt(t),r=Ni(t),{args:n,keys:i}=Gi(t);if(n.length===0)return q([],e);let o=new B(sv(n,e,i?s=>Wi(i,s):ye));return r?o.pipe(zi(r)):o}function sv(t,e,r=ye){return n=>{ad(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=q(t[u],e),l=!1;c.subscribe(R(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function ad(t,e,r){t?_e(r,t,e):e()}function ud(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=j=>c{o&&e.next(j),c++;let A=!1;oe(r(j,l++)).subscribe(R(e,_=>{i?.(_),o?h(_):e.next(_)},()=>{A=!0},void 0,()=>{if(A)try{for(c--;u.length&&cC(_)):C(_)}f()}catch(_){e.error(_)}}))};return t.subscribe(R(e,h,()=>{d=!0,f()})),()=>{a?.()}}function se(t,e,r=1/0){return x(e)?se((n,i)=>T((o,s)=>e(n,o,i,s))(oe(t(n,i))),r):(typeof e=="number"&&(r=e),k((n,i)=>ud(n,i,t,r)))}function kt(t=1/0){return se(ye,t)}function cd(){return kt(1)}function Vn(...t){return cd()(q(t,Pt(t)))}function qi(t){return new B(e=>{oe(t()).subscribe(e)})}function aa(...t){let e=Ni(t),{args:r,keys:n}=Gi(t),i=new B(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?Wi(n,a):a),o.complete())}))}});return e?i.pipe(zi(e)):i}function fe(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Pe(t){return k((e,r)=>{let n=null,i=!1,o;n=e.subscribe(R(r,void 0,void 0,s=>{o=oe(t(s,Pe(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function ld(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(R(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function bt(t,e){return x(e)?se(t,e,1):se(t,1)}function ua(t,e=ql){return k((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Lt(t){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function It(t){return t<=0?()=>Fe:k((e,r)=>{let n=0;e.subscribe(R(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function ca(t){return T(()=>t)}function la(t,e=ye){return t=t??av,k((r,n)=>{let i,o=!0;r.subscribe(R(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function av(t,e){return t===e}function Zi(t=uv){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function uv(){return new Et}function Vt(t){return k((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function nt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?fe((i,o)=>t(i,o,n)):ye,It(1),r?Lt(e):Zi(()=>new Et))}function jn(t){return t<=0?()=>Fe:k((e,r)=>{let n=[];e.subscribe(R(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function da(t,e){let r=arguments.length>=2;return n=>n.pipe(t?fe((i,o)=>t(i,o,n)):ye,jn(1),r?Lt(e):Zi(()=>new Et))}function fa(t,e){return k(ld(t,e,arguments.length>=2,!0))}function ha(...t){let e=Pt(t);return k((r,n)=>{(e?Vn(t,r,e):Vn(t,r)).subscribe(n)})}function ce(t,e){return k((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(R(n,u=>{i?.unsubscribe();let c=0,l=o++;oe(t(u,l)).subscribe(i=R(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function pa(t){return k((e,r)=>{oe(t).subscribe(R(r,()=>r.complete(),Cr)),!r.closed&&e.subscribe(r)})}function X(t,e,r){let n=x(t)||e||r?{next:t,error:e,complete:r}:t;return n?k((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(R(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):ye}var Yd="https://g.co/ng/security#xss",E=class extends Error{constructor(e,r){super(Ao(e,r)),this.code=e}};function Ao(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function G(t){for(let e in t)if(t[e]===G)return e;throw Error("Could not find renamed property on target object.")}function cv(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function we(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(we).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function dd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var lv=G({__forward_ref__:G});function dt(t){return t.__forward_ref__=dt,t.toString=function(){return we(this())},t}function De(t){return Qd(t)?t():t}function Qd(t){return typeof t=="function"&&t.hasOwnProperty(lv)&&t.__forward_ref__===dt}function Kd(t){return t&&!!t.\u0275providers}var dv=G({\u0275cmp:G}),fv=G({\u0275dir:G}),hv=G({\u0275pipe:G}),pv=G({\u0275mod:G}),so=G({\u0275fac:G}),Ir=G({__NG_ELEMENT_ID__:G}),fd=G({__NG_ENV_ID__:G});function xo(t){return typeof t=="string"?t:t==null?"":String(t)}function gv(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():xo(t)}function mv(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new E(-200,`Circular dependency in DI detected for ${t}${r}`)}function bu(t,e){throw new E(-201,!1)}function vv(t,e){t==null&&yv(e,t,null,"!=")}function yv(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Z(t){return{providers:t.providers||[],imports:t.imports||[]}}function No(t){return hd(t,Xd)||hd(t,ef)}function Jd(t){return No(t)!==null}function hd(t,e){return t.hasOwnProperty(e)?t[e]:null}function Dv(t){let e=t&&(t[Xd]||t[ef]);return e||null}function pd(t){return t&&(t.hasOwnProperty(gd)||t.hasOwnProperty(wv))?t[gd]:null}var Xd=G({\u0275prov:G}),gd=G({\u0275inj:G}),ef=G({ngInjectableDef:G}),wv=G({ngInjectorDef:G}),L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(L||{}),Aa;function tf(){return Aa}function Me(t){let e=Aa;return Aa=t,e}function nf(t,e,r){let n=No(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&L.Optional)return null;if(e!==void 0)return e;bu(t,"Injector")}var Ce=globalThis;var b=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=w({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var Cv={},Mr=Cv,xa="__NG_DI_FLAG__",ao="ngTempTokenPath",Ev="ngTokenPath",bv=/\n/gm,Iv="\u0275",md="__source",zn;function _v(){return zn}function jt(t){let e=zn;return zn=t,e}function Mv(t,e=L.Default){if(zn===void 0)throw new E(-203,!1);return zn===null?nf(t,void 0,e):zn.get(t,e&L.Optional?null:void 0,e)}function D(t,e=L.Default){return(tf()||Mv)(De(t),e)}function p(t,e=L.Default){return D(t,Ro(e))}function Ro(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Na(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):we(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(bv,` - `)}`}function kr(t){return{toString:t}.toString()}var of=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(of||{}),st=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(st||{}),Wn={},ke=[],le=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(le||{});function sf(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function Ra(t,e,r){let n=0;for(;ne){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let h=n&8?f:null;if(h&&sf(h,c,0)!==-1||n&2&&c!==f){if(We(n))return!1;s=!0}}}}return We(n)||s}function We(t){return(t&1)===0}function Fv(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!We(s)&&(e+=yd(o,i),i=""),n=s,o=o||!We(n);r++}return i!==""&&(e+=yd(o,i)),e}function jv(t){return t.map(Vv).join(",")}function Bv(t){let e=[],r=[],n=1,i=2;for(;n{let e=gf(t),r=H(g({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===of.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||st.Emulated,styles:t.styles||ke,_:null,schemas:t.schemas||null,tView:null,id:""});mf(r);let n=t.dependencies;return r.directiveDefs=wd(n,!1),r.pipeDefs=wd(n,!0),r.id=Hv(r),r})}function Uv(t){return Ut(t)||df(t)}function $v(t){return t!==null}function Y(t){return kr(()=>({type:t.type,bootstrap:t.bootstrap||ke,declarations:t.declarations||ke,imports:t.imports||ke,exports:t.exports||ke,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Dd(t,e){if(t==null)return Wn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=le.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==le.None?[n,a]:n,e[o]=s):r[o]=n}return r}function ne(t){return kr(()=>{let e=gf(t);return mf(e),e})}function lf(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ut(t){return t[dv]||null}function df(t){return t[fv]||null}function ff(t){return t[hv]||null}function hf(t){let e=Ut(t)||df(t)||ff(t);return e!==null?e.standalone:!1}function pf(t,e){let r=t[pv]||null;if(!r&&e===!0)throw new Error(`Type ${we(t)} does not have '\u0275mod' property.`);return r}function gf(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Wn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ke,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Dd(t.inputs,e),outputs:Dd(t.outputs),debugInfo:null}}function mf(t){t.features?.forEach(e=>e(t))}function wd(t,e){if(!t)return null;let r=e?ff:Uv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter($v)}function Hv(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var Mt=0,F=1,S=2,he=3,qe=4,Qe=5,uo=6,Tr=7,Ze=8,qn=9,at=10,pe=11,Ar=12,Cd=13,Xn=14,ut=15,Lr=16,Bn=17,ot=18,Oo=19,vf=20,Bt=21,ga=22,ln=23,Ye=25,yf=1;var dn=7,co=8,Zn=9,Ne=10,Iu=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Iu||{});function un(t){return Array.isArray(t)&&typeof t[yf]=="object"}function St(t){return Array.isArray(t)&&t[yf]===!0}function Df(t){return(t.flags&4)!==0}function Fo(t){return t.componentOffset>-1}function _u(t){return(t.flags&1)===1}function $t(t){return!!t.template}function zv(t){return(t[S]&512)!==0}function fn(t,e){let r=t.hasOwnProperty(so);return r?t[so]:null}var Oa=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function wf(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Ke(){return Cf}function Cf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Wv),Gv}Ke.ngInherit=!0;function Gv(){let t=bf(this),e=t?.current;if(e){let r=t.previous;if(r===Wn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Wv(t,e,r,n,i){let o=this.declaredInputs[n],s=bf(t)||qv(t,{previous:Wn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Oa(c&&c.currentValue,r,u===Wn),wf(t,e,i,r)}var Ef="__ngSimpleChanges__";function bf(t){return t[Ef]||null}function qv(t,e){return t[Ef]=e}var Ed=null;var rt=function(t,e,r){Ed?.(t,e,r)},Zv="svg",Yv="math",Qv=!1;function Kv(){return Qv}function ct(t){for(;Array.isArray(t);)t=t[Mt];return t}function If(t,e){return ct(e[t])}function Le(t,e){return ct(e[t.index])}function _f(t,e){return t.data[e]}function Mf(t,e){return t[e]}function zt(t,e){let r=e[t];return un(r)?r:r[Mt]}function Jv(t){return(t[S]&4)===4}function Mu(t){return(t[S]&128)===128}function Xv(t){return St(t[he])}function lo(t,e){return e==null?null:t[e]}function Sf(t){t[Bn]=0}function ey(t){t[S]&1024||(t[S]|=1024,Mu(t)&&xr(t))}function ty(t,e){for(;t>0;)e=e[Xn],t--;return e}function Tf(t){return t[S]&9216||t[ln]?.dirty}function Fa(t){Tf(t)?xr(t):t[S]&64&&(Kv()?(t[S]|=1024,xr(t)):t[at].changeDetectionScheduler?.notify())}function xr(t){t[at].changeDetectionScheduler?.notify();let e=Nr(t);for(;e!==null&&!(e[S]&8192||(e[S]|=8192,!Mu(e)));)e=Nr(e)}function Af(t,e){if((t[S]&256)===256)throw new E(911,!1);t[Bt]===null&&(t[Bt]=[]),t[Bt].push(e)}function ny(t,e){if(t[Bt]===null)return;let r=t[Bt].indexOf(e);r!==-1&&t[Bt].splice(r,1)}function Nr(t){let e=t[he];return St(e)?e[he]:e}var P={lFrame:Lf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ry(){return P.lFrame.elementDepthCount}function iy(){P.lFrame.elementDepthCount++}function oy(){P.lFrame.elementDepthCount--}function xf(){return P.bindingsEnabled}function sy(){return P.skipHydrationRootTNode!==null}function ay(t){return P.skipHydrationRootTNode===t}function uy(){P.skipHydrationRootTNode=null}function $(){return P.lFrame.lView}function Se(){return P.lFrame.tView}function Tt(t){return P.lFrame.contextLView=t,t[Ze]}function At(t){return P.lFrame.contextLView=null,t}function Te(){let t=Nf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Nf(){return P.lFrame.currentTNode}function cy(){let t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Vr(t,e){let r=P.lFrame;r.currentTNode=t,r.isParent=e}function Rf(){return P.lFrame.isParent}function ly(){P.lFrame.isParent=!1}function dy(){return P.lFrame.contextLView}function Of(){let t=P.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function fy(t){return P.lFrame.bindingIndex=t}function Su(){return P.lFrame.bindingIndex++}function hy(t){let e=P.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function py(){return P.lFrame.inI18n}function gy(t,e){let r=P.lFrame;r.bindingIndex=r.bindingRootIndex=t,Pa(e)}function my(){return P.lFrame.currentDirectiveIndex}function Pa(t){P.lFrame.currentDirectiveIndex=t}function vy(t){let e=P.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Ff(){return P.lFrame.currentQueryIndex}function Tu(t){P.lFrame.currentQueryIndex=t}function yy(t){let e=t[F];return e.type===2?e.declTNode:e.type===1?t[Qe]:null}function Pf(t,e,r){if(r&L.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&L.Host);)if(i=yy(o),i===null||(o=o[Xn],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=P.lFrame=kf();return n.currentTNode=e,n.lView=t,!0}function Au(t){let e=kf(),r=t[F];P.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function kf(){let t=P.lFrame,e=t===null?null:t.child;return e===null?Lf(t):e}function Lf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Vf(){let t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var jf=Vf;function xu(){let t=Vf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Dy(t){return(P.lFrame.contextLView=ty(t,P.lFrame.contextLView))[Ze]}function er(){return P.lFrame.selectedIndex}function hn(t){P.lFrame.selectedIndex=t}function Bf(){let t=P.lFrame;return _f(t.tView,t.selectedIndex)}function wy(){return P.lFrame.currentNamespace}var Uf=!0;function Nu(){return Uf}function Ru(t){Uf=t}function Cy(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Cf(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Ou(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[Bn]+=65536),(a>14>16&&(t[S]&3)===e&&(t[S]+=16384,bd(a,o)):bd(a,o)}var Gn=-1,pn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function by(t){return t instanceof pn}function Iy(t){return(t.flags&8)!==0}function _y(t){return(t.flags&16)!==0}function Hf(t){return t!==Gn}function fo(t){return t&32767}function My(t){return t>>16}function ho(t,e){let r=My(t),n=e;for(;r>0;)n=n[Xn],r--;return n}var ka=!0;function po(t){let e=ka;return ka=t,e}var Sy=256,zf=Sy-1,Gf=5,Ty=0,it={};function Ay(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Ir)&&(n=r[Ir]),n==null&&(n=r[Ir]=Ty++);let i=n&zf,o=1<>Gf)]|=o}function go(t,e){let r=Wf(t,e);if(r!==-1)return r;let n=e[F];n.firstCreatePass&&(t.injectorIndex=e.length,va(n.data,t),va(e,null),va(n.blueprint,null));let i=Fu(t,e),o=t.injectorIndex;if(Hf(i)){let s=fo(i),a=ho(i,e),u=a[F].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function va(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Wf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fu(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Kf(i),n===null)return Gn;if(r++,i=i[Xn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Gn}function La(t,e,r){Ay(t,e,r)}function xy(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&C.type===r)return h}if(i){let h=s[u];if(h&&$t(h)&&h.type===r)return u}return null}function gn(t,e,r,n){let i=t[r],o=e.data;if(by(i)){let s=i;s.resolving&&mv(gv(o[r]));let a=po(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Me(s.injectImpl):null,l=Pf(t,n,L.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&Cy(r,o[r],e)}finally{c!==null&&Me(c),po(a),s.resolving=!1,jf()}}return i}function Ry(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Ir)?t[Ir]:void 0;return typeof e=="number"?e>=0?e&zf:Oy:e}function Id(t,e,r){let n=1<>Gf)]&n)}function _d(t,e){return!(t&L.Self)&&!(t&L.Host&&e)}var cn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Yf(this._tNode,this._lView,e,Ro(n),r)}};function Oy(){return new cn(Te(),$())}function tr(t){return kr(()=>{let e=t.prototype.constructor,r=e[so]||Va(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[so]||Va(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Va(t){return Qd(t)?()=>{let e=Va(De(t));return e&&e()}:fn(t)}function Fy(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[S]&2048&&!(s[S]&512);){let a=Qf(o,s,r,n|L.Self,it);if(a!==it)return a;let u=o.parent;if(!u){let c=s[vf];if(c){let l=c.get(r,it,n);if(l!==it)return l}u=Kf(s),s=s[Xn]}o=u}return i}function Kf(t){let e=t[F],r=e.type;return r===2?e.declTNode:r===1?t[Qe]:null}function Pu(t){return xy(Te(),t)}var Yi="__parameters__";function Py(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Jf(t,e,r){return kr(()=>{let n=Py(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Yi)?u[Yi]:Object.defineProperty(u,Yi,{value:[]})[Yi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function ky(t){let e=Ce.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Ly(t){return typeof t=="function"}function Vy(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?ku(r,e):e(r))}function Xf(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function mo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function By(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Uy(t,e,r){let n=jr(t,e);return n>=0?t[n|1]=r:(n=~n,By(t,n,e,r)),n}function ya(t,e){let r=jr(t,e);if(r>=0)return t[r|1]}function jr(t,e){return $y(t,e,1)}function $y(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>Zy(o));e.push(u)}),Gy(),Promise.all(e).then(()=>{})}var vo=new Map,zy=new Set;function Gy(){let t=vo;return vo=new Map,t}function Wy(){return vo.size===0}function qy(t){return typeof t=="string"?t:t.text()}function Zy(t){zy.delete(t)}var Yn=new b("ENVIRONMENT_INITIALIZER"),eh=new b("INJECTOR",-1),th=new b("INJECTOR_DEF_TYPES"),yo=class{get(e,r=Mr){if(r===Mr){let n=new Error(`NullInjectorError: No provider for ${we(e)}!`);throw n.name="NullInjectorError",n}return r}};function ko(t){return{\u0275providers:t}}function Yy(...t){return{\u0275providers:nh(!0,t),\u0275fromNgModule:!0}}function nh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return ku(e,s=>{let a=s;ja(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&rh(i,o),r}function rh(t,e){for(let r=0;r{e(o,n)})}}function ja(t,e,r,n){if(t=De(t),!t)return!1;let i=null,o=pd(t),s=!o&&Ut(t);if(!o&&!s){let u=t.ngModule;if(o=pd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)ja(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{ku(o.imports,l=>{ja(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&rh(c,e)}if(!a){let c=fn(i)||(()=>new i);e({provide:i,useFactory:c,deps:ke},i),e({provide:th,useValue:i,multi:!0},i),e({provide:Yn,useValue:()=>D(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;Vu(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function Vu(t,e){for(let r of t)Kd(r)&&(r=r.\u0275providers),Array.isArray(r)?Vu(r,e):e(r)}var Qy=G({provide:String,useValue:G});function ih(t){return t!==null&&typeof t=="object"&&Qy in t}function Ky(t){return!!(t&&t.useExisting)}function Jy(t){return!!(t&&t.useFactory)}function Qn(t){return typeof t=="function"}function Xy(t){return!!t.useClass}var Lo=new b("Set Injector scope."),ro={},eD={},Da;function ju(){return Da===void 0&&(Da=new yo),Da}var Ee=class{},Rr=class extends Ee{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ua(e,s=>this.processProvider(s)),this.records.set(eh,Un(void 0,this)),i.has("environment")&&this.records.set(Ee,Un(void 0,this));let o=this.records.get(Lo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(th,ke,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=jt(this),n=Me(void 0),i;try{return e()}finally{jt(r),Me(n)}}get(e,r=Mr,n=L.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(fd))return e[fd](this);n=Ro(n);let i,o=jt(this),s=Me(void 0);try{if(!(n&L.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=oD(e)&&No(e);c&&this.injectableDefInScope(c)?u=Un(Ba(e),ro):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&L.Self?ju():this.parent;return r=n&L.Optional&&r===Mr?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[ao]=a[ao]||[]).unshift(we(e)),o)throw a;return Tv(a,e,"R3InjectorError",this.source)}else throw a}finally{Me(s),jt(o)}}resolveInjectorInitializers(){let e=jt(this),r=Me(void 0),n;try{let i=this.get(Yn,ke,L.Self);for(let o of i)o()}finally{jt(e),Me(r)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(we(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(e){e=De(e);let r=Qn(e)?e:De(e&&e.provide),n=nD(e);if(!Qn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=Un(void 0,ro,!0),i.factory=()=>Na(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){return r.value===ro&&(r.value=eD,r.value=r.factory()),typeof r.value=="object"&&r.value&&iD(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(e){if(!e.providedIn)return!1;let r=De(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Ba(t){let e=No(t),r=e!==null?e.factory:fn(t);if(r!==null)return r;if(t instanceof b)throw new E(204,!1);if(t instanceof Function)return tD(t);throw new E(204,!1)}function tD(t){if(t.length>0)throw new E(204,!1);let r=Dv(t);return r!==null?()=>r.factory(t):()=>new t}function nD(t){if(ih(t))return Un(void 0,t.useValue);{let e=oh(t);return Un(e,ro)}}function oh(t,e,r){let n;if(Qn(t)){let i=De(t);return fn(i)||Ba(i)}else if(ih(t))n=()=>De(t.useValue);else if(Jy(t))n=()=>t.useFactory(...Na(t.deps||[]));else if(Ky(t))n=()=>D(De(t.useExisting));else{let i=De(t&&(t.useClass||t.provide));if(rD(t))n=()=>new i(...Na(t.deps));else return fn(i)||Ba(i)}return n}function Un(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function rD(t){return!!t.deps}function iD(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function oD(t){return typeof t=="function"||typeof t=="object"&&t instanceof b}function Ua(t,e){for(let r of t)Array.isArray(r)?Ua(r,e):r&&Kd(r)?Ua(r.\u0275providers,e):e(r)}function ft(t,e){t instanceof Rr&&t.assertNotDestroyed();let r,n=jt(t),i=Me(void 0);try{return e()}finally{jt(n),Me(i)}}function sD(t){if(!tf()&&!_v())throw new E(-203,!1)}function Md(t,e=null,r=null,n){let i=sh(t,e,r,n);return i.resolveInjectorInitializers(),i}function sh(t,e=null,r=null,n,i=new Set){let o=[r||ke,Yy(t)];return n=n||(typeof t=="object"?void 0:we(t)),new Rr(o,e||ju(),n||null,i)}var Ve=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return Md({name:""},i,n,"");{let o=n.name??"";return Md({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=Mr,e.NULL=new yo,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>D(eh)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var $a;function ah(t){$a=t}function aD(){if($a!==void 0)return $a;if(typeof document<"u")return document;throw new E(210,!1)}var Vo=new b("AppId",{providedIn:"root",factory:()=>uD}),uD="ng",Bu=new b("Platform Initializer"),ht=new b("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var Uu=new b("CSP nonce",{providedIn:"root",factory:()=>aD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function uh(t){return t instanceof Function?t():t}function cD(t){return(t??p(Ve)).get(ht)==="browser"}function ch(t){return(t.flags&128)===128}var _t=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(_t||{});var lh=new Map,lD=0;function dD(){return lD++}function fD(t){lh.set(t[Oo],t)}function hD(t){lh.delete(t[Oo])}var Sd="__ngContext__";function mn(t,e){un(e)?(t[Sd]=e[Oo],fD(e)):t[Sd]=e}var pD;function $u(t,e){return pD(t,e)}function $n(t,e,r,n,i){if(n!=null){let o,s=!1;St(n)?o=n:un(n)&&(s=!0,n=n[Mt]);let a=ct(n);t===0&&r!==null?i==null?gh(e,r,a):Do(e,r,a,i||null,!0):t===1&&r!==null?Do(e,r,a,i||null,!0):t===2?ND(e,a,s):t===3&&e.destroyNode(a),o!=null&&OD(e,t,o,r,i)}}function gD(t,e){return t.createText(e)}function mD(t,e,r){t.setValue(e,r)}function dh(t,e,r){return t.createElement(e,r)}function vD(t,e){fh(t,e),e[Mt]=null,e[Qe]=null}function yD(t,e,r,n,i,o){n[Mt]=i,n[Qe]=e,jo(t,n,r,1,i,o)}function fh(t,e){e[at].changeDetectionScheduler?.notify(),jo(t,e,e[pe],2,null,null)}function DD(t){let e=t[Ar];if(!e)return wa(t[F],t);for(;e;){let r=null;if(un(e))r=e[Ar];else{let n=e[Ne];n&&(r=n)}if(!r){for(;e&&!e[qe]&&e!==t;)un(e)&&wa(e[F],e),e=e[he];e===null&&(e=t),un(e)&&wa(e[F],e),r=e&&e[qe]}e=r}}function wD(t,e,r,n){let i=Ne+n,o=r.length;n>0&&(r[i-1][qe]=e),n0&&(t[r-1][qe]=n[qe]);let o=mo(t,Ne+e);vD(n[F],n);let s=o[ot];s!==null&&s.detachView(o[F]),n[he]=null,n[qe]=null,n[S]&=-129}return n}function ph(t,e){if(!(e[S]&256)){let r=e[pe];r.destroyNode&&jo(t,e,r,3,null,null),DD(e)}}function wa(t,e){if(!(e[S]&256)){e[S]&=-129,e[S]|=256,e[ln]&&Vl(e[ln]),bD(t,e),ED(t,e),e[F].type===1&&e[pe].destroy();let r=e[Lr];if(r!==null&&St(e[he])){r!==e[he]&&hh(r,e);let n=e[ot];n!==null&&n.detachView(t)}hD(e)}}function ED(t,e){let r=t.cleanup,n=e[Tr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Tr]=null);let i=e[Bt];if(i!==null){e[Bt]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===st.None||o===st.Emulated)return null}return Le(n,r)}}function Do(t,e,r,n,i){t.insertBefore(e,r,n,i)}function gh(t,e,r){t.appendChild(e,r)}function Td(t,e,r,n,i){n!==null?Do(t,e,r,n,i):gh(t,e,r)}function MD(t,e,r,n){t.removeChild(e,r,n)}function Hu(t,e){return t.parentNode(e)}function SD(t,e){return t.nextSibling(e)}function TD(t,e,r){return xD(t,e,r)}function AD(t,e,r){return t.type&40?Le(t,r):null}var xD=AD,Ad;function zu(t,e,r,n){let i=ID(t,n,e),o=e[pe],s=n.parent||e[Qe],a=TD(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;ut,createScript:t=>t,createScriptURL:t=>t})}catch{}return Qi}function xd(t){return kD()?.createScriptURL(t)||t}var wo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yd})`}};function Br(t){return t instanceof wo?t.changingThisBreaksApplicationSecurity:t}function Wu(t,e){let r=LD(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Yd})`)}return r===e}function LD(t){return t instanceof wo&&t.getTypeName()||null}var VD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Dh(t){return t=String(t),t.match(VD)?t:"unsafe:"+t}var Bo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Bo||{});function Ur(t){let e=Ch();return e?e.sanitize(Bo.URL,t)||"":Wu(t,"URL")?Br(t):Dh(xo(t))}function jD(t){let e=Ch();if(e)return xd(e.sanitize(Bo.RESOURCE_URL,t)||"");if(Wu(t,"ResourceURL"))return xd(Br(t));throw new E(904,!1)}function BD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?jD:Ur}function wh(t,e,r){return BD(e,r)(t)}function Ch(){let t=$();return t&&t[at].sanitizer}var Ga=class{};var UD="h",$D="b";var HD=()=>null;function qu(t,e,r=!1){return HD(t,e,r)}var Wa=class{},Co=class{};function zD(t){let e=Error(`No component factory found for ${we(t)}.`);return e[GD]=t,e}var GD="ngComponent";var qa=class{resolveComponentFactory(e){throw zD(e)}},Uo=(()=>{let e=class e{};e.NULL=new qa;let t=e;return t})();function WD(){return nr(Te(),$())}function nr(t,e){return new Ae(Le(t,e))}var Ae=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=WD;let t=e;return t})();function qD(t){return t instanceof Ae?t.nativeElement:t}var Or=class{},pt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>ZD();let t=e;return t})();function ZD(){let t=$(),e=Te(),r=zt(e.index,t);return(un(r)?r:t)[pe]}var YD=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Ca={};function Zu(t){let e=ve(null);try{return t()}finally{ve(e)}}function Eh(t){return KD(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function QD(t,e){if(Array.isArray(t))for(let r=0;re,Ya=class{constructor(e){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=e||JD}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Qa(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Eo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Eo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Qa=class{constructor(e,r){this.item=e,this.trackById=r,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}},Ka=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Eo=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Ka,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Nd(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Rd()),deps:[[e,new Lu,new Po]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new E(901,!1)}};e.\u0275prov=w({token:e,providedIn:"root",factory:Rd});let t=e;return t})();function bo(t,e,r,n,i=!1){for(;r!==null;){let o=e[r.index];o!==null&&n.push(ct(o)),St(o)&&XD(o,n);let s=r.type;if(s&8)bo(t,e,r.child,n);else if(s&32){let a=$u(r,e),u;for(;u=a();)n.push(u)}else if(s&16){let a=mh(e,r);if(Array.isArray(a))n.push(...a);else{let u=Nr(e[ut]);bo(u[F],u,a,n,!0)}}r=i?r.projectionNext:r.next}return n}function XD(t,e){for(let r=Ne;r{xr(t.lView)},consumerOnSignalRead(){this.lView[ln]=this}});function Ih(t){return Mh(t[Ar])}function _h(t){return Mh(t[qe])}function Mh(t){for(;t!==null&&!St(t);)t=t[qe];return t}var iw="ngOriginalError";function Ea(t){return t[iw]}var lt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Ea(e);for(;r&&Ea(r);)r=Ea(r);return r||null}},Sh=new b("",{providedIn:"root",factory:()=>p(lt).handleError.bind(void 0)});var Th=!1,ow=new b("",{providedIn:"root",factory:()=>Th});var wn={};function O(t=1){Ah(Se(),$(),er()+t,!1)}function Ah(t,e,r,n){if(!n)if((e[S]&3)===3){let o=t.preOrderCheckHooks;o!==null&&eo(e,o,r)}else{let o=t.preOrderHooks;o!==null&&to(e,o,0,r)}hn(r)}function m(t,e=L.Default){let r=$();if(r===null)return D(t,e);let n=Te();return Yf(n,r,De(t),e)}function xh(){let t="invalid";throw new Error(t)}function Nh(t,e,r,n,i,o){let s=ve(null);try{let a=null;i&le.SignalBased&&(a=e[n][Fl]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&le.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,a,o,r,n):wf(e,a,n,o)}finally{ve(s)}}function sw(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;nYe&&Ah(t,e,Ye,!1),rt(s?2:0,i),r(n,i)}finally{hn(o),rt(s?3:1,i)}}function Fh(t,e,r){if(Df(e)){let n=ve(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function fw(t,e,r,n){let i=Hh(e);i.push(r),t.firstCreatePass&&zh(t).push(n,i.length-1)}function hw(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return sy()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Od(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,u=le.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?Fd(n,r,c,a,u):Fd(n,r,c,a)}return n}function Fd(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function pw(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function ww(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Fo(r)&&Sw(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||go(r,e),mn(n,e);let s=r.initialInputs;for(let a=i;a-1&&(Ha(e,n),mo(r,n))}this._attachedToViewContainer=!1}ph(this._lView[F],this._lView)}onDestroy(e){Af(this._lView,e)}markForCheck(){Ju(this._cdRefInjectingView||this._lView)}detach(){this._lView[S]&=-129}reattach(){Fa(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,Fw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,fh(this._lView[F],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=e,Fa(this._lView)}},Cn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Bw;let t=e;return t})();function Bw(t){return Uw(Te(),$(),(t&16)===16)}function Uw(t,e,r){if(Fo(t)&&!r){let n=zt(t.index,e);return new vn(n,n)}else if(t.type&47){let n=e[ut];return new vn(n,e)}return null}var Yh=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=$w,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),tu=class extends Yh{constructor(e){super(),this._lView=e}onDestroy(e){return Af(this._lView,e),()=>ny(this._lView,e)}};function $w(){return new tu($())}var Pd=new Set;function Go(t){Pd.has(t)||(Pd.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var nu=class extends me{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=ba(o),i&&(i=ba(i)),s&&(s=ba(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof te&&e.add(a),a}};function ba(t){return e=>{setTimeout(t,void 0,e)}}var Q=nu;function kd(...t){}function Hw(){let t=typeof Ce.requestAnimationFrame=="function",e=Ce[t?"requestAnimationFrame":"setTimeout"],r=Ce[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var z=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Q(!1),this.onMicrotaskEmpty=new Q(!1),this.onStable=new Q(!1),this.onError=new Q(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=Hw().nativeRequestAnimationFrame,Ww(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new E(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,zw,kd,kd);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},zw={};function Xu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Gw(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ce,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ru(t),t.isCheckStableRunning=!0,Xu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ru(t))}function Ww(t){let e=()=>{Gw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(qw(a))return r.invokeTask(i,o,s,a);try{return Ld(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Vd(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Ld(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Vd(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,ru(t),Xu(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function ru(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Ld(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Vd(t){t._nesting--,Xu(t)}var iu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Q,this.onMicrotaskEmpty=new Q,this.onStable=new Q,this.onError=new Q}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function qw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function Zw(t="zone.js",e){return t==="noop"?new iu:t==="zone.js"?new z(e):t}var Hn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Hn||{}),Yw={destroy(){}};function ec(t,e){!e&&sD(ec);let r=e?.injector??p(Ve);if(!cD(r))return Yw;Go("NgAfterNextRender");let n=r.get(tc),i=n.handler??=new su,o=e?.phase??Hn.MixedReadWrite,s=()=>{i.unregister(u),a()},a=r.get(Yh).onDestroy(s),u=new ou(r,o,()=>{s(),t()});return i.register(u),{destroy:s}}var ou=class{constructor(e,r,n){this.phase=r,this.callbackFn=n,this.zone=e.get(z),this.errorHandler=e.get(lt,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},su=class{constructor(){this.executingCallbacks=!1,this.buckets={[Hn.EarlyRead]:new Set,[Hn.Write]:new Set,[Hn.MixedReadWrite]:new Set,[Hn.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){let e=!1;this.executingCallbacks=!0;for(let r of Object.values(this.buckets))for(let n of r)e=!0,n.invoke();this.executingCallbacks=!1;for(let r of this.deferredCallbacks)this.buckets[r.phase].add(r);return this.deferredCallbacks.clear(),e}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},tc=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o();return!!this.handler?.execute()||n.length>0}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Qw(t,e){let r=zt(e,t),n=r[F];Kw(n,r);let i=r[Mt];i!==null&&r[uo]===null&&(r[uo]=qu(i,r[qn])),nc(n,r,r[Ze])}function Kw(t,e){for(let r=e.length;r0&&vh(t,r,o.join(" "))}}function oC(t,e,r){let n=t.projection=[];for(let i=0;i=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Sr(i.hostAttrs,r=Sr(r,i.hostAttrs))}}function Ki(t){return t===Wn?{}:t===ke?[]:t}function lC(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function dC(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function fC(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function rc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var DR=new RegExp(`^(\\d+)*(${$D}|${UD})*(.*)`);var hC=()=>null;function Bd(t,e){return hC(t,e)}function pC(t,e,r,n){let i=e.tView,s=t[S]&4096?4096:16,a=$o(t,i,r,s,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),u=t[e.index];a[Lr]=u;let c=t[ot];return c!==null&&(a[ot]=c.createEmbeddedView(i)),nc(i,a,r),a}function Ud(t,e){return!e||e.firstChild===null||ch(t)}function gC(t,e,r,n=!0){let i=e[F];if(wD(i,e,t,r),n){let s=za(r,t),a=e[pe],u=Hu(a,t[dn]);u!==null&&yD(i,t[Qe],a,e,u,s)}let o=e[uo];o!==null&&o.firstChild!==null&&(o.firstChild=null)}var Gt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=mC;let t=e;return t})();function mC(){let t=Te();return Kh(t,$())}var vC=Gt,Qh=class extends vC{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return nr(this._hostTNode,this._hostLView)}get injector(){return new cn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Fu(this._hostTNode,this._hostLView);if(Hf(e)){let r=ho(e,this._hostLView),n=fo(e),i=r[F].data[n+8];return new cn(i,r)}else return new cn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=$d(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ne}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Bd(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Ud(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!Ly(e),a;if(s)a=r;else{let C=r||{};a=C.index,n=C.injector,i=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}let u=s?e:new Kn(Ut(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let j=(s?c:this.parentInjector).get(Ee,null);j&&(o=j)}let l=Ut(u.componentType??{}),d=Bd(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,Ud(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(Xv(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[he],c=new Qh(u,u[Qe],u[he]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return gC(s,i,o,n),e.attachToViewContainerRef(),Xf(Ia(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=$d(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Ha(this._lContainer,r);n&&(mo(Ia(this._lContainer),r),ph(n[F],n))}detach(e){let r=this._adjustIndex(e,-1),n=Ha(this._lContainer,r);return n&&mo(Ia(this._lContainer),r)!=null?new vn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function $d(t){return t[co]}function Ia(t){return t[co]||(t[co]=[])}function Kh(t,e){let r,n=e[t.index];return St(n)?r=n:(r=Uh(n,e,null,t),e[t.index]=r,zo(e,r)),DC(r,e,t,n),new Qh(r,t,e)}function yC(t,e){let r=t[pe],n=r.createComment(""),i=Le(e,t),o=Hu(r,i);return Do(r,o,n,SD(r,i),!1),n}var DC=EC,wC=()=>!1;function CC(t,e,r){return wC(t,e,r)}function EC(t,e,r,n){if(t[dn])return;let i;r.type&8?i=ct(n):i=yC(e,r),t[dn]=i}function bC(t,e,r){return t[e]=r}function $r(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function IC(t,e,r,n,i,o,s,a,u){let c=e.consts,l=Ho(e,t,4,s||null,lo(c,a));Vh(e,r,l,lo(c,u)),Ou(e,l);let d=l.tView=Qu(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function K(t,e,r,n,i,o,s,a){let u=$(),c=Se(),l=t+Ye,d=c.firstCreatePass?IC(l,c,u,e,r,n,i,o,s):c.data[l];Vr(d,!1);let f=_C(c,u,d,t);Nu()&&zu(c,u,f,d),mn(f,u);let h=Uh(f,u,f,d);return u[l]=h,zo(u,h),CC(h,d,u),_u(d)&&Ph(c,u,d),s!=null&&kh(u,d,a),K}var _C=MC;function MC(t,e,r,n){return Ru(!0),e[pe].createComment("")}function rr(t,e,r,n){let i=$(),o=Su();if($r(i,o,e)){let s=Se(),a=Bf();Tw(a,i,t,e,r,n)}return rr}function SC(t,e,r,n){return $r(t,Su(),r)?e+xo(r)+n:wn}function Ji(t,e){return t<<17|e<<2}function yn(t){return t>>17&32767}function TC(t){return(t&2)==2}function AC(t,e){return t&131071|e<<17}function lu(t){return t|2}function Jn(t){return(t&131068)>>2}function _a(t,e){return t&-131069|e<<2}function xC(t){return(t&1)===1}function du(t){return t|1}function NC(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=yn(s),u=Jn(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||jr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=yn(t[a+1]);t[n+1]=Ji(f,a),f!==0&&(t[f+1]=_a(t[f+1],n)),t[a+1]=AC(t[a+1],n)}else t[n+1]=Ji(a,0),a!==0&&(t[a+1]=_a(t[a+1],n)),a=n;else t[n+1]=Ji(u,0),a===0?a=n:t[u+1]=_a(t[u+1],n),u=n;c&&(t[n+1]=lu(t[n+1])),Hd(t,l,n,!0),Hd(t,l,n,!1),RC(e,l,t,n,o),s=Ji(a,u),o?e.classBindings=s:e.styleBindings=s}function RC(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&jr(o,e)>=0&&(r[n+1]=du(r[n+1]))}function Hd(t,e,r,n){let i=t[r+1],o=e===null,s=n?yn(i):Jn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];OC(u,e)&&(a=!0,t[s+1]=n?du(c):lu(c)),s=n?yn(c):Jn(c)}a&&(t[r+1]=n?lu(i):du(i))}function OC(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?jr(t,e)>=0:!1}function V(t,e,r){let n=$(),i=Su();if($r(n,i,e)){let o=Se(),s=Bf();mw(o,s,n,t,e,n[pe],r,!1)}return V}function zd(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Ku(t,r,o[s],s,n)}function ir(t,e){return FC(t,e,null,!0),ir}function FC(t,e,r,n){let i=$(),o=Se(),s=hy(2);if(o.firstUpdatePass&&kC(o,t,s,n),e!==wn&&$r(i,s,e)){let a=o.data[er()];UC(o,a,i,i[pe],t,i[s+1]=$C(e,r),n,s)}}function PC(t,e){return e>=t.expandoStartIndex}function kC(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[er()],s=PC(t,r);HC(o,n)&&e===null&&!s&&(e=!1),e=LC(i,o,e,n),NC(i,o,e,r,s,n)}}function LC(t,e,r,n){let i=vy(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Ma(null,t,e,r,n),r=Fr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Ma(i,t,e,r,n),o===null){let u=VC(t,e,n);u!==void 0&&Array.isArray(u)&&(u=Ma(null,t,e,u[1],n),u=Fr(u,e.attrs,n),jC(t,e,n,u))}else o=BC(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function VC(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Jn(n)!==0)return t[yn(n)]}function jC(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[yn(i)]=n}function BC(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===wn&&(f=d?ke:void 0);let h=d?ya(f,n):l===n?f:void 0;if(c&&!_o(h)&&(h=ya(u,n)),_o(h)&&(a=h,s))return a;let C=t[i+1];i=s?yn(C):Jn(C)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=ya(u,n))}return a}function _o(t){return t!==void 0}function $C(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=we(Br(t)))),t}function HC(t,e){return(t.flags&(e?8:16))!==0}function zC(t,e,r,n,i,o){let s=e.consts,a=lo(s,i),u=Ho(e,t,2,n,a);return Vh(e,r,u,lo(s,o)),u.attrs!==null&&au(u,u.attrs,!1),u.mergedAttrs!==null&&au(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function v(t,e,r,n){let i=$(),o=Se(),s=Ye+t,a=i[pe],u=o.firstCreatePass?zC(s,o,i,e,r,n):o.data[s],c=GC(o,i,u,a,e,t);i[s]=c;let l=_u(u);return Vr(u,!0),yh(a,c,u),(u.flags&32)!==32&&Nu()&&zu(o,i,c,u),ry()===0&&mn(c,i),iy(),l&&(Ph(o,i,u),Fh(o,u,i)),n!==null&&kh(i,u),v}function y(){let t=Te();Rf()?ly():(t=t.parent,Vr(t,!1));let e=t;ay(e)&&uy(),oy();let r=Se();return r.firstCreatePass&&(Ou(r,t),Df(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Iy(e)&&zd(r,e,$(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&_y(e)&&zd(r,e,$(),e.stylesWithoutHost,!1),y}function re(t,e,r,n){return v(t,e,r,n),y(),re}var GC=(t,e,r,n,i,o)=>(Ru(!0),dh(n,i,wy()));function xt(){return $()}var Mo="en-US";var WC=Mo;function qC(t){vv(t,"Expected localeId to be defined"),typeof t=="string"&&(WC=t.toLowerCase().replace(/_/g,"-"))}function Wt(t){return!!t&&typeof t.then=="function"}function ic(t){return!!t&&typeof t.subscribe=="function"}function ee(t,e,r,n){let i=$(),o=Se(),s=Te();return YC(o,i,i[pe],s,t,e,n),ee}function ZC(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function YC(t,e,r,n,i,o,s){let a=_u(n),c=t.firstCreatePass&&zh(t),l=e[Ze],d=Hh(e),f=!0;if(n.type&3||s){let j=Le(n,e),A=s?s(j):j,_=d.length,ie=s?W=>s(ct(W[n.index])):n.index,Oe=null;if(!s&&a&&(Oe=ZC(t,e,i,n.index)),Oe!==null){let W=Oe.__ngLastListenerFn__||Oe;W.__ngNextListenerFn__=o,Oe.__ngLastListenerFn__=o,f=!1}else{o=qd(n,e,l,o,!1);let W=r.listen(A,i,o);d.push(o,W),c&&c.push(i,ie,_,_+1)}}else o=qd(n,e,l,o,!1);let h=n.outputs,C;if(f&&h!==null&&(C=h[i])){let j=C.length;if(j)for(let A=0;A-1?zt(t.index,e):e;Ju(a);let u=Wd(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Wd(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function xe(t=1){return Dy(t)}function QC(){return this._results[Symbol.iterator]()}var fu=class t{get changes(){return this._changes??=new Q}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=QC)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=jy(e);(this._changesDetected=!Vy(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},Dn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=XC;let t=e;return t})(),KC=Dn,JC=class extends KC{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=pC(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new vn(i)}};function XC(){return oc(Te(),$())}function oc(t,e){return t.type&4?new JC(e,t,nr(t,e)):null}var hu=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},pu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=Ne;d=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function rp(t){let e=dy();return Mf(e,Ye+t)}function M(t,e=""){let r=$(),n=Se(),i=t+Ye,o=n.firstCreatePass?Ho(n,i,1,e,null):n.data[i],s=c0(n,r,o,e,t);r[i]=s,Nu()&&zu(n,r,s,o),Vr(o,!1)}var c0=(t,e,r,n,i)=>(Ru(!0),gD(e[pe],n));function gt(t){return Xe("",t,""),gt}function Xe(t,e,r){let n=$(),i=SC(n,t,e,r);return i!==wn&&Rw(n,er(),i),Xe}function l0(t,e,r){let n=Se();if(n.firstCreatePass){let i=$t(t);Du(r,n.data,n.blueprint,i,!0),Du(e,n.data,n.blueprint,i,!1)}}function Du(t,e,r,n,i){if(t=De(t),Array.isArray(t))for(let o=0;o>20;if(Qn(t)||!t.multi){let h=new pn(c,i,m),C=Ta(u,e,i?l:l+f,d);C===-1?(La(go(a,s),o,u),Sa(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[C]=h,s[C]=h)}else{let h=Ta(u,e,l+f,d),C=Ta(u,e,l,l+f),j=h>=0&&r[h],A=C>=0&&r[C];if(i&&!A||!i&&!j){La(go(a,s),o,u);let _=h0(i?f0:d0,r.length,i,n,c);!i&&A&&(r[C].providerFactory=_),Sa(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(_),s.push(_)}else{let _=ip(r[i?C:h],c,!i&&n);Sa(o,t,h>-1?h:C,_)}!i&&n&&A&&r[C].componentProviders++}}}function Sa(t,e,r,n){let i=Qn(e),o=Xy(e);if(i||o){let u=(o?De(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function ip(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Ta(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>l0(n,i?i(t):t,e)}}var Ht=class{},Pr=class{};var So=class extends Ht{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Io(this);let i=pf(e);this._bootstrapComponents=uh(i.bootstrap),this._r3Injector=sh(e,r,[{provide:Ht,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver},...n],we(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},To=class extends Pr{constructor(e){super(),this.moduleType=e}create(e){return new So(this.moduleType,e,[])}};function p0(t,e,r){return new So(t,e,r)}var Cu=class extends Ht{constructor(e){super(),this.componentFactoryResolver=new Io(this),this.instance=null;let r=new Rr([...e.providers,{provide:Ht,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver}],e.parent||ju(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Wo(t,e,r=null){return new Cu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var g0=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=nh(!1,n.type),o=i.length>0?Wo([i],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()}}};e.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(D(Ee))});let t=e;return t})();function op(t){Go("NgStandalone"),t.getStandaloneInjector=e=>e.get(g0).getOrCreateStandaloneInjector(t)}function qo(t,e,r,n){return sp($(),Of(),t,e,r,n)}function m0(t,e){let r=t[e];return r===wn?void 0:r}function sp(t,e,r,n,i,o){let s=e+r;return $r(t,s,i)?bC(t,s+1,o?n.call(o,i):n(i)):m0(t,s+1)}function Zt(t,e){let r=Se(),n,i=t+Ye;r.firstCreatePass?(n=v0(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=fn(n.type,!0)),s,a=Me(m);try{let u=po(!1),c=o();return po(u),u0(r,$(),i,c),c}finally{Me(a)}}function v0(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function Yt(t,e,r){let n=t+Ye,i=$(),o=Mf(i,n);return y0(i,n)?sp(i,Of(),e,o.transform,r,o):o.transform(r)}function y0(t,e){return t[F].data[e].pure}var Xi=null;function D0(t){Xi!==null&&(t.defaultEncapsulation!==Xi.defaultEncapsulation||t.preserveWhitespaces!==Xi.preserveWhitespaces)||(Xi=t)}var Zo=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Eu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Yo=(()=>{let e=class e{compileModuleSync(n){return new To(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=pf(n),s=uh(o.declarations).reduce((a,u)=>{let c=Ut(u);return c&&a.push(new Kn(c)),a},[]);return new Eu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),w0=new b("compilerOptions");var En=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ue(!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)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sc=new b(""),Hr=new b(""),Qo=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,ac||(C0(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(D(z),D(Ko),D(Hr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ko=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return ac?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function C0(t){ac=t}var ac,Jo=new b("Application Initializer"),ap=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(Jo,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Wt(s))n.push(s);else if(ic(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Xo=new b("appBootstrapListener");function E0(t,e,r){let n=new To(r);return Promise.resolve(n)}function b0(){jl(()=>{throw new E(600,!1)})}function I0(t){return t.isBoundToModule}function _0(t,e,r){try{let n=r();return Wt(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function up(t,e){return Array.isArray(e)?e.reduce(up,t):g(g({},t),e)}var bn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Sh),this.afterRenderEffectManager=p(tc),this.componentTypes=[],this.components=[],this.isStable=p(En).hasPendingTasks.pipe(T(n=>!n)),this._injector=p(Ee)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Co;if(!this._injector.get(ap).done){let h=!o&&hf(n),C=!1;throw new E(405,C)}let a;o?a=n:a=this._injector.get(Uo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=I0(a)?void 0:this._injector.get(Ht),c=i||a.selector,l=a.create(Ve.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(sc,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),oo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new E(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{try{let n=this.afterRenderEffectManager.execute()}catch(n){this.internalErrorHandler(n)}this._runningTick=!1}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;oo(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Xo,[]);[...this._bootstrapListeners,...i].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),()=>oo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Zd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var M0=(()=>{let e=class e{constructor(){this.zone=p(z),this.applicationRef=p(bn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function S0(t){return[{provide:z,useFactory:t},{provide:Yn,multi:!0,useFactory:()=>{let e=p(M0,{optional:!0});return()=>e.initialize()}},{provide:Yn,multi:!0,useFactory:()=>{let e=p(x0);return()=>{e.initialize()}}},{provide:Sh,useFactory:T0}]}function T0(){let t=p(z),e=p(lt);return r=>t.runOutsideAngular(()=>e.handleError(r))}function A0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var x0=(()=>{let e=class e{constructor(){this.subscription=new te,this.initialized=!1,this.zone=p(z),this.pendingTasks=p(En)}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(()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function N0(){return typeof $localize<"u"&&$localize.locale||Mo}var uc=new b("LocaleId",{providedIn:"root",factory:()=>p(uc,L.Optional|L.SkipSelf)||N0()});var cp=new b("PlatformDestroyListeners"),lp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=Zw(i?.ngZone,A0({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=p0(n.moduleType,this.injector,S0(()=>o)),a=s.injector.get(lt,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{oo(this._modules,s),u.unsubscribe()})}),_0(a,o,()=>{let u=s.injector.get(ap);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(uc,Mo);return qC(c||Mo),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,i=[]){let o=up({},i);return E0(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(bn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new E(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(cp,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(D(Ve))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),_r=null,dp=new b("AllowMultipleToken");function R0(t){if(_r&&!_r.get(dp,!1))throw new E(400,!1);b0(),_r=t;let e=t.get(lp);return P0(t),e}function cc(t,e,r=[]){let n=`Platform: ${e}`,i=new b(n);return(o=[])=>{let s=fp();if(!s||s.injector.get(dp,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):R0(O0(a,n))}return F0(i)}}function O0(t=[],e){return Ve.create({name:e,providers:[{provide:Lo,useValue:"platform"},{provide:cp,useValue:new Set([()=>_r=null])},...t]})}function F0(t){let e=fp();if(!e)throw new E(401,!1);return e}function fp(){return _r?.get(lp)??null}function P0(t){t.get(Bu,null)?.forEach(r=>r())}var hp=cc(null,"core",[]),pp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(D(bn))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})();function or(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function gp(t){let e=Ut(t);if(!e)return null;let r=new Kn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var lc=null;function mt(){return lc}function wp(t){lc||(lc=t)}var es=class{},ge=new b("DocumentToken"),yc=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>p(k0),providedIn:"platform"});let t=e;return t})(),Cp=new b("Location Initialized"),k0=(()=>{let e=class e extends yc{constructor(){super(),this._doc=p(ge),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mt().getBaseHref(this._doc)}onPopState(n){let i=mt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=mt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Dc(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function mp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Nt(t){return t&&t[0]!=="?"?"?"+t:t}var Rt=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>p(wc),providedIn:"root"});let t=e;return t})(),Ep=new b("appBaseHref"),wc=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(ge).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 Dc(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Nt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(D(yc),D(Ep,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bp=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash;return i==null&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Dc(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(D(yc),D(Ep,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),ar=(()=>{let e=class e{constructor(n){this._subject=new Q,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=j0(mp(vp(i))),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,i=""){return this.path()==this.normalize(n+Nt(i))}normalize(n){return e.stripTrailingSlash(V0(this._basePath,vp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),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._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Nt,e.joinWithSlash=Dc,e.stripTrailingSlash=mp,e.\u0275fac=function(i){return new(i||e)(D(Rt))},e.\u0275prov=w({token:e,factory:()=>L0(),providedIn:"root"});let t=e;return t})();function L0(){return new ar(D(Rt))}function V0(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function vp(t){return t.replace(/\/index.html$/,"")}function j0(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ts(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var dc=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}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}},vt=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,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 i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new dc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),yp(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);yp(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(Gt),m(Dn),m(Yu))},e.\u0275dir=ne({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function yp(t,e){t.context.$implicit=e.item}var je=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new fc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Dp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Dp("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(Gt),m(Dn))},e.\u0275dir=ne({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),fc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Dp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${we(e)}'.`)}function B0(t,e){return new E(2100,!1)}var hc=class{createSubscription(e,r){return Zu(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){Zu(()=>e.unsubscribe())}},pc=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},U0=new pc,$0=new hc,Qt=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Wt(n))return U0;if(ic(n))return $0;throw B0(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this._ref.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(m(Cn,16))},e.\u0275pipe=lf({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var ur=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})(),Cc="browser",H0="server";function z0(t){return t===Cc}function Ec(t){return t===H0}var Ip=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>z0(p(ht))?new gc(p(ge),window):new mc});let t=e;return t})(),gc=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=G0(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function G0(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var mc=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},sr=class{};var Gr=class{},rs=class{},In=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Ic=class{encodeKey(e){return _p(e)}encodeValue(e){return _p(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Z0(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var Y0=/%(\d[a-f0-9])/gi,Q0={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _p(t){return encodeURIComponent(t).replace(Y0,(e,r)=>Q0[r]??e)}function ns(t){return`${t}`}var Kt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ic,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Z0(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(ns):[ns(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ns(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(ns(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var _c=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function K0(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Mp(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Sp(t){return typeof Blob<"u"&&t instanceof Blob}function Tp(t){return typeof FormData<"u"&&t instanceof FormData}function J0(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var zr=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(K0(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers||(this.headers=new In),this.context||(this.context=new _c),!this.params)this.params=new Kt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,o,{params:c,headers:u,context:l,reportProgress:a,responseType:i,withCredentials:s})}},cr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(cr||{}),Wr=class{constructor(e,r=ss.Ok,n="OK"){this.headers=e.headers||new In,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Mc=class t extends Wr{constructor(e={}){super(e),this.type=cr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},is=class t extends Wr{constructor(e={}){super(e),this.type=cr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},os=class extends Wr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},ss=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(ss||{});function bc(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Sc=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof zr)s=n;else{let c;o.headers instanceof In?c=o.headers:c=new In(o.headers);let l;o.params&&(o.params instanceof Kt?l=o.params:l=new Kt({fromObject:o.params})),s=new zr(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=I(s).pipe(bt(c=>this.handler.handle(c)));if(n instanceof zr||o.observe==="events")return a;let u=a.pipe(fe(c=>c instanceof is));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(T(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(T(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Kt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,bc(o,i))}post(n,i,o={}){return this.request("POST",n,bc(o,i))}put(n,i,o={}){return this.request("PUT",n,bc(o,i))}};e.\u0275fac=function(i){return new(i||e)(D(Gr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Rp(t,e){return e(t)}function X0(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function eE(t,e,r){return(n,i)=>ft(r,()=>e(n,o=>t(o,i)))}var Tc=new b(""),Ac=new b(""),tE=new b(""),nE=new b("");function rE(){let t=null;return(e,r)=>{t===null&&(t=(p(Tc,{optional:!0})??[]).reduceRight(X0,Rp));let n=p(En),i=n.add();return t(e,r).pipe(Vt(()=>n.remove(i)))}}var Ap=(()=>{let e=class e extends Gr{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(En);let o=p(nE,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Ac),...this.injector.get(tE,[])]));this.chain=o.reduceRight((s,a)=>eE(s,a,this.injector),Rp)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Vt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(D(rs),D(Ee))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var iE=/^\)\]\}',?\n/;function oE(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var xp=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new E(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?q(i.\u0275loadImpl()):I(null)).pipe(ce(()=>new B(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((A,_)=>a.setRequestHeader(A,_.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let A=n.detectContentTypeHeader();A!==null&&a.setRequestHeader("Content-Type",A)}if(n.responseType){let A=n.responseType.toLowerCase();a.responseType=A!=="json"?A:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let A=a.statusText||"OK",_=new In(a.getAllResponseHeaders()),ie=oE(a)||n.url;return c=new Mc({headers:_,status:a.status,statusText:A,url:ie}),c},d=()=>{let{headers:A,status:_,statusText:ie,url:Oe}=l(),W=null;_!==ss.NoContent&&(W=typeof a.response>"u"?a.responseText:a.response),_===0&&(_=W?ss.Ok:0);let Ie=_>=200&&_<300;if(n.responseType==="json"&&typeof W=="string"){let ze=W;W=W.replace(iE,"");try{W=W!==""?JSON.parse(W):null}catch(wr){W=ze,Ie&&(Ie=!1,W={error:wr,text:W})}}Ie?(s.next(new is({body:W,headers:A,status:_,statusText:ie,url:Oe||void 0})),s.complete()):s.error(new os({error:W,headers:A,status:_,statusText:ie,url:Oe||void 0}))},f=A=>{let{url:_}=l(),ie=new os({error:A,status:a.status||0,statusText:a.statusText||"Unknown Error",url:_||void 0});s.error(ie)},h=!1,C=A=>{h||(s.next(l()),h=!0);let _={type:cr.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(_.total=A.total),n.responseType==="text"&&a.responseText&&(_.partialText=a.responseText),s.next(_)},j=A=>{let _={type:cr.UploadProgress,loaded:A.loaded};A.lengthComputable&&(_.total=A.total),s.next(_)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",C),u!==null&&a.upload&&a.upload.addEventListener("progress",j)),a.send(u),s.next({type:cr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",C),u!==null&&a.upload&&a.upload.removeEventListener("progress",j)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(D(sr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Op=new b("XSRF_ENABLED"),sE="XSRF-TOKEN",aE=new b("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>sE}),uE="X-XSRF-TOKEN",cE=new b("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>uE}),as=class{},lE=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ts(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(D(ge),D(ht),D(aE))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function dE(t,e){let r=t.url.toLowerCase();if(!p(Op)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(as).getToken(),i=p(cE);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Fp=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Fp||{});function fE(t,e){return{\u0275kind:t,\u0275providers:e}}function hE(...t){let e=[Sc,xp,Ap,{provide:Gr,useExisting:Ap},{provide:rs,useExisting:xp},{provide:Ac,useValue:dE,multi:!0},{provide:Op,useValue:!0},{provide:as,useClass:lE}];for(let r of t)e.push(...r.\u0275providers);return ko(e)}var Np=new b("LEGACY_INTERCEPTOR_FN");function pE(){return fE(Fp.LegacyInterceptors,[{provide:Np,useFactory:rE},{provide:Ac,useExisting:Np,multi:!0}])}var Pp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({providers:[hE(pE())]});let t=e;return t})();var Rc=class extends es{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Oc=class t extends Rc{static makeCurrent(){wp(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=mE();return r==null?null:vE(r)}resetBaseElement(){qr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ts(document.cookie,e)}},qr=null;function mE(){return qr=qr||document.querySelector("base"),qr?qr.getAttribute("href"):null}function vE(t){return new URL(t,document.baseURI).pathname}var Fc=class{addToWindow(e){Ce.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new E(5103,!1);return o},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=Ce.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?mt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},yE=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Pc=new b("EventManagerPlugins"),jp=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new E(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(D(Pc),D(z))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),us=class{constructor(e){this._doc=e}},xc="ng-app-id",Bp=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ec(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${xc}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(xc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(xc,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(D(ge),D(Vo),D(Uu,8),D(ht))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Nc={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/MathML/"},Lc=/%COMP%/g,Up="%COMP%",DE=`_nghost-${Up}`,wE=`_ngcontent-${Up}`,CE=!0,EE=new b("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>CE});function bE(t){return wE.replace(Lc,t)}function IE(t){return DE.replace(Lc,t)}function $p(t,e){return e.map(r=>r.replace(Lc,t))}var kp=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Ec(u),this.defaultRenderer=new Zr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===st.ShadowDom&&(i=H(g({},i),{encapsulation:st.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof cs?o.applyToHost(n):o instanceof Yr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case st.Emulated:s=new cs(c,l,i,this.appId,d,a,u,f);break;case st.ShadowDom:return new kc(c,l,n,i,a,u,this.nonce,f);default:s=new Yr(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(D(jp),D(Bp),D(Vo),D(EE),D(ge),D(ht),D(z),D(Uu))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Zr=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Nc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Lp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Lp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new E(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Nc[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Nc[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(_t.DashCase|_t.Important)?e.style.setProperty(r,n,i&_t.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&_t.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=mt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Lp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var kc=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=$p(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yr=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?$p(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},cs=class extends Yr{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=bE(c),this.hostAttr=IE(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},_E=(()=>{let e=class e extends us{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(D(ge))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Vp=["alt","control","meta","shift"],ME={"\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"},SE={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},TE=(()=>{let e=class e extends us{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Vp.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=ME[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Vp.forEach(a=>{if(a!==o){let u=SE[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(D(ge))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function AE(){Oc.makeCurrent()}function xE(){return new lt}function NE(){return ah(document),document}var RE=[{provide:ht,useValue:Cc},{provide:Bu,useValue:AE,multi:!0},{provide:ge,useFactory:NE,deps:[]}],Hp=cc(hp,"browser",RE),OE=new b(""),FE=[{provide:Hr,useClass:Fc,deps:[]},{provide:sc,useClass:Qo,deps:[z,Ko,Hr]},{provide:Qo,useClass:Qo,deps:[z,Ko,Hr]}],PE=[{provide:Lo,useValue:"root"},{provide:lt,useFactory:xE,deps:[]},{provide:Pc,useClass:_E,multi:!0,deps:[ge,z,ht]},{provide:Pc,useClass:TE,multi:!0,deps:[ge]},kp,Bp,jp,{provide:Or,useExisting:kp},{provide:sr,useClass:yE,deps:[]},[]],zp=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Vo,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(D(OE,12))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({providers:[...PE,...FE],imports:[ur,pp]});let t=e;return t})();function kE(){return new Vc(D(ge))}var Vc=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(D(ge))},e.\u0275prov=w({token:e,factory:function(i){let o=null;return i?o=new i:o=kE(),o},providedIn:"root"});let t=e;return t})();var N="primary",li=Symbol("RouteTitle"),Hc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function pr(t){return new Hc(t)}function LE(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function tn(t){return sa(t)?t:Wt(t)?q(Promise.resolve(t)):I(t)}var jE={exact:ng,subset:rg},tg={exact:BE,subset:UE,ignored:()=>!0};function Wp(t,e,r){return jE[r.paths](t.root,e.root,r.matrixParams)&&tg[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function BE(t,e){return yt(t,e)}function ng(t,e,r){if(!Mn(t.segments,e.segments)||!fs(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ng(t.children[n],e.children[n],r))return!1;return!0}function UE(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>eg(t[r],e[r]))}function rg(t,e,r){return ig(t,e,e.segments,r)}function ig(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Mn(i,r)||e.hasChildren()||!fs(i,r,n))}else if(t.segments.length===r.length){if(!Mn(t.segments,r)||!fs(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!rg(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Mn(t.segments,i)||!fs(t.segments,i,n)||!t.children[N]?!1:ig(t.children[N],e,o,n)}}function fs(t,e,r){return e.every((n,i)=>tg[r](t[i].parameters,n.parameters))}var Jt=class{constructor(e=new U([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=pr(this.queryParams),this._queryParamMap}toString(){return zE.serialize(this)}},U=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hs(this)}},_n=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=pr(this.parameters),this._parameterMap}toString(){return sg(this)}};function $E(t,e){return Mn(t,e)&&t.every((r,n)=>yt(r.parameters,e[n].parameters))}function Mn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function HE(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===N&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==N&&(r=r.concat(e(i,n)))}),r}var di=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>new ni,providedIn:"root"});let t=e;return t})(),ni=class{parse(e){let r=new Wc(e);return new Jt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Qr(e.root,!0)}`,n=qE(e.queryParams),i=typeof e.fragment=="string"?`#${GE(e.fragment)}`:"";return`${r}${n}${i}`}},zE=new ni;function hs(t){return t.segments.map(e=>sg(e)).join("/")}function Qr(t,e){if(!t.hasChildren())return hs(t);if(e){let r=t.children[N]?Qr(t.children[N],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==N&&n.push(`${i}:${Qr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=HE(t,(n,i)=>i===N?[Qr(t.children[N],!1)]:[`${i}:${Qr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[N]!=null?`${hs(t)}/${r[0]}`:`${hs(t)}/(${r.join("//")})`}}function og(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ls(t){return og(t).replace(/%3B/gi,";")}function GE(t){return encodeURI(t)}function Gc(t){return og(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ps(t){return decodeURIComponent(t)}function qp(t){return ps(t.replace(/\+/g,"%20"))}function sg(t){return`${Gc(t.path)}${WE(t.parameters)}`}function WE(t){return Object.entries(t).map(([e,r])=>`;${Gc(e)}=${Gc(r)}`).join("")}function qE(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${ls(r)}=${ls(i)}`).join("&"):`${ls(r)}=${ls(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var ZE=/^[^\/()?;#]+/;function jc(t){let e=t.match(ZE);return e?e[0]:""}var YE=/^[^\/()?;=#]+/;function QE(t){let e=t.match(YE);return e?e[0]:""}var KE=/^[^=?&#]+/;function JE(t){let e=t.match(KE);return e?e[0]:""}var XE=/^[^&#]+/;function eb(t){let e=t.match(XE);return e?e[0]:""}var Wc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[N]=new U(e,r)),n}parseSegment(){let e=jc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(e),new _n(ps(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=QE(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=jc(this.remaining);i&&(n=i,this.capture(n))}e[ps(r)]=ps(n)}parseQueryParam(e){let r=JE(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=eb(this.remaining);s&&(n=s,this.capture(n))}let i=qp(r),o=qp(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=jc(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new E(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=N);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[N]:new U([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new E(4011,!1)}};function ag(t){return t.segments.length>0?new U([],{[N]:t}):t}function ug(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=ug(i);if(n===N&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new U(t.segments,e);return tb(r)}function tb(t){if(t.numberOfChildren===1&&t.children[N]){let e=t.children[N];return new U(t.segments.concat(e.segments),e.children)}return t}function gr(t){return t instanceof Jt}function nb(t,e,r=null,n=null){let i=cg(t);return lg(i,e,r,n)}function cg(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new U(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=ag(n);return e??i}function lg(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Bc(i,i,i,r,n);let o=rb(e);if(o.toRoot())return Bc(i,i,new U([],{}),r,n);let s=ib(o,i,t),a=s.processChildren?Xr(s.segmentGroup,s.index,o.commands):fg(s.segmentGroup,s.index,o.commands);return Bc(i,s.segmentGroup,a,r,n)}function gs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ri(t){return typeof t=="object"&&t!=null&&t.outlets}function Bc(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=dg(t,e,r);let a=ag(ug(s));return new Jt(a,o,i)}function dg(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=dg(o,e,r)}),new U(t.segments,n)}var ms=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&gs(n[0]))throw new E(4003,!1);let i=n.find(ri);if(i&&i!==n.at(-1))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function rb(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ms(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ms(r,e,n)}var fr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function ib(t,e,r){if(t.isAbsolute)return new fr(e,!0,0);if(!r)return new fr(e,!1,NaN);if(r.parent===null)return new fr(r,!0,0);let n=gs(t.commands[0])?0:1,i=r.segments.length-1+n;return ob(r,i,t.numberOfDoubleDots)}function ob(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new E(4005,!1);i=n.segments.length}return new fr(n,!1,i-o)}function sb(t){return ri(t[0])?t[0].outlets:{[N]:t}}function fg(t,e,r){if(t??=new U([],{}),t.segments.length===0&&t.hasChildren())return Xr(t,e,r);let n=ab(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==N)&&t.children[N]&&t.numberOfChildren===1&&t.children[N].segments.length===0){let o=Xr(t.children[N],e,r);return new U(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=fg(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new U(t.segments,i)}}function ab(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ri(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Yp(u,c,s))return o;n+=2}else{if(!Yp(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function qc(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=qc(new U([],{}),0,n))}),e}function Zp(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Yp(t,e,r){return t==r.path&&yt(e,r.parameters)}var ei="imperative",de=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(de||{}),Ue=class{constructor(e,r){this.id=e,this.url=r}},mr=class extends Ue{constructor(e,r,n="imperative",i=null){super(e,r),this.type=de.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},et=class extends Ue{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=de.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Be=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Be||{}),vs=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(vs||{}),Xt=class extends Ue{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=de.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},en=class extends Ue{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=de.NavigationSkipped}},ii=class extends Ue{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=de.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ys=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zc=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yc=class extends Ue{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=de.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Qc=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kc=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jc=class{constructor(e){this.route=e,this.type=de.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Xc=class{constructor(e){this.route=e,this.type=de.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},el=class{constructor(e){this.snapshot=e,this.type=de.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tl=class{constructor(e){this.snapshot=e,this.type=de.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nl=class{constructor(e){this.snapshot=e,this.type=de.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rl=class{constructor(e){this.snapshot=e,this.type=de.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ds=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=de.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},oi=class{},si=class{constructor(e){this.url=e}};var il=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new fi,this.attachRef=null}},fi=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new il,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ws=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=ol(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=ol(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=sl(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return sl(e,this._root).map(r=>r.value)}};function ol(t,e){if(t===e.value)return e;for(let r of e.children){let n=ol(t,r);if(n)return n}return null}function sl(t,e){if(t===e.value)return[e];for(let r of e.children){let n=sl(t,r);if(n.length)return n.unshift(e),n}return[]}var Re=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function dr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Cs=class extends ws{constructor(e,r){super(e),this.snapshot=r,ml(this,e)}toString(){return this.snapshot.toString()}};function hg(t){let e=cb(t),r=new ue([new _n("",{})]),n=new ue({}),i=new ue({}),o=new ue({}),s=new ue(""),a=new tt(r,n,o,s,i,N,t,e.root);return a.snapshot=e.root,new Cs(new Re(a,[]),e)}function cb(t){let e={},r={},n={},i="",o=new ai([],e,n,i,r,N,t,null,{});return new Es("",new Re(o,[]))}var tt=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(T(c=>c[li]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(T(e=>pr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(T(e=>pr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function gl(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:g(g({},e.params),t.params),data:g(g({},e.data),t.data),resolve:g(g(g(g({},t.data),e.data),i?.data),t._resolvedData)}:n={params:g({},t.params),data:g({},t.data),resolve:g(g({},t.data),t._resolvedData??{})},i&&gg(i)&&(n.resolve[li]=i.title),n}var ai=class{get title(){return this.data?.[li]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=pr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=pr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Es=class extends ws{constructor(e,r){super(r),this.url=e,ml(this,r)}toString(){return pg(this._root)}};function ml(t,e){e.value._routerState=t,e.children.forEach(r=>ml(t,r))}function pg(t){let e=t.children.length>0?` { ${t.children.map(pg).join(", ")} } `:"";return`${t.value}${e}`}function Uc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,yt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),yt(e.params,r.params)||t.paramsSubject.next(r.params),VE(e.url,r.url)||t.urlSubject.next(r.url),yt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function al(t,e){let r=yt(t.params,e.params)&&$E(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||al(t.parent,e.parent))}function gg(t){return typeof t.title=="string"||t.title===null}var vl=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=N,this.activateEvents=new Q,this.deactivateEvents=new Q,this.attachEvents=new Q,this.detachEvents=new Q,this.parentContexts=p(fi),this.location=p(Gt),this.changeDetector=p(Cn),this.environmentInjector=p(Ee),this.inputBinder=p(Ss,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new ul(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ne({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ke]});let t=e;return t})(),ul=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===tt?this.route:e===fi?this.childContexts:this.parent.get(e,r)}},Ss=new b(""),Qp=(()=>{let e=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:i}=n,o=br([i.queryParams,i.params,i.data]).pipe(ce(([s,a,u],c)=>(u=g(g(g({},s),a),u),c===0?I(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=gp(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function lb(t,e,r){let n=ui(t,e._root,r?r._root:void 0);return new Cs(n,e)}function ui(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=db(t,e,r);return new Re(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ui(t,a)),s}}let n=fb(e.value),i=e.children.map(o=>ui(t,o));return new Re(n,i)}}function db(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return ui(t,n,i);return ui(t,n)})}function fb(t){return new tt(new ue(t.url),new ue(t.params),new ue(t.queryParams),new ue(t.fragment),new ue(t.data),t.outlet,t.component,t)}var mg="ngNavigationCancelingError";function vg(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=gr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=yg(!1,Be.Redirect,e);return i.url=r,i.navigationBehaviorOptions=n,i}function yg(t,e,r){let n=new Error("NavigationCancelingError: "+(t||""));return n[mg]=!0,n.cancellationCode=e,r&&(n.url=r),n}function hb(t){return Dg(t)&&gr(t.url)}function Dg(t){return t&&t[mg]}var pb=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[op],decls:1,vars:0,template:function(i,o){i&1&&re(0,"router-outlet")},dependencies:[vl],encapsulation:2});let t=e;return t})();function gb(t,e){return t.providers&&!t._injector&&(t._injector=Wo(t.providers,e,`Route: ${t.path}`)),t._injector??e}function yl(t){let e=t.children&&t.children.map(yl),r=e?H(g({},t),{children:e}):g({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==N&&(r.component=pb),r}function Dt(t){return t.outlet||N}function mb(t,e){let r=t.filter(n=>Dt(n)===e);return r.push(...t.filter(n=>Dt(n)!==e)),r}function hi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var vb=(t,e,r,n)=>T(i=>(new cl(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),cl=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Uc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=dr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=dr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=dr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=dr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new rl(o.value.snapshot))}),e.children.length&&this.forwardEvent(new tl(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Uc(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Uc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=hi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},bs=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},hr=class{constructor(e,r){this.component=e,this.route=r}};function yb(t,e,r){let n=t._root,i=e?e._root:null;return Kr(n,i,r,[n.value])}function Db(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function yr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Jd(t)?t:e.get(t):n}function Kr(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=dr(e);return t.children.forEach(s=>{wb(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ti(a,r.getContext(s),i)),i}function wb(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Cb(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new bs(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Kr(t,e,a?a.children:null,n,i):Kr(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new hr(a.outlet.component,s))}else s&&ti(e,a,i),i.canActivateChecks.push(new bs(n)),o.component?Kr(t,null,a?a.children:null,n,i):Kr(t,null,r,n,i);return i}function Cb(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Mn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mn(t.url,e.url)||!yt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!al(t,e)||!yt(t.queryParams,e.queryParams);case"paramsChange":default:return!al(t,e)}}function ti(t,e,r){let n=dr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?ti(s,e.children.getContext(o),r):ti(s,null,r):ti(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new hr(e.outlet.component,i)):r.canDeactivateChecks.push(new hr(null,i)):r.canDeactivateChecks.push(new hr(null,i))}function pi(t){return typeof t=="function"}function Eb(t){return typeof t=="boolean"}function bb(t){return t&&pi(t.canLoad)}function Ib(t){return t&&pi(t.canActivate)}function _b(t){return t&&pi(t.canActivateChild)}function Mb(t){return t&&pi(t.canDeactivate)}function Sb(t){return t&&pi(t.canMatch)}function wg(t){return t instanceof Et||t?.name==="EmptyError"}var ds=Symbol("INITIAL_VALUE");function vr(){return ce(t=>br(t.map(e=>e.pipe(It(1),ha(ds)))).pipe(T(e=>{for(let r of e)if(r!==!0){if(r===ds)return ds;if(r===!1||r instanceof Jt)return r}return!0}),fe(e=>e!==ds),It(1)))}function Tb(t,e){return se(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?I(H(g({},r),{guardsResult:!0})):Ab(s,n,i,t).pipe(se(a=>a&&Eb(a)?xb(n,o,t,e):I(a)),T(a=>H(g({},r),{guardsResult:a})))})}function Ab(t,e,r,n){return q(t).pipe(se(i=>Pb(i.component,i.route,r,e,n)),nt(i=>i!==!0,!0))}function xb(t,e,r,n){return q(e).pipe(bt(i=>Vn(Rb(i.route.parent,n),Nb(i.route,n),Fb(t,i.path,r),Ob(t,i.route,r))),nt(i=>i!==!0,!0))}function Nb(t,e){return t!==null&&e&&e(new nl(t)),I(!0)}function Rb(t,e){return t!==null&&e&&e(new el(t)),I(!0)}function Ob(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let i=n.map(o=>qi(()=>{let s=hi(e)??r,a=yr(o,s),u=Ib(a)?a.canActivate(e,t):ft(s,()=>a(e,t));return tn(u).pipe(nt())}));return I(i).pipe(vr())}function Fb(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>Db(s)).filter(s=>s!==null).map(s=>qi(()=>{let a=s.guards.map(u=>{let c=hi(s.node)??r,l=yr(u,c),d=_b(l)?l.canActivateChild(n,t):ft(c,()=>l(n,t));return tn(d).pipe(nt())});return I(a).pipe(vr())}));return I(o).pipe(vr())}function Pb(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{let u=hi(e)??i,c=yr(a,u),l=Mb(c)?c.canDeactivate(t,e,r,n):ft(u,()=>c(t,e,r,n));return tn(l).pipe(nt())});return I(s).pipe(vr())}function kb(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=yr(s,t),u=bb(a)?a.canLoad(e,r):ft(t,()=>a(e,r));return tn(u)});return I(o).pipe(vr(),Cg(n))}function Cg(t){return ta(X(e=>{if(gr(e))throw vg(t,e)}),T(e=>e===!0))}function Lb(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=yr(s,t),u=Sb(a)?a.canMatch(e,r):ft(t,()=>a(e,r));return tn(u)});return I(o).pipe(vr(),Cg(n))}var ci=class{constructor(e){this.segmentGroup=e||null}},Is=class extends Error{constructor(e){super(),this.urlTree=e}};function lr(t){return Ln(new ci(t))}function Vb(t){return Ln(new E(4e3,!1))}function jb(t){return Ln(yg(!1,Be.GuardRejected))}var ll=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return I(n);if(i.numberOfChildren>1||!i.children[N])return Vb(e.redirectTo);i=i.children[N]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new Is(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Jt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new U(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new E(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},dl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Bb(t,e,r,n,i){let o=Dl(t,e,r);return o.matched?(n=gb(e,n),Lb(n,e,r,i).pipe(T(s=>s===!0?o:g({},dl)))):I(o)}function Dl(t,e,r){if(e.path==="**")return Ub(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?g({},dl):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||LE)(r,t,e);if(!i)return g({},dl);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ub(t){return{matched:!0,parameters:t.at(-1)?.parameters??{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Kp(t,e,r,n){return r.length>0&&zb(t,r,n)?{segmentGroup:new U(e,Hb(n,new U(r,t.children))),slicedSegments:[]}:r.length===0&&Gb(t,r,n)?{segmentGroup:new U(t.segments,$b(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new U(t.segments,t.children),slicedSegments:r}}function $b(t,e,r,n){let i={};for(let o of r)if(Ts(t,e,o)&&!n[Dt(o)]){let s=new U([],{});i[Dt(o)]=s}return g(g({},n),i)}function Hb(t,e){let r={};r[N]=e;for(let n of t)if(n.path===""&&Dt(n)!==N){let i=new U([],{});r[Dt(n)]=i}return r}function zb(t,e,r){return r.some(n=>Ts(t,e,n)&&Dt(n)!==N)}function Gb(t,e,r){return r.some(n=>Ts(t,e,n))}function Ts(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function Wb(t,e,r,n){return Dt(t)!==n&&(n===N||!Ts(e,r,t))?!1:Dl(e,t,r).matched}function qb(t,e,r){return e.length===0&&!t.children[r]}var fl=class{};function Zb(t,e,r,n,i,o,s="emptyOnly"){return new hl(t,e,r,n,i,s,o).recognize()}var Yb=31,hl=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ll(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new E(4002,`'${e.segmentGroup}'`)}recognize(){let e=Kp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(T(r=>{let n=new ai([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,{},N,this.rootComponentType,null,{}),i=new Re(n,r),o=new Es("",i),s=nb(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,N).pipe(Pe(n=>{if(n instanceof Is)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ci?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=gl(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(T(o=>o instanceof Re?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return q(i).pipe(bt(o=>{let s=n.children[o],a=mb(r,o);return this.processSegmentGroup(e,a,s,o)}),fa((o,s)=>(o.push(...s),o)),Lt(null),da(),se(o=>{if(o===null)return lr(n);let s=Eg(o);return Qb(s),I(s)}))}processSegment(e,r,n,i,o,s){return q(r).pipe(bt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(Pe(u=>{if(u instanceof ci)return I(null);throw u}))),nt(a=>!!a),Pe(a=>{if(wg(a))return qb(n,i,o)?I(new fl):lr(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return Wb(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):lr(i):lr(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=Dl(r,i,o);if(!a)return lr(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Yb&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(se(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s=Bb(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(ce(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ce(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new ai(l,f,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Jb(n),Dt(n),n.component??n._loadedComponent??null,n,Xb(n)),{segmentGroup:C,slicedSegments:j}=Kp(r,l,d,u);if(j.length===0&&C.hasChildren())return this.processChildren(c,u,C).pipe(T(_=>_===null?null:new Re(h,_)));if(u.length===0&&j.length===0)return I(new Re(h,[]));let A=Dt(n)===o;return this.processSegment(c,u,C,j,A?N:o,!0).pipe(T(_=>new Re(h,_ instanceof Re?[_]:[])))}))):lr(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):kb(e,r,n,this.urlSerializer).pipe(se(i=>i?this.configLoader.loadChildren(e,r).pipe(X(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):jb(r))):I({routes:[],injector:e})}};function Qb(t){t.sort((e,r)=>e.value.outlet===N?-1:r.value.outlet===N?1:e.value.outlet.localeCompare(r.value.outlet))}function Kb(t){let e=t.value.routeConfig;return e&&e.path===""}function Eg(t){let e=[],r=new Set;for(let n of t){if(!Kb(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Eg(n.children);e.push(new Re(n.value,i))}return e.filter(n=>!r.has(n))}function Jb(t){return t.data||{}}function Xb(t){return t.resolve||{}}function eI(t,e,r,n,i,o){return se(s=>Zb(t,e,r,n,s.extractedUrl,i,o).pipe(T(({state:a,tree:u})=>H(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function tI(t,e){return se(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return I(r);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of bg(u))s.add(c);let a=0;return q(s).pipe(bt(u=>o.has(u)?nI(u,n,t,e):(u.data=gl(u,u.parent,t).resolve,I(void 0))),X(()=>a++),jn(1),se(u=>a===s.size?I(r):Fe))})}function bg(t){let e=t.children.map(r=>bg(r)).flat();return[t,...e]}function nI(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!gg(i)&&(o[li]=i.title),rI(o,t,e,n).pipe(T(s=>(t._resolvedData=s,t.data=gl(t,t.parent,r).resolve,null)))}function rI(t,e,r,n){let i=zc(t);if(i.length===0)return I({});let o={};return q(i).pipe(se(s=>iI(t[s],e,r,n).pipe(nt(),X(a=>{o[s]=a}))),jn(1),ca(o),Pe(s=>wg(s)?Fe:Ln(s)))}function iI(t,e,r,n){let i=hi(e)??n,o=yr(t,i),s=o.resolve?o.resolve(e,r):ft(i,()=>o(e,r));return tn(s)}function $c(t){return ce(e=>{let r=t(e);return r?q(r).pipe(T(()=>e)):I(e)})}var Ig=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===N);return i}getResolvedTitleForRoute(n){return n.data[li]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>p(oI),providedIn:"root"});let t=e;return t})(),oI=(()=>{let e=class e extends Ig{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(D(Vc))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gi=new b("",{providedIn:"root",factory:()=>({})}),_s=new b("ROUTES"),wl=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Yo)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=tn(n.loadComponent()).pipe(T(_g),X(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Vt(()=>{this.componentLoaders.delete(n)})),o=new Pn(i,()=>new me).pipe(Fn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=sI(i,this.compiler,n,this.onLoadEndListener).pipe(Vt(()=>{this.childrenLoaders.delete(i)})),a=new Pn(s,()=>new me).pipe(Fn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function sI(t,e,r,n){return tn(t.loadChildren()).pipe(T(_g),se(i=>i instanceof Pr||Array.isArray(i)?I(i):q(e.compileModuleAsync(i))),T(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(_s,[],{optional:!0,self:!0}).flat()),{routes:s.map(yl),injector:o}}))}function aI(t){return t&&typeof t=="object"&&"default"in t}function _g(t){return aI(t)?t.default:t}var Cl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>p(uI),providedIn:"root"});let t=e;return t})(),uI=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mg=new b(""),Sg=new b("");function cI(t,e,r){let n=t.get(Sg),i=t.get(ge);return t.get(z).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),lI(t))),{onViewTransitionCreated:u}=n;return u&&ft(t,()=>u({transition:a,from:e,to:r})),s})}function lI(t){return new Promise(e=>{ec(e,{injector:t})})}var El=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new me,this.transitionAbortSubject=new me,this.configLoader=p(wl),this.environmentInjector=p(Ee),this.urlSerializer=p(di),this.rootContexts=p(fi),this.location=p(ar),this.inputBindingEnabled=p(Ss,{optional:!0})!==null,this.titleStrategy=p(Ig),this.options=p(gi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Cl),this.createViewTransition=p(Mg,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Jc(o)),i=o=>this.events.next(new Xc(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(H(g(g({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ue({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ei,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fe(s=>s.id!==0),T(s=>H(g({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{this.currentTransition=s;let a=!1,u=!1;return I(s).pipe(X(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?H(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ce(c=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new en(c.id,this.urlSerializer.serialize(c.rawUrl),f,vs.IgnoredSameUrlNavigation)),c.resolve(null),Fe}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return I(c).pipe(ce(f=>{let h=this.transitions?.getValue();return this.events.next(new mr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Fe:Promise.resolve(f)}),eI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),X(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=H(g({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ys(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:C,restoredState:j,extras:A}=c,_=new mr(f,this.urlSerializer.serialize(h),C,j);this.events.next(_);let ie=hg(this.rootComponentType).snapshot;return this.currentTransition=s=H(g({},c),{targetSnapshot:ie,urlAfterRedirects:h,extras:H(g({},A),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,I(s)}else{let f="";return this.events.next(new en(c.id,this.urlSerializer.serialize(c.extractedUrl),f,vs.IgnoredByUrlHandlingStrategy)),c.resolve(null),Fe}}),X(c=>{let l=new Zc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),T(c=>(this.currentTransition=s=H(g({},c),{guards:yb(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),Tb(this.environmentInjector,c=>this.events.next(c)),X(c=>{if(s.guardsResult=c.guardsResult,gr(c.guardsResult))throw vg(this.urlSerializer,c.guardsResult);let l=new Yc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),fe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Be.GuardRejected),!1)),$c(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(X(l=>{let d=new Qc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ce(l=>{let d=!1;return I(l).pipe(tI(this.paramsInheritanceStrategy,this.environmentInjector),X({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Be.NoDataFromResolver)}}))}),X(l=>{let d=new Kc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),$c(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(X(h=>{d.component=h}),T(()=>{})));for(let h of d.children)f.push(...l(h));return f};return br(l(c.targetSnapshot.root)).pipe(Lt(null),It(1))}),$c(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?q(d).pipe(T(()=>s)):I(s)}),T(c=>{let l=lb(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=H(g({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),X(()=>{this.events.next(new oi)}),vb(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),It(1),X({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new et(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),pa(this.transitionAbortSubject.pipe(X(c=>{throw c}))),Vt(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",Be.SupersededByNewNavigation),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Pe(c=>{if(u=!0,Dg(c))this.events.next(new Xt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),hb(c)?this.events.next(new si(c.url)):s.resolve(!1);else{this.events.next(new ii(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Fe}))}))}cancelNavigationTransition(n,i,o){let s=new Xt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function dI(t){return t!==ei}var fI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>p(hI),providedIn:"root"});let t=e;return t})(),pl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},hI=(()=>{let e=class e extends pl{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=tr(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>p(pI),providedIn:"root"});let t=e;return t})(),pI=(()=>{let e=class e extends Tg{constructor(){super(...arguments),this.location=p(ar),this.urlSerializer=p(di),this.options=p(gi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Cl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Jt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=hg(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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof mr)this.stateMemento=this.createStateMemento();else if(n instanceof en)this.rawUrlTree=i.initialUrl;else if(n instanceof ys){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof oi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Xt&&(n.code===Be.GuardRejected||n.code===Be.NoDataFromResolver)?this.restoreHistory(i):n instanceof ii?this.restoreHistory(i,!0):n instanceof et&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=g(g({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=g(g({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=tr(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Jr||{});function Ag(t,e){t.events.pipe(fe(r=>r instanceof et||r instanceof Xt||r instanceof ii||r instanceof en),T(r=>r instanceof et||r instanceof en?Jr.COMPLETE:(r instanceof Xt?r.code===Be.Redirect||r.code===Be.SupersededByNewNavigation:!1)?Jr.REDIRECTING:Jr.FAILED),fe(r=>r!==Jr.REDIRECTING),It(1)).subscribe(()=>{e()})}function gI(t){throw t}var mI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},be=(()=>{let e=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.isNgZoneEnabled=!1,this.console=p(Zo),this.stateManager=p(Tg),this.options=p(gi,{optional:!0})||{},this.pendingTasks=p(En),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(El),this.urlSerializer=p(di),this.location=p(ar),this.urlHandlingStrategy=p(Cl),this._events=new me,this.errorHandler=this.options.errorHandler||gI,this.navigated=!1,this.routeReuseStrategy=p(fI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(_s,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Ss,{optional:!0}),this.eventsSubscription=new te,this.isNgZoneEnabled=p(z)instanceof z&&z.isInAngularZone(),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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Xt&&i.code!==Be.Redirect&&i.code!==Be.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof et)this.navigated=!0;else if(i instanceof si){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||dI(o.source)};this.scheduleNavigation(a,ei,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}DI(i)&&this._events.next(i)}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),ei,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(yl),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=g(g({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=cg(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return lg(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=gr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ei,null,i)}navigate(n,i={skipLocationChange:!1}){return yI(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=g({},mI):i===!1?o=g({},vI):o=i,gr(n))return Wp(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Wp(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return Ag(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function yI(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new me,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof et&&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.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){if(this.urlTree===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(this.urlTree,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=this.urlTree!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;let n=this.href===null?null:wh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(m(be),m(tt),Pu("tabindex"),m(pt),m(Ae),m(Rt))},e.\u0275dir=ne({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&ee("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&rr("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",or],skipLocationChange:[le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",or],replaceUrl:[le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",or],routerLink:"routerLink"},standalone:!0,features:[rc,Ke]});let t=e;return t})(),xg=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Q,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof et&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(kt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=q(n).pipe(kt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let i=wI(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>o.urlTree?n.isActive(o.urlTree,i):!1}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(m(be),m(Ae),m(pt),m(Cn),m($e,8))},e.\u0275dir=ne({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&ep(s,$e,5),i&2){let a;tp(a=np())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ke]});let t=e;return t})();function wI(t){return!!t.paths}var Ms=class{};var CI=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(fe(n=>n instanceof et),bt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Wo(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return q(o).pipe(kt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=I(null);let s=o.pipe(se(a=>a===null?I(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return q([s,a]).pipe(kt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(D(be),D(Yo),D(Ee),D(Ms),D(wl))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ng=new b(""),EI=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.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 mr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof et?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof en&&n.code===vs.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 Ds&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ds(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){xh()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function bI(t){return t.routerState.root}function mi(t,e){return{\u0275kind:t,\u0275providers:e}}function II(){let t=p(Ve);return e=>{let r=t.get(bn);if(e!==r.components[0])return;let n=t.get(be),i=t.get(Rg);t.get(bl)===1&&n.initialNavigation(),t.get(Og,null,L.Optional)?.setUpPreloading(),t.get(Ng,null,L.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Rg=new b("",{factory:()=>new me}),bl=new b("",{providedIn:"root",factory:()=>1});function _I(){return mi(2,[{provide:bl,useValue:0},{provide:Jo,multi:!0,deps:[Ve],useFactory:e=>{let r=e.get(Cp,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(be),o=e.get(Rg);Ag(i,()=>{n(!0)}),e.get(El).afterPreactivation=()=>(n(!0),o.closed?I(void 0):o),i.initialNavigation()}))}}])}function MI(){return mi(3,[{provide:Jo,multi:!0,useFactory:()=>{let e=p(be);return()=>{e.setUpLocationChangeListener()}}},{provide:bl,useValue:2}])}var Og=new b("");function SI(t){return mi(0,[{provide:Og,useExisting:CI},{provide:Ms,useExisting:t}])}function TI(){return mi(8,[Qp,{provide:Ss,useExisting:Qp}])}function AI(t){let e=[{provide:Mg,useValue:cI},{provide:Sg,useValue:g({skipNextTransition:!!t?.skipInitialTransition},t)}];return mi(9,e)}var Jp=new b("ROUTER_FORROOT_GUARD"),xI=[ar,{provide:di,useClass:ni},be,fi,{provide:tt,useFactory:bI,deps:[be]},wl,[]],Ft=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[xI,[],{provide:_s,multi:!0,useValue:n},{provide:Jp,useFactory:FI,deps:[[be,new Po,new Lu]]},{provide:gi,useValue:i||{}},i?.useHash?RI():OI(),NI(),i?.preloadingStrategy?SI(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?PI(i):[],i?.bindToComponentInputs?TI().\u0275providers:[],i?.enableViewTransitions?AI().\u0275providers:[],kI()]}}static forChild(n){return{ngModule:e,providers:[{provide:_s,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(D(Jp,8))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})();function NI(){return{provide:Ng,useFactory:()=>{let t=p(Ip),e=p(z),r=p(gi),n=p(El),i=p(di);return r.scrollOffset&&t.setOffset(r.scrollOffset),new EI(i,n,t,e,r)}}}function RI(){return{provide:Rt,useClass:bp}}function OI(){return{provide:Rt,useClass:wc}}function FI(t){return"guarded"}function PI(t){return[t.initialNavigation==="disabled"?MI().\u0275providers:[],t.initialNavigation==="enabledBlocking"?_I().\u0275providers:[]]}var Xp=new b("");function kI(){return[{provide:Xp,useFactory:II},{provide:Xo,multi:!0,useExisting:Xp}]}var wt=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Pe(n=>(console.error(n),I([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(Pe(i=>(console.error(i),I([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}};e.\u0275fac=function(i){return new(i||e)(D(Sc))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var LI=t=>["/books",t];function VI(t,e){if(t&1&&(v(0,"li")(1,"a",6),M(2),v(3,"p",7),M(4),y()()()),t&2){let r=e.$implicit;O(),V("routerLink",qo(3,LI,r.isbn)),O(),Xe(" ",r.title," "),O(2),gt(r.subtitle)}}function jI(t,e){t&1&&(v(0,"li"),M(1,"No results"),y())}function BI(t,e){if(t&1&&(v(0,"ul",3),K(1,VI,5,5,"li",4)(2,jI,2,0,"li",5),y()),t&2){let r=e.ngIf;O(),V("ngForOf",r),O(),V("ngIf",!r.length)}}var Fg=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new me,this.isLoading=!1,this.results$=this.input$.pipe(fe(i=>i.length>=3),ua(500),la(),X(()=>this.isLoading=!0),ce(i=>this.service.getAllSearch(i)),X(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(m(wt))},e.\u0275cmp=ae({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["type","search","autocomplete","off","aria-label","Search",3,"input"],["searchInput",""],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=xt();v(0,"input",0,1),ee("input",function(){Tt(s);let u=rp(1);return At(o.input$.next(u.value))}),y(),K(2,BI,3,2,"ul",2),Zt(3,"async")}i&2&&(ir("loading",o.isLoading),O(2),V("ngIf",Yt(3,3,o.results$)))},dependencies:[vt,je,$e,Qt]});let t=e;return t})();var Pg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(v(0,"h1"),M(1,"Home"),y(),v(2,"a",0),M(3,` Show book list -`),y(),v(4,"h2"),M(5,"Search"),y(),re(6,"bm-search"))},dependencies:[$e,Fg]});let t=e;return t})();var $I=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Pg}],kg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forRoot($I),Ft]});let t=e;return t})();var As=(()=>{let e=class e{constructor(){this._isAuthenticated$=new ue(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function HI(t,e){if(t&1){let r=xt();v(0,"button",6),ee("click",function(){Tt(r);let i=xe();return At(i.auth.login())}),M(1,"Login"),y()}}function zI(t,e){if(t&1){let r=xt();v(0,"button",7),ee("click",function(){Tt(r);let i=xe();return At(i.auth.logout())}),M(1,"Logout"),y()}}var Vg=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(m(As))},e.\u0275cmp=ae({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,o){i&1&&(v(0,"nav")(1,"a",0),M(2,"Home"),y(),v(3,"a",1),M(4,"Books"),y(),v(5,"a",2),M(6,"Administration"),y(),v(7,"div",3),K(8,HI,2,0,"button",4)(9,zI,2,0,"button",5),y()(),v(10,"main"),re(11,"router-outlet"),y()),i&2&&(O(8),V("ngIf",!o.auth.isAuthenticated),O(),V("ngIf",o.auth.isAuthenticated))},dependencies:[je,vl,$e,xg]});let t=e;return t})();function GI(t,e){if(t&1&&(v(0,"p",10),M(1),y()),t&2){let r=xe().ngIf;O(),gt(r.subtitle)}}function WI(t,e){if(t&1&&(v(0,"li"),M(1),y()),t&2){let r=e.$implicit;O(),gt(r)}}function qI(t,e){if(t&1&&(v(0,"div")(1,"h2"),M(2,"Published"),y(),M(3),y()),t&2){let r=xe().ngIf;O(3),Xe(" ",r.published," ")}}function ZI(t,e){if(t&1&&re(0,"img",11),t&2){let r=xe().ngIf;V("src",r.thumbnailUrl,Ur)}}var YI=t=>["/admin/edit",t];function QI(t,e){if(t&1){let r=xt();v(0,"div",1)(1,"h1"),M(2),y(),K(3,GI,2,1,"p",2),v(4,"div",3)(5,"div")(6,"h2"),M(7,"Authors"),y(),v(8,"ul"),K(9,WI,2,1,"li",4),y()(),v(10,"div")(11,"h2"),M(12,"ISBN"),y(),M(13),y(),K(14,qI,4,1,"div",5),y(),v(15,"h2"),M(16,"Description"),y(),v(17,"p"),M(18),y(),K(19,ZI,1,1,"img",6),v(20,"a",7),M(21,"Back to list"),y(),v(22,"button",8),ee("click",function(){let o=Tt(r).ngIf,s=xe();return At(s.removeBook(o.isbn))}),M(23," Remove book "),y(),v(24,"a",9),M(25," Edit book "),y()()}if(t&2){let r=e.ngIf;O(2),gt(r.title),O(),V("ngIf",r.subtitle),O(6),V("ngForOf",r.authors),O(4),Xe(" ",r.isbn," "),O(),V("ngIf",r.published),O(4),gt(r.description),O(),V("ngIf",r.thumbnailUrl),O(5),V("routerLink",qo(8,YI,r.isbn))}}var jg=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){window.confirm("Remove book?")&&this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(m(wt),m(tt),m(be))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(i,o){i&1&&(K(0,QI,26,10,"div",0),Zt(1,"async")),i&2&&V("ngIf",Yt(1,1,o.book$))},dependencies:[vt,je,$e,Qt]});let t=e;return t})();function KI(t,e){if(t&1&&re(0,"img",6),t&2){let r=xe(2);V("src",r.book.thumbnailUrl,Ur)}}function JI(t,e){if(t&1&&(v(0,"p",7),M(1),y()),t&2){let r=xe(2);O(),Xe(" ",r.book.subtitle," ")}}function XI(t,e){if(t&1&&(v(0,"li"),M(1),y()),t&2){let r=e.$implicit;O(),Xe(" ",r," ")}}function e_(t,e){if(t&1&&(v(0,"a",1),K(1,KI,1,1,"img",2),v(2,"h2"),M(3),y(),K(4,JI,2,1,"p",3),v(5,"ul",4),K(6,XI,2,1,"li",5),y(),v(7,"div"),M(8),y()()),t&2){let r=xe();V("routerLink",r.book.isbn),O(),V("ngIf",r.book.thumbnailUrl),O(2),gt(r.book.title),O(),V("ngIf",r.book.subtitle),O(2),V("ngForOf",r.book.authors),O(2),Xe("ISBN ",r.book.isbn,"")}}var Bg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&K(0,e_,9,6,"a",0),i&2&&V("ngIf",o.book)},dependencies:[vt,je,$e]});let t=e;return t})();function n_(t,e){if(t&1&&(v(0,"li"),re(1,"bm-book-list-item",4),y()),t&2){let r=e.$implicit;O(),V("book",r)}}function r_(t,e){t&1&&(v(0,"li"),M(1," No books available. "),y())}function i_(t,e){if(t&1&&(v(0,"ul",1),K(1,n_,2,1,"li",2)(2,r_,2,0,"li",3),y()),t&2){let r=e.ngIf;O(),V("ngForOf",r),O(),V("ngIf",!r.length)}}var Ug=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(m(wt))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(v(0,"h1"),M(1,"Books"),y(),K(2,i_,3,2,"ul",0),Zt(3,"async")),i&2&&(O(2),V("ngIf",Yt(3,1,o.books$)))},dependencies:[vt,je,Bg,Qt]});let t=e;return t})();var o_=[{path:"books",component:Ug},{path:"books/:isbn",component:jg}],$g=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forChild(o_),Ft]});let t=e;return t})();var Hg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[ur,$g]});let t=e;return t})();var zg=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(D(As))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var Jg=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(m(pt),m(Ae))},e.\u0275dir=ne({type:e});let t=e;return t})(),s_=(()=>{let e=class e extends Jg{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=tr(e)))(o||e)}})(),e.\u0275dir=ne({type:e,features:[Je]});let t=e;return t})(),Vs=new b("NgValueAccessor");var a_={provide:Vs,useExisting:dt(()=>js),multi:!0};function u_(){let t=mt()?mt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var c_=new b("CompositionEventMode"),js=(()=>{let e=class e extends Jg{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!u_())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(m(pt),m(Ae),m(c_,8))},e.\u0275dir=ne({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&ee("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[qt([a_]),Je]});let t=e;return t})();function nn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Xg(t){return t!=null&&typeof t.length=="number"}var Bs=new b("NgValidators"),Us=new b("NgAsyncValidators"),l_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Tn=class{static min(e){return d_(e)}static max(e){return f_(e)}static required(e){return h_(e)}static requiredTrue(e){return p_(e)}static email(e){return g_(e)}static minLength(e){return m_(e)}static maxLength(e){return v_(e)}static pattern(e){return y_(e)}static nullValidator(e){return em(e)}static compose(e){return sm(e)}static composeAsync(e){return um(e)}};function d_(t){return e=>{if(nn(e.value)||nn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(nn(e.value)||nn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function h_(t){return nn(t.value)?{required:!0}:null}function p_(t){return t.value===!0?null:{required:!0}}function g_(t){return nn(t.value)||l_.test(t.value)?null:{email:!0}}function m_(t){return e=>nn(e.value)||!Xg(e.value)?null:e.value.lengthXg(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function y_(t){if(!t)return em;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(nn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function em(t){return null}function tm(t){return t!=null}function nm(t){return Wt(t)?q(t):t}function rm(t){let e={};return t.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function im(t,e){return e.map(r=>r(t))}function D_(t){return!t.validate}function om(t){return t.map(e=>D_(e)?e:r=>e.validate(r))}function sm(t){if(!t)return null;let e=t.filter(tm);return e.length==0?null:function(r){return rm(im(r,e))}}function am(t){return t!=null?sm(om(t)):null}function um(t){if(!t)return null;let e=t.filter(tm);return e.length==0?null:function(r){let n=im(r,e).map(nm);return aa(n).pipe(T(rm))}}function cm(t){return t!=null?um(om(t)):null}function Gg(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function lm(t){return t._rawValidators}function dm(t){return t._rawAsyncValidators}function Il(t){return t?Array.isArray(t)?t:[t]:[]}function Ns(t,e){return Array.isArray(t)?t.includes(e):t===e}function Wg(t,e){let r=Il(e);return Il(t).forEach(i=>{Ns(r,i)||r.push(i)}),r}function qg(t,e){return Il(e).filter(r=>!Ns(t,r))}var Rs=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=am(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=cm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},He=class extends Rs{get formDirective(){return null}get path(){return null}},wi=class extends Rs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Os=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},w_={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},_F=H(g({},w_),{"[class.ng-submitted]":"isSubmitted"}),fm=(()=>{let e=class e extends Os{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(wi,2))},e.\u0275dir=ne({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&ir("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Je]});let t=e;return t})(),hm=(()=>{let e=class e extends Os{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(He,10))},e.\u0275dir=ne({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&ir("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Je]});let t=e;return t})();var yi="VALID",xs="INVALID",Dr="PENDING",Di="DISABLED";function _l(t){return($s(t)?t.validators:t)||null}function C_(t){return Array.isArray(t)?am(t):t||null}function Ml(t,e){return($s(e)?e.asyncValidators:t)||null}function E_(t){return Array.isArray(t)?cm(t):t||null}function $s(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function pm(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new E(1e3,"");if(!n[r])throw new E(1001,"")}function gm(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new E(1002,"")})}var Ci=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===yi}get invalid(){return this.status===xs}get pending(){return this.status==Dr}get disabled(){return this.status===Di}get enabled(){return this.status!==Di}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Wg(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Wg(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(qg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(qg(e,this._rawAsyncValidators))}hasValidator(e){return Ns(this._rawValidators,e)}hasAsyncValidator(e){return Ns(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Dr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Di,this.errors=null,this._forEachChild(n=>{n.disable(H(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=yi,this._forEachChild(n=>{n.enable(H(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(H(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yi||this.status===Dr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Di:yi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Dr,this._hasOwnPendingAsyncValidator=!0;let r=nm(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Q,this.statusChanges=new Q}_calculateStatus(){return this._allControlsDisabled()?Di:this.errors?xs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dr)?Dr:this._anyControlsHaveStatus(xs)?xs:yi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){$s(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=C_(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=E_(this._rawAsyncValidators)}},Fs=class extends Ci{constructor(e,r,n){super(_l(r),Ml(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){gm(this,!0,e),Object.keys(e).forEach(n=>{pm(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var mm=new b("CallSetDisabledState",{providedIn:"root",factory:()=>Sl}),Sl="always";function Tl(t,e){return[...e.path,t]}function Zg(t,e,r=Sl){Al(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),I_(t,e),M_(t,e),__(t,e),b_(t,e)}function Yg(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),ks(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ps(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function b_(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Al(t,e){let r=lm(t);e.validator!==null?t.setValidators(Gg(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=dm(t);e.asyncValidator!==null?t.setAsyncValidators(Gg(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Ps(e._rawValidators,i),Ps(e._rawAsyncValidators,i)}function ks(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=lm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=dm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Ps(e._rawValidators,n),Ps(e._rawAsyncValidators,n),r}function I_(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&vm(t,e)})}function __(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&vm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function vm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function M_(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function S_(t,e){t==null,Al(t,e)}function T_(t,e){return ks(t,e)}function A_(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function x_(t){return Object.getPrototypeOf(t.constructor)===s_}function N_(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function R_(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===js?r=o:x_(o)?n=o:i=o}),i||n||r||null}function O_(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Qg(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Kg(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ct=class extends Ci{constructor(e=null,r,n){super(_l(r),Ml(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$s(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Kg(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Qg(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Qg(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Kg(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var F_=t=>t instanceof Ct,P_=(()=>{let e=class e extends He{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Tl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=tr(e)))(o||e)}})(),e.\u0275dir=ne({type:e,features:[Je]});let t=e;return t})();var ym=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ne({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var k_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})();var Dm=new b("NgModelWithFormControlWarning");var L_={provide:He,useExisting:dt(()=>Hs)},Hs=(()=>{let e=class e extends He{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Q,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ks(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Zg(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Yg(n.control||null,n,!1),O_(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,N_(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Yg(i||null,n),F_(o)&&(Zg(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);S_(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&T_(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Al(this.form,this),this._oldForm&&ks(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(m(Bs,10),m(Us,10),m(mm,8))},e.\u0275dir=ne({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[le.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[qt([L_]),Je,Ke]});let t=e;return t})(),V_={provide:He,useExisting:dt(()=>wm)},wm=(()=>{let e=class e extends P_{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){Cm(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m(He,13),m(Bs,10),m(Us,10))},e.\u0275dir=ne({type:e,selectors:[["","formGroupName",""]],inputs:{name:[le.None,"formGroupName","name"]},features:[qt([V_]),Je]});let t=e;return t})(),j_={provide:He,useExisting:dt(()=>zs)},zs=(()=>{let e=class e extends He{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Tl(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Cm(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m(He,13),m(Bs,10),m(Us,10))},e.\u0275dir=ne({type:e,selectors:[["","formArrayName",""]],inputs:{name:[le.None,"formArrayName","name"]},features:[qt([j_]),Je]});let t=e;return t})();function Cm(t){return!(t instanceof wm)&&!(t instanceof Hs)&&!(t instanceof zs)}var B_={provide:wi,useExisting:dt(()=>xl)},xl=(()=>{let e=class e extends wi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Q,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=R_(this,s)}ngOnChanges(n){this._added||this._setUpControl(),A_(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Tl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(m(He,13),m(Bs,10),m(Us,10),m(Vs,10),m(Dm,8))},e.\u0275dir=ne({type:e,selectors:[["","formControlName",""]],inputs:{name:[le.None,"formControlName","name"],isDisabled:[le.None,"disabled","isDisabled"],model:[le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[qt([B_]),Je,Ke]});let t=e;return t})();var U_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[k_]});let t=e;return t})(),Ls=class extends Ci{constructor(e,r,n){super(_l(r),Ml(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){gm(this,!1,e),e.forEach((n,i)=>{pm(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var Em=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Dm,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:mm,useValue:n.callSetDisabledState??Sl}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[U_]});let t=e;return t})();var bm=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(m(pt),m(Ae))},t.\u0275dir=ne({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&ee("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[qt([{provide:Vs,useExisting:dt(()=>t),multi:!0}])]}),t})();function z_(t,e){if(t&1&&re(0,"input",17),t&2){let r=e.index;V("formControlName",r),rr("aria-label","Author "+r)}}var Gs=(()=>{let e=class e{constructor(){this.submitBook=new Q,this.form=new Fs({title:new Ct("",{nonNullable:!0,validators:Tn.required}),subtitle:new Ct("",{nonNullable:!0}),isbn:new Ct("",{nonNullable:!0,validators:[Tn.required,Tn.minLength(10),Tn.maxLength(13)]}),description:new Ct("",{nonNullable:!0}),published:new Ct("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new Ct("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new Ls(n.map(i=>new Ct(i,{nonNullable:!0})))}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new Ct("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=H(g({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[Ke],decls:27,vars:3,consts:[[3,"formGroup","ngSubmit"],["for","title"],["id","title","formControlName","title"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,o){i&1&&(v(0,"form",0),ee("ngSubmit",function(){return o.submitForm()}),v(1,"label",1),M(2,"Title"),y(),re(3,"input",2),v(4,"label",3),M(5,"Subtitle"),y(),re(6,"input",4),v(7,"label",5),M(8,"ISBN"),y(),re(9,"input",6),v(10,"label"),M(11,"Authors"),y(),v(12,"button",7),ee("click",function(){return o.addAuthorControl()}),M(13," + Author "),y(),v(14,"fieldset",8),K(15,z_,1,2,"input",9),y(),v(16,"label",10),M(17,"Description"),y(),re(18,"textarea",11),v(19,"label",12),M(20,"Published"),y(),re(21,"input",13),v(22,"label",14),M(23,"Thumbnail URL"),y(),re(24,"input",15),v(25,"button",16),M(26," Save "),y()()),i&2&&(V("formGroup",o.form),O(15),V("ngForOf",o.authors.controls),O(10),V("disabled",o.form.invalid))},dependencies:[vt,ym,js,fm,hm,Hs,xl,zs,bm]});let t=e;return t})();var _m=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(wt),m(be))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(v(0,"h1"),M(1,"Create Book"),y(),v(2,"bm-book-form",0),ee("submitBook",function(a){return o.create(a)}),y())},dependencies:[Gs]});let t=e;return t})();function G_(t,e){if(t&1){let r=xt();v(0,"bm-book-form",1),ee("submitBook",function(i){Tt(r);let o=xe();return At(o.update(i))}),y()}if(t&2){let r=e.ngIf;V("book",r)}}var Mm=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(T(s=>s.get("isbn")),ce(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(wt),m(tt),m(be))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(i,o){i&1&&(v(0,"h1"),M(1,"Edit Book"),y(),K(2,G_,1,1,"bm-book-form",0),Zt(3,"async")),i&2&&(O(2),V("ngIf",Yt(3,1,o.book$)))},dependencies:[je,Gs,Qt]});let t=e;return t})();var W_=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:_m},{path:"admin/edit/:isbn",component:Mm}],Sm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forChild(W_),Ft]});let t=e;return t})();var Tm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[ur,Sm,Em]});let t=e;return t})();var Am=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e,bootstrap:[Vg]}),e.\u0275inj=Z({providers:[{provide:Tc,useClass:zg,multi:!0}],imports:[zp,kg,Pp,Hg,Tm]});let t=e;return t})();Hp().bootstrapModule(Am).catch(t=>console.error(t)); diff --git a/main-S6UT3C3F.js b/main-S6UT3C3F.js new file mode 100644 index 0000000..12b14ae --- /dev/null +++ b/main-S6UT3C3F.js @@ -0,0 +1,9 @@ +var km=Object.defineProperty,Lm=Object.defineProperties;var Vm=Object.getOwnPropertyDescriptors;var Nl=Object.getOwnPropertySymbols;var jm=Object.prototype.hasOwnProperty,Bm=Object.prototype.propertyIsEnumerable;var Rl=(t,e,r)=>e in t?km(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||={})jm.call(e,r)&&Rl(t,r,e[r]);if(Nl)for(var r of Nl(e))Bm.call(e,r)&&Rl(t,r,e[r]);return t},H=(t,e)=>Lm(t,Vm(e));var Ol=null;var Ws=1,Fl=Symbol("SIGNAL");function ye(t){let e=Ol;return Ol=t,e}var Pl={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 Um(t){if(!(Ys(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ws)){if(!t.producerMustRecompute(t)&&!qs(t)){t.dirty=!1,t.lastCleanEpoch=Ws;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ws}}function kl(t){return t&&(t.nextProducerIndex=0),ye(t)}function Ll(t,e){if(ye(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ys(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function qs(t){bi(t);for(let e=0;e0}function bi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function $m(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Hm(){throw new Error}var zm=Hm;function jl(t){zm=t}function x(t){return typeof t=="function"}function xn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ei=xn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function on(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var te=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(x(n))try{n()}catch(o){e=o instanceof Ei?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Bl(o)}catch(s){e=e??[],s instanceof Ei?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ei(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Bl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&on(r,e)}remove(e){let{_finalizers:r}=this;r&&on(r,e),e instanceof t&&e._removeParent(this)}};te.EMPTY=(()=>{let t=new te;return t.closed=!0,t})();var Qs=te.EMPTY;function Ii(t){return t instanceof te||t&&"closed"in t&&x(t.remove)&&x(t.add)&&x(t.unsubscribe)}function Bl(t){x(t)?t():t.unsubscribe()}var ze={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Nn={setTimeout(t,e,...r){let{delegate:n}=Nn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Nn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Mi(t){Nn.setTimeout(()=>{let{onUnhandledError:e}=ze;if(e)e(t);else throw t})}function Cr(){}var Ul=Ks("C",void 0,void 0);function $l(t){return Ks("E",void 0,t)}function Hl(t){return Ks("N",t,void 0)}function Ks(t,e,r){return{kind:t,value:e,error:r}}var sn=null;function Rn(t){if(ze.useDeprecatedSynchronousErrorHandling){let e=!sn;if(e&&(sn={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=sn;if(sn=null,r)throw n}}else t()}function zl(t){ze.useDeprecatedSynchronousErrorHandling&&sn&&(sn.errorThrown=!0,sn.error=t)}var an=class extends te{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ii(e)&&e.add(this)):this.destination=qm}static create(e,r,n){return new On(e,r,n)}next(e){this.isStopped?Xs(Hl(e),this):this._next(e)}error(e){this.isStopped?Xs($l(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Xs(Ul,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Gm=Function.prototype.bind;function Js(t,e){return Gm.call(t,e)}var ea=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){_i(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){_i(n)}else _i(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){_i(r)}}},On=class extends an{constructor(e,r,n){super();let i;if(x(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&ze.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Js(e.next,o),error:e.error&&Js(e.error,o),complete:e.complete&&Js(e.complete,o)}):i=e}this.destination=new ea(i)}};function _i(t){ze.useDeprecatedSynchronousErrorHandling?zl(t):Mi(t)}function Wm(t){throw t}function Xs(t,e){let{onStoppedNotification:r}=ze;r&&Nn.setTimeout(()=>r(t,e))}var qm={closed:!0,next:Cr,error:Wm,complete:Cr};var Fn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function De(t){return t}function ta(...t){return na(t)}function na(t){return t.length===0?De:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var B=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=Ym(r)?r:new On(r,n,i);return Rn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Gl(n),new n((i,o)=>{let s=new On({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Fn](){return this}pipe(...r){return na(r)(this)}toPromise(r){return r=Gl(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Gl(t){var e;return(e=t??ze.Promise)!==null&&e!==void 0?e:Promise}function Zm(t){return t&&x(t.next)&&x(t.error)&&x(t.complete)}function Ym(t){return t&&t instanceof an||Zm(t)&&Ii(t)}function ra(t){return x(t?.lift)}function k(t){return e=>{if(ra(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(t,e,r,n,i){return new ia(t,e,r,n,i)}var ia=class extends an{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Pn(){return k((t,e)=>{let r=null;t._refCount++;let n=R(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var kn=class extends B{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ra(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new te;let r=this.getSubject();e.add(this.source.subscribe(R(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=te.EMPTY)}return e}refCount(){return Pn()(this)}};var Wl=xn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ge=(()=>{class t extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Si(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Wl}next(r){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Qs:(this.currentObservers=null,o.push(r),new te(()=>{this.currentObservers=null,on(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new B;return r.source=this,r}}return t.create=(e,r)=>new Si(e,r),t})(),Si=class extends ge{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Qs}};var ue=class extends ge{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var oa={now(){return(oa.delegate||Date).now()},delegate:void 0};var Ti=class extends te{constructor(e,r){super()}schedule(e,r=0){return this}};var br={setInterval(t,e,...r){let{delegate:n}=br;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=br;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Ai=class extends Ti{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return br.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&br.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,on(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var Ln=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Ln.now=oa.now;var xi=class extends Ln{constructor(e,r=Ln.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var ql=new xi(Ai);var Pe=new B(t=>t.complete());function Zl(t){return t&&x(t.schedule)}function Yl(t){return t[t.length-1]}function Ni(t){return x(Yl(t))?t.pop():void 0}function Pt(t){return Zl(Yl(t))?t.pop():void 0}function Kl(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function Ql(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function un(t){return this instanceof un?(this.v=t,this):new un(t)}function Jl(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(w,j){o.push([f,h,w,j])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(w){d(o[0][3],w)}}function u(f){f.value instanceof un?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Xl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Ql=="function"?Ql(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Ri=t=>t&&typeof t.length=="number"&&typeof t!="function";function Oi(t){return x(t?.then)}function Fi(t){return x(t[Fn])}function Pi(t){return Symbol.asyncIterator&&x(t?.[Symbol.asyncIterator])}function ki(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Qm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Li=Qm();function Vi(t){return x(t?.[Li])}function ji(t){return Jl(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield un(r.read());if(i)return yield un(void 0);yield yield un(n)}}finally{r.releaseLock()}})}function Bi(t){return x(t?.getReader)}function oe(t){if(t instanceof B)return t;if(t!=null){if(Fi(t))return Km(t);if(Ri(t))return Jm(t);if(Oi(t))return Xm(t);if(Pi(t))return ed(t);if(Vi(t))return ev(t);if(Bi(t))return tv(t)}throw ki(t)}function Km(t){return new B(e=>{let r=t[Fn]();if(x(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Jm(t){return new B(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Mi)})}function ev(t){return new B(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function ed(t){return new B(e=>{nv(t,e).catch(r=>e.error(r))})}function tv(t){return ed(ji(t))}function nv(t,e){var r,n,i,o;return Kl(this,void 0,void 0,function*(){try{for(r=Xl(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Me(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Ui(t,e=0){return k((r,n)=>{r.subscribe(R(n,i=>Me(n,t,()=>n.next(i),e),()=>Me(n,t,()=>n.complete(),e),i=>Me(n,t,()=>n.error(i),e)))})}function $i(t,e=0){return k((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function td(t,e){return oe(t).pipe($i(e),Ui(e))}function nd(t,e){return oe(t).pipe($i(e),Ui(e))}function rd(t,e){return new B(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function id(t,e){return new B(r=>{let n;return Me(r,e,()=>{n=t[Li](),Me(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>x(n?.return)&&n.return()})}function Hi(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(r=>{Me(r,e,()=>{let n=t[Symbol.asyncIterator]();Me(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function od(t,e){return Hi(ji(t),e)}function sd(t,e){if(t!=null){if(Fi(t))return td(t,e);if(Ri(t))return rd(t,e);if(Oi(t))return nd(t,e);if(Pi(t))return Hi(t,e);if(Vi(t))return id(t,e);if(Bi(t))return od(t,e)}throw ki(t)}function q(t,e){return e?sd(t,e):oe(t)}function I(...t){let e=Pt(t);return q(t,e)}function Vn(t,e){let r=x(t)?t:()=>t,n=i=>i.error(r());return new B(e?i=>e.schedule(n,0,i):n)}function sa(t){return!!t&&(t instanceof B||x(t.lift)&&x(t.subscribe))}var wt=xn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function T(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:rv}=Array;function iv(t,e){return rv(e)?t(...e):t(e)}function zi(t){return T(e=>iv(t,e))}var{isArray:ov}=Array,{getPrototypeOf:sv,prototype:av,keys:uv}=Object;function Gi(t){if(t.length===1){let e=t[0];if(ov(e))return{args:e,keys:null};if(cv(e)){let r=uv(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function cv(t){return t&&typeof t=="object"&&sv(t)===av}function Wi(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function Er(...t){let e=Pt(t),r=Ni(t),{args:n,keys:i}=Gi(t);if(n.length===0)return q([],e);let o=new B(lv(n,e,i?s=>Wi(i,s):De));return r?o.pipe(zi(r)):o}function lv(t,e,r=De){return n=>{ad(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=q(t[u],e),l=!1;c.subscribe(R(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function ad(t,e,r){t?Me(r,t,e):e()}function ud(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=j=>c{o&&e.next(j),c++;let A=!1;oe(r(j,l++)).subscribe(R(e,M=>{i?.(M),o?h(M):e.next(M)},()=>{A=!0},void 0,()=>{if(A)try{for(c--;u.length&&cw(M)):w(M)}f()}catch(M){e.error(M)}}))};return t.subscribe(R(e,h,()=>{d=!0,f()})),()=>{a?.()}}function se(t,e,r=1/0){return x(e)?se((n,i)=>T((o,s)=>e(n,o,i,s))(oe(t(n,i))),r):(typeof e=="number"&&(r=e),k((n,i)=>ud(n,i,t,r)))}function kt(t=1/0){return se(De,t)}function cd(){return kt(1)}function jn(...t){return cd()(q(t,Pt(t)))}function qi(t){return new B(e=>{oe(t()).subscribe(e)})}function aa(...t){let e=Ni(t),{args:r,keys:n}=Gi(t),i=new B(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?Wi(n,a):a),o.complete())}))}});return e?i.pipe(zi(e)):i}function fe(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>t.call(e,o,i++)&&n.next(o)))})}function ke(t){return k((e,r)=>{let n=null,i=!1,o;n=e.subscribe(R(r,void 0,void 0,s=>{o=oe(t(s,ke(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function ld(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(R(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function Ct(t,e){return x(e)?se(t,e,1):se(t,1)}function ua(t,e=ql){return k((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Lt(t){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function bt(t){return t<=0?()=>Pe:k((e,r)=>{let n=0;e.subscribe(R(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function ca(t){return T(()=>t)}function la(t,e=De){return t=t??dv,k((r,n)=>{let i,o=!0;r.subscribe(R(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function dv(t,e){return t===e}function Zi(t=fv){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function fv(){return new wt}function Vt(t){return k((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function nt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?fe((i,o)=>t(i,o,n)):De,bt(1),r?Lt(e):Zi(()=>new wt))}function Bn(t){return t<=0?()=>Pe:k((e,r)=>{let n=[];e.subscribe(R(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function da(t,e){let r=arguments.length>=2;return n=>n.pipe(t?fe((i,o)=>t(i,o,n)):De,Bn(1),r?Lt(e):Zi(()=>new wt))}function fa(t,e){return k(ld(t,e,arguments.length>=2,!0))}function ha(...t){let e=Pt(t);return k((r,n)=>{(e?jn(t,r,e):jn(t,r)).subscribe(n)})}function ce(t,e){return k((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(R(n,u=>{i?.unsubscribe();let c=0,l=o++;oe(t(u,l)).subscribe(i=R(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function pa(t){return k((e,r)=>{oe(t).subscribe(R(r,()=>r.complete(),Cr)),!r.closed&&e.subscribe(r)})}function X(t,e,r){let n=x(t)||e||r?{next:t,error:e,complete:r}:t;return n?k((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(R(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):De}var Qd="https://g.co/ng/security#xss",C=class extends Error{constructor(e,r){super(Ao(e,r)),this.code=e}};function Ao(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Aa=class extends ge{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=ga(o),i&&(i=ga(i)),s&&(s=ga(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof te&&e.add(a),a}};function ga(t){return e=>{setTimeout(t,void 0,e)}}var Q=Aa;var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(L||{});function Ce(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ce).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function dd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Kd=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Kd||{}),ot=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ot||{});function kr(t){return{toString:t}.toString()}var be=globalThis;var qn={},Le=[];function G(t){for(let e in t)if(t[e]===G)return e;throw Error("Could not find renamed property on target object.")}function pv(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}var gv=G({\u0275cmp:G}),mv=G({\u0275dir:G}),vv=G({\u0275pipe:G}),yv=G({\u0275mod:G}),so=G({\u0275fac:G}),Ir=G({__NG_ELEMENT_ID__:G}),fd=G({__NG_ENV_ID__:G}),le=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(le||{});function Jd(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function xa(t,e,r){let n=0;for(;ne){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let h=n&8?f:null;if(h&&Jd(h,c,0)!==-1||n&2&&c!==f){if(Ge(n))return!1;s=!0}}}}return Ge(n)||s}function Ge(t){return(t&1)===0}function Ev(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Ge(s)&&(e+=pd(o,i),i=""),n=s,o=o||!Ge(n);r++}return i!==""&&(e+=pd(o,i)),e}function Tv(t){return t.map(Sv).join(",")}function Av(t){let e=[],r=[],n=1,i=2;for(;n{let e=uf(t),r=H(g({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Kd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ot.Emulated,styles:t.styles||Le,_:null,schemas:t.schemas||null,tView:null,id:""});cf(r);let n=t.dependencies;return r.directiveDefs=md(n,!1),r.pipeDefs=md(n,!0),r.id=Rv(r),r})}function xv(t){return Ut(t)||rf(t)}function Nv(t){return t!==null}function Z(t){return kr(()=>({type:t.type,bootstrap:t.bootstrap||Le,declarations:t.declarations||Le,imports:t.imports||Le,exports:t.exports||Le,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function gd(t,e){if(t==null)return qn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=le.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==le.None?[n,a]:n,e[o]=s):r[o]=n}return r}function ne(t){return kr(()=>{let e=uf(t);return cf(e),e})}function nf(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ut(t){return t[gv]||null}function rf(t){return t[mv]||null}function of(t){return t[vv]||null}function sf(t){let e=Ut(t)||rf(t)||of(t);return e!==null?e.standalone:!1}function af(t,e){let r=t[yv]||null;if(!r&&e===!0)throw new Error(`Type ${Ce(t)} does not have '\u0275mod' property.`);return r}function uf(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||qn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Le,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gd(t.inputs,e),outputs:gd(t.outputs),debugInfo:null}}function cf(t){t.features?.forEach(e=>e(t))}function md(t,e){if(!t)return null;let r=e?of:xv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Nv)}function Rv(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var _t=0,O=1,S=2,he=3,We=4,Ye=5,ao=6,Sr=7,qe=8,Zn=9,Et=10,pe=11,Tr=12,vd=13,er=14,st=15,Lr=16,Un=17,It=18,xo=19,lf=20,Bt=21,ma=22,dn=23,Ze=25,df=1;var fn=7,uo=8,Yn=9,Ne=10,Eu=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Eu||{});function cn(t){return Array.isArray(t)&&typeof t[df]=="object"}function St(t){return Array.isArray(t)&&t[df]===!0}function ff(t){return(t.flags&4)!==0}function No(t){return t.componentOffset>-1}function Iu(t){return(t.flags&1)===1}function $t(t){return!!t.template}function Ov(t){return(t[S]&512)!==0}var Fv="svg",Pv="math",kv=!1;function Lv(){return kv}function at(t){for(;Array.isArray(t);)t=t[_t];return t}function hf(t,e){return at(e[t])}function Ve(t,e){return at(e[t.index])}function pf(t,e){return t.data[e]}function gf(t,e){return t[e]}function zt(t,e){let r=e[t];return cn(r)?r:r[_t]}function Vv(t){return(t[S]&4)===4}function Mu(t){return(t[S]&128)===128}function jv(t){return St(t[he])}function co(t,e){return e==null?null:t[e]}function mf(t){t[Un]=0}function Bv(t){t[S]&1024||(t[S]|=1024,Mu(t)&&Ar(t))}function Uv(t,e){for(;t>0;)e=e[er],t--;return e}function _u(t){return!!(t[S]&9216||t[dn]?.dirty)}function Na(t){_u(t)?Ar(t):t[S]&64&&(Lv()?(t[S]|=1024,Ar(t)):t[Et].changeDetectionScheduler?.notify())}function Ar(t){t[Et].changeDetectionScheduler?.notify();let e=xr(t);for(;e!==null&&!(e[S]&8192||(e[S]|=8192,!Mu(e)));)e=xr(e)}function vf(t,e){if((t[S]&256)===256)throw new C(911,!1);t[Bt]===null&&(t[Bt]=[]),t[Bt].push(e)}function $v(t,e){if(t[Bt]===null)return;let r=t[Bt].indexOf(e);r!==-1&&t[Bt].splice(r,1)}function xr(t){let e=t[he];return St(e)?e[he]:e}var P={lFrame:Mf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Hv(){return P.lFrame.elementDepthCount}function zv(){P.lFrame.elementDepthCount++}function Gv(){P.lFrame.elementDepthCount--}function yf(){return P.bindingsEnabled}function Wv(){return P.skipHydrationRootTNode!==null}function qv(t){return P.skipHydrationRootTNode===t}function Zv(){P.skipHydrationRootTNode=null}function $(){return P.lFrame.lView}function Se(){return P.lFrame.tView}function Tt(t){return P.lFrame.contextLView=t,t[qe]}function At(t){return P.lFrame.contextLView=null,t}function Te(){let t=Df();for(;t!==null&&t.type===64;)t=t.parent;return t}function Df(){return P.lFrame.currentTNode}function Yv(){let t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Vr(t,e){let r=P.lFrame;r.currentTNode=t,r.isParent=e}function wf(){return P.lFrame.isParent}function Qv(){P.lFrame.isParent=!1}function Kv(){return P.lFrame.contextLView}function Cf(){let t=P.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Jv(t){return P.lFrame.bindingIndex=t}function Su(){return P.lFrame.bindingIndex++}function Xv(t){let e=P.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function ey(){return P.lFrame.inI18n}function ty(t,e){let r=P.lFrame;r.bindingIndex=r.bindingRootIndex=t,Ra(e)}function ny(){return P.lFrame.currentDirectiveIndex}function Ra(t){P.lFrame.currentDirectiveIndex=t}function ry(t){let e=P.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function bf(){return P.lFrame.currentQueryIndex}function Tu(t){P.lFrame.currentQueryIndex=t}function iy(t){let e=t[O];return e.type===2?e.declTNode:e.type===1?t[Ye]:null}function Ef(t,e,r){if(r&L.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&L.Host);)if(i=iy(o),i===null||(o=o[er],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=P.lFrame=If();return n.currentTNode=e,n.lView=t,!0}function Au(t){let e=If(),r=t[O];P.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function If(){let t=P.lFrame,e=t===null?null:t.child;return e===null?Mf(t):e}function Mf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function _f(){let t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Sf=_f;function xu(){let t=_f();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function oy(t){return(P.lFrame.contextLView=Uv(t,P.lFrame.contextLView))[qe]}function tr(){return P.lFrame.selectedIndex}function hn(t){P.lFrame.selectedIndex=t}function Tf(){let t=P.lFrame;return pf(t.tView,t.selectedIndex)}function sy(){return P.lFrame.currentNamespace}var Af=!0;function Nu(){return Af}function Ru(t){Af=t}function ay(){return nr(Te(),$())}function nr(t,e){return new Ae(Ve(t,e))}var Ae=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=ay;let t=e;return t})();function uy(t){return t instanceof Ae?t.nativeElement:t}function cy(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Ou(r,e):e(r))}function xf(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function lo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dy(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function fy(t,e,r){let n=jr(t,e);return n>=0?t[n|1]=r:(n=~n,dy(t,n,e,r)),n}function va(t,e){let r=jr(t,e);if(r>=0)return t[r|1]}function jr(t,e){return hy(t,e,1)}function hy(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<yy}),yy="ng",Fu=new E(""),ct=new E("",{providedIn:"platform",factory:()=>"unknown"});var Pu=new E("",{providedIn:"root",factory:()=>gy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Dy=G({__forward_ref__:G});function lt(t){return t.__forward_ref__=lt,t.toString=function(){return Ce(this())},t}function we(t){return kf(t)?t():t}function kf(t){return typeof t=="function"&&t.hasOwnProperty(Dy)&&t.__forward_ref__===lt}function Lf(t){return t&&!!t.\u0275providers}function Fo(t){return typeof t=="string"?t:t==null?"":String(t)}function wy(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fo(t)}function Cy(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new C(-200,t)}function ku(t,e){throw new C(-201,!1)}var Pa;function Vf(){return Pa}function _e(t){let e=Pa;return Pa=t,e}function jf(t,e,r){let n=Ro(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&L.Optional)return null;if(e!==void 0)return e;ku(t,"Injector")}var by={},Nr=by,ka="__NG_DI_FLAG__",fo="ngTempTokenPath",Ey="ngTokenPath",Iy=/\n/gm,My="\u0275",Cd="__source",Gn;function _y(){return Gn}function jt(t){let e=Gn;return Gn=t,e}function Sy(t,e=L.Default){if(Gn===void 0)throw new C(-203,!1);return Gn===null?jf(t,void 0,e):Gn.get(t,e&L.Optional?null:void 0,e)}function b(t,e=L.Default){return(Vf()||Sy)(we(t),e)}function p(t,e=L.Default){return b(t,Po(e))}function Po(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function La(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ce(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Iy,` + `)}`}var Ny="h",Ry="b";var Oy=()=>null;function Lu(t,e,r=!1){return Oy(t,e,r)}var Yi="__parameters__";function Fy(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Uf(t,e,r){return kr(()=>{let n=Fy(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Yi)?u[Yi]:Object.defineProperty(u,Yi,{value:[]})[Yi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var ko=Bf(Uf("Optional"),8);var Vu=Bf(Uf("SkipSelf"),4);function pn(t,e){let r=t.hasOwnProperty(so);return r?t[so]:null}var Qn=new E(""),$f=new E("",-1),Hf=new E(""),ho=class{get(e,r=Nr){if(r===Nr){let n=new Error(`NullInjectorError: No provider for ${Ce(e)}!`);throw n.name="NullInjectorError",n}return r}};function Lo(t){return{\u0275providers:t}}function Py(...t){return{\u0275providers:zf(!0,t),\u0275fromNgModule:!0}}function zf(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Ou(e,s=>{let a=s;Va(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Gf(i,o),r}function Gf(t,e){for(let r=0;r{e(o,n)})}}function Va(t,e,r,n){if(t=we(t),!t)return!1;let i=null,o=Dd(t),s=!o&&Ut(t);if(!o&&!s){let u=t.ngModule;if(o=Dd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Va(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{Ou(o.imports,l=>{Va(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Gf(c,e)}if(!a){let c=pn(i)||(()=>new i);e({provide:i,useFactory:c,deps:Le},i),e({provide:Hf,useValue:i,multi:!0},i),e({provide:Qn,useValue:()=>b(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;ju(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function ju(t,e){for(let r of t)Lf(r)&&(r=r.\u0275providers),Array.isArray(r)?ju(r,e):e(r)}var ky=G({provide:String,useValue:G});function Wf(t){return t!==null&&typeof t=="object"&&ky in t}function Ly(t){return!!(t&&t.useExisting)}function Vy(t){return!!(t&&t.useFactory)}function Kn(t){return typeof t=="function"}function jy(t){return!!t.useClass}var Vo=new E(""),eo={},By={},ya;function Bu(){return ya===void 0&&(ya=new ho),ya}var Ee=class{},Rr=class extends Ee{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ba(e,s=>this.processProvider(s)),this.records.set($f,$n(void 0,this)),i.has("environment")&&this.records.set(Ee,$n(void 0,this));let o=this.records.get(Vo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Hf,Le,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=jt(this),n=_e(void 0),i;try{return e()}finally{jt(r),_e(n)}}get(e,r=Nr,n=L.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(fd))return e[fd](this);n=Po(n);let i,o=jt(this),s=_e(void 0);try{if(!(n&L.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=Gy(e)&&Ro(e);c&&this.injectableDefInScope(c)?u=$n(ja(e),eo):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&L.Self?Bu():this.parent;return r=n&L.Optional&&r===Nr?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[fo]=a[fo]||[]).unshift(Ce(e)),o)throw a;return Ay(a,e,"R3InjectorError",this.source)}else throw a}finally{_e(s),jt(o)}}resolveInjectorInitializers(){let e=jt(this),r=_e(void 0),n;try{let i=this.get(Qn,Le,L.Self);for(let o of i)o()}finally{jt(e),_e(r)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(Ce(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){e=we(e);let r=Kn(e)?e:we(e&&e.provide),n=$y(e);if(!Kn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=$n(void 0,eo,!0),i.factory=()=>La(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){return r.value===eo&&(r.value=By,r.value=r.factory()),typeof r.value=="object"&&r.value&&zy(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(e){if(!e.providedIn)return!1;let r=we(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function ja(t){let e=Ro(t),r=e!==null?e.factory:pn(t);if(r!==null)return r;if(t instanceof E)throw new C(204,!1);if(t instanceof Function)return Uy(t);throw new C(204,!1)}function Uy(t){if(t.length>0)throw new C(204,!1);let r=my(t);return r!==null?()=>r.factory(t):()=>new t}function $y(t){if(Wf(t))return $n(void 0,t.useValue);{let e=qf(t);return $n(e,eo)}}function qf(t,e,r){let n;if(Kn(t)){let i=we(t);return pn(i)||ja(i)}else if(Wf(t))n=()=>we(t.useValue);else if(Vy(t))n=()=>t.useFactory(...La(t.deps||[]));else if(Ly(t))n=()=>b(we(t.useExisting));else{let i=we(t&&(t.useClass||t.provide));if(Hy(t))n=()=>new i(...La(t.deps));else return pn(i)||ja(i)}return n}function $n(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Hy(t){return!!t.deps}function zy(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Gy(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Ba(t,e){for(let r of t)Array.isArray(r)?Ba(r,e):r&&Lf(r)?Ba(r.\u0275providers,e):e(r)}function dt(t,e){t instanceof Rr&&t.assertNotDestroyed();let r,n=jt(t),i=_e(void 0);try{return e()}finally{jt(n),_e(i)}}function Wy(t){if(!Vf()&&!_y())throw new C(-203,!1)}function qy(t){let e=be.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Zy(t){return typeof t=="function"}var Ua=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Zf(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Qe(){return Yf}function Yf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Qy),Yy}Qe.ngInherit=!0;function Yy(){let t=Kf(this),e=t?.current;if(e){let r=t.previous;if(r===qn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Qy(t,e,r,n,i){let o=this.declaredInputs[n],s=Kf(t)||Ky(t,{previous:qn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Ua(c&&c.currentValue,r,u===qn),Zf(t,e,i,r)}var Qf="__ngSimpleChanges__";function Kf(t){return t[Qf]||null}function Ky(t,e){return t[Qf]=e}var bd=null;var rt=function(t,e,r){bd?.(t,e,r)};function Jy(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Yf(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Uu(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[Un]+=65536),(a>14>16&&(t[S]&3)===e&&(t[S]+=16384,Ed(a,o)):Ed(a,o)}var Wn=-1,gn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function eD(t){return t instanceof gn}function tD(t){return(t.flags&8)!==0}function nD(t){return(t.flags&16)!==0}function Xf(t){return t!==Wn}function po(t){return t&32767}function rD(t){return t>>16}function go(t,e){let r=rD(t),n=e;for(;r>0;)n=n[er],r--;return n}var $a=!0;function mo(t){let e=$a;return $a=t,e}var iD=256,eh=iD-1,th=5,oD=0,it={};function sD(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Ir)&&(n=r[Ir]),n==null&&(n=r[Ir]=oD++);let i=n&eh,o=1<>th)]|=o}function vo(t,e){let r=nh(t,e);if(r!==-1)return r;let n=e[O];n.firstCreatePass&&(t.injectorIndex=e.length,wa(n.data,t),wa(e,null),wa(n.blueprint,null));let i=$u(t,e),o=t.injectorIndex;if(Xf(i)){let s=po(i),a=go(i,e),u=a[O].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function wa(t,e){t.push(0,0,0,0,0,0,0,0,e)}function nh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function $u(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=ah(i),n===null)return Wn;if(r++,i=i[er],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Wn}function Ha(t,e,r){sD(t,e,r)}function aD(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&w.type===r)return h}if(i){let h=s[u];if(h&&$t(h)&&h.type===r)return u}return null}function mn(t,e,r,n){let i=t[r],o=e.data;if(eD(i)){let s=i;s.resolving&&Cy(wy(o[r]));let a=mo(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?_e(s.injectImpl):null,l=Ef(t,n,L.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&Jy(r,o[r],e)}finally{c!==null&&_e(c),mo(a),s.resolving=!1,Sf()}}return i}function cD(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Ir)?t[Ir]:void 0;return typeof e=="number"?e>=0?e&eh:lD:e}function Id(t,e,r){let n=1<>th)]&n)}function Md(t,e){return!(t&L.Self)&&!(t&L.Host&&e)}var ln=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return oh(this._tNode,this._lView,e,Po(n),r)}};function lD(){return new ln(Te(),$())}function rr(t){return kr(()=>{let e=t.prototype.constructor,r=e[so]||za(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[so]||za(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function za(t){return kf(t)?()=>{let e=za(we(t));return e&&e()}:pn(t)}function dD(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[S]&2048&&!(s[S]&512);){let a=sh(o,s,r,n|L.Self,it);if(a!==it)return a;let u=o.parent;if(!u){let c=s[lf];if(c){let l=c.get(r,it,n);if(l!==it)return l}u=ah(s),s=s[er]}o=u}return i}function ah(t){let e=t[O],r=e.type;return r===2?e.declTNode:r===1?t[Ye]:null}function Hu(t){return aD(Te(),t)}function _d(t,e=null,r=null,n){let i=uh(t,e,r,n);return i.resolveInjectorInitializers(),i}function uh(t,e=null,r=null,n,i=new Set){let o=[r||Le,Py(t)];return n=n||(typeof t=="object"?void 0:Ce(t)),new Rr(o,e||Bu(),n||null,i)}var Ke=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return _d({name:""},i,n,"");{let o=n.name??"";return _d({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=Nr,e.NULL=new ho,e.\u0275prov=D({token:e,providedIn:"any",factory:()=>b($f)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})(),fD="ngOriginalError";function Ca(t){return t[fD]}var ut=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Ca(e);for(;r&&Ca(r);)r=Ca(r);return r||null}},ch=new E("",{providedIn:"root",factory:()=>p(ut).handleError.bind(void 0)});var lh=!1,hD=new E("",{providedIn:"root",factory:()=>lh});var Qi;function pD(){if(Qi===void 0&&(Qi=null,be.trustedTypes))try{Qi=be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Qi}function Sd(t){return pD()?.createScriptURL(t)||t}var yo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Qd})`}};function Br(t){return t instanceof yo?t.changingThisBreaksApplicationSecurity:t}function zu(t,e){let r=gD(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Qd})`)}return r===e}function gD(t){return t instanceof yo&&t.getTypeName()||null}var mD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function dh(t){return t=String(t),t.match(mD)?t:"unsafe:"+t}var jo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(jo||{});function Ur(t){let e=hh();return e?e.sanitize(jo.URL,t)||"":zu(t,"URL")?Br(t):dh(Fo(t))}function vD(t){let e=hh();if(e)return Sd(e.sanitize(jo.RESOURCE_URL,t)||"");if(zu(t,"ResourceURL"))return Sd(Br(t));throw new C(904,!1)}function yD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?vD:Ur}function fh(t,e,r){return yD(e,r)(t)}function hh(){let t=$();return t&&t[Et].sanitizer}var ph=new Map,DD=0;function wD(){return DD++}function CD(t){ph.set(t[xo],t)}function bD(t){ph.delete(t[xo])}var Td="__ngContext__";function vn(t,e){cn(e)?(t[Td]=e[xo],CD(e)):t[Td]=e}function gh(t){return t instanceof Function?t():t}function ED(t){return(t??p(Ke)).get(ct)==="browser"}var Mt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Mt||{}),ID;function Gu(t,e){return ID(t,e)}function Hn(t,e,r,n,i){if(n!=null){let o,s=!1;St(n)?o=n:cn(n)&&(s=!0,n=n[_t]);let a=at(n);t===0&&r!==null?i==null?wh(e,r,a):Do(e,r,a,i||null,!0):t===1&&r!==null?Do(e,r,a,i||null,!0):t===2?UD(e,a,s):t===3&&e.destroyNode(a),o!=null&&HD(e,t,o,r,i)}}function MD(t,e){return t.createText(e)}function _D(t,e,r){t.setValue(e,r)}function mh(t,e,r){return t.createElement(e,r)}function SD(t,e){vh(t,e),e[_t]=null,e[Ye]=null}function TD(t,e,r,n,i,o){n[_t]=i,n[Ye]=e,Bo(t,n,r,1,i,o)}function vh(t,e){Bo(t,e,e[pe],2,null,null)}function AD(t){let e=t[Tr];if(!e)return ba(t[O],t);for(;e;){let r=null;if(cn(e))r=e[Tr];else{let n=e[Ne];n&&(r=n)}if(!r){for(;e&&!e[We]&&e!==t;)cn(e)&&ba(e[O],e),e=e[he];e===null&&(e=t),cn(e)&&ba(e[O],e),r=e&&e[We]}e=r}}function xD(t,e,r,n){let i=Ne+n,o=r.length;n>0&&(r[i-1][We]=e),n0&&(t[r-1][We]=n[We]);let o=lo(t,Ne+e);SD(n[O],n);let s=o[It];s!==null&&s.detachView(o[O]),n[he]=null,n[We]=null,n[S]&=-129}return n}function Dh(t,e){if(!(e[S]&256)){let r=e[pe];r.destroyNode&&Bo(t,e,r,3,null,null),AD(e)}}function ba(t,e){if(!(e[S]&256)){e[S]&=-129,e[S]|=256,e[dn]&&Vl(e[dn]),OD(t,e),RD(t,e),e[O].type===1&&e[pe].destroy();let r=e[Lr];if(r!==null&&St(e[he])){r!==e[he]&&yh(r,e);let n=e[It];n!==null&&n.detachView(t)}bD(e)}}function RD(t,e){let r=t.cleanup,n=e[Sr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Sr]=null);let i=e[Bt];if(i!==null){e[Bt]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===ot.None||o===ot.Emulated)return null}return Ve(n,r)}}function Do(t,e,r,n,i){t.insertBefore(e,r,n,i)}function wh(t,e,r){t.appendChild(e,r)}function Ad(t,e,r,n,i){n!==null?Do(t,e,r,n,i):wh(t,e,r)}function kD(t,e,r,n){t.removeChild(e,r,n)}function Wu(t,e){return t.parentNode(e)}function LD(t,e){return t.nextSibling(e)}function VD(t,e,r){return BD(t,e,r)}function jD(t,e,r){return t.type&40?Ve(t,r):null}var BD=jD,xd;function qu(t,e,r,n){let i=FD(t,n,e),o=e[pe],s=n.parent||e[Ye],a=VD(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;uZe&&Ih(t,e,Ze,!1),rt(s?2:0,i),r(n,i)}finally{hn(o),rt(s?3:1,i)}}function Ah(t,e,r){if(ff(e)){let n=ye(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function JD(t,e,r,n){let i=Vh(e);i.push(r),t.firstCreatePass&&jh(t).push(n,i.length-1)}function XD(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return Wv()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Nd(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,u=le.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?Rd(n,r,c,a,u):Rd(n,r,c,a)}return n}function Rd(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function ew(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function sw(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;No(r)&&hw(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||vo(r,e),vn(n,e);let s=r.initialInputs;for(let a=i;a{Ar(t.lView)},consumerOnSignalRead(){this.lView[dn]=this}});function $h(t){return zh(t[Tr])}function Hh(t){return zh(t[We])}function zh(t){for(;t!==null&&!St(t);)t=t[We];return t}var Gh=100;function Wh(t,e=!0,r=0){let n=t[Et],i=n.rendererFactory,o=!1;o||i.begin?.();try{Aw(t,r)}catch(s){throw e&&Bh(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function Aw(t,e){Ya(t,e);let r=0;for(;_u(t);){if(r===Gh)throw new C(103,!1);r++,Ya(t,1)}}function xw(t,e,r,n){let i=e[S];if((i&256)===256)return;let o=!1;!o&&e[Et].inlineEffectRunner?.flush(),Au(e);let s=null,a=null;!o&&Nw(t)&&(a=Mw(e),s=kl(a));try{mf(e),Jv(t.bindingStartIndex),r!==null&&Th(t,e,r,2,n);let u=(i&3)===3;if(!o)if(u){let d=t.preOrderCheckHooks;d!==null&&to(e,d,null)}else{let d=t.preOrderHooks;d!==null&&no(e,d,0,null),Da(e,0)}if(Rw(e),qh(e,0),t.contentQueries!==null&&Lh(t,e),!o)if(u){let d=t.contentCheckHooks;d!==null&&to(e,d)}else{let d=t.contentHooks;d!==null&&no(e,d,1),Da(e,1)}WD(t,e);let c=t.components;c!==null&&Yh(e,c,0);let l=t.viewQuery;if(l!==null&&Za(2,l,n),!o)if(u){let d=t.viewCheckHooks;d!==null&&to(e,d)}else{let d=t.viewHooks;d!==null&&no(e,d,2),Da(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ma]){for(let d of e[ma])d();e[ma]=null}o||(e[S]&=-73)}catch(u){throw Ar(e),u}finally{a!==null&&(Ll(a,s),Sw(a)),xu()}}function Nw(t){return t.type!==2}function qh(t,e){for(let r=$h(t);r!==null;r=Hh(r))for(let n=Ne;n-1&&(Ga(e,n),lo(r,n))}this._attachedToViewContainer=!1}Dh(this._lView[O],this._lView)}onDestroy(e){vf(this._lView,e)}markForCheck(){Ju(this._cdRefInjectingView||this._lView)}detach(){this._lView[S]&=-129}reattach(){Na(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,Wh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,vh(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e,Na(this._lView)}},Dn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=kw;let t=e;return t})(),Fw=Dn,Pw=class extends Fw{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=bw(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new yn(i)}};function kw(){return Xu(Te(),$())}function Xu(t,e){return t.type&4?new Pw(e,t,nr(t,e)):null}var bR=new RegExp(`^(\\d+)*(${Ry}|${Ny})*(.*)`);var Lw=()=>null;function Fd(t,e){return Lw(t,e)}var Qa=class{},Ka=class{},Co=class{};function Vw(t){let e=Error(`No component factory found for ${Ce(t)}.`);return e[jw]=t,e}var jw="ngComponent";var Ja=class{resolveComponentFactory(e){throw Vw(e)}},zo=(()=>{let e=class e{};e.NULL=new Ja;let t=e;return t})(),Or=class{},ft=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Bw();let t=e;return t})();function Bw(){let t=$(),e=Te(),r=zt(e.index,t);return(cn(r)?r:t)[pe]}var Uw=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Ea={};function ec(t){let e=ye(null);try{return t()}finally{ye(e)}}function Qh(t){return Hw(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function $w(t,e){if(Array.isArray(t))for(let r=0;re,eu=class{constructor(e){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=e||zw}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new tu(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new bo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new bo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},tu=class{constructor(e,r){this.item=e,this.trackById=r,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}},nu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},bo=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new nu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Pd(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||kd()),deps:[[e,new Vu,new ko]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new C(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:kd});let t=e;return t})();var bn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Gw;let t=e;return t})();function Gw(t){return Ww(Te(),$(),(t&16)===16)}function Ww(t,e,r){if(No(t)&&!r){let n=zt(t.index,e);return new yn(n,n)}else if(t.type&47){let n=e[st];return new yn(n,e)}return null}var Kh=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=qw,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),ru=class extends Kh{constructor(e){super(),this._lView=e}onDestroy(e){return vf(this._lView,e),()=>$v(this._lView,e)}};function qw(){return new ru($())}var Ld=new Set;function Go(t){Ld.has(t)||(Ld.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Vd(...t){}function Zw(){let t=typeof be.requestAnimationFrame=="function",e=be[t?"requestAnimationFrame":"setTimeout"],r=be[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var z=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Q(!1),this.onMicrotaskEmpty=new Q(!1),this.onStable=new Q(!1),this.onError=new Q(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=Zw().nativeRequestAnimationFrame,Kw(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new C(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Yw,Vd,Vd);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Yw={};function nc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Qw(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(be,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,iu(t),t.isCheckStableRunning=!0,nc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),iu(t))}function Kw(t){let e=()=>{Qw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(Jw(a))return r.invokeTask(i,o,s,a);try{return jd(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Bd(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return jd(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Bd(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,iu(t),nc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function iu(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function jd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Bd(t){t._nesting--,nc(t)}var ou=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Q,this.onMicrotaskEmpty=new Q,this.onStable=new Q,this.onError=new Q}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function Jw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function Xw(t="zone.js",e){return t==="noop"?new ou:t==="zone.js"?new z(e):t}var zn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(zn||{}),eC={destroy(){}};function rc(t,e){!e&&Wy(rc);let r=e?.injector??p(Ke);if(!ED(r))return eC;Go("NgAfterNextRender");let n=r.get(ic),i=n.handler??=new au,o=e?.phase??zn.MixedReadWrite,s=()=>{i.unregister(u),a()},a=r.get(Kh).onDestroy(s),u=new su(r,o,()=>{s(),t()});return i.register(u),{destroy:s}}var su=class{constructor(e,r,n){this.phase=r,this.callbackFn=n,this.zone=e.get(z),this.errorHandler=e.get(ut,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},au=class{constructor(){this.executingCallbacks=!1,this.buckets={[zn.EarlyRead]:new Set,[zn.Write]:new Set,[zn.MixedReadWrite]:new Set,[zn.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},ic=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function uu(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&bh(t,r,o.join(" "))}}function aC(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=cC;let t=e;return t})();function cC(){let t=Te();return Xh(t,$())}var lC=Gt,Jh=class extends lC{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return nr(this._hostTNode,this._hostLView)}get injector(){return new ln(this._hostTNode,this._hostLView)}get parentInjector(){let e=$u(this._hostTNode,this._hostLView);if(Xf(e)){let r=go(e,this._hostLView),n=po(e),i=r[O].data[n+8];return new ln(i,r)}else return new ln(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=$d(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ne}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Fd(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Od(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!Zy(e),a;if(s)a=r;else{let w=r||{};a=w.index,n=w.injector,i=w.projectableNodes,o=w.environmentInjector||w.ngModuleRef}let u=s?e:new Jn(Ut(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let j=(s?c:this.parentInjector).get(Ee,null);j&&(o=j)}let l=Ut(u.componentType??{}),d=Fd(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,Od(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(jv(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[he],c=new Jh(u,u[Ye],u[he]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Ew(s,i,o,n),e.attachToViewContainerRef(),xf(Ia(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=$d(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Ga(this._lContainer,r);n&&(lo(Ia(this._lContainer),r),Dh(n[O],n))}detach(e){let r=this._adjustIndex(e,-1),n=Ga(this._lContainer,r);return n&&lo(Ia(this._lContainer),r)!=null?new yn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function $d(t){return t[uo]}function Ia(t){return t[uo]||(t[uo]=[])}function Xh(t,e){let r,n=e[t.index];return St(n)?r=n:(r=kh(n,e,null,t),e[t.index]=r,Ho(e,r)),fC(r,e,t,n),new Jh(r,t,e)}function dC(t,e){let r=t[pe],n=r.createComment(""),i=Ve(e,t),o=Wu(r,i);return Do(r,o,n,LD(r,i),!1),n}var fC=gC,hC=()=>!1;function pC(t,e,r){return hC(t,e,r)}function gC(t,e,r,n){if(t[fn])return;let i;r.type&8?i=at(n):i=dC(e,r),t[fn]=i}var du=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},fu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=Ne;de.trim())}function IC(t,e,r){t.queries===null&&(t.queries=new pu),t.queries.track(new gu(e,r))}function MC(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function oc(t,e){return t.queries.getByIndex(e)}function _C(t,e){let r=t[O],n=oc(r,e);return n.crossesNgTemplate?mu(r,t,e,[]):ep(r,t,n,e)}function SC(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(NC))}return o}return Io.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>RC(o));e.push(u)}),AC(),Promise.all(e).then(()=>{})}var Io=new Map,TC=new Set;function AC(){let t=Io;return Io=new Map,t}function xC(){return Io.size===0}function NC(t){return typeof t=="string"?t:t.text()}function RC(t){TC.delete(t)}function OC(t){return Object.getPrototypeOf(t.prototype).constructor}function Je(t){let e=OC(t.type),r=!0,n=[t];for(;e;){let i;if($t(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new C(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=Ki(t.inputs),s.inputTransforms=Ki(t.inputTransforms),s.declaredInputs=Ki(t.declaredInputs),s.outputs=Ki(t.outputs);let a=i.hostBindings;a&&VC(t,a);let u=i.viewQuery,c=i.contentQueries;if(u&&kC(t,u),c&&LC(t,c),FC(t,i),pv(t.outputs,i.outputs),$t(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=_r(i.hostAttrs,r=_r(r,i.hostAttrs))}}function Ki(t){return t===qn?{}:t===Le?[]:t}function kC(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function LC(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function VC(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function sc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var Ht=class{},Fr=class{};var Mo=class extends Ht{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Eo(this);let i=af(e);this._bootstrapComponents=gh(i.bootstrap),this._r3Injector=uh(e,r,[{provide:Ht,useValue:this},{provide:zo,useValue:this.componentFactoryResolver},...n],Ce(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},_o=class extends Fr{constructor(e){super(),this.moduleType=e}create(e){return new Mo(this.moduleType,e,[])}};function jC(t,e,r){return new Mo(t,e,r)}var vu=class extends Ht{constructor(e){super(),this.componentFactoryResolver=new Eo(this),this.instance=null;let r=new Rr([...e.providers,{provide:Ht,useValue:this},{provide:zo,useValue:this.componentFactoryResolver}],e.parent||Bu(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Wo(t,e,r=null){return new vu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var En=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ue(!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)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function BC(t,e,r){return t[e]=r}function $r(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function UC(t,e,r,n,i,o,s,a,u){let c=e.consts,l=$o(e,t,4,s||null,co(c,a));Oh(e,r,l,co(c,u)),Uu(e,l);let d=l.tView=Yu(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function K(t,e,r,n,i,o,s,a){let u=$(),c=Se(),l=t+Ze,d=c.firstCreatePass?UC(l,c,u,e,r,n,i,o,s):c.data[l];Vr(d,!1);let f=$C(c,u,d,t);Nu()&&qu(c,u,f,d),vn(f,u);let h=kh(f,u,f,d);return u[l]=h,Ho(u,h),pC(h,d,u),Iu(d)&&xh(c,u,d),s!=null&&Nh(u,d,a),K}var $C=HC;function HC(t,e,r,n){return Ru(!0),e[pe].createComment("")}function ir(t,e,r,n){let i=$(),o=Su();if($r(i,o,e)){let s=Se(),a=Tf();pw(a,i,t,e,r,n)}return ir}function zC(t,e,r,n){return $r(t,Su(),r)?e+Fo(r)+n:Cn}function Ji(t,e){return t<<17|e<<2}function wn(t){return t>>17&32767}function GC(t){return(t&2)==2}function WC(t,e){return t&131071|e<<17}function yu(t){return t|2}function Xn(t){return(t&131068)>>2}function Ma(t,e){return t&-131069|e<<2}function qC(t){return(t&1)===1}function Du(t){return t|1}function ZC(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=wn(s),u=Xn(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||jr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=wn(t[a+1]);t[n+1]=Ji(f,a),f!==0&&(t[f+1]=Ma(t[f+1],n)),t[a+1]=WC(t[a+1],n)}else t[n+1]=Ji(a,0),a!==0&&(t[a+1]=Ma(t[a+1],n)),a=n;else t[n+1]=Ji(u,0),a===0?a=n:t[u+1]=Ma(t[u+1],n),u=n;c&&(t[n+1]=yu(t[n+1])),Hd(t,l,n,!0),Hd(t,l,n,!1),YC(e,l,t,n,o),s=Ji(a,u),o?e.classBindings=s:e.styleBindings=s}function YC(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&jr(o,e)>=0&&(r[n+1]=Du(r[n+1]))}function Hd(t,e,r,n){let i=t[r+1],o=e===null,s=n?wn(i):Xn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];QC(u,e)&&(a=!0,t[s+1]=n?Du(c):yu(c)),s=n?wn(c):Xn(c)}a&&(t[r+1]=n?yu(i):Du(i))}function QC(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?jr(t,e)>=0:!1}function V(t,e,r){let n=$(),i=Su();if($r(n,i,e)){let o=Se(),s=Tf();nw(o,s,n,t,e,n[pe],r,!1)}return V}function zd(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Qu(t,r,o[s],s,n)}function or(t,e){return KC(t,e,null,!0),or}function KC(t,e,r,n){let i=$(),o=Se(),s=Xv(2);if(o.firstUpdatePass&&XC(o,t,s,n),e!==Cn&&$r(i,s,e)){let a=o.data[tr()];i0(o,a,i,i[pe],t,i[s+1]=o0(e,r),n,s)}}function JC(t,e){return e>=t.expandoStartIndex}function XC(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[tr()],s=JC(t,r);s0(o,n)&&e===null&&!s&&(e=!1),e=e0(i,o,e,n),ZC(i,o,e,r,s,n)}}function e0(t,e,r,n){let i=ry(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=_a(null,t,e,r,n),r=Pr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=_a(i,t,e,r,n),o===null){let u=t0(t,e,n);u!==void 0&&Array.isArray(u)&&(u=_a(null,t,e,u[1],n),u=Pr(u,e.attrs,n),n0(t,e,n,u))}else o=r0(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function t0(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Xn(n)!==0)return t[wn(n)]}function n0(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[wn(i)]=n}function r0(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===Cn&&(f=d?Le:void 0);let h=d?va(f,n):l===n?f:void 0;if(c&&!So(h)&&(h=va(u,n)),So(h)&&(a=h,s))return a;let w=t[i+1];i=s?wn(w):Xn(w)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=va(u,n))}return a}function So(t){return t!==void 0}function o0(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Ce(Br(t)))),t}function s0(t,e){return(t.flags&(e?8:16))!==0}function a0(t,e,r,n,i,o){let s=e.consts,a=co(s,i),u=$o(e,t,2,n,a);return Oh(e,r,u,co(s,o)),u.attrs!==null&&uu(u,u.attrs,!1),u.mergedAttrs!==null&&uu(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function v(t,e,r,n){let i=$(),o=Se(),s=Ze+t,a=i[pe],u=o.firstCreatePass?a0(s,o,i,e,r,n):o.data[s],c=u0(o,i,u,a,e,t);i[s]=c;let l=Iu(u);return Vr(u,!0),Eh(a,c,u),(u.flags&32)!==32&&Nu()&&qu(o,i,c,u),Hv()===0&&vn(c,i),zv(),l&&(xh(o,i,u),Ah(o,u,i)),n!==null&&Nh(i,u),v}function y(){let t=Te();wf()?Qv():(t=t.parent,Vr(t,!1));let e=t;qv(e)&&Zv(),Gv();let r=Se();return r.firstCreatePass&&(Uu(r,t),ff(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&tD(e)&&zd(r,e,$(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&nD(e)&&zd(r,e,$(),e.stylesWithoutHost,!1),y}function re(t,e,r,n){return v(t,e,r,n),y(),re}var u0=(t,e,r,n,i,o)=>(Ru(!0),mh(n,i,sy()));function xt(){return $()}var To="en-US";var c0=To;function l0(t){typeof t=="string"&&(c0=t.toLowerCase().replace(/_/g,"-"))}function ee(t,e,r,n){let i=$(),o=Se(),s=Te();return f0(o,i,i[pe],s,t,e,n),ee}function d0(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function f0(t,e,r,n,i,o,s){let a=Iu(n),c=t.firstCreatePass&&jh(t),l=e[qe],d=Vh(e),f=!0;if(n.type&3||s){let j=Ve(n,e),A=s?s(j):j,M=d.length,ie=s?W=>s(at(W[n.index])):n.index,Oe=null;if(!s&&a&&(Oe=d0(t,e,i,n.index)),Oe!==null){let W=Oe.__ngLastListenerFn__||Oe;W.__ngNextListenerFn__=o,Oe.__ngLastListenerFn__=o,f=!1}else{o=qd(n,e,l,o,!1);let W=r.listen(A,i,o);d.push(o,W),c&&c.push(i,ie,M,M+1)}}else o=qd(n,e,l,o,!1);let h=n.outputs,w;if(f&&h!==null&&(w=h[i])){let j=w.length;if(j)for(let A=0;A-1?zt(t.index,e):e;Ju(a);let u=Wd(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Wd(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function xe(t=1){return oy(t)}function tp(t,e,r,n){bC(t,e,r,n)}function np(t){let e=$(),r=Se(),n=bf();Tu(n+1);let i=oc(r,n);if(t.dirty&&Vv(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=_C(e,n);t.reset(o,uy),t.notifyOnChanges()}return!0}return!1}function rp(){return wC($(),bf())}function h0(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function ip(t){let e=Kv();return gf(e,Ze+t)}function _(t,e=""){let r=$(),n=Se(),i=t+Ze,o=n.firstCreatePass?$o(n,i,1,e,null):n.data[i],s=p0(n,r,o,e,t);r[i]=s,Nu()&&qu(n,r,s,o),Vr(o,!1)}var p0=(t,e,r,n,i)=>(Ru(!0),MD(e[pe],n));function ht(t){return Xe("",t,""),ht}function Xe(t,e,r){let n=$(),i=zC(n,t,e,r);return i!==Cn&&yw(n,tr(),i),Xe}function g0(t,e,r){let n=Se();if(n.firstCreatePass){let i=$t(t);wu(r,n.data,n.blueprint,i,!0),wu(e,n.data,n.blueprint,i,!1)}}function wu(t,e,r,n,i){if(t=we(t),Array.isArray(t))for(let o=0;o>20;if(Kn(t)||!t.multi){let h=new gn(c,i,m),w=Ta(u,e,i?l:l+f,d);w===-1?(Ha(vo(a,s),o,u),Sa(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[w]=h,s[w]=h)}else{let h=Ta(u,e,l+f,d),w=Ta(u,e,l,l+f),j=h>=0&&r[h],A=w>=0&&r[w];if(i&&!A||!i&&!j){Ha(vo(a,s),o,u);let M=y0(i?v0:m0,r.length,i,n,c);!i&&A&&(r[w].providerFactory=M),Sa(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(M),s.push(M)}else{let M=op(r[i?w:h],c,!i&&n);Sa(o,t,h>-1?h:w,M)}!i&&n&&A&&r[w].componentProviders++}}}function Sa(t,e,r,n){let i=Kn(e),o=jy(e);if(i||o){let u=(o?we(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function op(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Ta(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>g0(n,i?i(t):t,e)}}var D0=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=zf(!1,n.type),o=i.length>0?Wo([i],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()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(b(Ee))});let t=e;return t})();function sp(t){Go("NgStandalone"),t.getStandaloneInjector=e=>e.get(D0).getOrCreateStandaloneInjector(t)}function qo(t,e,r,n){return ap($(),Cf(),t,e,r,n)}function w0(t,e){let r=t[e];return r===Cn?void 0:r}function ap(t,e,r,n,i,o){let s=e+r;return $r(t,s,i)?BC(t,s+1,o?n.call(o,i):n(i)):w0(t,s+1)}function qt(t,e){let r=Se(),n,i=t+Ze;r.firstCreatePass?(n=C0(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=pn(n.type,!0)),s,a=_e(m);try{let u=mo(!1),c=o();return mo(u),h0(r,$(),i,c),c}finally{_e(a)}}function C0(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function Zt(t,e,r){let n=t+Ze,i=$(),o=gf(i,n);return b0(i,n)?ap(i,Cf(),e,o.transform,r,o):o.transform(r)}function b0(t,e){return t[O].data[e].pure}var Xi=null;function E0(t){Xi!==null&&(t.defaultEncapsulation!==Xi.defaultEncapsulation||t.preserveWhitespaces!==Xi.preserveWhitespaces)||(Xi=t)}var Zo=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var ac=new E(""),Hr=new E(""),Yo=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,uc||(I0(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(b(z),b(Qo),b(Hr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qo=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return uc?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function I0(t){uc=t}var uc;function Yt(t){return!!t&&typeof t.then=="function"}function cc(t){return!!t&&typeof t.subscribe=="function"}var Ko=new E(""),up=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(Ko,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Yt(s))n.push(s);else if(cc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jo=new E("");function M0(){jl(()=>{throw new C(600,!1)})}function _0(t){return t.isBoundToModule}function S0(t,e,r){try{let n=r();return Yt(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function cp(t,e){return Array.isArray(e)?e.reduce(cp,t):g(g({},t),e)}var In=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(ch),this.afterRenderEffectManager=p(ic),this.componentTypes=[],this.components=[],this.isStable=p(En).hasPendingTasks.pipe(T(n=>!n)),this._injector=p(Ee)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Co;if(!this._injector.get(up).done){let h=!o&&sf(n),w=!1;throw new C(405,w)}let a;o?a=n:a=this._injector.get(zo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=_0(a)?void 0:this._injector.get(Ht),c=i||a.selector,l=a.create(Ke.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(ac,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),oo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let n=0;do{if(n===Gh)throw new C(103,!1);let i=n===0;for(let{_lView:o,notifyErrorHandler:s}of this._views)!i&&!Zd(o)||this.detectChangesInView(o,s,i);this.afterRenderEffectManager.execute(),n++}while(this._views.some(({_lView:i})=>Zd(i)))}detectChangesInView(n,i,o){let s;o?(s=0,n[S]|=1024):n[S]&64?s=0:s=1,Wh(n,i,s)}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;oo(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Jo,[]);[...this._bootstrapListeners,...i].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),()=>oo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Zd(t){return _u(t)}var bu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Xo=(()=>{let e=class e{compileModuleSync(n){return new _o(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=af(n),s=gh(o.declarations).reduce((a,u)=>{let c=Ut(u);return c&&a.push(new Jn(c)),a},[]);return new bu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),T0=new E("");function A0(t,e,r){let n=new _o(r);return Promise.resolve(n)}function Yd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var x0=(()=>{let e=class e{constructor(){this.zone=p(z),this.applicationRef=p(In)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function N0(t){return[{provide:z,useFactory:t},{provide:Qn,multi:!0,useFactory:()=>{let e=p(x0,{optional:!0});return()=>e.initialize()}},{provide:Qn,multi:!0,useFactory:()=>{let e=p(F0);return()=>{e.initialize()}}},{provide:ch,useFactory:R0}]}function R0(){let t=p(z),e=p(ut);return r=>t.runOutsideAngular(()=>e.handleError(r))}function O0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var F0=(()=>{let e=class e{constructor(){this.subscription=new te,this.initialized=!1,this.zone=p(z),this.pendingTasks=p(En)}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(()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function P0(){return typeof $localize<"u"&&$localize.locale||To}var lc=new E("",{providedIn:"root",factory:()=>p(lc,L.Optional|L.SkipSelf)||P0()});var lp=new E(""),dp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=Xw(i?.ngZone,O0({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=jC(n.moduleType,this.injector,N0(()=>o)),a=s.injector.get(ut,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{oo(this._modules,s),u.unsubscribe()})}),S0(a,o,()=>{let u=s.injector.get(up);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(lc,To);return l0(c||To),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,i=[]){let o=cp({},i);return A0(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(In);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new C(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(lp,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(b(Ke))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Mr=null,fp=new E("");function k0(t){if(Mr&&!Mr.get(fp,!1))throw new C(400,!1);M0(),Mr=t;let e=t.get(dp);return j0(t),e}function dc(t,e,r=[]){let n=`Platform: ${e}`,i=new E(n);return(o=[])=>{let s=hp();if(!s||s.injector.get(fp,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):k0(L0(a,n))}return V0(i)}}function L0(t=[],e){return Ke.create({name:e,providers:[{provide:Vo,useValue:"platform"},{provide:lp,useValue:new Set([()=>Mr=null])},...t]})}function V0(t){let e=hp();if(!e)throw new C(401,!1);return e}function hp(){return Mr?.get(dp)??null}function j0(t){t.get(Fu,null)?.forEach(r=>r())}var pp=dc(null,"core",[]),gp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(b(In))},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({});let t=e;return t})();function sr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function mp(t){let e=Ut(t);if(!e)return null;let r=new Jn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Cp=null;function pt(){return Cp}function bp(t){Cp??=t}var es=class{};var me=new E(""),Dc=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(B0),providedIn:"platform"});let t=e;return t})(),Ep=new E(""),B0=(()=>{let e=class e extends Dc{constructor(){super(),this._doc=p(me),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return pt().getBaseHref(this._doc)}onPopState(n){let i=pt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=pt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function wc(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function vp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Nt(t){return t&&t[0]!=="?"?"?"+t:t}var Rt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(Cc),providedIn:"root"});let t=e;return t})(),Ip=new E(""),Cc=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(me).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 wc(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Nt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(b(Dc),b(Ip,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mp=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=wc(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(b(Dc),b(Ip,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ur=(()=>{let e=class e{constructor(n){this._subject=new Q,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=H0(vp(yp(i))),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,i=""){return this.path()==this.normalize(n+Nt(i))}normalize(n){return e.stripTrailingSlash($0(this._basePath,yp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Nt,e.joinWithSlash=wc,e.stripTrailingSlash=vp,e.\u0275fac=function(i){return new(i||e)(b(Rt))},e.\u0275prov=D({token:e,factory:()=>U0(),providedIn:"root"});let t=e;return t})();function U0(){return new ur(b(Rt))}function $0(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function yp(t){return t.replace(/\/index.html$/,"")}function H0(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ts(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var fc=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}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}},gt=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,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 i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new fc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),Dp(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Dp(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(Gt),m(Dn),m(tc))},e.\u0275dir=ne({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Dp(t,e){t.context.$implicit=e.item}var je=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new hc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){wp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){wp("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(Gt),m(Dn))},e.\u0275dir=ne({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),hc=class{constructor(){this.$implicit=null,this.ngIf=null}};function wp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ce(e)}'.`)}function z0(t,e){return new C(2100,!1)}var pc=class{createSubscription(e,r){return ec(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){ec(()=>e.unsubscribe())}},gc=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},G0=new gc,W0=new pc,Qt=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Yt(n))return G0;if(cc(n))return W0;throw z0(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this._ref.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(m(bn,16))},e.\u0275pipe=nf({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var cr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({});let t=e;return t})(),bc="browser",q0="server";function Z0(t){return t===bc}function Ec(t){return t===q0}var _p=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Z0(p(ct))?new mc(p(me),window):new vc});let t=e;return t})(),mc=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=Y0(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function Y0(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var vc=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},ar=class{};var Gr=class{},rs=class{},Mn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Mc=class{encodeKey(e){return Sp(e)}encodeValue(e){return Sp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function J0(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var X0=/%(\d[a-f0-9])/gi,eb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Sp(t){return encodeURIComponent(t).replace(X0,(e,r)=>eb[r]??e)}function ns(t){return`${t}`}var Kt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Mc,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=J0(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(ns):[ns(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ns(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(ns(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var _c=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function tb(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Tp(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Ap(t){return typeof Blob<"u"&&t instanceof Blob}function xp(t){return typeof FormData<"u"&&t instanceof FormData}function nb(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var zr=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(tb(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Mn,this.context??=new _c,!this.params)this.params=new Kt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,o,{params:c,headers:u,context:l,reportProgress:a,responseType:i,withCredentials:s})}},lr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(lr||{}),Wr=class{constructor(e,r=ss.Ok,n="OK"){this.headers=e.headers||new Mn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Sc=class t extends Wr{constructor(e={}){super(e),this.type=lr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},is=class t extends Wr{constructor(e={}){super(e),this.type=lr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},os=class extends Wr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},ss=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(ss||{});function Ic(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Tc=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof zr)s=n;else{let c;o.headers instanceof Mn?c=o.headers:c=new Mn(o.headers);let l;o.params&&(o.params instanceof Kt?l=o.params:l=new Kt({fromObject:o.params})),s=new zr(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=I(s).pipe(Ct(c=>this.handler.handle(c)));if(n instanceof zr||o.observe==="events")return a;let u=a.pipe(fe(c=>c instanceof is));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(T(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(T(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Kt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Ic(o,i))}post(n,i,o={}){return this.request("POST",n,Ic(o,i))}put(n,i,o={}){return this.request("PUT",n,Ic(o,i))}};e.\u0275fac=function(i){return new(i||e)(b(Gr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function Fp(t,e){return e(t)}function rb(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function ib(t,e,r){return(n,i)=>dt(r,()=>e(n,o=>t(o,i)))}var Ac=new E(""),xc=new E(""),ob=new E(""),sb=new E("");function ab(){let t=null;return(e,r)=>{t===null&&(t=(p(Ac,{optional:!0})??[]).reduceRight(rb,Fp));let n=p(En),i=n.add();return t(e,r).pipe(Vt(()=>n.remove(i)))}}var Np=(()=>{let e=class e extends Gr{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(En);let o=p(sb,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(xc),...this.injector.get(ob,[])]));this.chain=o.reduceRight((s,a)=>ib(s,a,this.injector),Fp)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Vt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(b(rs),b(Ee))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var ub=/^\)\]\}',?\n/;function cb(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Rp=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?q(i.\u0275loadImpl()):I(null)).pipe(ce(()=>new B(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((A,M)=>a.setRequestHeader(A,M.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let A=n.detectContentTypeHeader();A!==null&&a.setRequestHeader("Content-Type",A)}if(n.responseType){let A=n.responseType.toLowerCase();a.responseType=A!=="json"?A:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let A=a.statusText||"OK",M=new Mn(a.getAllResponseHeaders()),ie=cb(a)||n.url;return c=new Sc({headers:M,status:a.status,statusText:A,url:ie}),c},d=()=>{let{headers:A,status:M,statusText:ie,url:Oe}=l(),W=null;M!==ss.NoContent&&(W=typeof a.response>"u"?a.responseText:a.response),M===0&&(M=W?ss.Ok:0);let ve=M>=200&&M<300;if(n.responseType==="json"&&typeof W=="string"){let Fe=W;W=W.replace(ub,"");try{W=W!==""?JSON.parse(W):null}catch(rn){W=Fe,ve&&(ve=!1,W={error:rn,text:W})}}ve?(s.next(new is({body:W,headers:A,status:M,statusText:ie,url:Oe||void 0})),s.complete()):s.error(new os({error:W,headers:A,status:M,statusText:ie,url:Oe||void 0}))},f=A=>{let{url:M}=l(),ie=new os({error:A,status:a.status||0,statusText:a.statusText||"Unknown Error",url:M||void 0});s.error(ie)},h=!1,w=A=>{h||(s.next(l()),h=!0);let M={type:lr.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(M.total=A.total),n.responseType==="text"&&a.responseText&&(M.partialText=a.responseText),s.next(M)},j=A=>{let M={type:lr.UploadProgress,loaded:A.loaded};A.lengthComputable&&(M.total=A.total),s.next(M)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",w),u!==null&&a.upload&&a.upload.addEventListener("progress",j)),a.send(u),s.next({type:lr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",w),u!==null&&a.upload&&a.upload.removeEventListener("progress",j)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(b(ar))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Pp=new E(""),lb="XSRF-TOKEN",db=new E("",{providedIn:"root",factory:()=>lb}),fb="X-XSRF-TOKEN",hb=new E("",{providedIn:"root",factory:()=>fb}),as=class{},pb=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ts(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(b(me),b(ct),b(db))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function gb(t,e){let r=t.url.toLowerCase();if(!p(Pp)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(as).getToken(),i=p(hb);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var kp=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(kp||{});function mb(t,e){return{\u0275kind:t,\u0275providers:e}}function vb(...t){let e=[Tc,Rp,Np,{provide:Gr,useExisting:Np},{provide:rs,useExisting:Rp},{provide:xc,useValue:gb,multi:!0},{provide:Pp,useValue:!0},{provide:as,useClass:pb}];for(let r of t)e.push(...r.\u0275providers);return Lo(e)}var Op=new E("");function yb(){return mb(kp.LegacyInterceptors,[{provide:Op,useFactory:ab},{provide:xc,useExisting:Op,multi:!0}])}var Lp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({providers:[vb(yb())]});let t=e;return t})();var Oc=class extends es{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Fc=class t extends Oc{static makeCurrent(){bp(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=wb();return r==null?null:Cb(r)}resetBaseElement(){qr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ts(document.cookie,e)}},qr=null;function wb(){return qr=qr||document.querySelector("base"),qr?qr.getAttribute("href"):null}function Cb(t){return new URL(t,document.baseURI).pathname}var Pc=class{addToWindow(e){be.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new C(5103,!1);return o},be.getAllAngularTestabilities=()=>e.getAllTestabilities(),be.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=be.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};be.frameworkStabilizers||(be.frameworkStabilizers=[]),be.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?pt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},bb=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),kc=new E(""),Up=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new C(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(b(kc),b(z))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),us=class{constructor(e){this._doc=e}},Nc="ng-app-id",$p=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ec(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Nc}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Nc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Nc,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(b(me),b(Oo),b(Pu,8),b(ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Rc={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/MathML/"},Vc=/%COMP%/g,Hp="%COMP%",Eb=`_nghost-${Hp}`,Ib=`_ngcontent-${Hp}`,Mb=!0,_b=new E("",{providedIn:"root",factory:()=>Mb});function Sb(t){return Ib.replace(Vc,t)}function Tb(t){return Eb.replace(Vc,t)}function zp(t,e){return e.map(r=>r.replace(Vc,t))}var Vp=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Ec(u),this.defaultRenderer=new Zr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ot.ShadowDom&&(i=H(g({},i),{encapsulation:ot.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof cs?o.applyToHost(n):o instanceof Yr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case ot.Emulated:s=new cs(c,l,i,this.appId,d,a,u,f);break;case ot.ShadowDom:return new Lc(c,l,n,i,a,u,this.nonce,f);default:s=new Yr(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(b(Up),b($p),b(Oo),b(_b),b(me),b(ct),b(z),b(Pu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Zr=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Rc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(jp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(jp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new C(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Rc[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Rc[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Mt.DashCase|Mt.Important)?e.style.setProperty(r,n,i&Mt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Mt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=pt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function jp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Lc=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=zp(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yr=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?zp(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},cs=class extends Yr{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=Sb(c),this.hostAttr=Tb(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},Ab=(()=>{let e=class e extends us{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(b(me))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Bp=["alt","control","meta","shift"],xb={"\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"},Nb={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Rb=(()=>{let e=class e extends us{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>pt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Bp.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=xb[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Bp.forEach(a=>{if(a!==o){let u=Nb[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(b(me))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function Ob(){Fc.makeCurrent()}function Fb(){return new ut}function Pb(){return Rf(document),document}var kb=[{provide:ct,useValue:bc},{provide:Fu,useValue:Ob,multi:!0},{provide:me,useFactory:Pb,deps:[]}],Gp=dc(pp,"browser",kb),Lb=new E(""),Vb=[{provide:Hr,useClass:Pc,deps:[]},{provide:ac,useClass:Yo,deps:[z,Qo,Hr]},{provide:Yo,useClass:Yo,deps:[z,Qo,Hr]}],jb=[{provide:Vo,useValue:"root"},{provide:ut,useFactory:Fb,deps:[]},{provide:kc,useClass:Ab,multi:!0,deps:[me,z,ct]},{provide:kc,useClass:Rb,multi:!0,deps:[me]},Vp,$p,Up,{provide:Or,useExisting:Vp},{provide:ar,useClass:bb,deps:[]},[]],Wp=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Oo,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(b(Lb,12))},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({providers:[...jb,...Vb],imports:[cr,gp]});let t=e;return t})();var qp=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(b(me))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var N="primary",li=Symbol("RouteTitle"),Hc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function gr(t){return new Hc(t)}function Bb(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function ig(t){return t.length>0?t[t.length-1]:null}function tn(t){return sa(t)?t:Yt(t)?q(Promise.resolve(t)):I(t)}var $b={exact:sg,subset:ag},og={exact:Hb,subset:zb,ignored:()=>!0};function Yp(t,e,r){return $b[r.paths](t.root,e.root,r.matrixParams)&&og[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Hb(t,e){return mt(t,e)}function sg(t,e,r){if(!Sn(t.segments,e.segments)||!fs(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!sg(t.children[n],e.children[n],r))return!1;return!0}function zb(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>rg(t[r],e[r]))}function ag(t,e,r){return ug(t,e,e.segments,r)}function ug(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Sn(i,r)||e.hasChildren()||!fs(i,r,n))}else if(t.segments.length===r.length){if(!Sn(t.segments,r)||!fs(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!ag(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Sn(t.segments,i)||!fs(t.segments,i,n)||!t.children[N]?!1:ug(t.children[N],e,o,n)}}function fs(t,e,r){return e.every((n,i)=>og[r](t[i].parameters,n.parameters))}var Jt=class{constructor(e=new U([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=gr(this.queryParams),this._queryParamMap}toString(){return qb.serialize(this)}},U=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hs(this)}},_n=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=gr(this.parameters),this._parameterMap}toString(){return lg(this)}};function Gb(t,e){return Sn(t,e)&&t.every((r,n)=>mt(r.parameters,e[n].parameters))}function Sn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function Wb(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===N&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==N&&(r=r.concat(e(i,n)))}),r}var di=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new ni,providedIn:"root"});let t=e;return t})(),ni=class{parse(e){let r=new Wc(e);return new Jt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Qr(e.root,!0)}`,n=Qb(e.queryParams),i=typeof e.fragment=="string"?`#${Zb(e.fragment)}`:"";return`${r}${n}${i}`}},qb=new ni;function hs(t){return t.segments.map(e=>lg(e)).join("/")}function Qr(t,e){if(!t.hasChildren())return hs(t);if(e){let r=t.children[N]?Qr(t.children[N],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==N&&n.push(`${i}:${Qr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Wb(t,(n,i)=>i===N?[Qr(t.children[N],!1)]:[`${i}:${Qr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[N]!=null?`${hs(t)}/${r[0]}`:`${hs(t)}/(${r.join("//")})`}}function cg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ls(t){return cg(t).replace(/%3B/gi,";")}function Zb(t){return encodeURI(t)}function Gc(t){return cg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ps(t){return decodeURIComponent(t)}function Qp(t){return ps(t.replace(/\+/g,"%20"))}function lg(t){return`${Gc(t.path)}${Yb(t.parameters)}`}function Yb(t){return Object.entries(t).map(([e,r])=>`;${Gc(e)}=${Gc(r)}`).join("")}function Qb(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${ls(r)}=${ls(i)}`).join("&"):`${ls(r)}=${ls(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Kb=/^[^\/()?;#]+/;function jc(t){let e=t.match(Kb);return e?e[0]:""}var Jb=/^[^\/()?;=#]+/;function Xb(t){let e=t.match(Jb);return e?e[0]:""}var eE=/^[^=?&#]+/;function tE(t){let e=t.match(eE);return e?e[0]:""}var nE=/^[^&#]+/;function rE(t){let e=t.match(nE);return e?e[0]:""}var Wc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[N]=new U(e,r)),n}parseSegment(){let e=jc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new _n(ps(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Xb(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=jc(this.remaining);i&&(n=i,this.capture(n))}e[ps(r)]=ps(n)}parseQueryParam(e){let r=tE(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=rE(this.remaining);s&&(n=s,this.capture(n))}let i=Qp(r),o=Qp(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=jc(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=N);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[N]:new U([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}};function dg(t){return t.segments.length>0?new U([],{[N]:t}):t}function fg(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=fg(i);if(n===N&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new U(t.segments,e);return iE(r)}function iE(t){if(t.numberOfChildren===1&&t.children[N]){let e=t.children[N];return new U(t.segments.concat(e.segments),e.children)}return t}function mr(t){return t instanceof Jt}function oE(t,e,r=null,n=null){let i=hg(t);return pg(i,e,r,n)}function hg(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new U(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=dg(n);return e??i}function pg(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Bc(i,i,i,r,n);let o=sE(e);if(o.toRoot())return Bc(i,i,new U([],{}),r,n);let s=aE(o,i,t),a=s.processChildren?Xr(s.segmentGroup,s.index,o.commands):mg(s.segmentGroup,s.index,o.commands);return Bc(i,s.segmentGroup,a,r,n)}function gs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ri(t){return typeof t=="object"&&t!=null&&t.outlets}function Bc(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=gg(t,e,r);let a=dg(fg(s));return new Jt(a,o,i)}function gg(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=gg(o,e,r)}),new U(t.segments,n)}var ms=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&gs(n[0]))throw new C(4003,!1);let i=n.find(ri);if(i&&i!==ig(n))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function sE(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ms(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ms(r,e,n)}var hr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function aE(t,e,r){if(t.isAbsolute)return new hr(e,!0,0);if(!r)return new hr(e,!1,NaN);if(r.parent===null)return new hr(r,!0,0);let n=gs(t.commands[0])?0:1,i=r.segments.length-1+n;return uE(r,i,t.numberOfDoubleDots)}function uE(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new C(4005,!1);i=n.segments.length}return new hr(n,!1,i-o)}function cE(t){return ri(t[0])?t[0].outlets:{[N]:t}}function mg(t,e,r){if(t??=new U([],{}),t.segments.length===0&&t.hasChildren())return Xr(t,e,r);let n=lE(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==N)&&t.children[N]&&t.numberOfChildren===1&&t.children[N].segments.length===0){let o=Xr(t.children[N],e,r);return new U(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=mg(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new U(t.segments,i)}}function lE(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ri(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Jp(u,c,s))return o;n+=2}else{if(!Jp(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function qc(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=qc(new U([],{}),0,n))}),e}function Kp(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Jp(t,e,r){return t==r.path&&mt(e,r.parameters)}var ei="imperative",de=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(de||{}),Ue=class{constructor(e,r){this.id=e,this.url=r}},vr=class extends Ue{constructor(e,r,n="imperative",i=null){super(e,r),this.type=de.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},et=class extends Ue{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=de.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Be=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Be||{}),vs=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(vs||{}),Xt=class extends Ue{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=de.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},en=class extends Ue{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=de.NavigationSkipped}},ii=class extends Ue{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=de.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ys=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zc=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yc=class extends Ue{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=de.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Qc=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kc=class extends Ue{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=de.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jc=class{constructor(e){this.route=e,this.type=de.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Xc=class{constructor(e){this.route=e,this.type=de.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},el=class{constructor(e){this.snapshot=e,this.type=de.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tl=class{constructor(e){this.snapshot=e,this.type=de.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nl=class{constructor(e){this.snapshot=e,this.type=de.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rl=class{constructor(e){this.snapshot=e,this.type=de.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ds=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=de.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},oi=class{},si=class{constructor(e){this.url=e}};var il=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new fi,this.attachRef=null}},fi=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new il,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ws=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=ol(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=ol(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=sl(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return sl(e,this._root).map(r=>r.value)}};function ol(t,e){if(t===e.value)return e;for(let r of e.children){let n=ol(t,r);if(n)return n}return null}function sl(t,e){if(t===e.value)return[e];for(let r of e.children){let n=sl(t,r);if(n.length)return n.unshift(e),n}return[]}var Re=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function fr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Cs=class extends ws{constructor(e,r){super(e),this.snapshot=r,ml(this,e)}toString(){return this.snapshot.toString()}};function vg(t){let e=fE(t),r=new ue([new _n("",{})]),n=new ue({}),i=new ue({}),o=new ue({}),s=new ue(""),a=new tt(r,n,o,s,i,N,t,e.root);return a.snapshot=e.root,new Cs(new Re(a,[]),e)}function fE(t){let e={},r={},n={},i="",o=new ai([],e,n,i,r,N,t,null,{});return new bs("",new Re(o,[]))}var tt=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(T(c=>c[li]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(T(e=>gr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(T(e=>gr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function gl(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:g(g({},e.params),t.params),data:g(g({},e.data),t.data),resolve:g(g(g(g({},t.data),e.data),i?.data),t._resolvedData)}:n={params:g({},t.params),data:g({},t.data),resolve:g(g({},t.data),t._resolvedData??{})},i&&Dg(i)&&(n.resolve[li]=i.title),n}var ai=class{get title(){return this.data?.[li]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=gr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=gr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},bs=class extends ws{constructor(e,r){super(r),this.url=e,ml(this,r)}toString(){return yg(this._root)}};function ml(t,e){e.value._routerState=t,e.children.forEach(r=>ml(t,r))}function yg(t){let e=t.children.length>0?` { ${t.children.map(yg).join(", ")} } `:"";return`${t.value}${e}`}function Uc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,mt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),mt(e.params,r.params)||t.paramsSubject.next(r.params),Ub(e.url,r.url)||t.urlSubject.next(r.url),mt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function al(t,e){let r=mt(t.params,e.params)&&Gb(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||al(t.parent,e.parent))}function Dg(t){return typeof t.title=="string"||t.title===null}var vl=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=N,this.activateEvents=new Q,this.deactivateEvents=new Q,this.attachEvents=new Q,this.detachEvents=new Q,this.parentContexts=p(fi),this.location=p(Gt),this.changeDetector=p(bn),this.environmentInjector=p(Ee),this.inputBinder=p(Ss,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new ul(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ne({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Qe]});let t=e;return t})(),ul=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===tt?this.route:e===fi?this.childContexts:this.parent.get(e,r)}},Ss=new E(""),Xp=(()=>{let e=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:i}=n,o=Er([i.queryParams,i.params,i.data]).pipe(ce(([s,a,u],c)=>(u=g(g(g({},s),a),u),c===0?I(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=mp(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function hE(t,e,r){let n=ui(t,e._root,r?r._root:void 0);return new Cs(n,e)}function ui(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=pE(t,e,r);return new Re(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ui(t,a)),s}}let n=gE(e.value),i=e.children.map(o=>ui(t,o));return new Re(n,i)}}function pE(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return ui(t,n,i);return ui(t,n)})}function gE(t){return new tt(new ue(t.url),new ue(t.params),new ue(t.queryParams),new ue(t.fragment),new ue(t.data),t.outlet,t.component,t)}var wg="ngNavigationCancelingError";function Cg(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=mr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=bg(!1,Be.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function bg(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[wg]=!0,r.cancellationCode=e,r}function mE(t){return Eg(t)&&mr(t.url)}function Eg(t){return!!t&&t[wg]}var vE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[sp],decls:1,vars:0,template:function(i,o){i&1&&re(0,"router-outlet")},dependencies:[vl],encapsulation:2});let t=e;return t})();function yE(t,e){return t.providers&&!t._injector&&(t._injector=Wo(t.providers,e,`Route: ${t.path}`)),t._injector??e}function yl(t){let e=t.children&&t.children.map(yl),r=e?H(g({},t),{children:e}):g({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==N&&(r.component=vE),r}function vt(t){return t.outlet||N}function DE(t,e){let r=t.filter(n=>vt(n)===e);return r.push(...t.filter(n=>vt(n)!==e)),r}function hi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var wE=(t,e,r,n)=>T(i=>(new cl(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),cl=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Uc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=fr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=fr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new rl(o.value.snapshot))}),e.children.length&&this.forwardEvent(new tl(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Uc(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Uc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=hi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Es=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},pr=class{constructor(e,r){this.component=e,this.route=r}};function CE(t,e,r){let n=t._root,i=e?e._root:null;return Kr(n,i,r,[n.value])}function bE(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Dr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Of(t)?t:e.get(t):n}function Kr(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fr(e);return t.children.forEach(s=>{EE(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ti(a,r.getContext(s),i)),i}function EE(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=IE(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Es(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Kr(t,e,a?a.children:null,n,i):Kr(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new pr(a.outlet.component,s))}else s&&ti(e,a,i),i.canActivateChecks.push(new Es(n)),o.component?Kr(t,null,a?a.children:null,n,i):Kr(t,null,r,n,i);return i}function IE(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Sn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Sn(t.url,e.url)||!mt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!al(t,e)||!mt(t.queryParams,e.queryParams);case"paramsChange":default:return!al(t,e)}}function ti(t,e,r){let n=fr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?ti(s,e.children.getContext(o),r):ti(s,null,r):ti(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new pr(e.outlet.component,i)):r.canDeactivateChecks.push(new pr(null,i)):r.canDeactivateChecks.push(new pr(null,i))}function pi(t){return typeof t=="function"}function ME(t){return typeof t=="boolean"}function _E(t){return t&&pi(t.canLoad)}function SE(t){return t&&pi(t.canActivate)}function TE(t){return t&&pi(t.canActivateChild)}function AE(t){return t&&pi(t.canDeactivate)}function xE(t){return t&&pi(t.canMatch)}function Ig(t){return t instanceof wt||t?.name==="EmptyError"}var ds=Symbol("INITIAL_VALUE");function yr(){return ce(t=>Er(t.map(e=>e.pipe(bt(1),ha(ds)))).pipe(T(e=>{for(let r of e)if(r!==!0){if(r===ds)return ds;if(r===!1||r instanceof Jt)return r}return!0}),fe(e=>e!==ds),bt(1)))}function NE(t,e){return se(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?I(H(g({},r),{guardsResult:!0})):RE(s,n,i,t).pipe(se(a=>a&&ME(a)?OE(n,o,t,e):I(a)),T(a=>H(g({},r),{guardsResult:a})))})}function RE(t,e,r,n){return q(t).pipe(se(i=>VE(i.component,i.route,r,e,n)),nt(i=>i!==!0,!0))}function OE(t,e,r,n){return q(e).pipe(Ct(i=>jn(PE(i.route.parent,n),FE(i.route,n),LE(t,i.path,r),kE(t,i.route,r))),nt(i=>i!==!0,!0))}function FE(t,e){return t!==null&&e&&e(new nl(t)),I(!0)}function PE(t,e){return t!==null&&e&&e(new el(t)),I(!0)}function kE(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let i=n.map(o=>qi(()=>{let s=hi(e)??r,a=Dr(o,s),u=SE(a)?a.canActivate(e,t):dt(s,()=>a(e,t));return tn(u).pipe(nt())}));return I(i).pipe(yr())}function LE(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>bE(s)).filter(s=>s!==null).map(s=>qi(()=>{let a=s.guards.map(u=>{let c=hi(s.node)??r,l=Dr(u,c),d=TE(l)?l.canActivateChild(n,t):dt(c,()=>l(n,t));return tn(d).pipe(nt())});return I(a).pipe(yr())}));return I(o).pipe(yr())}function VE(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{let u=hi(e)??i,c=Dr(a,u),l=AE(c)?c.canDeactivate(t,e,r,n):dt(u,()=>c(t,e,r,n));return tn(l).pipe(nt())});return I(s).pipe(yr())}function jE(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=Dr(s,t),u=_E(a)?a.canLoad(e,r):dt(t,()=>a(e,r));return tn(u)});return I(o).pipe(yr(),Mg(n))}function Mg(t){return ta(X(e=>{if(mr(e))throw Cg(t,e)}),T(e=>e===!0))}function BE(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=Dr(s,t),u=xE(a)?a.canMatch(e,r):dt(t,()=>a(e,r));return tn(u)});return I(o).pipe(yr(),Mg(n))}var ci=class{constructor(e){this.segmentGroup=e||null}},Is=class extends Error{constructor(e){super(),this.urlTree=e}};function dr(t){return Vn(new ci(t))}function UE(t){return Vn(new C(4e3,!1))}function $E(t){return Vn(bg(!1,Be.GuardRejected))}var ll=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return I(n);if(i.numberOfChildren>1||!i.children[N])return UE(e.redirectTo);i=i.children[N]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new Is(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Jt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new U(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},dl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function HE(t,e,r,n,i){let o=Dl(t,e,r);return o.matched?(n=yE(e,n),BE(n,e,r,i).pipe(T(s=>s===!0?o:g({},dl)))):I(o)}function Dl(t,e,r){if(e.path==="**")return zE(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?g({},dl):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||Bb)(r,t,e);if(!i)return g({},dl);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function zE(t){return{matched:!0,parameters:t.length>0?ig(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function eg(t,e,r,n){return r.length>0&&qE(t,r,n)?{segmentGroup:new U(e,WE(n,new U(r,t.children))),slicedSegments:[]}:r.length===0&&ZE(t,r,n)?{segmentGroup:new U(t.segments,GE(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new U(t.segments,t.children),slicedSegments:r}}function GE(t,e,r,n){let i={};for(let o of r)if(Ts(t,e,o)&&!n[vt(o)]){let s=new U([],{});i[vt(o)]=s}return g(g({},n),i)}function WE(t,e){let r={};r[N]=e;for(let n of t)if(n.path===""&&vt(n)!==N){let i=new U([],{});r[vt(n)]=i}return r}function qE(t,e,r){return r.some(n=>Ts(t,e,n)&&vt(n)!==N)}function ZE(t,e,r){return r.some(n=>Ts(t,e,n))}function Ts(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function YE(t,e,r,n){return vt(t)!==n&&(n===N||!Ts(e,r,t))?!1:Dl(e,t,r).matched}function QE(t,e,r){return e.length===0&&!t.children[r]}var fl=class{};function KE(t,e,r,n,i,o,s="emptyOnly"){return new hl(t,e,r,n,i,s,o).recognize()}var JE=31,hl=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ll(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new C(4002,`'${e.segmentGroup}'`)}recognize(){let e=eg(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(T(r=>{let n=new ai([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,{},N,this.rootComponentType,null,{}),i=new Re(n,r),o=new bs("",i),s=oE(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,N).pipe(ke(n=>{if(n instanceof Is)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ci?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=gl(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(T(o=>o instanceof Re?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return q(i).pipe(Ct(o=>{let s=n.children[o],a=DE(r,o);return this.processSegmentGroup(e,a,s,o)}),fa((o,s)=>(o.push(...s),o)),Lt(null),da(),se(o=>{if(o===null)return dr(n);let s=_g(o);return XE(s),I(s)}))}processSegment(e,r,n,i,o,s){return q(r).pipe(Ct(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(ke(u=>{if(u instanceof ci)return I(null);throw u}))),nt(a=>!!a),ke(a=>{if(Ig(a))return QE(n,i,o)?I(new fl):dr(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return YE(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):dr(i):dr(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=Dl(r,i,o);if(!a)return dr(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(se(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s=HE(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(ce(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ce(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new ai(l,f,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,tI(n),vt(n),n.component??n._loadedComponent??null,n,nI(n)),{segmentGroup:w,slicedSegments:j}=eg(r,l,d,u);if(j.length===0&&w.hasChildren())return this.processChildren(c,u,w).pipe(T(M=>M===null?null:new Re(h,M)));if(u.length===0&&j.length===0)return I(new Re(h,[]));let A=vt(n)===o;return this.processSegment(c,u,w,j,A?N:o,!0).pipe(T(M=>new Re(h,M instanceof Re?[M]:[])))}))):dr(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):jE(e,r,n,this.urlSerializer).pipe(se(i=>i?this.configLoader.loadChildren(e,r).pipe(X(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):$E(r))):I({routes:[],injector:e})}};function XE(t){t.sort((e,r)=>e.value.outlet===N?-1:r.value.outlet===N?1:e.value.outlet.localeCompare(r.value.outlet))}function eI(t){let e=t.value.routeConfig;return e&&e.path===""}function _g(t){let e=[],r=new Set;for(let n of t){if(!eI(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=_g(n.children);e.push(new Re(n.value,i))}return e.filter(n=>!r.has(n))}function tI(t){return t.data||{}}function nI(t){return t.resolve||{}}function rI(t,e,r,n,i,o){return se(s=>KE(t,e,r,n,s.extractedUrl,i,o).pipe(T(({state:a,tree:u})=>H(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function iI(t,e){return se(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return I(r);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Sg(u))s.add(c);let a=0;return q(s).pipe(Ct(u=>o.has(u)?oI(u,n,t,e):(u.data=gl(u,u.parent,t).resolve,I(void 0))),X(()=>a++),Bn(1),se(u=>a===s.size?I(r):Pe))})}function Sg(t){let e=t.children.map(r=>Sg(r)).flat();return[t,...e]}function oI(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Dg(i)&&(o[li]=i.title),sI(o,t,e,n).pipe(T(s=>(t._resolvedData=s,t.data=gl(t,t.parent,r).resolve,null)))}function sI(t,e,r,n){let i=zc(t);if(i.length===0)return I({});let o={};return q(i).pipe(se(s=>aI(t[s],e,r,n).pipe(nt(),X(a=>{o[s]=a}))),Bn(1),ca(o),ke(s=>Ig(s)?Pe:Vn(s)))}function aI(t,e,r,n){let i=hi(e)??n,o=Dr(t,i),s=o.resolve?o.resolve(e,r):dt(i,()=>o(e,r));return tn(s)}function $c(t){return ce(e=>{let r=t(e);return r?q(r).pipe(T(()=>e)):I(e)})}var Tg=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===N);return i}getResolvedTitleForRoute(n){return n.data[li]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(uI),providedIn:"root"});let t=e;return t})(),uI=(()=>{let e=class e extends Tg{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(b(qp))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gi=new E("",{providedIn:"root",factory:()=>({})}),Ms=new E(""),wl=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Xo)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=tn(n.loadComponent()).pipe(T(Ag),X(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Vt(()=>{this.componentLoaders.delete(n)})),o=new kn(i,()=>new ge).pipe(Pn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=cI(i,this.compiler,n,this.onLoadEndListener).pipe(Vt(()=>{this.childrenLoaders.delete(i)})),a=new kn(s,()=>new ge).pipe(Pn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cI(t,e,r,n){return tn(t.loadChildren()).pipe(T(Ag),se(i=>i instanceof Fr||Array.isArray(i)?I(i):q(e.compileModuleAsync(i))),T(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(Ms,[],{optional:!0,self:!0}).flat()),{routes:s.map(yl),injector:o}}))}function lI(t){return t&&typeof t=="object"&&"default"in t}function Ag(t){return lI(t)?t.default:t}var Cl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(dI),providedIn:"root"});let t=e;return t})(),dI=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xg=new E(""),Ng=new E("");function fI(t,e,r){let n=t.get(Ng),i=t.get(me);return t.get(z).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),hI(t))),{onViewTransitionCreated:u}=n;return u&&dt(t,()=>u({transition:a,from:e,to:r})),s})}function hI(t){return new Promise(e=>{rc(e,{injector:t})})}var bl=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ge,this.transitionAbortSubject=new ge,this.configLoader=p(wl),this.environmentInjector=p(Ee),this.urlSerializer=p(di),this.rootContexts=p(fi),this.location=p(ur),this.inputBindingEnabled=p(Ss,{optional:!0})!==null,this.titleStrategy=p(Tg),this.options=p(gi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Cl),this.createViewTransition=p(xg,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Jc(o)),i=o=>this.events.next(new Xc(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(H(g(g({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ue({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ei,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fe(s=>s.id!==0),T(s=>H(g({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{this.currentTransition=s;let a=!1,u=!1;return I(s).pipe(X(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?H(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ce(c=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new en(c.id,this.urlSerializer.serialize(c.rawUrl),f,vs.IgnoredSameUrlNavigation)),c.resolve(null),Pe}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return I(c).pipe(ce(f=>{let h=this.transitions?.getValue();return this.events.next(new vr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Pe:Promise.resolve(f)}),rI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),X(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=H(g({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ys(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:w,restoredState:j,extras:A}=c,M=new vr(f,this.urlSerializer.serialize(h),w,j);this.events.next(M);let ie=vg(this.rootComponentType).snapshot;return this.currentTransition=s=H(g({},c),{targetSnapshot:ie,urlAfterRedirects:h,extras:H(g({},A),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,I(s)}else{let f="";return this.events.next(new en(c.id,this.urlSerializer.serialize(c.extractedUrl),f,vs.IgnoredByUrlHandlingStrategy)),c.resolve(null),Pe}}),X(c=>{let l=new Zc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),T(c=>(this.currentTransition=s=H(g({},c),{guards:CE(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),NE(this.environmentInjector,c=>this.events.next(c)),X(c=>{if(s.guardsResult=c.guardsResult,mr(c.guardsResult))throw Cg(this.urlSerializer,c.guardsResult);let l=new Yc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),fe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Be.GuardRejected),!1)),$c(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(X(l=>{let d=new Qc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ce(l=>{let d=!1;return I(l).pipe(iI(this.paramsInheritanceStrategy,this.environmentInjector),X({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Be.NoDataFromResolver)}}))}),X(l=>{let d=new Kc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),$c(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(X(h=>{d.component=h}),T(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Er(l(c.targetSnapshot.root)).pipe(Lt(null),bt(1))}),$c(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?q(d).pipe(T(()=>s)):I(s)}),T(c=>{let l=hE(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=H(g({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),X(()=>{this.events.next(new oi)}),wE(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),bt(1),X({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new et(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),pa(this.transitionAbortSubject.pipe(X(c=>{throw c}))),Vt(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",Be.SupersededByNewNavigation),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),ke(c=>{if(u=!0,Eg(c))this.events.next(new Xt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),mE(c)?this.events.next(new si(c.url)):s.resolve(!1);else{this.events.next(new ii(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Pe}))}))}cancelNavigationTransition(n,i,o){let s=new Xt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pI(t){return t!==ei}var gI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(mI),providedIn:"root"});let t=e;return t})(),pl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},mI=(()=>{let e=class e extends pl{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=rr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(vI),providedIn:"root"});let t=e;return t})(),vI=(()=>{let e=class e extends Rg{constructor(){super(...arguments),this.location=p(ur),this.urlSerializer=p(di),this.options=p(gi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Cl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Jt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=vg(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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof vr)this.stateMemento=this.createStateMemento();else if(n instanceof en)this.rawUrlTree=i.initialUrl;else if(n instanceof ys){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof oi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Xt&&(n.code===Be.GuardRejected||n.code===Be.NoDataFromResolver)?this.restoreHistory(i):n instanceof ii?this.restoreHistory(i,!0):n instanceof et&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=g(g({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=g(g({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=rr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Jr||{});function Og(t,e){t.events.pipe(fe(r=>r instanceof et||r instanceof Xt||r instanceof ii||r instanceof en),T(r=>r instanceof et||r instanceof en?Jr.COMPLETE:(r instanceof Xt?r.code===Be.Redirect||r.code===Be.SupersededByNewNavigation:!1)?Jr.REDIRECTING:Jr.FAILED),fe(r=>r!==Jr.REDIRECTING),bt(1)).subscribe(()=>{e()})}function yI(t){throw t}var DI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ie=(()=>{let e=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.isNgZoneEnabled=!1,this.console=p(Zo),this.stateManager=p(Rg),this.options=p(gi,{optional:!0})||{},this.pendingTasks=p(En),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(bl),this.urlSerializer=p(di),this.location=p(ur),this.urlHandlingStrategy=p(Cl),this._events=new ge,this.errorHandler=this.options.errorHandler||yI,this.navigated=!1,this.routeReuseStrategy=p(gI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Ms,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Ss,{optional:!0}),this.eventsSubscription=new te,this.isNgZoneEnabled=p(z)instanceof z&&z.isInAngularZone(),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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Xt&&i.code!==Be.Redirect&&i.code!==Be.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof et)this.navigated=!0;else if(i instanceof si){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||pI(o.source)};this.scheduleNavigation(a,ei,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}bI(i)&&this._events.next(i)}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),ei,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(yl),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=g(g({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=hg(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return pg(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=mr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ei,null,i)}navigate(n,i={skipLocationChange:!1}){return CI(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=g({},DI):i===!1?o=g({},wI):o=i,mr(n))return Yp(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Yp(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return Og(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function CI(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new ge,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof et&&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.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||i||o||s||a||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(u,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 i=this.href===null?null:fh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(m(Ie),m(tt),Hu("tabindex"),m(ft),m(Ae),m(Rt))},e.\u0275dir=ne({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&ee("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&ir("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",sr],skipLocationChange:[le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",sr],replaceUrl:[le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",sr],routerLink:"routerLink"},standalone:!0,features:[sc,Qe]});let t=e;return t})(),Fg=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Q,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof et&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(kt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=q(n).pipe(kt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let i=EI(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(m(Ie),m(Ae),m(ft),m(bn),m($e,8))},e.\u0275dir=ne({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&tp(s,$e,5),i&2){let a;np(a=rp())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Qe]});let t=e;return t})();function EI(t){return!!t.paths}var _s=class{};var II=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(fe(n=>n instanceof et),Ct(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Wo(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return q(o).pipe(kt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=I(null);let s=o.pipe(se(a=>a===null?I(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return q([s,a]).pipe(kt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(b(Ie),b(Xo),b(Ee),b(_s),b(wl))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Pg=new E(""),MI=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.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 vr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof et?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof en&&n.code===vs.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 Ds&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ds(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Mh()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function _I(t){return t.routerState.root}function mi(t,e){return{\u0275kind:t,\u0275providers:e}}function SI(){let t=p(Ke);return e=>{let r=t.get(In);if(e!==r.components[0])return;let n=t.get(Ie),i=t.get(kg);t.get(El)===1&&n.initialNavigation(),t.get(Lg,null,L.Optional)?.setUpPreloading(),t.get(Pg,null,L.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var kg=new E("",{factory:()=>new ge}),El=new E("",{providedIn:"root",factory:()=>1});function TI(){return mi(2,[{provide:El,useValue:0},{provide:Ko,multi:!0,deps:[Ke],useFactory:e=>{let r=e.get(Ep,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ie),o=e.get(kg);Og(i,()=>{n(!0)}),e.get(bl).afterPreactivation=()=>(n(!0),o.closed?I(void 0):o),i.initialNavigation()}))}}])}function AI(){return mi(3,[{provide:Ko,multi:!0,useFactory:()=>{let e=p(Ie);return()=>{e.setUpLocationChangeListener()}}},{provide:El,useValue:2}])}var Lg=new E("");function xI(t){return mi(0,[{provide:Lg,useExisting:II},{provide:_s,useExisting:t}])}function NI(){return mi(8,[Xp,{provide:Ss,useExisting:Xp}])}function RI(t){let e=[{provide:xg,useValue:fI},{provide:Ng,useValue:g({skipNextTransition:!!t?.skipInitialTransition},t)}];return mi(9,e)}var tg=new E("ROUTER_FORROOT_GUARD"),OI=[ur,{provide:di,useClass:ni},Ie,fi,{provide:tt,useFactory:_I,deps:[Ie]},wl,[]],Ft=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[OI,[],{provide:Ms,multi:!0,useValue:n},{provide:tg,useFactory:LI,deps:[[Ie,new ko,new Vu]]},{provide:gi,useValue:i||{}},i?.useHash?PI():kI(),FI(),i?.preloadingStrategy?xI(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?VI(i):[],i?.bindToComponentInputs?NI().\u0275providers:[],i?.enableViewTransitions?RI().\u0275providers:[],jI()]}}static forChild(n){return{ngModule:e,providers:[{provide:Ms,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(b(tg,8))},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({});let t=e;return t})();function FI(){return{provide:Pg,useFactory:()=>{let t=p(_p),e=p(z),r=p(gi),n=p(bl),i=p(di);return r.scrollOffset&&t.setOffset(r.scrollOffset),new MI(i,n,t,e,r)}}}function PI(){return{provide:Rt,useClass:Mp}}function kI(){return{provide:Rt,useClass:Cc}}function LI(t){return"guarded"}function VI(t){return[t.initialNavigation==="disabled"?AI().\u0275providers:[],t.initialNavigation==="enabledBlocking"?TI().\u0275providers:[]]}var ng=new E("");function jI(){return[{provide:ng,useFactory:SI},{provide:Jo,multi:!0,useExisting:ng}]}var yt=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(ke(n=>(console.error(n),I([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(ke(i=>(console.error(i),I([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}};e.\u0275fac=function(i){return new(i||e)(b(Tc))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var BI=t=>["/books",t];function UI(t,e){if(t&1&&(v(0,"li")(1,"a",6),_(2),v(3,"p",7),_(4),y()()()),t&2){let r=e.$implicit;F(),V("routerLink",qo(3,BI,r.isbn)),F(),Xe(" ",r.title," "),F(2),ht(r.subtitle)}}function $I(t,e){t&1&&(v(0,"li"),_(1,"No results"),y())}function HI(t,e){if(t&1&&(v(0,"ul",3),K(1,UI,5,5,"li",4)(2,$I,2,0,"li",5),y()),t&2){let r=e.ngIf;F(),V("ngForOf",r),F(),V("ngIf",!r.length)}}var Vg=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new ge,this.isLoading=!1,this.results$=this.input$.pipe(fe(i=>i.length>=3),ua(500),la(),X(()=>this.isLoading=!0),ce(i=>this.service.getAllSearch(i)),X(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(m(yt))},e.\u0275cmp=ae({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["type","search","autocomplete","off","aria-label","Search",3,"input"],["searchInput",""],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=xt();v(0,"input",0,1),ee("input",function(){Tt(s);let u=ip(1);return At(o.input$.next(u.value))}),y(),K(2,HI,3,2,"ul",2),qt(3,"async")}i&2&&(or("loading",o.isLoading),F(2),V("ngIf",Zt(3,3,o.results$)))},dependencies:[gt,je,$e,Qt]});let t=e;return t})();var jg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Home"),y(),v(2,"a",0),_(3,` Show book list +`),y(),v(4,"h2"),_(5,"Search"),y(),re(6,"bm-search"))},dependencies:[$e,Vg]});let t=e;return t})();var GI=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:jg}],Bg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({imports:[Ft.forRoot(GI),Ft]});let t=e;return t})();var As=(()=>{let e=class e{constructor(){this._isAuthenticated$=new ue(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function WI(t,e){if(t&1){let r=xt();v(0,"button",6),ee("click",function(){Tt(r);let i=xe();return At(i.auth.login())}),_(1,"Login"),y()}}function qI(t,e){if(t&1){let r=xt();v(0,"button",7),ee("click",function(){Tt(r);let i=xe();return At(i.auth.logout())}),_(1,"Logout"),y()}}var $g=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(m(As))},e.\u0275cmp=ae({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,o){i&1&&(v(0,"nav")(1,"a",0),_(2,"Home"),y(),v(3,"a",1),_(4,"Books"),y(),v(5,"a",2),_(6,"Administration"),y(),v(7,"div",3),K(8,WI,2,0,"button",4)(9,qI,2,0,"button",5),y()(),v(10,"main"),re(11,"router-outlet"),y()),i&2&&(F(8),V("ngIf",!o.auth.isAuthenticated),F(),V("ngIf",o.auth.isAuthenticated))},dependencies:[je,vl,$e,Fg]});let t=e;return t})();function ZI(t,e){if(t&1&&(v(0,"p",10),_(1),y()),t&2){let r=xe().ngIf;F(),ht(r.subtitle)}}function YI(t,e){if(t&1&&(v(0,"li"),_(1),y()),t&2){let r=e.$implicit;F(),ht(r)}}function QI(t,e){if(t&1&&(v(0,"div")(1,"h2"),_(2,"Published"),y(),_(3),y()),t&2){let r=xe().ngIf;F(3),Xe(" ",r.published," ")}}function KI(t,e){if(t&1&&re(0,"img",11),t&2){let r=xe().ngIf;V("src",r.thumbnailUrl,Ur)}}var JI=t=>["/admin/edit",t];function XI(t,e){if(t&1){let r=xt();v(0,"div",1)(1,"h1"),_(2),y(),K(3,ZI,2,1,"p",2),v(4,"div",3)(5,"div")(6,"h2"),_(7,"Authors"),y(),v(8,"ul"),K(9,YI,2,1,"li",4),y()(),v(10,"div")(11,"h2"),_(12,"ISBN"),y(),_(13),y(),K(14,QI,4,1,"div",5),y(),v(15,"h2"),_(16,"Description"),y(),v(17,"p"),_(18),y(),K(19,KI,1,1,"img",6),v(20,"a",7),_(21,"Back to list"),y(),v(22,"button",8),ee("click",function(){let o=Tt(r).ngIf,s=xe();return At(s.removeBook(o.isbn))}),_(23," Remove book "),y(),v(24,"a",9),_(25," Edit book "),y()()}if(t&2){let r=e.ngIf;F(2),ht(r.title),F(),V("ngIf",r.subtitle),F(6),V("ngForOf",r.authors),F(4),Xe(" ",r.isbn," "),F(),V("ngIf",r.published),F(4),ht(r.description),F(),V("ngIf",r.thumbnailUrl),F(5),V("routerLink",qo(8,JI,r.isbn))}}var Hg=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){window.confirm("Remove book?")&&this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(m(yt),m(tt),m(Ie))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(i,o){i&1&&(K(0,XI,26,10,"div",0),qt(1,"async")),i&2&&V("ngIf",Zt(1,1,o.book$))},dependencies:[gt,je,$e,Qt]});let t=e;return t})();function eM(t,e){if(t&1&&re(0,"img",6),t&2){let r=xe(2);V("src",r.book.thumbnailUrl,Ur)}}function tM(t,e){if(t&1&&(v(0,"p",7),_(1),y()),t&2){let r=xe(2);F(),Xe(" ",r.book.subtitle," ")}}function nM(t,e){if(t&1&&(v(0,"li"),_(1),y()),t&2){let r=e.$implicit;F(),Xe(" ",r," ")}}function rM(t,e){if(t&1&&(v(0,"a",1),K(1,eM,1,1,"img",2),v(2,"h2"),_(3),y(),K(4,tM,2,1,"p",3),v(5,"ul",4),K(6,nM,2,1,"li",5),y(),v(7,"div"),_(8),y()()),t&2){let r=xe();V("routerLink",r.book.isbn),F(),V("ngIf",r.book.thumbnailUrl),F(2),ht(r.book.title),F(),V("ngIf",r.book.subtitle),F(2),V("ngForOf",r.book.authors),F(2),Xe("ISBN ",r.book.isbn,"")}}var zg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&K(0,rM,9,6,"a",0),i&2&&V("ngIf",o.book)},dependencies:[gt,je,$e]});let t=e;return t})();function oM(t,e){if(t&1&&(v(0,"li"),re(1,"bm-book-list-item",4),y()),t&2){let r=e.$implicit;F(),V("book",r)}}function sM(t,e){t&1&&(v(0,"li"),_(1," No books available. "),y())}function aM(t,e){if(t&1&&(v(0,"ul",1),K(1,oM,2,1,"li",2)(2,sM,2,0,"li",3),y()),t&2){let r=e.ngIf;F(),V("ngForOf",r),F(),V("ngIf",!r.length)}}var Gg=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(m(yt))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Books"),y(),K(2,aM,3,2,"ul",0),qt(3,"async")),i&2&&(F(2),V("ngIf",Zt(3,1,o.books$)))},dependencies:[gt,je,zg,Qt]});let t=e;return t})();var uM=[{path:"books",component:Gg},{path:"books/:isbn",component:Hg}],Wg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({imports:[Ft.forChild(uM),Ft]});let t=e;return t})();var qg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({imports:[cr,Wg]});let t=e;return t})();var Zg=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(b(As))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var nm=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(m(ft),m(Ae))},e.\u0275dir=ne({type:e});let t=e;return t})(),cM=(()=>{let e=class e extends nm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=rr(e)))(o||e)}})(),e.\u0275dir=ne({type:e,features:[Je]});let t=e;return t})(),Vs=new E("");var lM={provide:Vs,useExisting:lt(()=>js),multi:!0};function dM(){let t=pt()?pt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var fM=new E(""),js=(()=>{let e=class e extends nm{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!dM())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(m(ft),m(Ae),m(fM,8))},e.\u0275dir=ne({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&ee("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Wt([lM]),Je]});let t=e;return t})();function nn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function rm(t){return t!=null&&typeof t.length=="number"}var Bs=new E(""),Us=new E(""),hM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,An=class{static min(e){return pM(e)}static max(e){return gM(e)}static required(e){return mM(e)}static requiredTrue(e){return vM(e)}static email(e){return yM(e)}static minLength(e){return DM(e)}static maxLength(e){return wM(e)}static pattern(e){return CM(e)}static nullValidator(e){return im(e)}static compose(e){return lm(e)}static composeAsync(e){return fm(e)}};function pM(t){return e=>{if(nn(e.value)||nn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(nn(e.value)||nn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function mM(t){return nn(t.value)?{required:!0}:null}function vM(t){return t.value===!0?null:{required:!0}}function yM(t){return nn(t.value)||hM.test(t.value)?null:{email:!0}}function DM(t){return e=>nn(e.value)||!rm(e.value)?null:e.value.lengthrm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function CM(t){if(!t)return im;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(nn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function im(t){return null}function om(t){return t!=null}function sm(t){return Yt(t)?q(t):t}function am(t){let e={};return t.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function um(t,e){return e.map(r=>r(t))}function bM(t){return!t.validate}function cm(t){return t.map(e=>bM(e)?e:r=>e.validate(r))}function lm(t){if(!t)return null;let e=t.filter(om);return e.length==0?null:function(r){return am(um(r,e))}}function dm(t){return t!=null?lm(cm(t)):null}function fm(t){if(!t)return null;let e=t.filter(om);return e.length==0?null:function(r){let n=um(r,e).map(sm);return aa(n).pipe(T(am))}}function hm(t){return t!=null?fm(cm(t)):null}function Yg(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function pm(t){return t._rawValidators}function gm(t){return t._rawAsyncValidators}function Il(t){return t?Array.isArray(t)?t:[t]:[]}function Ns(t,e){return Array.isArray(t)?t.includes(e):t===e}function Qg(t,e){let r=Il(e);return Il(t).forEach(i=>{Ns(r,i)||r.push(i)}),r}function Kg(t,e){return Il(e).filter(r=>!Ns(t,r))}var Rs=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=dm(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=hm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},He=class extends Rs{get formDirective(){return null}get path(){return null}},wi=class extends Rs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Os=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},EM={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},_F=H(g({},EM),{"[class.ng-submitted]":"isSubmitted"}),mm=(()=>{let e=class e extends Os{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(wi,2))},e.\u0275dir=ne({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&or("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Je]});let t=e;return t})(),vm=(()=>{let e=class e extends Os{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(He,10))},e.\u0275dir=ne({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&or("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Je]});let t=e;return t})();var yi="VALID",xs="INVALID",wr="PENDING",Di="DISABLED";function Ml(t){return($s(t)?t.validators:t)||null}function IM(t){return Array.isArray(t)?dm(t):t||null}function _l(t,e){return($s(e)?e.asyncValidators:t)||null}function MM(t){return Array.isArray(t)?hm(t):t||null}function $s(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function ym(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new C(1e3,"");if(!n[r])throw new C(1001,"")}function Dm(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new C(1002,"")})}var Ci=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===yi}get invalid(){return this.status===xs}get pending(){return this.status==wr}get disabled(){return this.status===Di}get enabled(){return this.status!==Di}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Qg(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Qg(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Kg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Kg(e,this._rawAsyncValidators))}hasValidator(e){return Ns(this._rawValidators,e)}hasAsyncValidator(e){return Ns(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=wr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Di,this.errors=null,this._forEachChild(n=>{n.disable(H(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=yi,this._forEachChild(n=>{n.enable(H(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(H(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yi||this.status===wr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Di:yi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=wr,this._hasOwnPendingAsyncValidator=!0;let r=sm(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Q,this.statusChanges=new Q}_calculateStatus(){return this._allControlsDisabled()?Di:this.errors?xs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wr)?wr:this._anyControlsHaveStatus(xs)?xs:yi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){$s(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=IM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=MM(this._rawAsyncValidators)}},Fs=class extends Ci{constructor(e,r,n){super(Ml(r),_l(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){Dm(this,!0,e),Object.keys(e).forEach(n=>{ym(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var wm=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Sl}),Sl="always";function Tl(t,e){return[...e.path,t]}function Jg(t,e,r=Sl){Al(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),SM(t,e),AM(t,e),TM(t,e),_M(t,e)}function Xg(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),ks(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ps(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function _M(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Al(t,e){let r=pm(t);e.validator!==null?t.setValidators(Yg(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=gm(t);e.asyncValidator!==null?t.setAsyncValidators(Yg(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Ps(e._rawValidators,i),Ps(e._rawAsyncValidators,i)}function ks(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=pm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=gm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Ps(e._rawValidators,n),Ps(e._rawAsyncValidators,n),r}function SM(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Cm(t,e)})}function TM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Cm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Cm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AM(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function xM(t,e){t==null,Al(t,e)}function NM(t,e){return ks(t,e)}function RM(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function OM(t){return Object.getPrototypeOf(t.constructor)===cM}function FM(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function PM(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===js?r=o:OM(o)?n=o:i=o}),i||n||r||null}function kM(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function em(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function tm(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Dt=class extends Ci{constructor(e=null,r,n){super(Ml(r),_l(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$s(r)&&(r.nonNullable||r.initialValueIsDefault)&&(tm(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){em(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){em(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){tm(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var LM=t=>t instanceof Dt,VM=(()=>{let e=class e extends He{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Tl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=rr(e)))(o||e)}})(),e.\u0275dir=ne({type:e,features:[Je]});let t=e;return t})();var bm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ne({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Em=new E("");var jM={provide:He,useExisting:lt(()=>Hs)},Hs=(()=>{let e=class e extends He{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Q,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ks(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Jg(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Xg(n.control||null,n,!1),kM(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,FM(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Xg(i||null,n),LM(o)&&(Jg(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);xM(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&NM(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Al(this.form,this),this._oldForm&&ks(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(m(Bs,10),m(Us,10),m(wm,8))},e.\u0275dir=ne({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[le.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([jM]),Je,Qe]});let t=e;return t})(),BM={provide:He,useExisting:lt(()=>Im)},Im=(()=>{let e=class e extends VM{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){Mm(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m(He,13),m(Bs,10),m(Us,10))},e.\u0275dir=ne({type:e,selectors:[["","formGroupName",""]],inputs:{name:[le.None,"formGroupName","name"]},features:[Wt([BM]),Je]});let t=e;return t})(),UM={provide:He,useExisting:lt(()=>zs)},zs=(()=>{let e=class e extends He{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Tl(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Mm(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m(He,13),m(Bs,10),m(Us,10))},e.\u0275dir=ne({type:e,selectors:[["","formArrayName",""]],inputs:{name:[le.None,"formArrayName","name"]},features:[Wt([UM]),Je]});let t=e;return t})();function Mm(t){return!(t instanceof Im)&&!(t instanceof Hs)&&!(t instanceof zs)}var $M={provide:wi,useExisting:lt(()=>xl)},xl=(()=>{let e=class e extends wi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Q,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=PM(this,s)}ngOnChanges(n){this._added||this._setUpControl(),RM(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Tl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(m(He,13),m(Bs,10),m(Us,10),m(Vs,10),m(Em,8))},e.\u0275dir=ne({type:e,selectors:[["","formControlName",""]],inputs:{name:[le.None,"formControlName","name"],isDisabled:[le.None,"disabled","isDisabled"],model:[le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Wt([$M]),Je,Qe]});let t=e;return t})();var HM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({});let t=e;return t})(),Ls=class extends Ci{constructor(e,r,n){super(Ml(r),_l(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){Dm(this,!1,e),e.forEach((n,i)=>{ym(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var _m=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Em,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:wm,useValue:n.callSetDisabledState??Sl}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({imports:[HM]});let t=e;return t})();var Sm=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(m(ft),m(Ae))},t.\u0275dir=ne({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&ee("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[Wt([{provide:Vs,useExisting:lt(()=>t),multi:!0}])]}),t})();function WM(t,e){if(t&1&&re(0,"input",17),t&2){let r=e.index;V("formControlName",r),ir("aria-label","Author "+r)}}var Gs=(()=>{let e=class e{constructor(){this.submitBook=new Q,this.form=new Fs({title:new Dt("",{nonNullable:!0,validators:An.required}),subtitle:new Dt("",{nonNullable:!0}),isbn:new Dt("",{nonNullable:!0,validators:[An.required,An.minLength(10),An.maxLength(13)]}),description:new Dt("",{nonNullable:!0}),published:new Dt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new Dt("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new Ls(n.map(i=>new Dt(i,{nonNullable:!0})))}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new Dt("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=H(g({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[Qe],decls:27,vars:3,consts:[[3,"formGroup","ngSubmit"],["for","title"],["id","title","formControlName","title"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,o){i&1&&(v(0,"form",0),ee("ngSubmit",function(){return o.submitForm()}),v(1,"label",1),_(2,"Title"),y(),re(3,"input",2),v(4,"label",3),_(5,"Subtitle"),y(),re(6,"input",4),v(7,"label",5),_(8,"ISBN"),y(),re(9,"input",6),v(10,"label"),_(11,"Authors"),y(),v(12,"button",7),ee("click",function(){return o.addAuthorControl()}),_(13," + Author "),y(),v(14,"fieldset",8),K(15,WM,1,2,"input",9),y(),v(16,"label",10),_(17,"Description"),y(),re(18,"textarea",11),v(19,"label",12),_(20,"Published"),y(),re(21,"input",13),v(22,"label",14),_(23,"Thumbnail URL"),y(),re(24,"input",15),v(25,"button",16),_(26," Save "),y()()),i&2&&(V("formGroup",o.form),F(15),V("ngForOf",o.authors.controls),F(10),V("disabled",o.form.invalid))},dependencies:[gt,bm,js,mm,vm,Hs,xl,zs,Sm]});let t=e;return t})();var Am=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(yt),m(Ie))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Create Book"),y(),v(2,"bm-book-form",0),ee("submitBook",function(a){return o.create(a)}),y())},dependencies:[Gs]});let t=e;return t})();function qM(t,e){if(t&1){let r=xt();v(0,"bm-book-form",1),ee("submitBook",function(i){Tt(r);let o=xe();return At(o.update(i))}),y()}if(t&2){let r=e.ngIf;V("book",r)}}var xm=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(T(s=>s.get("isbn")),ce(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(yt),m(tt),m(Ie))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Edit Book"),y(),K(2,qM,1,1,"bm-book-form",0),qt(3,"async")),i&2&&(F(2),V("ngIf",Zt(3,1,o.book$)))},dependencies:[je,Gs,Qt]});let t=e;return t})();var ZM=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:Am},{path:"admin/edit/:isbn",component:xm}],Nm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({imports:[Ft.forChild(ZM),Ft]});let t=e;return t})();var Rm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=Y({imports:[cr,Nm,_m]});let t=e;return t})();var Om=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e,bootstrap:[$g]}),e.\u0275inj=Y({providers:[{provide:Ac,useClass:Zg,multi:!0}],imports:[Wp,Bg,Lp,qg,Rm]});let t=e;return t})();Gp().bootstrapModule(Om).catch(t=>console.error(t)); diff --git a/polyfills-RX4V3J3S.js b/polyfills-RT5I6R6G.js similarity index 71% rename from polyfills-RX4V3J3S.js rename to polyfills-RT5I6R6G.js index eba136a..96a6393 100644 --- a/polyfills-RX4V3J3S.js +++ b/polyfills-RT5I6R6G.js @@ -1,2 +1,2 @@ -(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let se=class se{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=se.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ne}static __load_patch(t,s,o=!1){if(oe.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),oe[t]=s(e,se,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=ne;ne=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(f){if(this._zoneDelegate.handleError(this,f))throw f}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,ne=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new p(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new p(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new p(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let f={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,f)}}}class p{constructor(t,s,o,v,F,f){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=f,!o)throw new Error("callback is not defined");this.callback=o;let u=this;t===K&&v&&v.useG?this.invoke=p.invokeTask:this.invoke=function(){return p.invokeTask.call(e,u,this,arguments)}}static invokeTask(t,s,o){t||(t=this),ee++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{ee==1&&E(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),O=l("Promise"),Z=l("then"),B=[],j=!1,J;function q(L){if(J||e[O]&&(J=e[O].resolve(0)),J){let t=J[Z];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){ee===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!j){for(j=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},ne=null,ee=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var ge=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,Me=Object.getPrototypeOf,ct=Object.create,at=Array.prototype.slice,Le="addEventListener",je="removeEventListener",De=Zone.__symbol__(Le),Oe=Zone.__symbol__(je),ce="true",ae="false",me=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function He(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var A=Zone.__symbol__,we=typeof window<"u",Te=we?window:void 0,Y=we&&Te||globalThis,lt="removeAttribute";function xe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function ut(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,xe(arguments,c+"."+a))};return le(b,_),b})(l)}}}function $e(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",Ge=!Re&&!Je&&!!(we&&Te.HTMLElement),Ke=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!Je&&!!(we&&Te.HTMLElement),Pe={},qe=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=A("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(Ge&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function Xe(e,n,c){let r=ge(e,n);if(!r&&c&&ge(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=A("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=Pe[_];b||(b=Pe[_]=A("ON_PROPERTY"+_)),r.set=function(k){let p=this;if(!p&&e===Y&&(p=Y),!p)return;typeof p[b]=="function"&&p.removeEventListener(_,qe),y&&y.call(p,null),p[b]=k,typeof k=="function"&&p.addEventListener(_,qe,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let p=k[b];if(p)return p;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[lt]=="function"&&k.removeAttribute(n),I}return null},Ie(e,n,r),e[a]=!0}function Qe(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?He(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function le(e,n){e[A("OriginalDelegate")]=n}var ze=!1,Ze=!1;function ht(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function dt(){if(ze)return Ze;ze=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(f){if(f&&f.toString===Object.prototype.toString){let u=f.constructor&&f.constructor.name;return(u||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),p=y("then"),I="__creationTrace__";c.onUnhandledError=f=>{if(c.showUncaughtError()){let u=f&&f.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(f)}},c.microtaskDrainDone=()=>{for(;_.length;){let f=_.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(u){Z(u)}}};let O=y("unhandledPromiseRejectionHandler");function Z(f){c.onUnhandledError(f);try{let u=n[O];typeof u=="function"&&u.call(this,f)}catch{}}function B(f){return f&&f.then}function j(f){return f}function J(f){return t.reject(f)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(f,u){return i=>{try{z(f,u,i)}catch(h){z(f,!1,h)}}}let P=function(){let f=!1;return function(i){return function(){f||(f=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",oe=y("currentTaskTrace");function z(f,u,i){let h=P();if(f===i)throw new TypeError(K);if(f[q]===M){let m=null;try{(typeof i=="object"||typeof i=="function")&&(m=i&&i.then)}catch(w){return h(()=>{z(f,!1,w)})(),f}if(u!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)ne(i),z(f,i[q],i[R]);else if(u!==x&&typeof m=="function")try{m.call(i,h(N(f,u)),h(N(f,!1)))}catch(w){h(()=>{z(f,!1,w)})()}else{f[q]=u;let w=f[R];if(f[R]=i,f[E]===E&&u===T&&(f[q]=f[H],f[R]=f[$]),u===x&&i instanceof Error){let g=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];g&&a(i,oe,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g{try{let C=f[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=u.run(g,void 0,S&&g!==J&&g!==j?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",se=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(u){return u instanceof t?u:z(new this(null),T,u)}static reject(u){return z(new this(null),x,u)}static withResolvers(){let u={};return u.promise=new t((i,h)=>{u.resolve=i,u.reject=h}),u}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let g of u)h++,i.push(t.resolve(g))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let m=!1,w=[];return new t((g,C)=>{for(let S=0;S{m||(m=!0,g(D))},D=>{w.push(D),h--,h===0&&(m=!0,C(new L(w,"All promises were rejected")))})})}static race(u){let i,h,m=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function g(C){h(C)}for(let C of u)B(C)||(C=this.resolve(C)),C.then(w,g);return m}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(u,i){let h,m,w=new this((D,G)=>{h=D,m=G}),g=2,C=0,S=[];for(let D of u){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,g--,g===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),g--,g===0&&h(S)):m(V)})}catch(V){m(V)}g++,C++}return g-=2,g===0&&h(S),w}constructor(u){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();u&&u(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let m=new h(se),w=n.current;return this[q]==M?this[R].push(w,m,u,i):ee(this,w,m,u,i),m}catch(u){return this.then(null,u)}finally(u){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(se);h[E]=E;let m=n.current;return this[q]==M?this[R].push(m,h,u,u):ee(this,m,h,u,u),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(f){let u=f.prototype,i=r(u,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=u.then;u[p]=h,f.prototype.then=function(m,w){return new t((C,S)=>{h.call(this,C,S)}).then(m,w)},f[o]=!0}c.patchThen=v;function F(f){return function(u,i){let h=f.apply(u,i);if(h instanceof t)return h;let m=h.constructor;return m[o]||v(m),h}}return s&&(v(s),ue(e,"fetch",f=>F(f))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=A("OriginalDelegate"),r=A("Promise"),a=A("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let p=e[r];if(p)return n.call(p)}if(this===Error){let p=e[a];if(p)return n.call(p)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var _t={useG:!0},te={},et={},tt=new RegExp("^"+me+"(\\w+)(true|false)$"),nt=A("propagationStopped");function rt(e,n){let c=(n?n(e):e)+ae,r=(n?n(e):e)+ce,a=me+c,l=me+r;te[e]={},te[e][ae]=a,te[e][ce]=l}function Et(e,n,c,r){let a=r&&r.add||Le,l=r&&r.rm||je,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=A(a),k="."+a+":",p="prependListener",I="."+p+":",O=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function Z(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[te[E.type][$?ce:ae]];if(X){let M=[];if(X.length===1){let T=O(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return Z(this,R,!1)},j=function(R){return Z(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Me(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[A(l)]=T[l],K=T[A(y)]=T[y],oe=T[A(_)]=T[_],z;E&&E.prepend&&(z=T[A(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let ne=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?j:B,d.options)},ee=function(i){if(!i.isRemoved){let h=te[i.eventName],m;h&&(m=h[i.capture?ce:ae]);let w=m&&i.target[m];if(w){for(let g=0;g{ie.zone.cancelTask(ie)},{once:!0})),d.target=null,pe&&(pe.taskData=null),Ve&&(Q.once=!0),!_e&&typeof ie.options=="boolean"||(ie.options=Q),ie.target=S,ie.capture=Ce,ie.eventName=D,V&&(ie.originalDelegate=G),C?de.unshift(ie):de.push(ie),g)return S}};return T[a]=u(N,k,t,s,M),z&&(T[p]=u(z,I,se,s,M,!0)),T[l]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let m=arguments[2],w=m?typeof m=="boolean"?!0:m.capture:!1,g=arguments[1];if(!g)return P.apply(this,arguments);if(H&&!H(P,g,i,arguments))return;let C=te[h],S;C&&(S=C[w?ce:ae]);let D=S&&i[S];if(D)for(let G=0;Gfunction(a,l){a[nt]=!0,r&&r.apply(a,l)})}function yt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(p){let I=`${c}.${r}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){let Z=e.ObjectGetOwnPropertyDescriptor(O,p);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(b.prototype,p,Z)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function st(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function Ye(e,n,c,r){if(!e)return;let a=st(e,n,c);Qe(e,a,r)}function Ne(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function pt(e,n){if(Re&&!Ke||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(Ge){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ht()?[{target:a,ignoreProperties:["error"]}]:[];Ye(a,Ne(a),c&&c.concat(l),Me(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Ne(e);c.patchOnProperties=Qe,c.patchMethod=ue,c.bindArguments=xe,c.patchMacroTask=ft;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Tt,c.patchEventTarget=Et,c.isIEOrEdge=dt,c.ObjectDefineProperty=Ie,c.ObjectGetOwnPropertyDescriptor=ge,c.ObjectCreate=ct,c.ArraySlice=at,c.patchClass=ke,c.wrapWithCurrentZone=Ae,c.filterProperties=st,c.attachOriginToPatched=le,c._redefineProperty=Object.defineProperty,c.patchCallbacks=yt,c.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ge,isMix:Ke,isNode:Re,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:je})});function gt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var be=A("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let p=k.data;return p.args[0]=function(){return k.invoke.apply(this,arguments)},p.handleId=a.apply(e,p.args),k}function b(k){return l.call(e,k.data.handleId)}a=ue(e,n,k=>function(p,I){if(typeof I[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete y[O.handleId]:O.handleId&&(O.handleId[be]=null))}};let B=He(n,I[0],O,_,b);if(!B)return B;let j=B.data.handleId;return typeof j=="number"?y[j]=B:j&&(j[be]=B),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(B.ref=j.ref.bind(j),B.unref=j.unref.bind(j)),typeof j=="number"||j?j:B}else return k.apply(e,I)}),l=ue(e,c,k=>function(p,I){let O=I[0],Z;typeof O=="number"?Z=y[O]:(Z=O&&O[be],Z||(Z=O)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof O=="number"?delete y[O]:O&&(O[be]=null),Z.zone.cancelTask(Z)):k.apply(e,I)})}function mt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{vt(e,c),kt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ke("MutationObserver"),ke("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ke("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ke("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{pt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{mt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=A("xhrTask"),r=A("xhrSync"),a=A("xhrListener"),l=A("xhrScheduled"),y=A("xhrURL"),_=A("xhrErrorBeforeScheduled");function b(k){let p=k.XMLHttpRequest;if(!p)return;let I=p.prototype;function O(d){return d[c]}let Z=I[De],B=I[Oe];if(!Z){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;Z=N[De],B=N[Oe]}}let j="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];Z||(Z=P[De],B=P[Oe]),K&&B.call(P,j,K);let oe=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=A("fetchTaskAborting"),M=A("fetchTaskScheduling"),T=ue(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=He(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=ue(I,"abort",()=>function(d,N){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&ut(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){ot(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[A("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{gt(e,c)}); +(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let se=class se{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=se.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ne}static __load_patch(t,s,o=!1){if(oe.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),oe[t]=s(e,se,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=ne;ne=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(f){if(this._zoneDelegate.handleError(this,f))throw f}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,ne=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new m(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new m(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new m(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let f={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,f)}}}class m{constructor(t,s,o,v,F,f){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=f,!o)throw new Error("callback is not defined");this.callback=o;let u=this;t===K&&v&&v.useG?this.invoke=m.invokeTask:this.invoke=function(){return m.invokeTask.call(e,u,this,arguments)}}static invokeTask(t,s,o){t||(t=this),ee++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{ee==1&&E(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),O=l("Promise"),Z=l("then"),B=[],j=!1,J;function q(L){if(J||e[O]&&(J=e[O].resolve(0)),J){let t=J[Z];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){ee===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!j){for(j=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},ne=null,ee=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var pe=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,Me=Object.getPrototypeOf,ct=Object.create,at=Array.prototype.slice,Le="addEventListener",je="removeEventListener",De=Zone.__symbol__(Le),Oe=Zone.__symbol__(je),ce="true",ae="false",ge=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function He(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var A=Zone.__symbol__,we=typeof window<"u",Te=we?window:void 0,Y=we&&Te||globalThis,lt="removeAttribute";function xe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function ut(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,xe(arguments,c+"."+a))};return le(b,_),b})(l)}}}function $e(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",Ge=!Re&&!Je&&!!(we&&Te.HTMLElement),Ke=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!Je&&!!(we&&Te.HTMLElement),Pe={},qe=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=A("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(Ge&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function Xe(e,n,c){let r=pe(e,n);if(!r&&c&&pe(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=A("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=Pe[_];b||(b=Pe[_]=A("ON_PROPERTY"+_)),r.set=function(k){let m=this;if(!m&&e===Y&&(m=Y),!m)return;typeof m[b]=="function"&&m.removeEventListener(_,qe),y&&y.call(m,null),m[b]=k,typeof k=="function"&&m.addEventListener(_,qe,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let m=k[b];if(m)return m;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[lt]=="function"&&k.removeAttribute(n),I}return null},Ie(e,n,r),e[a]=!0}function Qe(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?He(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function le(e,n){e[A("OriginalDelegate")]=n}var ze=!1,Ze=!1;function ht(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function dt(){if(ze)return Ze;ze=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(f){if(f&&f.toString===Object.prototype.toString){let u=f.constructor&&f.constructor.name;return(u||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),m=y("then"),I="__creationTrace__";c.onUnhandledError=f=>{if(c.showUncaughtError()){let u=f&&f.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(f)}},c.microtaskDrainDone=()=>{for(;_.length;){let f=_.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(u){Z(u)}}};let O=y("unhandledPromiseRejectionHandler");function Z(f){c.onUnhandledError(f);try{let u=n[O];typeof u=="function"&&u.call(this,f)}catch{}}function B(f){return f&&f.then}function j(f){return f}function J(f){return t.reject(f)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(f,u){return i=>{try{z(f,u,i)}catch(h){z(f,!1,h)}}}let P=function(){let f=!1;return function(i){return function(){f||(f=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",oe=y("currentTaskTrace");function z(f,u,i){let h=P();if(f===i)throw new TypeError(K);if(f[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(w){return h(()=>{z(f,!1,w)})(),f}if(u!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)ne(i),z(f,i[q],i[R]);else if(u!==x&&typeof g=="function")try{g.call(i,h(N(f,u)),h(N(f,!1)))}catch(w){h(()=>{z(f,!1,w)})()}else{f[q]=u;let w=f[R];if(f[R]=i,f[E]===E&&u===T&&(f[q]=f[H],f[R]=f[$]),u===x&&i instanceof Error){let p=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];p&&a(i,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=f[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=u.run(p,void 0,S&&p!==J&&p!==j?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",se=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(u){return u instanceof t?u:z(new this(null),T,u)}static reject(u){return z(new this(null),x,u)}static withResolvers(){let u={};return u.promise=new t((i,h)=>{u.resolve=i,u.reject=h}),u}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let p of u)h++,i.push(t.resolve(p))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,w=[];return new t((p,C)=>{for(let S=0;S{g||(g=!0,p(D))},D=>{w.push(D),h--,h===0&&(g=!0,C(new L(w,"All promises were rejected")))})})}static race(u){let i,h,g=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function p(C){h(C)}for(let C of u)B(C)||(C=this.resolve(C)),C.then(w,p);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(u,i){let h,g,w=new this((D,G)=>{h=D,g=G}),p=2,C=0,S=[];for(let D of u){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,p--,p===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),p--,p===0&&h(S)):g(V)})}catch(V){g(V)}p++,C++}return p-=2,p===0&&h(S),w}constructor(u){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();u&&u(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(se),w=n.current;return this[q]==M?this[R].push(w,g,u,i):ee(this,w,g,u,i),g}catch(u){return this.then(null,u)}finally(u){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(se);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,u,u):ee(this,g,h,u,u),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(f){let u=f.prototype,i=r(u,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=u.then;u[m]=h,f.prototype.then=function(g,w){return new t((C,S)=>{h.call(this,C,S)}).then(g,w)},f[o]=!0}c.patchThen=v;function F(f){return function(u,i){let h=f.apply(u,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),ue(e,"fetch",f=>F(f))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=A("OriginalDelegate"),r=A("Promise"),a=A("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let m=e[r];if(m)return n.call(m)}if(this===Error){let m=e[a];if(m)return n.call(m)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var _t={useG:!0},te={},et={},tt=new RegExp("^"+ge+"(\\w+)(true|false)$"),nt=A("propagationStopped");function rt(e,n){let c=(n?n(e):e)+ae,r=(n?n(e):e)+ce,a=ge+c,l=ge+r;te[e]={},te[e][ae]=a,te[e][ce]=l}function Et(e,n,c,r){let a=r&&r.add||Le,l=r&&r.rm||je,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=A(a),k="."+a+":",m="prependListener",I="."+m+":",O=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function Z(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[te[E.type][$?ce:ae]];if(X){let M=[];if(X.length===1){let T=O(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return Z(this,R,!1)},j=function(R){return Z(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Me(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[A(l)]=T[l],K=T[A(y)]=T[y],oe=T[A(_)]=T[_],z;E&&E.prepend&&(z=T[A(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let ne=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?j:B,d.options)},ee=function(i){if(!i.isRemoved){let h=te[i.eventName],g;h&&(g=h[i.capture?ce:ae]);let w=g&&i.target[g];if(w){for(let p=0;p{ie.zone.cancelTask(ie)},{once:!0})),d.target=null,me&&(me.taskData=null),Ve&&(Q.once=!0),!_e&&typeof ie.options=="boolean"||(ie.options=Q),ie.target=S,ie.capture=Ce,ie.eventName=D,V&&(ie.originalDelegate=G),C?de.unshift(ie):de.push(ie),p)return S}};return T[a]=u(N,k,t,s,M),z&&(T[m]=u(z,I,se,s,M,!0)),T[l]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let g=arguments[2],w=g?typeof g=="boolean"?!0:g.capture:!1,p=arguments[1];if(!p)return P.apply(this,arguments);if(H&&!H(P,p,i,arguments))return;let C=te[h],S;C&&(S=C[w?ce:ae]);let D=S&&i[S];if(D)for(let G=0;Gfunction(a,l){a[nt]=!0,r&&r.apply(a,l)})}function yt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(m){let I=`${c}.${r}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){let Z=e.ObjectGetOwnPropertyDescriptor(O,m);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(b.prototype,m,Z)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],I))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function st(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function Ye(e,n,c,r){if(!e)return;let a=st(e,n,c);Qe(e,a,r)}function Ne(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function mt(e,n){if(Re&&!Ke||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(Ge){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ht()?[{target:a,ignoreProperties:["error"]}]:[];Ye(a,Ne(a),c&&c.concat(l),Me(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Ne(e);c.patchOnProperties=Qe,c.patchMethod=ue,c.bindArguments=xe,c.patchMacroTask=ft;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Tt,c.patchEventTarget=Et,c.isIEOrEdge=dt,c.ObjectDefineProperty=Ie,c.ObjectGetOwnPropertyDescriptor=pe,c.ObjectCreate=ct,c.ArraySlice=at,c.patchClass=ke,c.wrapWithCurrentZone=Ae,c.filterProperties=st,c.attachOriginToPatched=le,c._redefineProperty=Object.defineProperty,c.patchCallbacks=yt,c.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ge,isMix:Ke,isNode:Re,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ge,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:je})});function pt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var be=A("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let m=k.data;return m.args[0]=function(){return k.invoke.apply(this,arguments)},m.handleId=a.apply(e,m.args),k}function b(k){return l.call(e,k.data.handleId)}a=ue(e,n,k=>function(m,I){if(typeof I[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete y[O.handleId]:O.handleId&&(O.handleId[be]=null))}};let B=He(n,I[0],O,_,b);if(!B)return B;let j=B.data.handleId;return typeof j=="number"?y[j]=B:j&&(j[be]=B),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(B.ref=j.ref.bind(j),B.unref=j.unref.bind(j)),typeof j=="number"||j?j:B}else return k.apply(e,I)}),l=ue(e,c,k=>function(m,I){let O=I[0],Z;typeof O=="number"?Z=y[O]:(Z=O&&O[be],Z||(Z=O)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof O=="number"?delete y[O]:O&&(O[be]=null),Z.zone.cancelTask(Z)):k.apply(e,I)})}function gt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{vt(e,c),kt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ke("MutationObserver"),ke("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ke("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ke("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{mt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{gt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=A("xhrTask"),r=A("xhrSync"),a=A("xhrListener"),l=A("xhrScheduled"),y=A("xhrURL"),_=A("xhrErrorBeforeScheduled");function b(k){let m=k.XMLHttpRequest;if(!m)return;let I=m.prototype;function O(d){return d[c]}let Z=I[De],B=I[Oe];if(!Z){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;Z=N[De],B=N[Oe]}}let j="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];Z||(Z=P[De],B=P[Oe]),K&&B.call(P,j,K);let oe=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=A("fetchTaskAborting"),M=A("fetchTaskScheduling"),T=ue(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=He(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=ue(I,"abort",()=>function(d,N){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&ut(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){ot(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[A("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{pt(e,c)});