git-history-ui 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/frontend/favicon.ico +0 -0
- package/build/frontend/index.html +13 -0
- package/build/frontend/main-44CFNHDH.js +8 -0
- package/build/frontend/main-YHO6NCZZ.js +8 -0
- package/build/frontend/polyfills-5CFQRCPP.js +2 -0
- package/build/frontend/styles-26JPPBSI.css +1 -0
- package/build/frontend/styles-J5I4DBTU.css +1 -0
- package/dist/backend/server.js +2 -2
- package/dist/backend/server.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var q0=Object.defineProperty,Z0=Object.defineProperties;var Y0=Object.getOwnPropertyDescriptors;var ep=Object.getOwnPropertySymbols;var Q0=Object.prototype.hasOwnProperty,K0=Object.prototype.propertyIsEnumerable;var tp=(e,t,n)=>t in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t)=>{for(var n in t||={})Q0.call(t,n)&&tp(e,n,t[n]);if(ep)for(var n of ep(t))K0.call(t,n)&&tp(e,n,t[n]);return e},B=(e,t)=>Z0(e,Y0(t));var El;function cs(){return El}function It(e){let t=El;return El=e,t}var np=Symbol("NotFound");function Er(e){return e===np||e?.name==="\u0275NotFound"}function hs(e,t){return Object.is(e,t)}var Ie=null,ls=!1,wl=1,X0=null,Me=Symbol("SIGNAL");function P(e){let t=Ie;return Ie=e,t}function ps(){return Ie}var Vn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function wr(e){if(ls)throw new Error("");if(Ie===null)return;Ie.consumerOnSignalRead(e);let t=Ie.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Ie.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Ie.producers,n!==void 0&&n.producer===e)){Ie.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Ie&&(!r||eC(o,Ie)))return;let i=Ir(Ie),s={producer:e,consumer:Ie,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Ie.producersTail=s,t!==void 0?t.nextProducer=s:Ie.producers=s,i&&op(e,s)}function rp(){wl++}function gs(e){if(!(Ir(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===wl)){if(!e.producerMustRecompute(e)&&!ko(e)){fs(e);return}e.producerRecomputeValue(e),fs(e)}}function bl(e){if(e.consumers===void 0)return;let t=ls;ls=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||J0(r)}}finally{ls=t}}function Il(){return Ie?.consumerAllowSignalWrites!==!1}function J0(e){e.dirty=!0,bl(e),e.consumerMarkedDirty?.(e)}function fs(e){e.dirty=!1,e.lastCleanEpoch=wl}function jn(e){return e&&(e.producersTail=void 0,e.recomputing=!0),P(e)}function br(e,t){if(P(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(Ir(e))do r=Ml(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function ko(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(gs(n),r!==n.version))return!0}return!1}function Po(e){if(Ir(e)){let t=e.producers;for(;t!==void 0;)t=Ml(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function op(e,t){let n=e.consumersTail,r=Ir(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)op(o.producer,o)}function Ml(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Ir(t)){let i=t.producers;for(;i!==void 0;)i=Ml(i)}return n}function Ir(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ms(e){X0?.(e)}function eC(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function ys(e,t){let n=Object.create(tC);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(gs(n),wr(n),n.value===Oo)throw n.error;return n.value};return r[Me]=n,ms(n),r}var us=Symbol("UNSET"),ds=Symbol("COMPUTING"),Oo=Symbol("ERRORED"),tC=B(_({},Vn),{value:us,dirty:!0,error:null,equal:hs,kind:"computed",producerMustRecompute(e){return e.value===us||e.value===ds},producerRecomputeValue(e){if(e.value===ds)throw new Error("");let t=e.value;e.value=ds;let n=jn(e),r,o=!1;try{r=e.computation(),P(null),o=t!==us&&t!==Oo&&r!==Oo&&e.equal(t,r)}catch(i){r=Oo,e.error=i}finally{br(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function nC(){throw new Error}var ip=nC;function sp(e){ip(e)}function Sl(e){ip=e}var rC=null;function Tl(e,t){let n=Object.create(vs);n.value=e,t!==void 0&&(n.equal=t);let r=()=>ap(n);return r[Me]=n,ms(n),[r,s=>Mr(n,s),s=>xl(n,s)]}function ap(e){return wr(e),e.value}function Mr(e,t){Il()||sp(e),e.equal(e.value,t)||(e.value=t,oC(e))}function xl(e,t){Il()||sp(e),Mr(e,t(e.value))}var vs=B(_({},Vn),{equal:hs,value:void 0,kind:"signal"});function oC(e){e.version++,rp(),bl(e),rC?.(e)}function k(e){return typeof e=="function"}function Sr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _s=Sr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function Fo(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var oe=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(k(r))try{r()}catch(i){t=i instanceof _s?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{cp(i)}catch(s){t=t??[],s instanceof _s?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _s(t)}}add(t){var n;if(t&&t!==this)if(this.closed)cp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Fo(n,t)}remove(t){let{_finalizers:n}=this;n&&Fo(n,t),t instanceof e&&t._removeParent(this)}};oe.EMPTY=(()=>{let e=new oe;return e.closed=!0,e})();var Al=oe.EMPTY;function Ds(e){return e instanceof oe||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function cp(e){k(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Tr={setTimeout(e,t,...n){let{delegate:r}=Tr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Tr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Cs(e){Tr.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function Lo(){}var lp=Nl("C",void 0,void 0);function up(e){return Nl("E",void 0,e)}function dp(e){return Nl("N",e,void 0)}function Nl(e,t,n){return{kind:e,value:t,error:n}}var Bn=null;function xr(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!Bn;if(t&&(Bn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Bn;if(Bn=null,n)throw r}}else e()}function fp(e){ht.useDeprecatedSynchronousErrorHandling&&Bn&&(Bn.errorThrown=!0,Bn.error=e)}var Un=class extends oe{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ds(t)&&t.add(this)):this.destination=aC}static create(t,n,r){return new Ar(t,n,r)}next(t){this.isStopped?Ol(dp(t),this):this._next(t)}error(t){this.isStopped?Ol(up(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ol(lp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},iC=Function.prototype.bind;function Rl(e,t){return iC.call(e,t)}var kl=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Es(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Es(r)}else Es(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Es(n)}}},Ar=class extends Un{constructor(t,n,r){super();let o;if(k(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ht.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Rl(t.next,i),error:t.error&&Rl(t.error,i),complete:t.complete&&Rl(t.complete,i)}):o=t}this.destination=new kl(o)}};function Es(e){ht.useDeprecatedSynchronousErrorHandling?fp(e):Cs(e)}function sC(e){throw e}function Ol(e,t){let{onStoppedNotification:n}=ht;n&&Tr.setTimeout(()=>n(e,t))}var aC={closed:!0,next:Lo,error:sC,complete:Lo};var Nr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Qe(e){return e}function Pl(...e){return Fl(e)}function Fl(e){return e.length===0?Qe:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var j=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=lC(n)?n:new Ar(n,r,o);return xr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=hp(r),new r((o,i)=>{let s=new Ar({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Nr](){return this}pipe(...n){return Fl(n)(this)}toPromise(n){return n=hp(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function hp(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function cC(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function lC(e){return e&&e instanceof Un||cC(e)&&Ds(e)}function Ll(e){return k(e?.lift)}function $(e){return t=>{if(Ll(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function U(e,t,n,r,o){return new Vl(e,t,n,r,o)}var Vl=class extends Un{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Rr(){return $((e,t)=>{let n=null;e._refCount++;let r=U(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Or=class extends j{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ll(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new oe;let n=this.getSubject();t.add(this.source.subscribe(U(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=oe.EMPTY)}return t}refCount(){return Rr()(this)}};var pp=Sr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=(()=>{class e extends j{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ws(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new pp}next(n){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Al:(this.currentObservers=null,i.push(n),new oe(()=>{this.currentObservers=null,Fo(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new j;return n.source=this,n}}return e.create=(t,n)=>new ws(t,n),e})(),ws=class extends ie{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Al}};var _e=class extends ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var $e=new j(e=>e.complete());function gp(e){return e&&k(e.schedule)}function mp(e){return e[e.length-1]}function bs(e){return k(mp(e))?e.pop():void 0}function dn(e){return gp(mp(e))?e.pop():void 0}function vp(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function yp(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $n(e){return this instanceof $n?(this.v=e,this):new $n(e)}function _p(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(g){return new Promise(function(p,y){i.push([f,g,p,y])>1||c(f,g)})},m&&(o[f]=m(o[f])))}function c(f,m){try{l(r[f](m))}catch(g){h(i[0][3],g)}}function l(f){f.value instanceof $n?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Dp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof yp=="function"?yp(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Is=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ms(e){return k(e?.then)}function Ss(e){return k(e[Nr])}function Ts(e){return Symbol.asyncIterator&&k(e?.[Symbol.asyncIterator])}function xs(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function uC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var As=uC();function Ns(e){return k(e?.[As])}function Rs(e){return _p(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield $n(n.read());if(o)return yield $n(void 0);yield yield $n(r)}}finally{n.releaseLock()}})}function Os(e){return k(e?.getReader)}function se(e){if(e instanceof j)return e;if(e!=null){if(Ss(e))return dC(e);if(Is(e))return fC(e);if(Ms(e))return hC(e);if(Ts(e))return Cp(e);if(Ns(e))return pC(e);if(Os(e))return gC(e)}throw xs(e)}function dC(e){return new j(t=>{let n=e[Nr]();if(k(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fC(e){return new j(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function hC(e){return new j(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Cs)})}function pC(e){return new j(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Cp(e){return new j(t=>{mC(e,t).catch(n=>t.error(n))})}function gC(e){return Cp(Rs(e))}function mC(e,t){var n,r,o,i;return vp(this,void 0,void 0,function*(){try{for(n=Dp(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function He(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ks(e,t=0){return $((n,r)=>{n.subscribe(U(r,o=>He(r,e,()=>r.next(o),t),()=>He(r,e,()=>r.complete(),t),o=>He(r,e,()=>r.error(o),t)))})}function Ps(e,t=0){return $((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ep(e,t){return se(e).pipe(Ps(t),ks(t))}function wp(e,t){return se(e).pipe(Ps(t),ks(t))}function bp(e,t){return new j(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ip(e,t){return new j(n=>{let r;return He(n,t,()=>{r=e[As](),He(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>k(r?.return)&&r.return()})}function Fs(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(n=>{He(n,t,()=>{let r=e[Symbol.asyncIterator]();He(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Mp(e,t){return Fs(Rs(e),t)}function Sp(e,t){if(e!=null){if(Ss(e))return Ep(e,t);if(Is(e))return bp(e,t);if(Ms(e))return wp(e,t);if(Ts(e))return Fs(e,t);if(Ns(e))return Ip(e,t);if(Os(e))return Mp(e,t)}throw xs(e)}function te(e,t){return t?Sp(e,t):se(e)}function A(...e){let t=dn(e);return te(e,t)}function kr(e,t){let n=k(e)?e:()=>e,r=o=>o.error(n());return new j(t?o=>t.schedule(r,0,o):r)}function jl(e){return!!e&&(e instanceof j||k(e.lift)&&k(e.subscribe))}var Ut=Sr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function F(e,t){return $((n,r)=>{let o=0;n.subscribe(U(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:yC}=Array;function vC(e,t){return yC(t)?e(...t):e(t)}function Ls(e){return F(t=>vC(e,t))}var{isArray:_C}=Array,{getPrototypeOf:DC,prototype:CC,keys:EC}=Object;function Vs(e){if(e.length===1){let t=e[0];if(_C(t))return{args:t,keys:null};if(wC(t)){let n=EC(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function wC(e){return e&&typeof e=="object"&&DC(e)===CC}function js(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Bs(...e){let t=dn(e),n=bs(e),{args:r,keys:o}=Vs(e);if(r.length===0)return te([],t);let i=new j(bC(r,t,o?s=>js(o,s):Qe));return n?i.pipe(Ls(n)):i}function bC(e,t,n=Qe){return r=>{Tp(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Tp(t,()=>{let l=te(e[c],t),u=!1;l.subscribe(U(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Tp(e,t,n){e?He(n,e,t):t()}function xp(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=g=>l<r?m(g):c.push(g),m=g=>{i&&t.next(g),l++;let p=!1;se(n(g,u++)).subscribe(U(t,y=>{o?.(y),i?f(y):t.next(y)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&l<r;){let y=c.shift();s?He(t,s,()=>m(y)):m(y)}h()}catch(y){t.error(y)}}))};return e.subscribe(U(t,f,()=>{d=!0,h()})),()=>{a?.()}}function le(e,t,n=1/0){return k(t)?le((r,o)=>F((i,s)=>t(r,i,o,s))(se(e(r,o))),n):(typeof t=="number"&&(n=t),$((r,o)=>xp(r,o,e,n)))}function Ap(e=1/0){return le(Qe,e)}function Np(){return Ap(1)}function Pr(...e){return Np()(te(e,dn(e)))}function Vo(e){return new j(t=>{se(e()).subscribe(t)})}function Bl(...e){let t=bs(e),{args:n,keys:r}=Vs(e),o=new j(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;se(n[u]).subscribe(U(i,h=>{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?js(r,a):a),i.complete())}))}});return t?o.pipe(Ls(t)):o}function ze(e,t){return $((n,r)=>{let o=0;n.subscribe(U(r,i=>e.call(t,i,o++)&&r.next(i)))})}function fn(e){return $((t,n)=>{let r=null,o=!1,i;r=t.subscribe(U(n,void 0,void 0,s=>{i=se(e(s,fn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Rp(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(U(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function hn(e,t){return k(t)?le(e,t,1):le(e,1)}function pn(e){return $((t,n)=>{let r=!1;t.subscribe(U(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function $t(e){return e<=0?()=>$e:$((t,n)=>{let r=0;t.subscribe(U(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Us(e=IC){return $((t,n)=>{let r=!1;t.subscribe(U(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function IC(){return new Ut}function gn(e){return $((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ht(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ze((o,i)=>e(o,i,r)):Qe,$t(1),n?pn(t):Us(()=>new Ut))}function Fr(e){return e<=0?()=>$e:$((t,n)=>{let r=[];t.subscribe(U(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Ul(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ze((o,i)=>e(o,i,r)):Qe,Fr(1),n?pn(t):Us(()=>new Ut))}function $l(e,t){return $(Rp(e,t,arguments.length>=2,!0))}function Hl(...e){let t=dn(e);return $((n,r)=>{(t?Pr(e,n,t):Pr(e,n)).subscribe(r)})}function Se(e,t){return $((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(U(r,c=>{o?.unsubscribe();let l=0,u=i++;se(e(c,u)).subscribe(o=U(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function $s(e){return $((t,n)=>{se(e).subscribe(U(n,()=>n.complete(),Lo)),!n.closed&&t.subscribe(n)})}function ge(e,t,n){let r=k(e)||t||n?{next:e,error:t,complete:n}:e;return r?$((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(U(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Qe}function Op(e){let t=P(null);try{return e()}finally{P(t)}}var nu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",I=class extends Error{code;constructor(t,n){super(Vr(t,n)),this.code=t}};function MC(e){return`NG0${Math.abs(e)}`}function Vr(e,t){return`${MC(e)}${t?": "+t:""}`}function Z(e){for(let t in e)if(e[t]===Z)return t;throw Error("")}function Fp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Gt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Gt).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function qs(e,t){return e?t?`${e} ${t}`:e:t||""}var SC=Z({__forward_ref__:Z});function qt(e){return e.__forward_ref__=qt,e.toString=function(){return Gt(this())},e}function De(e){return ru(e)?e():e}function ru(e){return typeof e=="function"&&e.hasOwnProperty(SC)&&e.__forward_ref__===qt}function Lp(e,t){e==null&&ou(t,e,null,"!=")}function ou(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ho(e){return TC(e,Zs)}function iu(e){return Ho(e)!==null}function TC(e,t){return e.hasOwnProperty(t)&&e[t]||null}function xC(e){let t=e?.[Zs]??null;return t||null}function Gl(e){return e&&e.hasOwnProperty(zs)?e[zs]:null}var Zs=Z({\u0275prov:Z}),zs=Z({\u0275inj:Z}),M=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function su(e){return e&&!!e.\u0275providers}var au=Z({\u0275cmp:Z}),cu=Z({\u0275dir:Z}),lu=Z({\u0275pipe:Z}),uu=Z({\u0275mod:Z}),Uo=Z({\u0275fac:Z}),Zn=Z({__NG_ELEMENT_ID__:Z}),kp=Z({__NG_ENV_ID__:Z});function zo(e){return typeof e=="string"?e:e==null?"":String(e)}function Gs(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():zo(e)}var du=Z({ngErrorCode:Z}),Vp=Z({ngErrorMessage:Z}),Bo=Z({ngTokenPath:Z});function fu(e,t){return jp("",-200,t)}function Ys(e,t){throw new I(-201,!1)}function AC(e,t){e[Bo]??=[];let n=e[Bo],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(Lp(t.provide,"Token with multi: true should have a provide property"),r=Gs(t.provide)):r=Gs(t),n[0]!==r&&e[Bo].unshift(r)}function NC(e,t){let n=e[Bo],r=e[du],o=e[Vp]||e.message;return e.message=OC(o,r,n,t),e}function jp(e,t,n){let r=new I(t,e);return r[du]=t,r[Vp]=e,n&&(r[Bo]=n),r}function RC(e){return e[du]}function OC(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return Vr(t,`${e}${i}${o}`)}var Wl;function Bp(){return Wl}function Ke(e){let t=Wl;return Wl=e,t}function hu(e,t,n){let r=Ho(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Ys(e,"Injector")}var kC={},Hn=kC,ql="__NG_DI_FLAG__",Zl=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=zn(n)||0;try{return this.injector.get(t,r&8?null:Hn,r)}catch(o){if(Er(o))return o;throw o}}};function PC(e,t=0){let n=cs();if(n===void 0)throw new I(-203,!1);if(n===null)return hu(e,void 0,t);{let r=FC(t),o=n.retrieve(e,r);if(Er(o)){if(r.optional)return null;throw o}return o}}function T(e,t=0){return(Bp()||PC)(De(e),t)}function v(e,t){return T(e,zn(t))}function zn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function FC(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Yl(e){let t=[];for(let n=0;n<e.length;n++){let r=De(e[n]);if(Array.isArray(r)){if(r.length===0)throw new I(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=LC(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function pu(e,t){return e[ql]=t,e.prototype[ql]=t,e}function LC(e){return e[ql]}function Gn(e,t){let n=e.hasOwnProperty(Uo);return n?e[Uo]:null}function Up(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function $p(e){return e.flat(Number.POSITIVE_INFINITY)}function Qs(e,t){e.forEach(n=>Array.isArray(n)?Qs(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Go(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hp(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Ks(e,t,n){let r=jr(e,t);return r>=0?e[r|1]=n:(r=~r,Hp(e,r,t,n)),r}function Xs(e,t){let n=jr(e,t);if(n>=0)return e[n|1]}function jr(e,t){return VC(e,t,1)}function VC(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var yn={},Oe=[],vn=new M(""),mu=new M("",-1),yu=new M(""),$o=class{get(t,n=Hn){if(n===Hn){let o=jp("",-201);throw o.name="\u0275NotFound",o}return n}};function vu(e){return e[uu]||null}function _n(e){return e[au]||null}function _u(e){return e[cu]||null}function zp(e){return e[lu]||null}function Br(e){return{\u0275providers:e}}function Gp(...e){return{\u0275providers:Du(!0,e),\u0275fromNgModule:!0}}function Du(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Qs(t,s=>{let a=s;Ws(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Wp(o,i),n}function Wp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Cu(o,i=>{t(i,r)})}}function Ws(e,t,n,r){if(e=De(e),!e)return!1;let o=null,i=Gl(e),s=!i&&_n(e);if(!i&&!s){let c=e.ngModule;if(i=Gl(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Ws(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Qs(i.imports,u=>{Ws(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Wp(l,t)}if(!a){let l=Gn(o)||(()=>new o);t({provide:o,useFactory:l,deps:Oe},o),t({provide:yu,useValue:o,multi:!0},o),t({provide:vn,useValue:()=>T(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Cu(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Cu(e,t){for(let n of e)su(n)&&(n=n.\u0275providers),Array.isArray(n)?Cu(n,t):t(n)}var jC=Z({provide:String,useValue:Z});function qp(e){return e!==null&&typeof e=="object"&&jC in e}function BC(e){return!!(e&&e.useExisting)}function UC(e){return!!(e&&e.useFactory)}function Wn(e){return typeof e=="function"}function Zp(e){return!!e.useClass}var Wo=new M(""),Hs={},Pp={},zl;function qo(){return zl===void 0&&(zl=new $o),zl}var ue=class{},qn=class extends ue{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Kl(t,s=>this.processProvider(s)),this.records.set(mu,Lr(void 0,this)),o.has("environment")&&this.records.set(ue,Lr(void 0,this));let i=this.records.get(Wo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(yu,Oe,{self:!0}))}retrieve(t,n){let r=zn(n)||0;try{return this.get(t,Hn,r)}catch(o){if(Er(o))return o;throw o}}destroy(){jo(this),this._destroyed=!0;let t=P(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),P(t)}}onDestroy(t){return jo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){jo(this);let n=It(this),r=Ke(void 0),o;try{return t()}finally{It(n),Ke(r)}}get(t,n=Hn,r){if(jo(this),t.hasOwnProperty(kp))return t[kp](this);let o=zn(r),i,s=It(this),a=Ke(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=WC(t)&&Ho(t);u&&this.injectableDefInScope(u)?l=Lr(Ql(t),Hs):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?qo():this.parent;return n=o&8&&n===Hn?null:n,c.get(t,n)}catch(c){let l=RC(c);throw l===-200||l===-201?new I(l,null):c}finally{Ke(a),It(s)}}resolveInjectorInitializers(){let t=P(null),n=It(this),r=Ke(void 0),o;try{let i=this.get(vn,Oe,{self:!0});for(let s of i)s()}finally{It(n),Ke(r),P(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Gt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=De(t);let n=Wn(t)?t:De(t&&t.provide),r=HC(t);if(!Wn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Lr(void 0,Hs,!0),o.factory=()=>Yl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=P(null);try{if(n.value===Pp)throw fu(Gt(t));return n.value===Hs&&(n.value=Pp,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&GC(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=De(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ql(e){let t=Ho(e),n=t!==null?t.factory:Gn(e);if(n!==null)return n;if(e instanceof M)throw new I(204,!1);if(e instanceof Function)return $C(e);throw new I(204,!1)}function $C(e){if(e.length>0)throw new I(204,!1);let n=xC(e);return n!==null?()=>n.factory(e):()=>new e}function HC(e){if(qp(e))return Lr(void 0,e.useValue);{let t=Eu(e);return Lr(t,Hs)}}function Eu(e,t,n){let r;if(Wn(e)){let o=De(e);return Gn(o)||Ql(o)}else if(qp(e))r=()=>De(e.useValue);else if(UC(e))r=()=>e.useFactory(...Yl(e.deps||[]));else if(BC(e))r=(o,i)=>T(De(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=De(e&&(e.useClass||e.provide));if(zC(e))r=()=>new o(...Yl(e.deps));else return Gn(o)||Ql(o)}return r}function jo(e){if(e.destroyed)throw new I(205,!1)}function Lr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function zC(e){return!!e.deps}function GC(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function WC(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Kl(e,t){for(let n of e)Array.isArray(n)?Kl(n,t):n&&su(n)?Kl(n.\u0275providers,t):t(n)}function Ce(e,t){let n;e instanceof qn?(jo(e),n=e):n=new Zl(e);let r,o=It(n),i=Ke(void 0);try{return t()}finally{It(o),Ke(i)}}function Yp(){return Bp()!==void 0||cs()!=null}var mt=0,R=1,O=2,me=3,nt=4,rt=5,Zo=6,Ur=7,Te=8,Yn=9,Zt=10,ne=11,$r=12,wu=13,Qn=14,ot=15,Dn=16,Kn=17,Mt=18,Yo=19,bu=20,zt=21,Js=22,Qo=23,Xe=24,Xn=25,Ge=26,Qp=1;var Cn=7,Ko=8,Jn=9,ke=10;function St(e){return Array.isArray(e)&&typeof e[Qp]=="object"}function yt(e){return Array.isArray(e)&&e[Qp]===!0}function Iu(e){return(e.flags&4)!==0}function En(e){return e.componentOffset>-1}function Xo(e){return(e.flags&1)===1}function Tt(e){return!!e.template}function Hr(e){return(e[O]&512)!==0}function er(e){return(e[O]&256)===256}var Mu="svg",Kp="math";function it(e){for(;Array.isArray(e);)e=e[mt];return e}function Su(e,t){return it(t[e])}function xt(e,t){return it(t[e.index])}function ea(e,t){return e.data[t]}function st(e,t){let n=t[e];return St(n)?n:n[mt]}function Xp(e){return(e[O]&4)===4}function ta(e){return(e[O]&128)===128}function Jp(e){return yt(e[me])}function tr(e,t){return t==null?null:e[t]}function Tu(e){e[Kn]=0}function xu(e){e[O]&1024||(e[O]|=1024,ta(e)&&zr(e))}function eg(e,t){for(;e>0;)t=t[Qn],e--;return t}function Jo(e){return!!(e[O]&9216||e[Xe]?.dirty)}function na(e){e[Zt].changeDetectionScheduler?.notify(8),e[O]&64&&(e[O]|=1024),Jo(e)&&zr(e)}function zr(e){e[Zt].changeDetectionScheduler?.notify(0);let t=mn(e);for(;t!==null&&!(t[O]&8192||(t[O]|=8192,!ta(t)));)t=mn(t)}function Au(e,t){if(er(e))throw new I(911,!1);e[zt]===null&&(e[zt]=[]),e[zt].push(t)}function tg(e,t){if(e[zt]===null)return;let n=e[zt].indexOf(t);n!==-1&&e[zt].splice(n,1)}function mn(e){let t=e[me];return yt(t)?t[me]:t}function Nu(e){return e[Ur]??=[]}function Ru(e){return e.cleanup??=[]}function ng(e,t,n,r){let o=Nu(t);o.push(n),e.firstCreatePass&&Ru(e).push(r,o.length-1)}var V={lFrame:gg(null),bindingsEnabled:!0,skipHydrationRootTNode:null},ei=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(ei||{}),qC=0,Xl=!1;function rg(){return V.lFrame.elementDepthCount}function og(){V.lFrame.elementDepthCount++}function Ou(){V.lFrame.elementDepthCount--}function ku(){return V.bindingsEnabled}function ig(){return V.skipHydrationRootTNode!==null}function Pu(e){return V.skipHydrationRootTNode===e}function Fu(){V.skipHydrationRootTNode=null}function W(){return V.lFrame.lView}function Pe(){return V.lFrame.tView}function Fe(e){return V.lFrame.contextLView=e,e[Te]}function Le(e){return V.lFrame.contextLView=null,e}function xe(){let e=Lu();for(;e!==null&&e.type===64;)e=e.parent;return e}function Lu(){return V.lFrame.currentTNode}function sg(){let e=V.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Gr(e,t){let n=V.lFrame;n.currentTNode=e,n.isParent=t}function Vu(){return V.lFrame.isParent}function ag(){V.lFrame.isParent=!1}function ju(e){ou("Must never be called in production mode"),qC=e}function Bu(){return Xl}function Uu(e){let t=Xl;return Xl=e,t}function cg(){return V.lFrame.bindingIndex}function lg(e){return V.lFrame.bindingIndex=e}function ra(){return V.lFrame.bindingIndex++}function oa(e){let t=V.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ug(){return V.lFrame.inI18n}function dg(e,t){let n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,ia(t)}function fg(){return V.lFrame.currentDirectiveIndex}function ia(e){V.lFrame.currentDirectiveIndex=e}function hg(e){let t=V.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function $u(){return V.lFrame.currentQueryIndex}function sa(e){V.lFrame.currentQueryIndex=e}function ZC(e){let t=e[R];return t.type===2?t.declTNode:t.type===1?e[rt]:null}function Hu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=ZC(i),o===null||(i=i[Qn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=V.lFrame=pg();return r.currentTNode=t,r.lView=e,!0}function aa(e){let t=pg(),n=e[R];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function pg(){let e=V.lFrame,t=e===null?null:e.child;return t===null?gg(e):t}function gg(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function mg(){let e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var zu=mg;function ca(){let e=mg();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yg(e){return(V.lFrame.contextLView=eg(e,V.lFrame.contextLView))[Te]}function Yt(){return V.lFrame.selectedIndex}function wn(e){V.lFrame.selectedIndex=e}function Gu(){let e=V.lFrame;return ea(e.tView,e.selectedIndex)}function bn(){V.lFrame.currentNamespace=Mu}function la(){YC()}function YC(){V.lFrame.currentNamespace=null}function vg(){return V.lFrame.currentNamespace}var _g=!0;function ua(){return _g}function da(e){_g=e}var QC={elements:void 0};function fa(){return QC}function Jl(e,t=null,n=null,r){let o=Wu(e,t,n,r);return o.resolveInjectorInitializers(),o}function Wu(e,t=null,n=null,r,o=new Set){let i=[n||Oe,Gp(e)];return r=r||(typeof e=="object"?void 0:Gt(e)),new qn(i,t||qo(),r||null,o)}var tt=class e{static THROW_IF_NOT_FOUND=Hn;static NULL=new $o;static create(t,n){if(Array.isArray(t))return Jl({name:""},n,t,"");{let r=t.name??"";return Jl({name:r},t.parent,t.providers,r)}}static \u0275prov=S({token:e,providedIn:"any",factory:()=>T(mu)});static __NG_ELEMENT_ID__=-1},de=new M(""),At=(()=>{class e{static __NG_ELEMENT_ID__=KC;static __NG_ENV_ID__=n=>n}return e})(),eu=class extends At{_lView;constructor(t){super(),this._lView=t}get destroyed(){return er(this._lView)}onDestroy(t){let n=this._lView;return Au(n,t),()=>tg(n,t)}};function KC(){return new eu(W())}var pt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Je=new M("",{providedIn:"root",factory:()=>{let e=v(ue),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(pt),t.handleError(n))}}}),Dg={provide:vn,useValue:()=>void v(pt),multi:!0};function qu(e){return typeof e=="function"&&e[Me]!==void 0}function Qt(e,t){let[n,r,o]=Tl(e,t?.equal),i=n,s=i[Me];return i.set=r,i.update=o,i.asReadonly=Cg.bind(i),i}function Cg(){let e=this[Me];if(e.readonlyFn===void 0){let t=()=>this();t[Me]=e,e.readonlyFn=t}return e.readonlyFn}function Zu(e){return qu(e)&&typeof e.set=="function"}var Wt=class{},ha=new M("",{providedIn:"root",factory:()=>!1});var Yu=new M(""),Qu=new M("");var pa=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=XC}return e})();function XC(){return new pa(W(),xe())}var Nt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new _e(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new j(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),ti=(()=>{class e{internalPendingTasks=v(Nt);scheduler=v(Wt);errorHandler=v(Je);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();function ni(...e){}var Ku=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new tu})}return e})(),tu=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Xr(e){return{toString:e}.toString()}var ga="__parameters__";function iE(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Kg(e,t,n){return Xr(()=>{let r=iE(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(ga)?c[ga]:Object.defineProperty(c,ga,{value:[]})[ga];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Xg=pu(Kg("Optional"),8);var Jg=pu(Kg("SkipSelf"),4);function sE(e){return typeof e=="function"}var Ca=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function em(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var kt=(()=>{let e=()=>tm;return e.ngInherit=!0,e})();function tm(e){return e.type.prototype.ngOnChanges&&(e.setInput=cE),aE}function aE(){let e=rm(this),t=e?.current;if(t){let n=e.previous;if(n===yn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function cE(e,t,n,r,o){let i=this.declaredInputs[r],s=rm(e)||lE(e,{previous:yn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Ca(l&&l.currentValue,n,c===yn),em(e,t,o,n)}var nm="__ngSimpleChanges__";function rm(e){return e[nm]||null}function lE(e,t){return e[nm]=t}var Eg=[];var X=function(e,t=null,n){for(let r=0;r<Eg.length;r++){let o=Eg[r];o(e,t,n)}};function uE(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=tm(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function om(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function ya(e,t,n){im(e,t,3,n)}function va(e,t,n,r){(e[O]&3)===n&&im(e,t,n,r)}function Xu(e,t){let n=e[O];(n&3)===t&&(n&=16383,n+=1,e[O]=n)}function im(e,t,n,r){let o=r!==void 0?e[Kn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Kn]+=65536),(a<i||i==-1)&&(dE(e,n,t,c),e[Kn]=(e[Kn]&4294901760)+c+2),c++}function wg(e,t){X(4,e,t);let n=P(null);try{t.call(e)}finally{P(n),X(5,e,t)}}function dE(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[O]>>14<e[Kn]>>16&&(e[O]&3)===t&&(e[O]+=16384,wg(a,i)):wg(a,i)}var qr=-1,rr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function fE(e){return(e.flags&8)!==0}function hE(e){return(e.flags&16)!==0}function pE(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];mE(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function gE(e){return e===3||e===4||e===6}function mE(e){return e.charCodeAt(0)===64}function Zr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?bg(e,n,o,null,t[++r]):bg(e,n,o,null,null))}}return e}function bg(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function sm(e){return e!==qr}function Ea(e){return e&32767}function yE(e){return e>>16}function wa(e,t){let n=yE(e),r=t;for(;n>0;)r=r[Qn],n--;return r}var cd=!0;function Ig(e){let t=cd;return cd=e,t}var vE=256,am=vE-1,cm=5,_E=0,Rt={};function DE(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Zn)&&(r=n[Zn]),r==null&&(r=n[Zn]=_E++);let o=r&am,i=1<<o;t.data[e+(o>>cm)]|=i}function ba(e,t){let n=lm(e,t);if(n!==-1)return n;let r=t[R];r.firstCreatePass&&(e.injectorIndex=t.length,Ju(r.data,e),Ju(t,null),Ju(r.blueprint,null));let o=Pd(e,t),i=e.injectorIndex;if(sm(o)){let s=Ea(o),a=wa(o,t),c=a[R].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Ju(e,t){e.push(0,0,0,0,0,0,0,0,t)}function lm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=pm(o),r===null)return qr;if(n++,o=o[Qn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return qr}function ld(e,t,n){DE(e,t,n)}function um(e,t,n){if(n&8||e!==void 0)return e;Ys(t,"NodeInjector")}function dm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Yn],i=Ke(void 0);try{return o?o.get(t,r,n&8):hu(t,r,n&8)}finally{Ke(i)}}return um(r,t,n)}function fm(e,t,n,r=0,o){if(e!==null){if(t[O]&2048&&!(r&2)){let s=bE(e,t,n,r,Rt);if(s!==Rt)return s}let i=hm(e,t,n,r,Rt);if(i!==Rt)return i}return dm(t,n,r,o)}function hm(e,t,n,r,o){let i=EE(n);if(typeof i=="function"){if(!Hu(t,e,r))return r&1?um(o,n,r):dm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ys(n);else return s}finally{zu()}}else if(typeof i=="number"){let s=null,a=lm(e,t),c=qr,l=r&1?t[ot][rt]:null;for((a===-1||r&4)&&(c=a===-1?Pd(e,t):t[a+8],c===qr||!Sg(r,!1)?a=-1:(s=t[R],a=Ea(c),t=wa(c,t)));a!==-1;){let u=t[R];if(Mg(i,a,u.data)){let d=CE(a,t,n,s,r,l);if(d!==Rt)return d}c=t[a+8],c!==qr&&Sg(r,t[R].data[a+8]===l)&&Mg(i,a,t)?(s=u,a=Ea(c),t=wa(c,t)):a=-1}}return o}function CE(e,t,n,r,o,i){let s=t[R],a=s.data[e+8],c=r==null?En(a)&&cd:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=_a(a,s,n,c,l);return u!==null?ii(t,s,u,a,o):Rt}function _a(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,h=o?a+u:l;for(let f=d;f<h;f++){let m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&Tt(f)&&f.type===n)return c}return null}function ii(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof rr){let a=i;if(a.resolving){let f=Gs(s[n]);throw fu(f)}let c=Ig(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?Ke(a.injectImpl):null,h=Hu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&uE(n,s[n],t)}finally{d!==null&&Ke(d),Ig(c),a.resolving=!1,zu()}}return i}function EE(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Zn)?e[Zn]:void 0;return typeof t=="number"?t>=0?t&am:wE:t}function Mg(e,t,n){let r=1<<e;return!!(n[t+(e>>cm)]&r)}function Sg(e,t){return!(e&2)&&!(e&1&&t)}var nr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fm(this._tNode,this._lView,t,zn(r),n)}};function wE(){return new nr(xe(),W())}function Sn(e){return Xr(()=>{let t=e.prototype.constructor,n=t[Uo]||ud(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Uo]||ud(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ud(e){return ru(e)?()=>{let t=ud(De(e));return t&&t()}:Gn(e)}function bE(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[O]&2048&&!Hr(s);){let a=hm(i,s,n,r|2,Rt);if(a!==Rt)return a;let c=i.parent;if(!c){let l=s[bu];if(l){let u=l.get(n,Rt,r);if(u!==Rt)return u}c=pm(s),s=s[Qn]}i=c}return o}function pm(e){let t=e[R],n=t.type;return n===2?t.declTNode:n===1?e[rt]:null}function IE(){return Jr(xe(),W())}function Jr(e,t){return new Dt(xt(e,t))}var Dt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=IE}return e})();function ME(e){return e instanceof Dt?e.nativeElement:e}function SE(){return this._results[Symbol.iterator]()}var Ia=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ie}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=$p(t);(this._changesDetected=!Up(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=SE};function gm(e){return(e.flags&128)===128}var Fd=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Fd||{}),mm=new Map,TE=0;function xE(){return TE++}function AE(e){mm.set(e[Yo],e)}function dd(e){mm.delete(e[Yo])}var Tg="__ngContext__";function Yr(e,t){St(t)?(e[Tg]=t[Yo],AE(t)):e[Tg]=t}function ym(e){return _m(e[$r])}function vm(e){return _m(e[nt])}function _m(e){for(;e!==null&&!yt(e);)e=e[nt];return e}var fd;function Ld(e){fd=e}function Dm(){if(fd!==void 0)return fd;if(typeof document<"u")return document;throw new I(210,!1)}var Va=new M("",{providedIn:"root",factory:()=>NE}),NE="ng",ja=new M(""),eo=new M("",{providedIn:"platform",factory:()=>"unknown"});var Ba=new M("",{providedIn:"root",factory:()=>Dm().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var RE="h",OE="b";var Cm=!1,Em=new M("",{providedIn:"root",factory:()=>Cm});var kE=(e,t,n,r)=>{};function PE(e,t,n,r){kE(e,t,n,r)}function Vd(e){return(e.flags&32)===32}var FE=()=>null;function wm(e,t,n=!1){return FE(e,t,n)}function bm(e,t){let n=e.contentQueries;if(n!==null){let r=P(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];sa(i),a.contentQueries(2,t[s],s)}}}finally{P(r)}}}function hd(e,t,n){sa(0);let r=P(null);try{t(e,n)}finally{P(r)}}function Im(e,t,n){if(Iu(t)){let r=P(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{P(r)}}}var Kt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Kt||{});var pd=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${nu})`}};function jd(e){return e instanceof pd?e.changingThisBreaksApplicationSecurity:e}function Mm(e){return e instanceof Function?e():e}function LE(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Sm="ng-template";function VE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&LE(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Bd(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Bd(e){return e.type===4&&e.value!==Sm}function jE(e,t,n){let r=e.type===4&&!n?Sm:e.value;return t===r}function BE(e,t,n){let r=4,o=e.attrs,i=o!==null?HE(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!vt(r)&&!vt(c))return!1;if(s&&vt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!jE(e,c,n)||c===""&&t.length===1){if(vt(r))return!1;s=!0}}else if(r&8){if(o===null||!VE(e,o,c,n)){if(vt(r))return!1;s=!0}}else{let l=t[++a],u=UE(c,o,Bd(e),n);if(u===-1){if(vt(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(vt(r))return!1;s=!0}}}}return vt(r)||s}function vt(e){return(e&1)===0}function UE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return zE(t,e)}function $E(e,t,n=!1){for(let r=0;r<t.length;r++)if(BE(e,t[r],n))return!0;return!1}function HE(e){for(let t=0;t<e.length;t++){let n=e[t];if(gE(n))return t}return e.length}function zE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function xg(e,t){return e?":not("+t.trim()+")":t}function GE(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!vt(s)&&(t+=xg(i,o),o=""),r=s,i=i||!vt(r);n++}return o!==""&&(t+=xg(i,o)),t}function WE(e){return e.map(GE).join(",")}function qE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!vt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var at={};function ZE(e,t){return e.createText(t)}function YE(e,t,n){e.setValue(t,n)}function Tm(e,t,n){return e.createElement(t,n)}function Ma(e,t,n,r,o){e.insertBefore(t,n,r,o)}function xm(e,t,n){e.appendChild(t,n)}function Ag(e,t,n,r,o){r!==null?Ma(e,t,n,r,o):xm(e,t,n)}function QE(e,t,n){e.removeChild(null,t,n)}function KE(e,t,n){e.setAttribute(t,"style",n)}function XE(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Am(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&pE(e,t,r),o!==null&&XE(e,t,o),i!==null&&KE(e,t,i)}function Ud(e,t,n,r,o,i,s,a,c,l,u){let d=Ge+r,h=d+o,f=JE(d,h),m=typeof l=="function"?l():l;return f[R]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:u}}function JE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:at);return n}function ew(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ud(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function $d(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[mt]=o,d[O]=r|4|128|8|64|1024,(l!==null||e&&e[O]&2048)&&(d[O]|=2048),Tu(d),d[me]=d[Qn]=e,d[Te]=n,d[Zt]=s||e&&e[Zt],d[ne]=a||e&&e[ne],d[Yn]=c||e&&e[Yn]||null,d[rt]=i,d[Yo]=xE(),d[Zo]=u,d[bu]=l,d[ot]=t.type==2?e[ot]:d,d}function tw(e,t,n){let r=xt(t,e),o=ew(n),i=e[Zt].rendererFactory,s=Hd(e,$d(e,o,null,Nm(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Nm(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Rm(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Hd(e,t){return e[$r]?e[wu][nt]=t:e[$r]=t,e[wu]=t,t}function C(e=1){Om(Pe(),W(),Yt()+e,!1)}function Om(e,t,n,r){if(!r)if((t[O]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ya(t,i,n)}else{let i=e.preOrderHooks;i!==null&&va(t,i,0,n)}wn(n)}var Ua=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ua||{});function gd(e,t,n,r){let o=P(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ua.SignalBased)!==0&&(c=t[i][Me]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):em(t,c,i,r)}finally{P(o)}}var Ot=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Ot||{}),nw;function zd(e,t){return nw(e,t)}function Wr(e,t,n,r,o){if(r!=null){let i,s=!1;yt(r)?i=r:St(r)&&(s=!0,r=r[mt]);let a=it(r);e===0&&n!==null?o==null?xm(t,n,a):Ma(t,n,a,o||null,!0):e===1&&n!==null?Ma(t,n,a,o||null,!0):e===2?QE(t,a,s):e===3&&t.destroyNode(a),i!=null&&pw(t,e,i,n,o)}}function rw(e,t){km(e,t),t[mt]=null,t[rt]=null}function ow(e,t,n,r,o,i){r[mt]=o,r[rt]=t,$a(e,r,n,1,o,i)}function km(e,t){t[Zt].changeDetectionScheduler?.notify(9),$a(e,t,t[ne],2,null,null)}function iw(e){let t=e[$r];if(!t)return ed(e[R],e);for(;t;){let n=null;if(St(t))n=t[$r];else{let r=t[ke];r&&(n=r)}if(!n){for(;t&&!t[nt]&&t!==e;)St(t)&&ed(t[R],t),t=t[me];t===null&&(t=e),St(t)&&ed(t[R],t),n=t&&t[nt]}t=n}}function Gd(e,t){let n=e[Jn],r=n.indexOf(t);n.splice(r,1)}function Pm(e,t){if(er(t))return;let n=t[ne];n.destroyNode&&$a(e,t,n,3,null,null),iw(t)}function ed(e,t){if(er(t))return;let n=P(null);try{t[O]&=-129,t[O]|=256,t[Xe]&&Po(t[Xe]),aw(e,t),sw(e,t),t[R].type===1&&t[ne].destroy();let r=t[Dn];if(r!==null&&yt(t[me])){r!==t[me]&&Gd(r,t);let o=t[Mt];o!==null&&o.detachView(e)}dd(t)}finally{P(n)}}function sw(e,t){let n=e.cleanup,r=t[Ur];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ur]=null);let o=t[zt];if(o!==null){t[zt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Qo];if(i!==null){t[Qo]=null;for(let s of i)s.destroy()}}function aw(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof rr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];X(4,a,c);try{c.call(a)}finally{X(5,a,c)}}else{X(4,o,i);try{i.call(o)}finally{X(5,o,i)}}}}}function cw(e,t,n){return lw(e,t.parent,n)}function lw(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[mt];if(En(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Kt.None||o===Kt.Emulated)return null}return xt(r,n)}function uw(e,t,n){return fw(e,t,n)}function dw(e,t,n){return e.type&40?xt(e,n):null}var fw=dw,Ng;function Wd(e,t,n,r){let o=cw(e,r,t),i=t[ne],s=r.parent||t[rt],a=uw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ag(i,o,n[c],a,!1);else Ag(i,o,n,a,!1);Ng!==void 0&&Ng(i,r,t,n,o)}function ri(e,t){if(t!==null){let n=t.type;if(n&3)return xt(t,e);if(n&4)return md(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ri(e,r);{let o=e[t.index];return yt(o)?md(-1,o):it(o)}}else{if(n&128)return ri(e,t.next);if(n&32)return zd(t,e)()||it(e[t.index]);{let r=Fm(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=mn(e[ot]);return ri(o,r)}else return ri(e,t.next)}}}return null}function Fm(e,t){if(t!==null){let r=e[ot][rt],o=t.projection;return r.projection[o]}return null}function md(e,t){let n=ke+e+1;if(n<t.length){let r=t[n],o=r[R].firstChild;if(o!==null)return ri(r,o)}return t[Cn]}function qd(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Yr(it(a),r),n.flags|=2),!Vd(n))if(c&8)qd(e,t,n.child,r,o,i,!1),Wr(t,e,o,a,i);else if(c&32){let l=zd(n,r),u;for(;u=l();)Wr(t,e,o,u,i);Wr(t,e,o,a,i)}else c&16?hw(e,t,r,n,o,i):Wr(t,e,o,a,i);n=s?n.projectionNext:n.next}}function $a(e,t,n,r,o,i){qd(n,r,e.firstChild,t,o,i,!1)}function hw(e,t,n,r,o,i){let s=n[ot],c=s[rt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Wr(t,e,o,u,i)}else{let l=c,u=s[me];gm(r)&&(l.flags|=128),qd(e,t,l,u,o,i,!0)}}function pw(e,t,n,r,o){let i=n[Cn],s=it(n);i!==s&&Wr(t,e,r,i,o);for(let a=ke;a<n.length;a++){let c=n[a];$a(c[R],c,e,t,r,i)}}function gw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ot.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ot.Important),e.setStyle(n,r,o,i))}}function Lm(e,t,n,r,o){let i=Yt(),s=r&2;try{wn(-1),s&&t.length>Ge&&Om(e,t,Ge,!1),X(s?2:0,o,n),n(r,o)}finally{wn(i),X(s?3:1,o,n)}}function Zd(e,t,n){Ew(e,t,n),(n.flags&64)===64&&ww(e,t,n)}function Yd(e,t,n=xt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function mw(e,t,n,r){let i=r.get(Em,Cm)||n===Kt.ShadowDom,s=e.selectRootElement(t,i);return yw(s),s}function yw(e){vw(e)}var vw=()=>null;function _w(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Vm(e,t,n,r,o,i){let s=t[R];if(Qd(e,s,t,n,r)){En(e)&&Cw(t,e.index);return}e.type&3&&(n=_w(n)),Dw(e,t,n,r,o,i)}function Dw(e,t,n,r,o,i){if(e.type&3){let s=xt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function Cw(e,t){let n=st(t,e);n[O]&16||(n[O]|=64)}function Ew(e,t,n){let r=n.directiveStart,o=n.directiveEnd;En(n)&&tw(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||ba(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ii(t,e,s,n);if(Yr(c,t),i!==null&&Iw(t,s-r,c,a,n,i),Tt(a)){let l=st(n.index,t);l[Te]=ii(t,e,s,n)}}}function ww(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=fg();try{wn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ia(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&bw(c,l)}}finally{wn(-1),ia(s)}}function bw(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function jm(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];$E(t,i.selectors,!1)&&(r??=[],Tt(i)?r.unshift(i):r.push(i))}return r}function Iw(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];gd(r,n,c,l)}}function Bm(e,t,n,r,o){let i=Ge+n,s=t[R],a=o(s,t,e,r,n);t[i]=a,Gr(e,!0);let c=e.type===2;return c?(Am(t[ne],a,e),(rg()===0||Xo(e))&&Yr(a,t),og()):Yr(a,t),ua()&&(!c||!Vd(e))&&Wd(s,t,a,e),e}function Um(e){let t=e;return Vu()?ag():(t=t.parent,Gr(t,!1)),t}function Mw(e,t){let n=e[Yn];if(!n)return;n.get(Je,null)?.(t)}function Qd(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];gd(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];gd(u,l,r,o),a=!0}return a}function Sw(e,t){let n=st(t,e),r=n[R];Tw(r,n);let o=n[mt];o!==null&&n[Zo]===null&&(n[Zo]=wm(o,n[Yn])),X(18),Kd(r,n,n[Te]),X(19,n[Te])}function Tw(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Kd(e,t,n){aa(t);try{let r=e.viewQuery;r!==null&&hd(1,r,n);let o=e.template;o!==null&&Lm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Mt]?.finishViewCreation(e),e.staticContentQueries&&bm(e,t),e.staticViewQueries&&hd(2,e.viewQuery,n);let i=e.components;i!==null&&xw(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[O]&=-5,ca()}}function xw(e,t){for(let n=0;n<t.length;n++)Sw(e,t[n])}function Aw(e,t,n,r){let o=P(null);try{let i=t.tView,a=e[O]&4096?4096:16,c=$d(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Dn]=l;let u=e[Mt];return u!==null&&(c[Mt]=u.createEmbeddedView(i)),Kd(i,c,n),c}finally{P(o)}}function Rg(e,t){return!t||t.firstChild===null||gm(e)}var Og=!1,Nw=new M("");function si(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(it(i)),yt(i)&&$m(i,r);let s=n.type;if(s&8)si(e,t,n.child,r);else if(s&32){let a=zd(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Fm(t,n);if(Array.isArray(a))r.push(...a);else{let c=mn(t[ot]);si(c[R],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function $m(e,t){for(let n=ke;n<e.length;n++){let r=e[n],o=r[R].firstChild;o!==null&&si(r[R],r,o,t)}e[Cn]!==e[mt]&&t.push(e[Cn])}function Hm(e){if(e[Xn]!==null){for(let t of e[Xn])t.impl.addSequence(t);e[Xn].length=0}}var zm=[];function Rw(e){return e[Xe]??Ow(e)}function Ow(e){let t=zm.pop()??Object.create(Pw);return t.lView=e,t}function kw(e){e.lView[Xe]!==e&&(e.lView=null,zm.push(e))}var Pw=B(_({},Vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{zr(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function Fw(e){let t=e[Xe]??Object.create(Lw);return t.lView=e,t}var Lw=B(_({},Vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=mn(e.lView);for(;t&&!Gm(t[R]);)t=mn(t);t&&xu(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function Gm(e){return e.type!==2}function Wm(e){if(e[Qo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Qo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[O]&8192)}}var Vw=100;function Xd(e,t=0){let r=e[Zt].rendererFactory,o=!1;o||r.begin?.();try{jw(e,t)}finally{o||r.end?.()}}function jw(e,t){let n=Bu();try{Uu(!0),yd(e,t);let r=0;for(;Jo(e);){if(r===Vw)throw new I(103,!1);r++,yd(e,1)}}finally{Uu(n)}}function qm(e,t){ju(t?ei.Exhaustive:ei.OnlyDirtyViews);try{Xd(e)}finally{ju(ei.Off)}}function Bw(e,t,n,r){if(er(t))return;let o=t[O],i=!1,s=!1;aa(t);let a=!0,c=null,l=null;i||(Gm(e)?(l=Rw(t),c=jn(l)):ps()===null?(a=!1,l=Fw(t),c=jn(l)):t[Xe]&&(Po(t[Xe]),t[Xe]=null));try{Tu(t),lg(e.bindingStartIndex),n!==null&&Lm(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&ya(t,f,null)}else{let f=e.preOrderHooks;f!==null&&va(t,f,0,null),Xu(t,0)}if(s||Uw(t),Wm(t),Zm(t,0),e.contentQueries!==null&&bm(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&ya(t,f)}else{let f=e.contentHooks;f!==null&&va(t,f,1),Xu(t,1)}Hw(e,t);let d=e.components;d!==null&&Qm(t,d,0);let h=e.viewQuery;if(h!==null&&hd(2,h,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&ya(t,f)}else{let f=e.viewHooks;f!==null&&va(t,f,2),Xu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Js]){for(let f of t[Js])f();t[Js]=null}i||(Hm(t),t[O]&=-73)}catch(u){throw i||zr(t),u}finally{l!==null&&(br(l,c),a&&kw(l)),ca()}}function Zm(e,t){for(let n=ym(e);n!==null;n=vm(n))for(let r=ke;r<n.length;r++){let o=n[r];Ym(o,t)}}function Uw(e){for(let t=ym(e);t!==null;t=vm(t)){if(!(t[O]&2))continue;let n=t[Jn];for(let r=0;r<n.length;r++){let o=n[r];xu(o)}}}function $w(e,t,n){X(18);let r=st(t,e);Ym(r,n),X(19,r[Te])}function Ym(e,t){ta(e)&&yd(e,t)}function yd(e,t){let r=e[R],o=e[O],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&ko(i)),s||=!1,i&&(i.dirty=!1),e[O]&=-9217,s)Bw(r,e,r.template,e[Te]);else if(o&8192){let a=P(null);try{Wm(e),Zm(e,1);let c=r.components;c!==null&&Qm(e,c,1),Hm(e)}finally{P(a)}}}function Qm(e,t,n){for(let r=0;r<t.length;r++)$w(e,t[r],n)}function Hw(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)wn(~o);else{let i=o,s=n[++r],a=n[++r];dg(s,i);let c=t[i];X(24,c),a(2,c),X(25,c)}}}finally{wn(-1)}}function Jd(e,t){let n=Bu()?64:1088;for(e[Zt].changeDetectionScheduler?.notify(t);e;){e[O]|=n;let r=mn(e);if(Hr(e)&&!r)return e;e=r}return null}function Km(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function zw(e,t,n,r=!0){let o=t[R];if(Gw(o,t,e,n),r){let s=md(n,e),a=t[ne],c=a.parentNode(e[Cn]);c!==null&&ow(o,e[rt],a,t,c,s)}let i=t[Zo];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function vd(e,t){if(e.length<=ke)return;let n=ke+t,r=e[n];if(r){let o=r[Dn];o!==null&&o!==e&&Gd(o,r),t>0&&(e[n-1][nt]=r[nt]);let i=Go(e,ke+t);rw(r[R],r);let s=i[Mt];s!==null&&s.detachView(i[R]),r[me]=null,r[nt]=null,r[O]&=-129}return r}function Gw(e,t,n,r){let o=ke+r,i=n.length;r>0&&(n[o-1][nt]=t),r<i-ke?(t[nt]=n[o],gu(n,ke+r,t)):(n.push(t),t[nt]=null),t[me]=n;let s=t[Dn];s!==null&&n!==s&&Xm(s,t);let a=t[Mt];a!==null&&a.insertView(e),na(t),t[O]|=128}function Xm(e,t){let n=e[Jn],r=t[me];if(St(r))e[O]|=2;else{let o=r[me][ot];t[ot]!==o&&(e[O]|=2)}n===null?e[Jn]=[t]:n.push(t)}var In=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[R];return si(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[Te]}set context(t){this._lView[Te]=t}get destroyed(){return er(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[me];if(yt(t)){let n=t[Ko],r=n?n.indexOf(this):-1;r>-1&&(vd(t,r),Go(n,r))}this._attachedToViewContainer=!1}Pm(this._lView[R],this._lView)}onDestroy(t){Au(this._lView,t)}markForCheck(){Jd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[O]&=-129}reattach(){na(this._lView),this._lView[O]|=128}detectChanges(){this._lView[O]|=1024,Xd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Hr(this._lView),n=this._lView[Dn];n!==null&&!t&&Gd(n,this._lView),km(this._lView[R],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t;let n=Hr(this._lView),r=this._lView[Dn];r!==null&&!n&&Xm(r,this._lView),na(this._lView)}};var Mn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Ww;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Aw(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new In(i)}}return e})();function Ww(){return ef(xe(),W())}function ef(e,t){return e.type&4?new Mn(t,e,Jr(e,t)):null}function Ha(e,t,n,r,o){let i=e.data[t];if(i===null)i=qw(e,t,n,r,o),ug()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=sg();i.injectorIndex=s===null?-1:s.injectorIndex}return Gr(i,!0),i}function qw(e,t,n,r,o){let i=Lu(),s=Vu(),a=s?i:i&&i.parent,c=e.data[t]=Yw(e,a,n,t,r,o);return Zw(e,c,i,s),c}function Zw(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Yw(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return ig()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var mV=new RegExp(`^(\\d+)*(${OE}|${RE})*(.*)`);var Qw=()=>null;function kg(e,t){return Qw(e,t)}var Jm=class{},za=class{},_d=class{resolveComponentFactory(t){throw new I(917,!1)}},li=class{static NULL=new _d},or=class{},cr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Kw()}return e})();function Kw(){let e=W(),t=xe(),n=st(t.index,e);return(St(n)?n:e)[ne]}var ey=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();var Da={},Dd=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Da,r);return o!==Da||n===Da?o:this.parentInjector.get(t,n,r)}};function Sa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=qs(o,a);else if(i==2){let c=a,l=t[++s];r=qs(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function q(e,t=0){let n=W();if(n===null)return T(e,t);let r=xe();return fm(r,n,De(e),t)}function ty(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}eb(e,t,n,a,i,c,l)}i!==null&&r!==null&&Xw(n,r,i)}function Xw(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new I(-301,!1);r.push(t[o],i)}}function Jw(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function eb(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let f=r[h];!c&&Tt(f)&&(c=!0,Jw(e,n,h)),ld(ba(n,t),e,f.type)}sb(n,e.data.length,a);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=Rm(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=Zr(n.mergedAttrs,f.hostAttrs),nb(e,n,t,d,f),ib(d,f,o),s!==null&&s.has(f)){let[g,p]=s.get(f);n.directiveToIndex.set(f.type,[d,g+n.directiveStart,p+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let m=f.type.prototype;!l&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}tb(e,n,i)}function tb(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Pg(0,t,o,r),Pg(1,t,o,r),Lg(t,r,!1);else{let i=n.get(o);Fg(0,t,i,r),Fg(1,t,i,r),Lg(t,r,!0)}}}function Pg(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),ny(t,i)}}function Fg(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),ny(t,s)}}function ny(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Lg(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Bd(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function nb(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Gn(o.type,!0)),s=new rr(i,Tt(o),q,null);e.blueprint[r]=s,n[r]=s,rb(e,t,r,Rm(e,n,o.hostVars,at),o)}function rb(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;ob(s)!=a&&s.push(a),s.push(n,r,i)}}function ob(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function ib(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Tt(t)&&(n[""]=e)}}function sb(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ry(e,t,n,r,o,i,s,a){let c=t[R],l=c.consts,u=tr(l,s),d=Ha(c,e,n,r,u);return i&&ty(c,t,d,tr(l,a),o),d.mergedAttrs=Zr(d.mergedAttrs,d.attrs),d.attrs!==null&&Sa(d,d.attrs,!1),d.mergedAttrs!==null&&Sa(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function oy(e,t){om(e,t),Iu(t)&&e.queries.elementEnd(t)}function ab(e,t,n,r,o,i){let s=t.consts,a=tr(s,o),c=Ha(t,e,n,r,a);if(c.mergedAttrs=Zr(c.mergedAttrs,c.attrs),i!=null){let l=tr(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Sa(c,c.attrs,!1),c.mergedAttrs!==null&&Sa(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function tf(e){return sy(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function iy(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function sy(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ir(e,t,n){if(n===at)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function cb(e,t,n,r){let o=ir(e,t,n);return ir(e,t+1,r)||o}function td(e,t,n){return function r(o){let i=En(e)?st(e.index,t):t;Jd(i,5);let s=t[Te],a=Vg(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Vg(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Vg(e,t,n,r){let o=P(null);try{return X(6,t,n),n(r)!==!1}catch(i){return Mw(e,i),!1}finally{X(7,t,n),P(o)}}function lb(e,t,n,r,o,i,s,a){let c=Xo(e),l=!1,u=null;if(!r&&c&&(u=ub(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=xt(e,n),h=r?r(d):d;PE(n,h,i,a);let f=o.listen(h,i,a),m=r?g=>r(it(g[e.index])):e.index;ay(m,t,n,i,a,f,!1)}return l}function ub(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Ur],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function ay(e,t,n,r,o,i,s){let a=t.firstCreatePass?Ru(t):null,c=Nu(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function jg(e,t,n,r,o,i){let s=t[n],a=t[R],l=a.data[n].outputs[r],d=s[l].subscribe(i);ay(e.index,a,t,o,i,d,!0)}var Cd=Symbol("BINDING");var Ta=class extends li{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=_n(t);return new Qr(n,this.ngModule)}};function db(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ua.SignalBased)!==0};return o&&(i.transform=o),i})}function fb(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function hb(e,t,n){let r=t instanceof ue?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Dd(n,r):n}function pb(e){let t=e.get(or,null);if(t===null)throw new I(407,!1);let n=e.get(ey,null),r=e.get(Wt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function gb(e,t){let n=cy(e);return Tm(t,n,n==="svg"?Mu:n==="math"?Kp:null)}function cy(e){return(e.selectors[0][0]||"div").toLowerCase()}var Qr=class extends za{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=db(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=fb(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=WE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){X(22);let a=P(null);try{let c=this.componentDef,l=mb(r,c,s,i),u=hb(c,o||this.ngModule,t),d=pb(u),h=d.rendererFactory.createRenderer(null,c),f=r?mw(h,r,c.encapsulation,u):gb(c,h),m=s?.some(Bg)||i?.some(y=>typeof y!="function"&&y.bindings.some(Bg)),g=$d(null,l,null,512|Nm(c),null,null,d,h,u,null,wm(f,u,!0));g[Ge]=f,aa(g);let p=null;try{let y=ry(Ge,g,2,"#host",()=>l.directiveRegistry,!0,0);f&&(Am(h,f,y),Yr(f,g)),Zd(l,g,y),Im(l,y,g),oy(l,y),n!==void 0&&vb(y,this.ngContentSelectors,n),p=st(y.index,g),g[Te]=p[Te],Kd(l,g,null)}catch(y){throw p!==null&&dd(p),dd(g),y}finally{X(23),ca()}return new xa(this.componentType,g,!!m)}finally{P(a)}}};function mb(e,t,n,r){let o=e?["ng-version","20.2.1"]:qE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Cd].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let h of d.bindings){a+=h[Cd].requiredVars;let f=u+1;h.create&&(h.targetIdx=f,(i??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,h=_u(d);c.push(h)}return Ud(0,null,yb(i,s),1,a,c,null,null,null,[o],null)}function yb(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Bg(e){let t=e[Cd].kind;return t==="input"||t==="twoWay"}var xa=class extends Jm{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ea(n[R],Ge),this.location=Jr(this._tNode,n),this.instance=st(this._tNode.index,n)[Te],this.hostView=this.changeDetectorRef=new In(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Qd(r,o[R],o,t,n);this.previousInputValues.set(t,n);let s=st(r.index,o);Jd(s,1)}get injector(){return new nr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function vb(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Xt=(()=>{class e{static __NG_ELEMENT_ID__=_b}return e})();function _b(){let e=xe();return uy(e,W())}var Db=Xt,ly=class extends Db{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Jr(this._hostTNode,this._hostLView)}get injector(){return new nr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Pd(this._hostTNode,this._hostLView);if(sm(t)){let n=wa(t,this._hostLView),r=Ea(t),o=n[R].data[r+8];return new nr(o,n)}else return new nr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Ug(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ke}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=kg(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Rg(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!sE(t),l;if(c)l=n;else{let p=n||{};l=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef,s=p.directives,a=p.bindings}let u=c?t:new Qr(_n(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let y=(c?d:this.parentInjector).get(ue,null);y&&(i=y)}let h=_n(u.componentType??{}),f=kg(this._lContainer,h?.id??null),m=f?.firstChild??null,g=u.create(d,o,m,i,s,a);return this.insertImpl(g.hostView,l,Rg(this._hostTNode,f)),g}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Jp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[me],l=new ly(c,c[rt],c[me]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return zw(s,o,i,r),t.attachToViewContainerRef(),gu(nd(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Ug(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=vd(this._lContainer,n);r&&(Go(nd(this._lContainer),n),Pm(r[R],r))}detach(t){let n=this._adjustIndex(t,-1),r=vd(this._lContainer,n);return r&&Go(nd(this._lContainer),n)!=null?new In(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Ug(e){return e[Ko]}function nd(e){return e[Ko]||(e[Ko]=[])}function uy(e,t){let n,r=t[e.index];return yt(r)?n=r:(n=Km(r,t,null,e),t[e.index]=n,Hd(t,n)),Eb(n,t,e,r),new ly(n,e,t)}function Cb(e,t){let n=e[ne],r=n.createComment(""),o=xt(t,e),i=n.parentNode(o);return Ma(n,i,r,n.nextSibling(o),!1),r}var Eb=Ib,wb=()=>!1;function bb(e,t,n){return wb(e,t,n)}function Ib(e,t,n,r){if(e[Cn])return;let o;n.type&8?o=it(r):o=Cb(t,n),e[Cn]=o}var Ed=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},wd=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)nf(t,n).matches!==null&&this.queries[n].setDirty()}},bd=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Ob(t):this.predicate=t}},Id=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Md=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,Mb(n,i)),this.matchTNodeWithReadOption(t,n,_a(n,t,i,!1,!1))}else r===Mn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,_a(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Dt||o===Xt||o===Mn&&n.type&4)this.addMatch(n.index,-2);else{let i=_a(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function Mb(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Sb(e,t){return e.type&11?Jr(e,t):e.type&4?ef(e,t):null}function Tb(e,t,n,r){return n===-1?Sb(t,e):n===-2?xb(e,t,r):ii(e,e[R],n,t)}function xb(e,t,n){if(n===Dt)return Jr(t,e);if(n===Mn)return ef(t,e);if(n===Xt)return uy(t,e)}function dy(e,t,n,r){let o=t[Mt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(Tb(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Sd(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=dy(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=ke;d<u.length;d++){let h=u[d];h[Dn]===h[me]&&Sd(h[R],h,l,r)}if(u[Jn]!==null){let d=u[Jn];for(let h=0;h<d.length;h++){let f=d[h];Sd(f[R],f,l,r)}}}}}return r}function Ab(e,t){return e[Mt].queries[t].queryList}function Nb(e,t,n){let r=new Ia((n&4)===4);return ng(e,t,r,r.destroy),(t[Mt]??=new wd).queries.push(new Ed(r))-1}function Rb(e,t,n){let r=Pe();return r.firstCreatePass&&(kb(r,new bd(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Nb(r,W(),t)}function Ob(e){return e.split(",").map(t=>t.trim())}function kb(e,t,n){e.queries===null&&(e.queries=new Id),e.queries.track(new Md(t,n))}function nf(e,t){return e.queries.getByIndex(t)}function Pb(e,t){let n=e[R],r=nf(n,t);return r.crossesNgTemplate?Sd(n,e,t,[]):dy(n,e,r,t)}var $g=new Set;function Ga(e){$g.has(e)||($g.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var sr=class{},Wa=class{};var Aa=class extends sr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ta(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=vu(t);this._bootstrapComponents=Mm(i.bootstrap),this._r3Injector=Wu(t,n,[{provide:sr,useValue:this},{provide:li,useValue:this.componentFactoryResolver},...r],Gt(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Na=class extends Wa{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Aa(this.moduleType,t,[])}};var ai=class extends sr{injector;componentFactoryResolver=new Ta(this);instance=null;constructor(t){super();let n=new qn([...t.providers,{provide:sr,useValue:this},{provide:li,useValue:this.componentFactoryResolver}],t.parent||qo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function ui(e,t,n=null){return new ai({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Fb=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Du(!1,n.type),o=r.length>0?ui([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=S({token:e,providedIn:"environment",factory:()=>new e(T(ue))})}return e})();function Ve(e){return Xr(()=>{let t=fy(e),n=B(_({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Fd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Fb).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Kt.Emulated,styles:e.styles||Oe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ga("NgStandalone"),hy(n);let r=e.dependencies;return n.directiveDefs=Hg(r,Lb),n.pipeDefs=Hg(r,zp),n.id=Bb(n),n})}function Lb(e){return _n(e)||_u(e)}function Pt(e){return Xr(()=>({type:e.type,bootstrap:e.bootstrap||Oe,declarations:e.declarations||Oe,imports:e.imports||Oe,exports:e.exports||Oe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Vb(e,t){if(e==null)return yn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ua.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function jb(e){if(e==null)return yn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ae(e){return Xr(()=>{let t=fy(e);return hy(t),t})}function fy(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||yn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Oe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:Vb(e.inputs,t),outputs:jb(e.outputs),debugInfo:null}}function hy(e){e.features?.forEach(t=>t(e))}function Hg(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function Bb(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ub(e){return Object.getPrototypeOf(e.prototype).constructor}function Jt(e){let t=Ub(e.type),n=!0,r=[e];for(;t;){let o;if(Tt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new I(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=rd(e.inputs),s.declaredInputs=rd(e.declaredInputs),s.outputs=rd(e.outputs);let a=o.hostBindings;a&&Wb(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&zb(e,c),l&&Gb(e,l),$b(e,o),Fp(e.outputs,o.outputs),Tt(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Jt&&(n=!1)}}t=Object.getPrototypeOf(t)}Hb(r)}function $b(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function Hb(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Zr(o.hostAttrs,n=Zr(n,o.hostAttrs))}}function rd(e){return e===yn?{}:e===Oe?[]:e}function zb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Gb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Wb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function qb(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Zr(e.mergedAttrs,e.attrs);let u=e.tView=Ud(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Gr(e,!1);let c=Yb(n,t,e,r);ua()&&Wd(n,t,c,e),Yr(c,t);let l=Km(c,t,c,e);t[r+Ge]=l,Hd(t,l),bb(l,e,t)}function Zb(e,t,n,r,o,i,s,a,c,l,u){let d=n+Ge,h;return t.firstCreatePass?(h=Ha(t,d,4,s||null,a||null),ku()&&ty(t,e,h,tr(t.consts,l),jm),om(t,h)):h=t.data[d],qb(h,e,t,n,r,o,i,c),Xo(h)&&Zd(t,e,h),l!=null&&Yd(e,h,u),h}function ce(e,t,n,r,o,i,s,a){let c=W(),l=Pe(),u=tr(l.consts,i);return Zb(c,l,e,t,n,r,o,u,void 0,s,a),ce}var Yb=Qb;function Qb(e,t,n,r){return da(!0),t[ne].createComment("")}var qa=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(qa||{}),lr=new M(""),py=!1,Td=class extends ie{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Yp()&&(this.destroyRef=v(At,{optional:!0})??void 0,this.pendingTasks=v(Nt,{optional:!0})??void 0)}emit(t){let n=P(null);try{super.next(t)}finally{P(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof oe&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Y=Td;function gy(e){let t,n;function r(){e=ni;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function zg(e){return queueMicrotask(()=>e()),()=>{e=ni}}var rf="isAngularZone",Ra=rf+"_ID",Kb=0,ae=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Y(!1);onMicrotaskEmpty=new Y(!1);onStable=new Y(!1);onError=new Y(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=py}=t;if(typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,eI(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(rf)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new I(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Xb,ni,ni);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Xb={};function of(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jb(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){gy(()=>{e.callbackScheduled=!1,xd(e),e.isCheckStableRunning=!0,of(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),xd(e)}function eI(e){let t=()=>{Jb(e)},n=Kb++;e._inner=e._inner.fork({name:"angular",properties:{[rf]:!0,[Ra]:n,[Ra+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(tI(c))return r.invokeTask(i,s,a,c);try{return Gg(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Wg(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Gg(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!nI(c)&&t(),Wg(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,xd(e),of(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function xd(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Gg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Wg(e){e._nesting--,of(e)}var Oa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Y;onMicrotaskEmpty=new Y;onStable=new Y;onError=new Y;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function tI(e){return my(e,"__ignore_ng_zone__")}function nI(e){return my(e,"__scheduler_tick__")}function my(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var sf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),yy=[0,1,2,3],vy=(()=>{class e{ngZone=v(ae);scheduler=v(Wt);errorHandler=v(pt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){v(lr,{optional:!0})}execute(){let n=this.sequences.size>0;n&&X(16),this.executing=!0;for(let r of yy)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&X(17)}register(n){let{view:r}=n;r!==void 0?((r[Xn]??=[]).push(n),zr(r),r[O]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(qa.AFTER_NEXT_RENDER,n):n()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),ka=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Xn];t&&(this.view[Xn]=t.filter(n=>n!==this))}};function Za(e,t){let n=t?.injector??v(tt);return Ga("NgAfterNextRender"),oI(e,n,t,!0)}function rI(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function oI(e,t,n,r){let o=t.get(sf);o.impl??=t.get(vy);let i=t.get(lr,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(At):null,a=t.get(pa,null,{optional:!0}),c=new ka(o.impl,rI(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var af=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var cf=new M("");function Tn(e){return!!e&&typeof e.then=="function"}function lf(e){return!!e&&typeof e.subscribe=="function"}var _y=new M("");var uf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(_y,{optional:!0})??[];injector=v(tt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ce(this.injector,o);if(Tn(i))n.push(i);else if(lf(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ya=new M("");function Dy(){Sl(()=>{let e="";throw new I(600,e)})}function Cy(e){return e.isBoundToModule}var iI=10;var en=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(Je);afterRenderManager=v(sf);zonelessEnabled=v(ha);rootEffectScheduler=v(Ku);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ie;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(Nt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(F(n=>!n))}constructor(){v(lr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(ue);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=tt.NULL){return this._injector.get(ae).run(()=>{X(10);let s=n instanceof za;if(!this._injector.get(uf).done){let m="";throw new I(405,m)}let c;s?c=n:c=this._injector.get(li).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Cy(c)?void 0:this._injector.get(sr),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,f=d.injector.get(cf,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),oi(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),X(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){X(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(qa.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new I(101,!1);let n=P(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,P(n),this.afterTick.next(),X(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(or,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<iI;)X(14),this.synchronizeOnce(),X(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Jo(o))continue;let i=r&&!this.zonelessEnabled?0:1;Xd(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Jo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;oi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(Ya,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>oi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var df=new M("",{providedIn:"root",factory:()=>!1}),ff=new M("",{providedIn:"root",factory:()=>sI}),sI=4e3;var wV=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function H(e,t,n){let r=W(),o=ra();if(ir(r,o,t)){let i=Pe(),s=Gu();Vm(s,r,e,t,r[ne],n)}return H}function Ad(e,t,n,r,o){Qd(t,e,n,o?"class":"style",r)}function w(e,t,n,r){let o=W(),i=o[R],s=e+Ge,a=i.firstCreatePass?ry(s,o,2,t,jm,ku(),n,r):i.data[s];if(Bm(a,o,e,t,Ey),Xo(a)){let c=o[R];Zd(c,o,a),Im(c,a,o)}return r!=null&&Yd(o,a),w}function E(){let e=Pe(),t=xe(),n=Um(t);return e.firstCreatePass&&oy(e,n),Pu(n)&&Fu(),Ou(),n.classesWithoutHost!=null&&fE(n)&&Ad(e,n,W(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&hE(n)&&Ad(e,n,W(),n.stylesWithoutHost,!1),E}function We(e,t,n,r){return w(e,t,n,r),E(),We}function di(e,t,n,r){let o=W(),i=o[R],s=e+Ge,a=i.firstCreatePass?ab(s,i,2,t,n,r):i.data[s];return Bm(a,o,e,t,Ey),r!=null&&Yd(o,a),di}function fi(){let e=xe(),t=Um(e);return Pu(t)&&Fu(),Ou(),fi}function Qa(e,t,n,r){return di(e,t,n,r),fi(),Qa}var Ey=(e,t,n,r,o)=>(da(!0),Tm(t[ne],r,vg()));function Ft(){return W()}var hi="en-US";var aI=hi;function wy(e){typeof e=="string"&&(aI=e.toLowerCase().replace(/_/g,"-"))}function z(e,t,n){let r=W(),o=Pe(),i=xe();return by(o,r,r[ne],i,e,t,n),z}function by(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=td(r,t,i),lb(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let h=u[d],f=u[d+1];c??=td(r,t,i),jg(r,t,h,f,o,c)}if(l&&l.length)for(let d of l)c??=td(r,t,i),jg(r,t,d,o,o,c)}}function J(e=1){return yg(e)}function hf(e,t,n){Rb(e,t,n)}function pf(e){let t=W(),n=Pe(),r=$u();sa(r+1);let o=nf(n,r);if(e.dirty&&Xp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Pb(t,r);e.reset(i,ME),e.notifyOnChanges()}return!0}return!1}function gf(){return Ab(W(),$u())}function ma(e,t){return e<<17|t<<2}function ar(e){return e>>17&32767}function cI(e){return(e&2)==2}function lI(e,t){return e&131071|t<<17}function Nd(e){return e|2}function Kr(e){return(e&131068)>>2}function od(e,t){return e&-131069|t<<2}function uI(e){return(e&1)===1}function Rd(e){return e|1}function dI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ar(s),c=Kr(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||jr(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=ar(e[a+1]);e[r+1]=ma(h,a),h!==0&&(e[h+1]=od(e[h+1],r)),e[a+1]=lI(e[a+1],r)}else e[r+1]=ma(a,0),a!==0&&(e[a+1]=od(e[a+1],r)),a=r;else e[r+1]=ma(c,0),a===0?a=r:e[c+1]=od(e[c+1],r),c=r;l&&(e[r+1]=Nd(e[r+1])),qg(e,u,r,!0),qg(e,u,r,!1),fI(t,u,e,r,i),s=ma(a,c),i?t.classBindings=s:t.styleBindings=s}function fI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&jr(i,t)>=0&&(n[r+1]=Rd(n[r+1]))}function qg(e,t,n,r){let o=e[n+1],i=t===null,s=r?ar(o):Kr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];hI(c,t)&&(a=!0,e[s+1]=r?Rd(l):Nd(l)),s=r?ar(l):Kr(l)}a&&(e[n+1]=r?Nd(o):Rd(o))}function hI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?jr(e,t)>=0:!1}var _t={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pI(e){return e.substring(_t.key,_t.keyEnd)}function gI(e){return mI(e),Iy(e,My(e,0,_t.textEnd))}function Iy(e,t){let n=_t.textEnd;return n===t?-1:(t=_t.keyEnd=yI(e,_t.key=t,n),My(e,t,n))}function mI(e){_t.key=0,_t.keyEnd=0,_t.value=0,_t.valueEnd=0,_t.textEnd=e.length}function My(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function yI(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Q(e,t,n){return Sy(e,t,n,!1),Q}function xn(e,t){return Sy(e,t,null,!0),xn}function Ka(e){_I(II,vI,e,!0)}function vI(e,t){for(let n=gI(t);n>=0;n=Iy(t,n))Ks(e,pI(t),!0)}function Sy(e,t,n,r){let o=W(),i=Pe(),s=oa(2);if(i.firstUpdatePass&&xy(i,e,s,r),t!==at&&ir(o,s,t)){let a=i.data[Yt()];Ay(i,a,o,o[ne],e,o[s+1]=SI(t,n),r,s)}}function _I(e,t,n,r){let o=Pe(),i=oa(2);o.firstUpdatePass&&xy(o,null,i,r);let s=W();if(n!==at&&ir(s,i,n)){let a=o.data[Yt()];if(Ny(a,r)&&!Ty(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=qs(c,n||"")),Ad(o,a,s,n,r)}else MI(o,a,s,s[ne],s[i+1],s[i+1]=bI(e,t,n),r,i)}}function Ty(e,t){return t>=e.expandoStartIndex}function xy(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Yt()],s=Ty(e,n);Ny(i,r)&&t===null&&!s&&(t=!1),t=DI(o,i,t,r),dI(o,i,t,n,s,r)}}function DI(e,t,n,r){let o=hg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=id(null,e,t,n,r),n=ci(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=id(o,e,t,n,r),i===null){let c=CI(e,t,r);c!==void 0&&Array.isArray(c)&&(c=id(null,e,t,c[1],r),c=ci(c,t.attrs,r),EI(e,t,r,c))}else i=wI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function CI(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Kr(r)!==0)return e[ar(r)]}function EI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ar(o)]=r}function wI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=ci(r,s,n)}return ci(r,t.attrs,n)}function id(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=ci(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function ci(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Ks(e,s,n?!0:t[++i]))}return e===void 0?null:e}function bI(e,t,n){if(n==null||n==="")return Oe;let r=[],o=jd(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function II(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ks(e,r,n)}function MI(e,t,n,r,o,i,s,a){o===at&&(o=Oe);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let h=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,m=null,g;u===d?(c+=2,l+=2,h!==f&&(m=d,g=f)):d===null||u!==null&&u<d?(c+=2,m=u):(l+=2,m=d,g=f),m!==null&&Ay(e,t,n,r,m,g,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Ay(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=uI(l)?Zg(c,t,n,o,Kr(l),s):void 0;if(!Pa(u)){Pa(i)||cI(l)&&(i=Zg(c,null,n,o,a,s));let d=Su(Yt(),n);gw(r,s,d,o,i)}}function Zg(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[o+1];h===at&&(h=d?Oe:void 0);let f=d?Xs(h,r):u===r?h:void 0;if(l&&!Pa(f)&&(f=Xs(c,r)),Pa(f)&&(a=f,s))return a;let m=e[o+1];o=s?ar(m):Kr(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Xs(c,r))}return a}function Pa(e){return e!==void 0}function SI(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Gt(jd(e)))),e}function Ny(e,t){return(e.flags&(t?8:16))!==0}function N(e,t=""){let n=W(),r=Pe(),o=e+Ge,i=r.firstCreatePass?Ha(r,o,1,t,null):r.data[o],s=TI(r,n,i,t,e);n[o]=s,ua()&&Wd(r,n,s,i),Gr(i,!1)}var TI=(e,t,n,r,o)=>(da(!0),ZE(t[ne],r));function xI(e,t,n,r=""){return ir(e,ra(),n)?t+zo(n)+r:at}function AI(e,t,n,r,o,i=""){let s=cg(),a=cb(e,s,n,o);return oa(2),a?t+zo(n)+r+zo(o)+i:at}function ye(e){return Ee("",e),ye}function Ee(e,t,n){let r=W(),o=xI(r,e,t,n);return o!==at&&Ry(r,Yt(),o),Ee}function Xa(e,t,n,r,o){let i=W(),s=AI(i,e,t,n,r,o);return s!==at&&Ry(i,Yt(),s),Xa}function Ry(e,t,n){let r=Su(t,e);YE(e[ne],r,n)}function ur(e,t,n){Zu(t)&&(t=t());let r=W(),o=ra();if(ir(r,o,t)){let i=Pe(),s=Gu();Vm(s,r,e,t,r[ne],n)}return ur}function to(e,t){let n=Zu(e);return n&&e.set(t),n}function dr(e,t){let n=W(),r=Pe(),o=xe();return by(r,n,n[ne],o,e,t),dr}function NI(e,t,n){let r=Pe();if(r.firstCreatePass){let o=Tt(e);Od(n,r.data,r.blueprint,o,!0),Od(t,r.data,r.blueprint,o,!1)}}function Od(e,t,n,r,o){if(e=De(e),Array.isArray(e))for(let i=0;i<e.length;i++)Od(e[i],t,n,r,o);else{let i=Pe(),s=W(),a=xe(),c=Wn(e)?e:De(e.provide),l=Eu(e),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(Wn(e)||!e.multi){let f=new rr(l,o,q,null),m=ad(c,t,o?u:u+h,d);m===-1?(ld(ba(a,s),i,c),sd(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{let f=ad(c,t,u+h,d),m=ad(c,t,u,u+h),g=f>=0&&n[f],p=m>=0&&n[m];if(o&&!p||!o&&!g){ld(ba(a,s),i,c);let y=kI(o?OI:RI,n.length,o,r,l,e);!o&&p&&(n[m].providerFactory=y),sd(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(y),s.push(y)}else{let y=Oy(n[o?m:f],l,!o&&r);sd(i,e,f>-1?f:m,y)}!o&&r&&p&&n[m].componentProviders++}}}function sd(e,t,n,r){let o=Wn(t),i=Zp(t);if(o||i){let c=(i?De(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Oy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ad(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function RI(e,t,n,r,o){return kd(this.multi,[])}function OI(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=ii(r,r[R],this.providerFactory.index,o);s=c.slice(0,a),kd(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],kd(i,s);return s}function kd(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function kI(e,t,n,r,o,i){let s=new rr(e,n,q,null);return s.multi=[],s.index=t,s.componentProviders=0,Oy(s,o,r&&!n),s}function no(e,t=[]){return n=>{n.providersResolver=(r,o)=>NI(r,o?o(e):e,t)}}var Fa=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},mf=(()=>{class e{compileModuleSync(n){return new Na(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=vu(n),i=Mm(o.declarations).reduce((s,a)=>{let c=_n(a);return c&&s.push(new Qr(c)),s},[]);return new Fa(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var PI=(()=>{class e{zone=v(ae);changeDetectionScheduler=v(Wt);applicationRef=v(en);applicationErrorHandler=v(Je);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ky({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ae(B(_({},Py()),{scheduleInRootZone:n})),[{provide:ae,useFactory:e},{provide:vn,multi:!0,useFactory:()=>{let r=v(PI,{optional:!0});return()=>r.initialize()}},{provide:vn,multi:!0,useFactory:()=>{let r=v(FI);return()=>{r.initialize()}}},t===!0?{provide:Yu,useValue:!0}:[],{provide:Qu,useValue:n??py},{provide:Je,useFactory:()=>{let r=v(ae),o=v(ue),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(pt),i.handleError(s))})}}}]}function Py(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var FI=(()=>{class e{subscription=new oe;initialized=!1;zone=v(ae);pendingTasks=v(Nt);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(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Fy=(()=>{class e{applicationErrorHandler=v(Je);appRef=v(en);taskService=v(Nt);ngZone=v(ae);zonelessEnabled=v(ha);tracing=v(lr,{optional:!0});disableScheduling=v(Yu,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new oe;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ra):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Qu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Oa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?zg:gy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ra+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,zg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function LI(){return typeof $localize<"u"&&$localize.locale||hi}var Ja=new M("",{providedIn:"root",factory:()=>v(Ja,{optional:!0,skipSelf:!0})||LI()});function Ne(e){return Op(e)}function pi(e,t){return ys(e,t?.equal)}var Ly=class{[Me];constructor(t){this[Me]=t}destroy(){this[Me].destroy()}};var Uy=Symbol("InputSignalNode#UNSET"),tM=B(_({},vs),{transformFn:void 0,applyValueToInputSignal(e,t){Mr(e,t)}});function $y(e,t){let n=Object.create(tM);n.value=e,n.transformFn=t?.transform;function r(){if(wr(n),n.value===Uy){let o=null;throw new I(-950,o)}return n.value}return r[Me]=n,r}var nM=new M("");nM.__NG_ELEMENT_ID__=e=>{let t=xe();if(t===null)throw new I(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new I(204,!1)};function Vy(e,t){return $y(e,t)}function rM(e){return $y(Uy,e)}var Hy=(Vy.required=rM,Vy);var yf=new M(""),oM=new M("");function gi(e){return!e.moduleRef}function iM(e){let t=gi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ae);return n.run(()=>{gi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Je),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),gi(e)){let i=()=>t.destroy(),s=e.platformInjector.get(yf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(yf);s.add(i),e.moduleRef.onDestroy(()=>{oi(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return aM(r,n,()=>{let i=t.get(Nt),s=i.add(),a=t.get(uf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Ja,hi);if(wy(c||hi),!t.get(oM,!0))return gi(e)?t.get(en):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(gi(e)){let u=t.get(en);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return sM?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void i.remove(s))})})}var sM;function aM(e,t,n){try{let r=n();return Tn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ec=null;function cM(e=[],t){return tt.create({name:t,providers:[{provide:Wo,useValue:"platform"},{provide:yf,useValue:new Set([()=>ec=null])},...e]})}function lM(e=[]){if(ec)return ec;let t=cM(e);return ec=t,Dy(),uM(t),t}function uM(e){let t=e.get(ja,null);Ce(e,()=>{t?.forEach(n=>n())})}var oo=(()=>{class e{static __NG_ELEMENT_ID__=dM}return e})();function dM(e){return fM(xe(),W(),(e&16)===16)}function fM(e,t,n){if(En(e)&&!n){let r=st(e.index,t);return new In(r,r)}else if(e.type&175){let r=t[ot];return new In(r,t)}return null}var vf=class{constructor(){}supports(t){return tf(t)}create(t){return new _f(t)}},hM=(e,t)=>t,_f=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||hM}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<jy(r,o,i)?n:r,a=jy(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let h=0;h<l;h++){let f=h<i.length?i[h]:i[h]=0,m=f+h;u<=m&&m<l&&(i[h]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!tf(t))throw new I(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,iy(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Df(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new tc),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new tc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Df=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Cf=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},tc=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Cf,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function jy(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function By(){return new Ef([new vf])}var Ef=(()=>{class e{factories;static \u0275prov=S({token:e,providedIn:"root",factory:By});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||By()),deps:[[e,new Jg,new Xg]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new I(901,!1)}}return e})();function zy(e){X(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=lM(r),i=[ky({}),{provide:Wt,useExisting:Fy},Dg,...n||[]],s=new ai({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return iM({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{X(9)}}function wf(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var qy=null;function ct(){return qy}function bf(e){qy??=e}var mi=class{},If=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>v(Zy),providedIn:"platform"})}return e})();var Zy=(()=>{class e extends If{_location;_history;_doc=v(de);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ct().getBaseHref(this._doc)}onPopState(n){let r=ct().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ct().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Yy(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Gy(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function An(e){return e&&e[0]!=="?"?`?${e}`:e}var nc=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>v(Ky),providedIn:"root"})}return e})(),Qy=new M(""),Ky=(()=>{class e extends nc{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??v(de).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 Yy(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+An(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+An(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+An(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(T(If),T(Qy,8))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),io=(()=>{class e{_subject=new ie;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=mM(Gy(Wy(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+An(r))}normalize(n){return e.stripTrailingSlash(gM(this._basePath,Wy(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+An(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+An(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=An;static joinWithSlash=Yy;static stripTrailingSlash=Gy;static \u0275fac=function(r){return new(r||e)(T(nc))};static \u0275prov=S({token:e,factory:()=>pM(),providedIn:"root"})}return e})();function pM(){return new io(T(nc))}function gM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Wy(e){return e.replace(/\/index.html$/,"")}function mM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var rc=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},lt=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new rc(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Xy(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Xy(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(q(Xt),q(Mn),q(Ef))};static \u0275dir=Ae({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Xy(e,t){e.context.$implicit=t.item}var Ct=(()=>{class e{_viewContainer;_context=new oc;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Jy(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Jy(n,!1),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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(q(Xt),q(Mn))};static \u0275dir=Ae({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),oc=class{$implicit=null;ngIf=null};function Jy(e,t){if(e&&!e.createEmbeddedView)throw new I(2020,!1)}var qe=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Pt({type:e});static \u0275inj=gt({})}return e})();function yi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var fr=class{};var ev="browser";var sc=new M(""),Af=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(T(sc),T(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),_i=class{_doc;constructor(t){this._doc=t}manager},Mf="ng-app-id";function tv(e){for(let t of e)t.remove()}function nv(e,t){let n=t.createElement("style");return n.textContent=e,n}function yM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Mf}="${t}"],link[${Mf}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Mf),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Tf(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Nf=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,yM(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,nv);r?.forEach(o=>this.addUsage(o,this.external,Tf))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(tv(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])tv(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,nv(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Tf(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(T(de),T(Va),T(Ba,8),T(eo))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Sf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Rf=/%COMP%/g;var ov="%COMP%",vM=`_nghost-${ov}`,_M=`_ngcontent-${ov}`,DM=!0,CM=new M("",{providedIn:"root",factory:()=>DM});function EM(e){return _M.replace(Rf,e)}function wM(e){return vM.replace(Rf,e)}function iv(e,t){return t.map(n=>n.replace(Rf,e))}var Of=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(n,r,o,i,s,a,c,l=null,u,d,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.animationDisabled=u,this.maxAnimationTimeout=d,this.tracingService=h,this.platformIsServer=!1,this.defaultRenderer=new Di(n,s,c,this.platformIsServer,this.tracingService,this.registry=fa(),this.maxAnimationTimeout)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof ic?o.applyToHost(n):o instanceof Ci&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Kt.Emulated:i=new ic(c,l,r,this.appId,u,s,a,d,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case Kt.ShadowDom:return new xf(c,l,n,r,s,a,this.nonce,d,h,this.registry,this.maxAnimationTimeout);default:i=new Ci(c,l,r,u,s,a,d,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(T(Af),T(Nf),T(Va),T(CM),T(de),T(eo),T(ae),T(Ba),T(df),T(ff),T(lr,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Di=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i,s,a){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i,this.registry=s,this.maxAnimationTimeout=a}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Sf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(rv(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(rv(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){let{elements:r}=this.registry;if(r){r.animate(n,()=>n.remove(),this.maxAnimationTimeout);return}n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new I(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Sf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Sf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ot.DashCase|Ot.Important)?t.style.setProperty(n,r,o&Ot.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ot.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=ct().getGlobalEventTarget(this.doc,t),!t))throw new I(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function rv(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xf=class extends Di{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l,u,d){super(t,i,s,c,l,u,d),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=o.styles;h=iv(o.id,h);for(let m of h){let g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=m,this.shadowRoot.appendChild(g)}let f=o.getExternalStyles?.();if(f)for(let m of f){let g=Tf(m,i);a&&g.setAttribute("nonce",a),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ci=class extends Di{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(t,n,r,o,i,s,a,c,l,u,d,h){super(t,i,s,a,c,l,d),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this._animationDisabled=u;let f=r.styles;this.styles=h?iv(h,f):f,this.styleUrls=r.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},ic=class extends Ci{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l,u,d,h){let f=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u,d,h,f),this.contentAttr=EM(f),this.hostAttr=wM(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var ac=class e extends mi{supportsDOMEvents=!0;static makeCurrent(){bf(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=bM();return n==null?null:IM(n)}resetBaseElement(){Ei=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yi(document.cookie,t)}},Ei=null;function bM(){return Ei=Ei||document.head.querySelector("base"),Ei?Ei.getAttribute("href"):null}function IM(e){return new URL(e,document.baseURI).pathname}var MM=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),av=(()=>{class e extends _i{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(T(de))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),sv=["alt","control","meta","shift"],SM={"\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"},TM={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},cv=(()=>{class e extends _i{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ct().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),sv.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=SM[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),sv.forEach(s=>{if(s!==o){let a=TM[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(T(de))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function kf(e,t){let n=_({rootComponent:e},xM(t));return zy(n)}function xM(e){return{appProviders:[...kM,...e?.providers??[]],platformProviders:OM}}function AM(){ac.makeCurrent()}function NM(){return new pt}function RM(){return Ld(document),document}var OM=[{provide:eo,useValue:ev},{provide:ja,useValue:AM,multi:!0},{provide:de,useFactory:RM}];var kM=[{provide:Wo,useValue:"root"},{provide:pt,useFactory:NM},{provide:sc,useClass:av,multi:!0,deps:[de]},{provide:sc,useClass:cv,multi:!0,deps:[de]},Of,Nf,Af,{provide:or,useExisting:Of},{provide:fr,useClass:MM},[]];var co=class{},wi=class{},Nn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var lc=class{encodeKey(t){return lv(t)}encodeValue(t){return lv(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function PM(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var FM=/%(\d[a-f0-9])/gi,LM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function lv(e){return encodeURIComponent(e).replace(FM,(t,n)=>LM[n]??t)}function cc(e){return`${e}`}var tn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new lc,t.fromString){if(t.fromObject)throw new I(2805,!1);this.map=PM(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(cc):[cc(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(cc(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(cc(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var uc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function VM(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function uv(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function dv(e){return typeof Blob<"u"&&e instanceof Blob}function fv(e){return typeof FormData<"u"&&e instanceof FormData}function jM(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var hv="Content-Type",pv="Accept",mv="X-Request-URL",yv="text/plain",vv="application/json",BM=`${vv}, ${yv}, */*`,so=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(VM(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new I(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new Nn,this.context??=new uc,!this.params)this.params=new tn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||uv(this.body)||dv(this.body)||fv(this.body)||jM(this.body)?this.body:this.body instanceof tn?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||fv(this.body)?null:dv(this.body)?this.body.type||null:uv(this.body)?null:typeof this.body=="string"?yv:this.body instanceof tn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?vv:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer||this.referrer,h=t.integrity||this.integrity,f=t.transferCache??this.transferCache,m=t.timeout??this.timeout,g=t.body!==void 0?t.body:this.body,p=t.withCredentials??this.withCredentials,y=t.reportProgress??this.reportProgress,D=t.headers||this.headers,x=t.params||this.params,b=t.context??this.context;return t.setHeaders!==void 0&&(D=Object.keys(t.setHeaders).reduce((G,ee)=>G.set(ee,t.setHeaders[ee]),D)),t.setParams&&(x=Object.keys(t.setParams).reduce((G,ee)=>G.set(ee,t.setParams[ee]),x)),new e(n,r,g,{params:x,headers:D,context:b,reportProgress:y,responseType:o,withCredentials:p,transferCache:f,keepalive:i,cache:a,priority:s,timeout:m,mode:c,redirect:l,credentials:u,referrer:d,integrity:h})}},hr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(hr||{}),lo=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Nn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},dc=class e extends lo{constructor(t={}){super(t)}type=hr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},bi=class e extends lo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=hr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},ao=class extends lo{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},UM=200,$M=204;function Pf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var hc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof so)i=n;else{let c;o.headers instanceof Nn?c=o.headers:c=new Nn(o.headers);let l;o.params&&(o.params instanceof tn?l=o.params:l=new tn({fromObject:o.params})),i=new so(n,r,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,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let s=A(i).pipe(hn(c=>this.handler.handle(c)));if(n instanceof so||o.observe==="events")return s;let a=s.pipe(ze(c=>c instanceof bi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(F(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new I(2806,!1);return c.body}));case"blob":return a.pipe(F(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new I(2807,!1);return c.body}));case"text":return a.pipe(F(c=>{if(c.body!==null&&typeof c.body!="string")throw new I(2808,!1);return c.body}));case"json":default:return a.pipe(F(c=>c.body))}case"response":return a;default:throw new I(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new tn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Pf(o,r))}post(n,r,o={}){return this.request("POST",n,Pf(o,r))}put(n,r,o={}){return this.request("PUT",n,Pf(o,r))}static \u0275fac=function(r){return new(r||e)(T(co))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();var HM=new M("");function _v(e,t){return t(e)}function zM(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function GM(e,t,n){return(r,o)=>Ce(n,()=>t(r,i=>e(i,o)))}var Dv=new M(""),Lf=new M(""),Cv=new M(""),Vf=new M("",{providedIn:"root",factory:()=>!0});function WM(){let e=null;return(t,n)=>{e===null&&(e=(v(Dv,{optional:!0})??[]).reduceRight(zM,_v));let r=v(ti);if(v(Vf)){let i=r.add();return e(t,n).pipe(gn(i))}else return e(t,n)}}var fc=(()=>{class e extends co{backend;injector;chain=null;pendingTasks=v(ti);contributeToStability=v(Vf);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Lf),...this.injector.get(Cv,[])]));this.chain=r.reduceRight((o,i)=>GM(o,i,this.injector),_v)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(gn(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(T(wi),T(ue))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();var qM=/^\)\]\}',?\n/,ZM=RegExp(`^${mv}:`,"m");function YM(e){return"responseURL"in e&&e.responseURL?e.responseURL:ZM.test(e.getAllResponseHeaders())?e.getResponseHeader(mv):null}var Ff=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let r=this.xhrFactory;return A(null).pipe(Se(()=>new j(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((p,y)=>s.setRequestHeader(p,y.join(","))),n.headers.has(pv)||s.setRequestHeader(pv,BM),!n.headers.has(hv)){let p=n.detectContentTypeHeader();p!==null&&s.setRequestHeader(hv,p)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let p=n.responseType.toLowerCase();s.responseType=p!=="json"?p:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let p=s.statusText||"OK",y=new Nn(s.getAllResponseHeaders()),D=YM(s)||n.url;return c=new dc({headers:y,status:s.status,statusText:p,url:D}),c},u=()=>{let{headers:p,status:y,statusText:D,url:x}=l(),b=null;y!==$M&&(b=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=b?UM:0);let G=y>=200&&y<300;if(n.responseType==="json"&&typeof b=="string"){let ee=b;b=b.replace(qM,"");try{b=b!==""?JSON.parse(b):null}catch(Re){b=ee,G&&(G=!1,b={error:Re,text:b})}}G?(i.next(new bi({body:b,headers:p,status:y,statusText:D,url:x||void 0})),i.complete()):i.error(new ao({error:b,headers:p,status:y,statusText:D,url:x||void 0}))},d=p=>{let{url:y}=l(),D=new ao({error:p,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(D)},h=d;n.timeout&&(h=p=>{let{url:y}=l(),D=new ao({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:y||void 0});i.error(D)});let f=!1,m=p=>{f||(i.next(l()),f=!0);let y={type:hr.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(y.total=p.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},g=p=>{let y={type:hr.UploadProgress,loaded:p.loaded};p.lengthComputable&&(y.total=p.total),i.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",m),a!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),i.next({type:hr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",m),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(T(fr))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Ev=new M(""),QM="XSRF-TOKEN",KM=new M("",{providedIn:"root",factory:()=>QM}),XM="X-XSRF-TOKEN",JM=new M("",{providedIn:"root",factory:()=>XM}),Ii=class{},eS=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=yi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(T(de),T(KM))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function tS(e,t){let n=e.url.toLowerCase();if(!v(Ev)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=v(Ii).getToken(),o=v(JM);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var jf=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(jf||{});function nS(e,t){return{\u0275kind:e,\u0275providers:t}}function pc(...e){let t=[hc,Ff,fc,{provide:co,useExisting:fc},{provide:wi,useFactory:()=>v(HM,{optional:!0})??v(Ff)},{provide:Lf,useValue:tS,multi:!0},{provide:Ev,useValue:!0},{provide:Ii,useClass:eS}];for(let n of e)t.push(...n.\u0275providers);return Br(t)}var gv=new M("");function wv(){return nS(jf.LegacyInterceptors,[{provide:gv,useFactory:WM},{provide:Lf,useExisting:gv,multi:!0}])}var Bf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Pt({type:e});static \u0275inj=gt({providers:[pc(wv())]})}return e})();var bv=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(T(de))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var L="primary",Vi=Symbol("RouteTitle"),Gf=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function mo(e){return new Gf(e)}function iS(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function sS(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Lt(e[n],t[n]))return!1;return!0}function Lt(e,t){let n=e?Wf(e):void 0,r=t?Wf(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!Rv(e[o],t[o]))return!1;return!0}function Wf(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Rv(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function Ov(e){return e.length>0?e[e.length-1]:null}function on(e){return jl(e)?e:Tn(e)?te(Promise.resolve(e)):A(e)}var aS={exact:Pv,subset:Fv},kv={exact:cS,subset:lS,ignored:()=>!0};function Iv(e,t,n){return aS[n.paths](e.root,t.root,n.matrixParams)&&kv[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function cS(e,t){return Lt(e,t)}function Pv(e,t,n){if(!gr(e.segments,t.segments)||!yc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Pv(e.children[r],t.children[r],n))return!1;return!0}function lS(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Rv(e[n],t[n]))}function Fv(e,t,n){return Lv(e,t,t.segments,n)}function Lv(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!gr(o,n)||t.hasChildren()||!yc(o,n,r))}else if(e.segments.length===n.length){if(!gr(e.segments,n)||!yc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Fv(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!gr(e.segments,o)||!yc(e.segments,o,r)||!e.children[L]?!1:Lv(e.children[L],t,i,r)}}function yc(e,t,n){return t.every((r,o)=>kv[n](e[o].parameters,r.parameters))}var rn=class{root;queryParams;fragment;_queryParamMap;constructor(t=new K([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=mo(this.queryParams),this._queryParamMap}toString(){return fS.serialize(this)}},K=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vc(this)}},pr=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=mo(this.parameters),this._parameterMap}toString(){return jv(this)}};function uS(e,t){return gr(e,t)&&e.every((n,r)=>Lt(n.parameters,t[r].parameters))}function gr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function dS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===L&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==L&&(n=n.concat(t(o,r)))}),n}var Ac=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>new yo,providedIn:"root"})}return e})(),yo=class{parse(t){let n=new Zf(t);return new rn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Mi(t.root,!0)}`,r=gS(t.queryParams),o=typeof t.fragment=="string"?`#${hS(t.fragment)}`:"";return`${n}${r}${o}`}},fS=new yo;function vc(e){return e.segments.map(t=>jv(t)).join("/")}function Mi(e,t){if(!e.hasChildren())return vc(e);if(t){let n=e.children[L]?Mi(e.children[L],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==L&&r.push(`${o}:${Mi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=dS(e,(r,o)=>o===L?[Mi(e.children[L],!1)]:[`${o}:${Mi(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[L]!=null?`${vc(e)}/${n[0]}`:`${vc(e)}/(${n.join("//")})`}}function Vv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gc(e){return Vv(e).replace(/%3B/gi,";")}function hS(e){return encodeURI(e)}function qf(e){return Vv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _c(e){return decodeURIComponent(e)}function Mv(e){return _c(e.replace(/\+/g,"%20"))}function jv(e){return`${qf(e.path)}${pS(e.parameters)}`}function pS(e){return Object.entries(e).map(([t,n])=>`;${qf(t)}=${qf(n)}`).join("")}function gS(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${gc(n)}=${gc(o)}`).join("&"):`${gc(n)}=${gc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var mS=/^[^\/()?;#]+/;function Uf(e){let t=e.match(mS);return t?t[0]:""}var yS=/^[^\/()?;=#]+/;function vS(e){let t=e.match(yS);return t?t[0]:""}var _S=/^[^=?&#]+/;function DS(e){let t=e.match(_S);return t?t[0]:""}var CS=/^[^&#]+/;function ES(e){let t=e.match(CS);return t?t[0]:""}var Zf=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new K([],{}):new K([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[L]=new K(t,n)),r}parseSegment(){let t=Uf(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new pr(_c(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=vS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Uf(this.remaining);o&&(r=o,this.capture(r))}t[_c(n)]=_c(r)}parseQueryParam(t){let n=DS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=ES(this.remaining);s&&(r=s,this.capture(r))}let o=Mv(n),i=Mv(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Uf(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new I(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=L);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[L]:new K([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}};function Bv(e){return e.segments.length>0?new K([],{[L]:e}):e}function Uv(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Uv(o);if(r===L&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new K(e.segments,t);return wS(n)}function wS(e){if(e.numberOfChildren===1&&e.children[L]){let t=e.children[L];return new K(e.segments.concat(t.segments),t.children)}return e}function vo(e){return e instanceof rn}function bS(e,t,n=null,r=null){let o=$v(e);return Hv(o,t,n,r)}function $v(e){let t;function n(i){let s={};for(let c of i.children){let l=n(c);s[c.outlet]=l}let a=new K(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Bv(r);return t??o}function Hv(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return $f(o,o,o,n,r);let i=IS(t);if(i.toRoot())return $f(o,o,new K([],{}),n,r);let s=MS(i,o,e),a=s.processChildren?Ti(s.segmentGroup,s.index,i.commands):Gv(s.segmentGroup,s.index,i.commands);return $f(o,s.segmentGroup,a,n,r)}function Dc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ni(e){return typeof e=="object"&&e!=null&&e.outlets}function $f(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,l])=>{i[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;e===t?s=n:s=zv(e,t,n);let a=Bv(Uv(s));return new rn(a,i,o)}function zv(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=zv(i,t,n)}),new K(e.segments,r)}var Cc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Dc(r[0]))throw new I(4003,!1);let o=r.find(Ni);if(o&&o!==Ov(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function IS(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Cc(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Cc(n,t,r)}var ho=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function MS(e,t,n){if(e.isAbsolute)return new ho(t,!0,0);if(!n)return new ho(t,!1,NaN);if(n.parent===null)return new ho(n,!0,0);let r=Dc(e.commands[0])?0:1,o=n.segments.length-1+r;return SS(n,o,e.numberOfDoubleDots)}function SS(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new I(4005,!1);o=r.segments.length}return new ho(r,!1,o-i)}function TS(e){return Ni(e[0])?e[0].outlets:{[L]:e}}function Gv(e,t,n){if(e??=new K([],{}),e.segments.length===0&&e.hasChildren())return Ti(e,t,n);let r=xS(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new K(e.segments.slice(0,r.pathIndex),{});return i.children[L]=new K(e.segments.slice(r.pathIndex),e.children),Ti(i,0,o)}else return r.match&&o.length===0?new K(e.segments,{}):r.match&&!e.hasChildren()?Yf(e,t,n):r.match?Ti(e,0,o):Yf(e,t,n)}function Ti(e,t,n){if(n.length===0)return new K(e.segments,{});{let r=TS(n),o={};if(Object.keys(r).some(i=>i!==L)&&e.children[L]&&e.numberOfChildren===1&&e.children[L].segments.length===0){let i=Ti(e.children[L],t,n);return new K(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Gv(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new K(e.segments,o)}}function xS(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(Ni(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Tv(c,l,s))return i;r+=2}else{if(!Tv(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Yf(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(Ni(i)){let c=AS(i.outlets);return new K(r,c)}if(o===0&&Dc(n[0])){let c=e.segments[t];r.push(new pr(c.path,Sv(n[0]))),o++;continue}let s=Ni(i)?i.outlets[L]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Dc(a)?(r.push(new pr(s,Sv(a))),o+=2):(r.push(new pr(s,{})),o++)}return new K(r,{})}function AS(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Yf(new K([],{}),0,r))}),t}function Sv(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Tv(e,t,n){return e==n.path&&Lt(t,n.parameters)}var xi="imperative",we=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(we||{}),ut=class{id;url;constructor(t,n){this.id=t,this.url=n}},_o=class extends ut{type=we.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Rn=class extends ut{urlAfterRedirects;type=we.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ze=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Ze||{}),Ec=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ec||{}),nn=class extends ut{reason;code;type=we.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},On=class extends ut{reason;code;type=we.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},Ri=class extends ut{error;target;type=we.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},wc=class extends ut{urlAfterRedirects;state;type=we.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qf=class extends ut{urlAfterRedirects;state;type=we.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kf=class extends ut{urlAfterRedirects;state;shouldActivate;type=we.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Xf=class extends ut{urlAfterRedirects;state;type=we.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jf=class extends ut{urlAfterRedirects;state;type=we.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eh=class{route;type=we.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},th=class{route;type=we.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},nh=class{snapshot;type=we.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rh=class{snapshot;type=we.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},oh=class{snapshot;type=we.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ih=class{snapshot;type=we.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Oi=class{},Do=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function NS(e){return!(e instanceof Oi)&&!(e instanceof Do)}function RS(e,t){return e.providers&&!e._injector&&(e._injector=ui(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Et(e){return e.outlet||L}function OS(e,t){let n=e.filter(r=>Et(r)===t);return n.push(...e.filter(r=>Et(r)!==t)),n}function Eo(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var sh=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Eo(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new ji(this.rootInjector)}},ji=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new sh(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(T(ue))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bc=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=ah(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=ah(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ch(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ch(t,this._root).map(n=>n.value)}};function ah(e,t){if(e===t.value)return t;for(let n of t.children){let r=ah(e,n);if(r)return r}return null}function ch(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ch(e,n);if(r.length)return r.unshift(t),r}return[]}var et=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function fo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ic=class extends bc{snapshot;constructor(t,n){super(t),this.snapshot=n,yh(this,t)}toString(){return this.snapshot.toString()}};function Wv(e){let t=kS(e),n=new _e([new pr("",{})]),r=new _e({}),o=new _e({}),i=new _e({}),s=new _e(""),a=new mr(n,r,i,s,o,L,e,t.root);return a.snapshot=t.root,new Ic(new et(a,[]),t)}function kS(e){let t={},n={},r={},i=new po([],t,r,"",n,L,e,null,{});return new Sc("",new et(i,[]))}var mr=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(F(l=>l[Vi]))??A(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(F(t=>mo(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(F(t=>mo(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Mc(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:_(_({},t.params),e.params),data:_(_({},t.data),e.data),resolve:_(_(_(_({},e.data),t.data),o?.data),e._resolvedData)}:r={params:_({},e.params),data:_({},e.data),resolve:_(_({},e.data),e._resolvedData??{})},o&&Zv(o)&&(r.resolve[Vi]=o.title),r}var po=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Vi]}constructor(t,n,r,o,i,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=mo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=mo(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Sc=class extends bc{url;constructor(t,n){super(n),this.url=t,yh(this,n)}toString(){return qv(this._root)}};function yh(e,t){t.value._routerState=e,t.children.forEach(n=>yh(e,n))}function qv(e){let t=e.children.length>0?` { ${e.children.map(qv).join(", ")} } `:"";return`${e.value}${t}`}function Hf(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Lt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Lt(t.params,n.params)||e.paramsSubject.next(n.params),sS(t.url,n.url)||e.urlSubject.next(n.url),Lt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function lh(e,t){let n=Lt(e.params,t.params)&&uS(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||lh(e.parent,t.parent))}function Zv(e){return typeof e.title=="string"||e.title===null}var PS=new M(""),Yv=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=L;activateEvents=new Y;deactivateEvents=new Y;attachEvents=new Y;detachEvents=new Y;routerOutletData=Hy(void 0);parentContexts=v(ji);location=v(Xt);changeDetector=v(oo);inputBinder=v(Nc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new uh(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ae({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[kt]})}return e})(),uh=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===mr?this.route:t===ji?this.childContexts:t===PS?this.outletData:this.parent.get(t,n)}},Nc=new M("");var Qv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Ve({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&We(0,"router-outlet")},dependencies:[Yv],encapsulation:2})}return e})();function vh(e){let t=e.children&&e.children.map(vh),n=t?B(_({},e),{children:t}):_({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==L&&(n.component=Qv),n}function FS(e,t,n){let r=ki(e,t._root,n?n._root:void 0);return new Ic(r,t)}function ki(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=LS(e,t,n);return new et(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ki(e,a)),s}}let r=VS(t.value),o=t.children.map(i=>ki(e,i));return new et(r,o)}}function LS(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ki(e,r,o);return ki(e,r)})}function VS(e){return new mr(new _e(e.url),new _e(e.params),new _e(e.queryParams),new _e(e.fragment),new _e(e.data),e.outlet,e.component,e)}var Pi=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Kv="ngNavigationCancelingError";function Tc(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=vo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Xv(!1,Ze.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Xv(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Kv]=!0,n.cancellationCode=t,n}function jS(e){return Jv(e)&&vo(e.url)}function Jv(e){return!!e&&e[Kv]}var BS=(e,t,n,r)=>F(o=>(new dh(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),dh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Hf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=fo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=fo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=fo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=fo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new ih(i.value.snapshot))}),t.children.length&&this.forwardEvent(new rh(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Hf(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Hf(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},xc=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},go=class{component;route;constructor(t,n){this.component=t,this.route=n}};function US(e,t,n){let r=e._root,o=t?t._root:null;return Si(r,o,n,[r.value])}function $S(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function wo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!iu(e)?e:t.get(e):r}function Si(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=fo(t);return e.children.forEach(s=>{HS(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ai(a,n.getContext(s),o)),o}function HS(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=zS(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new xc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Si(e,t,a?a.children:null,r,o):Si(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new go(a.outlet.component,s))}else s&&Ai(t,a,o),o.canActivateChecks.push(new xc(r)),i.component?Si(e,null,a?a.children:null,r,o):Si(e,null,n,r,o);return o}function zS(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!gr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!gr(e.url,t.url)||!Lt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lh(e,t)||!Lt(e.queryParams,t.queryParams);case"paramsChange":default:return!lh(e,t)}}function Ai(e,t,n){let r=fo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Ai(s,t.children.getContext(i),n):Ai(s,null,n):Ai(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new go(t.outlet.component,o)):n.canDeactivateChecks.push(new go(null,o)):n.canDeactivateChecks.push(new go(null,o))}function Bi(e){return typeof e=="function"}function GS(e){return typeof e=="boolean"}function WS(e){return e&&Bi(e.canLoad)}function qS(e){return e&&Bi(e.canActivate)}function ZS(e){return e&&Bi(e.canActivateChild)}function YS(e){return e&&Bi(e.canDeactivate)}function QS(e){return e&&Bi(e.canMatch)}function e_(e){return e instanceof Ut||e?.name==="EmptyError"}var mc=Symbol("INITIAL_VALUE");function Co(){return Se(e=>Bs(e.map(t=>t.pipe($t(1),Hl(mc)))).pipe(F(t=>{for(let n of t)if(n!==!0){if(n===mc)return mc;if(n===!1||KS(n))return n}return!0}),ze(t=>t!==mc),$t(1)))}function KS(e){return vo(e)||e instanceof Pi}function XS(e,t){return le(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?A(B(_({},n),{guardsResult:!0})):JS(s,r,o,e).pipe(le(a=>a&&GS(a)?eT(r,i,e,t):A(a)),F(a=>B(_({},n),{guardsResult:a})))})}function JS(e,t,n,r){return te(e).pipe(le(o=>iT(o.component,o.route,n,t,r)),Ht(o=>o!==!0,!0))}function eT(e,t,n,r){return te(t).pipe(hn(o=>Pr(nT(o.route.parent,r),tT(o.route,r),oT(e,o.path,n),rT(e,o.route,n))),Ht(o=>o!==!0,!0))}function tT(e,t){return e!==null&&t&&t(new oh(e)),A(!0)}function nT(e,t){return e!==null&&t&&t(new nh(e)),A(!0)}function rT(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return A(!0);let o=r.map(i=>Vo(()=>{let s=Eo(t)??n,a=wo(i,s),c=qS(a)?a.canActivate(t,e):Ce(s,()=>a(t,e));return on(c).pipe(Ht())}));return A(o).pipe(Co())}function oT(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>$S(s)).filter(s=>s!==null).map(s=>Vo(()=>{let a=s.guards.map(c=>{let l=Eo(s.node)??n,u=wo(c,l),d=ZS(u)?u.canActivateChild(r,e):Ce(l,()=>u(r,e));return on(d).pipe(Ht())});return A(a).pipe(Co())}));return A(i).pipe(Co())}function iT(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return A(!0);let s=i.map(a=>{let c=Eo(t)??o,l=wo(a,c),u=YS(l)?l.canDeactivate(e,t,n,r):Ce(c,()=>l(e,t,n,r));return on(u).pipe(Ht())});return A(s).pipe(Co())}function sT(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return A(!0);let i=o.map(s=>{let a=wo(s,e),c=WS(a)?a.canLoad(t,n):Ce(e,()=>a(t,n));return on(c)});return A(i).pipe(Co(),t_(r))}function t_(e){return Pl(ge(t=>{if(typeof t!="boolean")throw Tc(e,t)}),F(t=>t===!0))}function aT(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return A(!0);let i=o.map(s=>{let a=wo(s,e),c=QS(a)?a.canMatch(t,n):Ce(e,()=>a(t,n));return on(c)});return A(i).pipe(Co(),t_(r))}var Fi=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},Li=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function uo(e){return kr(new Fi(e))}function cT(e){return kr(new I(4e3,!1))}function lT(e){return kr(Xv(!1,Ze.GuardRejected))}var fh=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return A(r);if(o.numberOfChildren>1||!o.children[L])return cT(`${t.redirectTo}`);o=o.children[L]}}applyRedirectCommands(t,n,r,o,i){return uT(n,o,i).pipe(F(s=>{if(s instanceof rn)throw new Li(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new Li(a);return a}))}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new rn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new K(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new I(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function uT(e,t,n){if(typeof e=="string")return A(e);let r=e,{queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,params:l,data:u,title:d}=t;return on(Ce(n,()=>r({params:l,data:u,queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,title:d})))}var hh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function dT(e,t,n,r,o){let i=n_(e,t,n);return i.matched?(r=RS(t,r),aT(r,t,n,o).pipe(F(s=>s===!0?i:_({},hh)))):A(i)}function n_(e,t,n){if(t.path==="**")return fT(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?_({},hh):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||iS)(n,e,t);if(!o)return _({},hh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?_(_({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function fT(e){return{matched:!0,parameters:e.length>0?Ov(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function xv(e,t,n,r){return n.length>0&&gT(e,n,r)?{segmentGroup:new K(t,pT(r,new K(n,e.children))),slicedSegments:[]}:n.length===0&&mT(e,n,r)?{segmentGroup:new K(e.segments,hT(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new K(e.segments,e.children),slicedSegments:n}}function hT(e,t,n,r){let o={};for(let i of n)if(Rc(e,t,i)&&!r[Et(i)]){let s=new K([],{});o[Et(i)]=s}return _(_({},r),o)}function pT(e,t){let n={};n[L]=t;for(let r of e)if(r.path===""&&Et(r)!==L){let o=new K([],{});n[Et(r)]=o}return n}function gT(e,t,n){return n.some(r=>Rc(e,t,r)&&Et(r)!==L)}function mT(e,t,n){return n.some(r=>Rc(e,t,r))}function Rc(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function yT(e,t,n){return t.length===0&&!e.children[n]}var ph=class{};function vT(e,t,n,r,o,i,s="emptyOnly"){return new gh(e,t,n,r,o,s,i).recognize()}var _T=31,gh=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new fh(this.urlSerializer,this.urlTree)}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=xv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(F(({children:n,rootSnapshot:r})=>{let o=new et(r,n),i=new Sc("",o),s=bS(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new po([],Object.freeze({}),Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),L,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,L,n).pipe(F(r=>({children:r,rootSnapshot:n})),fn(r=>{if(r instanceof Li)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Fi?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(F(s=>s instanceof et?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return te(i).pipe(hn(s=>{let a=r.children[s],c=OS(n,s);return this.processSegmentGroup(t,c,a,s,o)}),$l((s,a)=>(s.push(...a),s)),pn(null),Ul(),le(s=>{if(s===null)return uo(r);let a=r_(s);return DT(a),A(a)}))}processSegment(t,n,r,o,i,s,a){return te(n).pipe(hn(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(fn(l=>{if(l instanceof Fi)return A(null);throw l}))),Ht(c=>!!c),fn(c=>{if(e_(c))return yT(r,o,i)?A(new ph):uo(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Et(r)!==s&&(s===L||!Rc(o,i,r))?uo(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):uo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=n_(n,o,i);if(!c)return uo(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>_T&&(this.allowRedirects=!1));let f=new po(i,l,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,Av(o),Et(o),o.component??o._loadedComponent??null,o,Nv(o)),m=Mc(f,a,this.paramsInheritanceStrategy);return f.params=Object.freeze(m.params),f.data=Object.freeze(m.data),this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,f,t).pipe(Se(p=>this.applyRedirects.lineralizeSegments(o,p)),le(p=>this.processSegment(t,r,n,p.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=dT(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Se(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(Se(({routes:l})=>{let u=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,m=new po(h,d,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,Av(r),Et(r),r.component??r._loadedComponent??null,r,Nv(r)),g=Mc(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(g.params),m.data=Object.freeze(g.data);let{segmentGroup:p,slicedSegments:y}=xv(n,h,f,l);if(y.length===0&&p.hasChildren())return this.processChildren(u,l,p,m).pipe(F(x=>new et(m,x)));if(l.length===0&&y.length===0)return A(new et(m,[]));let D=Et(r)===i;return this.processSegment(u,l,p,y,D?L:i,!0,m).pipe(F(x=>new et(m,x instanceof et?[x]:[])))}))):uo(n)))}getChildConfig(t,n,r){return n.children?A({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?A({routes:n._loadedRoutes,injector:n._loadedInjector}):sT(t,n,r,this.urlSerializer).pipe(le(o=>o?this.configLoader.loadChildren(t,n).pipe(ge(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):lT(n))):A({routes:[],injector:t})}};function DT(e){e.sort((t,n)=>t.value.outlet===L?-1:n.value.outlet===L?1:t.value.outlet.localeCompare(n.value.outlet))}function CT(e){let t=e.value.routeConfig;return t&&t.path===""}function r_(e){let t=[],n=new Set;for(let r of e){if(!CT(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=r_(r.children);t.push(new et(r.value,o))}return t.filter(r=>!n.has(r))}function Av(e){return e.data||{}}function Nv(e){return e.resolve||{}}function ET(e,t,n,r,o,i){return le(s=>vT(e,t,n,r,s.extractedUrl,o,i).pipe(F(({state:a,tree:c})=>B(_({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function wT(e,t){return le(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return A(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let l of o_(c))s.add(l);let a=0;return te(s).pipe(hn(c=>i.has(c)?bT(c,r,e,t):(c.data=Mc(c,c.parent,e).resolve,A(void 0))),ge(()=>a++),Fr(1),le(c=>a===s.size?A(n):$e))})}function o_(e){let t=e.children.map(n=>o_(n)).flat();return[e,...t]}function bT(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Zv(o)&&(i[Vi]=o.title),Vo(()=>(e.data=Mc(e,e.parent,n).resolve,IT(i,e,t,r).pipe(F(s=>(e._resolvedData=s,e.data=_(_({},e.data),s),null)))))}function IT(e,t,n,r){let o=Wf(e);if(o.length===0)return A({});let i={};return te(o).pipe(le(s=>MT(e[s],t,n,r).pipe(Ht(),ge(a=>{if(a instanceof Pi)throw Tc(new yo,a);i[s]=a}))),Fr(1),F(()=>i),fn(s=>e_(s)?$e:kr(s)))}function MT(e,t,n,r){let o=Eo(t)??r,i=wo(e,o),s=i.resolve?i.resolve(t,n):Ce(o,()=>i(t,n));return on(s)}function zf(e){return Se(t=>{let n=e(t);return n?te(n).pipe(F(()=>t)):A(t)})}var i_=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===L);return r}getResolvedTitleForRoute(n){return n.data[Vi]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>v(ST),providedIn:"root"})}return e})(),ST=(()=>{class e extends i_{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(T(bv))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oc=new M("",{providedIn:"root",factory:()=>({})}),kc=new M(""),s_=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=v(mf);loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return A(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=on(Ce(n,()=>r.loadComponent())).pipe(F(a_),Se(c_),ge(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),gn(()=>{this.componentLoaders.delete(r)})),i=new Or(o,()=>new ie).pipe(Rr());return this.componentLoaders.set(r,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return A({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=TT(r,this.compiler,n,this.onLoadEndListener).pipe(gn(()=>{this.childrenLoaders.delete(r)})),s=new Or(i,()=>new ie).pipe(Rr());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TT(e,t,n,r){return on(Ce(n,()=>e.loadChildren())).pipe(F(a_),Se(c_),le(o=>o instanceof Wa||Array.isArray(o)?A(o):te(t.compileModuleAsync(o))),F(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(kc,[],{optional:!0,self:!0}).flat()),{routes:s.map(vh),injector:i}}))}function xT(e){return e&&typeof e=="object"&&"default"in e}function a_(e){return xT(e)?e.default:e}function c_(e){return A(e)}var _h=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>v(AT),providedIn:"root"})}return e})(),AT=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),l_=new M("");var u_=new M(""),d_=(()=>{class e{currentNavigation=Qt(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new ie;transitionAbortWithErrorSubject=new ie;configLoader=v(s_);environmentInjector=v(ue);destroyRef=v(At);urlSerializer=v(Ac);rootContexts=v(ji);location=v(io);inputBindingEnabled=v(Nc,{optional:!0})!==null;titleStrategy=v(i_);options=v(Oc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=v(_h);createViewTransition=v(l_,{optional:!0});navigationErrorHandler=v(u_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>A(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new eh(o)),r=o=>this.events.next(new th(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;Ne(()=>{this.transitions?.next(B(_({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(n){return this.transitions=new _e(null),this.transitions.pipe(ze(r=>r!==null),Se(r=>{let o=!1;return A(r).pipe(Se(i=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Ze.SupersededByNewNavigation),$e;this.currentTransition=r,this.currentNavigation.set({id:i.id,initialUrl:i.rawUrl,extractedUrl:i.extractedUrl,targetBrowserUrl:typeof i.extras.browserUrl=="string"?this.urlSerializer.parse(i.extras.browserUrl):i.extras.browserUrl,trigger:i.source,extras:i.extras,previousNavigation:this.lastSuccessfulNavigation?B(_({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>i.abortController.abort()});let s=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=i.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new On(i.id,this.urlSerializer.serialize(i.rawUrl),"",Ec.IgnoredSameUrlNavigation)),i.resolve(!1),$e;if(this.urlHandlingStrategy.shouldProcessUrl(i.rawUrl))return A(i).pipe(Se(c=>(this.events.next(new _o(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?$e:Promise.resolve(c))),ET(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ge(c=>{r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=c.urlAfterRedirects,u));let l=new wc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(i.currentRawUrl)){let{id:c,extractedUrl:l,source:u,restoredState:d,extras:h}=i,f=new _o(c,this.urlSerializer.serialize(l),u,d);this.events.next(f);let m=Wv(this.rootComponentType).snapshot;return this.currentTransition=r=B(_({},i),{targetSnapshot:m,urlAfterRedirects:l,extras:B(_({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(g=>(g.finalUrl=l,g)),A(r)}else return this.events.next(new On(i.id,this.urlSerializer.serialize(i.extractedUrl),"",Ec.IgnoredByUrlHandlingStrategy)),i.resolve(!1),$e}),ge(i=>{let s=new Qf(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot);this.events.next(s)}),F(i=>(this.currentTransition=r=B(_({},i),{guards:US(i.targetSnapshot,i.currentSnapshot,this.rootContexts)}),r)),XS(this.environmentInjector,i=>this.events.next(i)),ge(i=>{if(r.guardsResult=i.guardsResult,i.guardsResult&&typeof i.guardsResult!="boolean")throw Tc(this.urlSerializer,i.guardsResult);let s=new Kf(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot,!!i.guardsResult);this.events.next(s)}),ze(i=>i.guardsResult?!0:(this.cancelNavigationTransition(i,"",Ze.GuardRejected),!1)),zf(i=>{if(i.guards.canActivateChecks.length!==0)return A(i).pipe(ge(s=>{let a=new Xf(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),Se(s=>{let a=!1;return A(s).pipe(wT(this.paramsInheritanceStrategy,this.environmentInjector),ge({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",Ze.NoDataFromResolver)}}))}),ge(s=>{let a=new Jf(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),zf(i=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=Eo(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(ge(u=>{a.component=u}),F(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return Bs(s(i.targetSnapshot.root)).pipe(pn(null),$t(1))}),zf(()=>this.afterPreactivation()),Se(()=>{let{currentSnapshot:i,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,i.root,s.root);return a?te(a).pipe(F(()=>r)):A(r)}),F(i=>{let s=FS(n.routeReuseStrategy,i.targetSnapshot,i.currentRouterState);return this.currentTransition=r=B(_({},i),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),ge(()=>{this.events.next(new Oi)}),BS(this.rootContexts,n.routeReuseStrategy,i=>this.events.next(i),this.inputBindingEnabled),$t(1),$s(new j(i=>{let s=r.abortController.signal,a=()=>i.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(ze(()=>!o&&!r.targetRouterState),ge(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",Ze.Aborted)}))),ge({next:i=>{o=!0,this.lastSuccessfulNavigation=Ne(this.currentNavigation),this.events.next(new Rn(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects))),this.titleStrategy?.updateTitle(i.targetRouterState.snapshot),i.resolve(!0)},complete:()=>{o=!0}}),$s(this.transitionAbortWithErrorSubject.pipe(ge(i=>{throw i}))),gn(()=>{o||this.cancelNavigationTransition(r,"",Ze.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fn(i=>{if(this.destroyed)return r.resolve(!1),$e;if(o=!0,Jv(i))this.events.next(new nn(r.id,this.urlSerializer.serialize(r.extractedUrl),i.message,i.cancellationCode)),jS(i)?this.events.next(new Do(i.url,i.navigationBehaviorOptions)):r.resolve(!1);else{let s=new Ri(r.id,this.urlSerializer.serialize(r.extractedUrl),i,r.targetSnapshot??void 0);try{let a=Ce(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Pi){let{message:c,cancellationCode:l}=Tc(this.urlSerializer,a);this.events.next(new nn(r.id,this.urlSerializer.serialize(r.extractedUrl),c,l)),this.events.next(new Do(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),i}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return $e}))}))}cancelNavigationTransition(n,r,o){let i=new nn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Ne(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function NT(e){return e!==xi}var RT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>v(OT),providedIn:"root"})}return e})(),mh=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},OT=(()=>{class e extends mh{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sn(e)))(o||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),f_=(()=>{class e{urlSerializer=v(Ac);options=v(Oc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=v(io);urlHandlingStrategy=v(_h);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new rn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof rn?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=Wv(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>v(kT),providedIn:"root"})}return e})(),kT=(()=>{class e extends f_{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof _o?this.updateStateMemento():n instanceof On?this.commitTransition(r):n instanceof wc?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Oi?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof nn&&n.code!==Ze.SupersededByNewNavigation&&n.code!==Ze.Redirect?this.restoreHistory(r):n instanceof Ri?this.restoreHistory(r,!0):n instanceof Rn&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=_(_({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=_(_({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sn(e)))(o||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function h_(e,t){e.events.pipe(ze(n=>n instanceof Rn||n instanceof nn||n instanceof Ri||n instanceof On),F(n=>n instanceof Rn||n instanceof On?0:(n instanceof nn?n.code===Ze.Redirect||n.code===Ze.SupersededByNewNavigation:!1)?2:1),ze(n=>n!==2),$t(1)).subscribe(()=>{t()})}var PT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},FT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Dh=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=v(af);stateManager=v(f_);options=v(Oc,{optional:!0})||{};pendingTasks=v(Nt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=v(d_);urlSerializer=v(Ac);location=v(io);urlHandlingStrategy=v(_h);injector=v(ue);_events=new ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=v(RT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=v(kc,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!v(Nc,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new oe;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=Ne(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof nn&&r.code!==Ze.Redirect&&r.code!==Ze.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Rn)this.navigated=!0;else if(r instanceof Do){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=_({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||NT(o.source)},s);this.scheduleNavigation(a,xi,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}NS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=_({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(Je)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ne(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(vh),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=_(_({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=$v(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Hv(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=vo(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,xi,null,r)}navigate(n,r={skipLocationChange:!1}){return LT(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=_({},PT):r===!1?o=_({},FT):o=r,vo(n))return Iv(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Iv(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,h)=>{a=d,c=h});let u=this.pendingTasks.add();return h_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function LT(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new I(4008,!1)}var VT=new M("");function Ch(e,...t){return Br([{provide:kc,multi:!0,useValue:e},[],{provide:mr,useFactory:jT,deps:[Dh]},{provide:Ya,multi:!0,useFactory:BT},t.map(n=>n.\u0275providers)])}function jT(e){return e.routerState.root}function BT(){let e=v(tt);return t=>{let n=e.get(en);if(t!==n.components[0])return;let r=e.get(Dh),o=e.get(UT);e.get($T)===1&&r.initialNavigation(),e.get(HT,null,{optional:!0})?.setUpPreloading(),e.get(VT,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var UT=new M("",{factory:()=>new ie}),$T=new M("",{providedIn:"root",factory:()=>1});var HT=new M("");var p_=[];var g_={providers:[Ch(p_),pc()]};var b_=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(q(cr),q(Dt))};static \u0275dir=Ae({type:e})}return e})(),Mh=(()=>{class e extends b_{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sn(e)))(o||e)}})();static \u0275dir=Ae({type:e,features:[Jt]})}return e})(),jc=new M("");var GT={provide:jc,useExisting:qt(()=>Bc),multi:!0};function WT(){let e=ct()?ct().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var qT=new M(""),Bc=(()=>{class e extends b_{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!WT())}writeValue(n){let r=n??"";this.setProperty("value",r)}_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)}static \u0275fac=function(r){return new(r||e)(q(cr),q(Dt),q(qT,8))};static \u0275dir=Ae({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(r,o){r&1&&z("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[no([GT]),Jt]})}return e})();var ZT=new M(""),YT=new M("");function I_(e){return e!=null}function M_(e){return Tn(e)?te(e):e}function S_(e){let t={};return e.forEach(n=>{t=n!=null?_(_({},t),n):t}),Object.keys(t).length===0?null:t}function T_(e,t){return t.map(n=>n(e))}function QT(e){return!e.validate}function x_(e){return e.map(t=>QT(t)?t:n=>t.validate(n))}function KT(e){if(!e)return null;let t=e.filter(I_);return t.length==0?null:function(n){return S_(T_(n,t))}}function A_(e){return e!=null?KT(x_(e)):null}function XT(e){if(!e)return null;let t=e.filter(I_);return t.length==0?null:function(n){let r=T_(n,t).map(M_);return Bl(r).pipe(F(S_))}}function N_(e){return e!=null?XT(x_(e)):null}function m_(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function JT(e){return e._rawValidators}function ex(e){return e._rawAsyncValidators}function Eh(e){return e?Array.isArray(e)?e:[e]:[]}function Fc(e,t){return Array.isArray(e)?e.includes(t):e===t}function y_(e,t){let n=Eh(t);return Eh(e).forEach(o=>{Fc(n,o)||n.push(o)}),n}function v_(e,t){return Eh(t).filter(n=>!Fc(e,n))}var Lc=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=A_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=N_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},wh=class extends Lc{name;get formDirective(){return null}get path(){return null}},Gi=class extends Lc{_parent=null;name=null;valueAccessor=null},bh=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},tx={"[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"},o5=B(_({},tx),{"[class.ng-submitted]":"isSubmitted"}),R_=(()=>{class e extends bh{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(q(Gi,2))};static \u0275dir=Ae({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&xn("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)},standalone:!1,features:[Jt]})}return e})();var Ui="VALID",Pc="INVALID",bo="PENDING",$i="DISABLED",Mo=class{},Vc=class extends Mo{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Hi=class extends Mo{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},zi=class extends Mo{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Io=class extends Mo{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function nx(e){return(Uc(e)?e.validators:e)||null}function rx(e){return Array.isArray(e)?A_(e):e||null}function ox(e,t){return(Uc(t)?t.asyncValidators:e)||null}function ix(e){return Array.isArray(e)?N_(e):e||null}function Uc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Ih=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ne(this.statusReactive)}set status(t){Ne(()=>this.statusReactive.set(t))}_status=pi(()=>this.statusReactive());statusReactive=Qt(void 0);get valid(){return this.status===Ui}get invalid(){return this.status===Pc}get pending(){return this.status==bo}get disabled(){return this.status===$i}get enabled(){return this.status!==$i}errors;get pristine(){return Ne(this.pristineReactive)}set pristine(t){Ne(()=>this.pristineReactive.set(t))}_pristine=pi(()=>this.pristineReactive());pristineReactive=Qt(!0);get dirty(){return!this.pristine}get touched(){return Ne(this.touchedReactive)}set touched(t){Ne(()=>this.touchedReactive.set(t))}_touched=pi(()=>this.touchedReactive());touchedReactive=Qt(!1);get untouched(){return!this.touched}_events=new ie;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(y_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(y_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(v_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(v_(t,this._rawAsyncValidators))}hasValidator(t){return Fc(this._rawValidators,t)}hasAsyncValidator(t){return Fc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(B(_({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new zi(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new zi(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(B(_({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Hi(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Hi(!0,r))}markAsPending(t={}){this.status=bo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Io(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(B(_({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=$i,this.errors=null,this._forEachChild(o=>{o.disable(B(_({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Vc(this.value,r)),this._events.next(new Io(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(B(_({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ui,this._forEachChild(r=>{r.enable(B(_({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(B(_({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ui||this.status===bo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Vc(this.value,n)),this._events.next(new Io(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(B(_({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$i:Ui}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=bo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=M_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Io(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?$i:this.errors?Pc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bo)?bo:this._anyControlsHaveStatus(Pc)?Pc:Ui}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Hi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new zi(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Uc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=rx(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ix(this._rawAsyncValidators)}};var O_=new M("",{providedIn:"root",factory:()=>Sh}),Sh="always";function sx(e,t){return[...t.path,e]}function ax(e,t,n=Sh){lx(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),ux(e,t),fx(e,t),dx(e,t),cx(e,t)}function __(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function cx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function lx(e,t){let n=JT(e);t.validator!==null?e.setValidators(m_(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=ex(e);t.asyncValidator!==null?e.setAsyncValidators(m_(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();__(t._rawValidators,o),__(t._rawAsyncValidators,o)}function ux(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&k_(e,t)})}function dx(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&k_(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function k_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function fx(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function hx(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function px(e){return Object.getPrototypeOf(e.constructor)===Mh}function gx(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Bc?n=i:px(i)?r=i:o=i}),o||r||n||null}function D_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function C_(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var mx=class extends Ih{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(nx(n),ox(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Uc(n)&&(n.nonNullable||n.initialValueIsDefault)&&(C_(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){D_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){D_(this._onDisabledChange,t)}_forEachChild(t){}_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(t){C_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var yx={provide:Gi,useExisting:qt(()=>Th)},E_=Promise.resolve(),Th=(()=>{class e extends Gi{_changeDetectorRef;callSetDisabledState;control=new mx;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Y;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=gx(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),hx(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ax(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){E_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&wf(r);E_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?sx(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(q(wh,9),q(ZT,10),q(YT,10),q(jc,10),q(oo,8),q(O_,8))};static \u0275dir=Ae({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[no([yx]),Jt,kt]})}return e})();var vx={provide:jc,useExisting:qt(()=>$c),multi:!0};function P_(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function _x(e){return e.split(":")[0]}var $c=(()=>{class e extends Mh{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=v(en).injector;destroyRef=v(At);cdr=v(oo);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Za({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=P_(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=_x(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sn(e)))(o||e)}})();static \u0275dir=Ae({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[no([vx]),Jt]})}return e})(),F_=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(P_(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select&&this._select._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(r){return new(r||e)(q(Dt),q(cr),q($c,9))};static \u0275dir=Ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Dx={provide:jc,useExisting:qt(()=>L_),multi:!0};function w_(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Cx(e){return e.split(":")[0]}var L_=(()=>{class e extends Mh{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);o.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=Cx(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sn(e)))(o||e)}})();static \u0275dir=Ae({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[no([Dx]),Jt]})}return e})(),V_=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(w_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(w_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(q(Dt),q(cr),q(L_,9))};static \u0275dir=Ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Ex=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Pt({type:e});static \u0275inj=gt({})}return e})();var j_=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:O_,useValue:n.callSetDisabledState??Sh}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Pt({type:e});static \u0275inj=gt({imports:[Ex]})}return e})();function bx(e,t){if(e&1&&(w(0,"span"),N(1),E()),e&2){let n=J().$implicit;C(),Ee(" Branch: ",n.branches[0]," ")}}function Ix(e,t){if(e&1&&(w(0,"span"),N(1),E()),e&2){let n=J().$implicit;C(),Ee(" Tag: ",n.tags[0]," ")}}function Mx(e,t){if(e&1){let n=Ft();w(0,"div",3),z("click",function(){let o=Fe(n).$implicit,i=J();return Le(i.onCommitClick(o))}),w(1,"div",4)(2,"div",5)(3,"div",6)(4,"span",7),N(5),E(),w(6,"span",8),N(7),E(),w(8,"span",9),N(9),E()(),w(10,"h3",10),N(11),E(),w(12,"div",11)(13,"span"),N(14),E(),ce(15,bx,2,1,"span",12)(16,Ix,2,1,"span",12),E()(),w(17,"div",13)(18,"button",14),z("click",function(o){let i=Fe(n).$implicit;return J().onCommitClick(i),Le(o.stopPropagation())}),N(19," View "),E()()()()}if(e&2){let n=t.$implicit,r=J();Q("background-color",r.getColor("background","white"))("border-color",r.getColor("border","#e5e7eb"))("color",r.getColor("text","#111827")),C(4),Q("color",r.getColor("text","#6b7280")),C(),ye(n.hash.substring(0,8)),C(),Q("color",r.getColor("text","#374151")),C(),ye(n.author),C(),Q("color",r.getColor("text","#6b7280")),C(),ye(r.formatDate(n.date)),C(),Q("color",r.getColor("text","#111827")),C(),ye(n.message),C(),Q("color",r.getColor("text","#6b7280")),C(2),Ee("",n.files.length," files changed"),C(),H("ngIf",n.branches.length>0),C(),H("ngIf",n.tags.length>0),C(2),Q("background-color",r.getColor("primary","#3b82f6"))("color",r.getColor("text","white"))}}function Sx(e,t){if(e&1&&(w(0,"div",15),N(1," No commits found matching your search criteria. "),E()),e&2){let n=J();Q("color",n.getColor("text","#6b7280"))("text-align","center")("padding","2rem")}}var Hc=class e{commits=[];colorPalette;commitClick=new Y;observer;ngOnInit(){this.setupDarkModeObserver()}ngOnDestroy(){this.observer&&this.observer.disconnect()}onCommitClick(t){this.commitClick.emit(t)}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}setupDarkModeObserver(){this.observer=new MutationObserver(t=>{t.forEach(n=>{n.type==="attributes"&&n.attributeName==="class"&&setTimeout(()=>{this.getBackgroundColor()},0)})}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}getColor(t,n){return this.colorPalette?.colors[t]||n}getBackgroundColor(){return"transparent"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ve({type:e,selectors:[["app-commit-list"]],inputs:{commits:"commits",colorPalette:"colorPalette"},outputs:{commitClick:"commitClick"},decls:3,vars:6,consts:[[1,"commit-list"],["class","commit-item",3,"background-color","border-color","color","click",4,"ngFor","ngForOf"],["class","no-results",3,"color","text-align","padding",4,"ngIf"],[1,"commit-item",3,"click"],[1,"commit-header"],[1,"commit-info"],[1,"commit-meta"],[1,"commit-hash"],[1,"commit-author"],[1,"commit-date"],[1,"commit-message"],[1,"commit-stats"],[4,"ngIf"],[1,"commit-actions"],[1,"btn","btn-primary",3,"click"],[1,"no-results"]],template:function(n,r){n&1&&(w(0,"div",0),ce(1,Mx,20,27,"div",1)(2,Sx,2,6,"div",2),E()),n&2&&(Q("background-color",r.getBackgroundColor())("min-height","100vh"),C(),H("ngForOf",r.commits),C(),H("ngIf",r.commits.length===0))},dependencies:[qe,lt,Ct],styles:[".commit-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;min-height:100vh;padding:1rem 0;transition:background-color .2s ease}.commit-item[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1rem;cursor:pointer;transition:box-shadow .2s}.commit-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 6px #0000001a}.commit-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start}.commit-info[_ngcontent-%COMP%]{flex:1}.commit-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.commit-hash[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;color:#6b7280}.commit-author[_ngcontent-%COMP%]{font-size:.875rem;color:#374151}.commit-date[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280}.commit-message[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500;color:#111827;margin-bottom:.5rem}.commit-stats[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;font-size:.875rem;color:#6b7280}.commit-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.no-results[_ngcontent-%COMP%]{font-size:1rem;font-style:italic}"]})};var Tx={value:()=>{}};function U_(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new zc(n)}function zc(e){this._=e}function xx(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}zc.prototype=U_.prototype={constructor:zc,on:function(e,t){var n=this._,r=xx(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=Ax(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=r[i]).type)n[o]=B_(n[o],e.name,t);else if(t==null)for(o in n)n[o]=B_(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new zc(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function Ax(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function B_(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Tx,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Wi=U_;var Gc="http://www.w3.org/1999/xhtml",xh={svg:"http://www.w3.org/2000/svg",xhtml:Gc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function sn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),xh.hasOwnProperty(t)?{space:xh[t],local:e}:e}function Nx(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Gc&&t.documentElement.namespaceURI===Gc?t.createElement(e):t.createElementNS(n,e)}}function Rx(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Wc(e){var t=sn(e);return(t.local?Rx:Nx)(t)}function Ox(){}function yr(e){return e==null?Ox:function(){return this.querySelector(e)}}function $_(e){typeof e!="function"&&(e=yr(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=new Array(s),c,l,u=0;u<s;++u)(c=i[u])&&(l=e.call(c,c.__data__,u,i))&&("__data__"in c&&(l.__data__=c.__data__),a[u]=l);return new re(r,this._parents)}function Ah(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kx(){return[]}function qi(e){return e==null?kx:function(){return this.querySelectorAll(e)}}function Px(e){return function(){return Ah(e.apply(this,arguments))}}function H_(e){typeof e=="function"?e=Px(e):e=qi(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var s=t[i],a=s.length,c,l=0;l<a;++l)(c=s[l])&&(r.push(e.call(c,c.__data__,l,s)),o.push(c));return new re(r,o)}function Zi(e){return function(){return this.matches(e)}}function qc(e){return function(t){return t.matches(e)}}var Fx=Array.prototype.find;function Lx(e){return function(){return Fx.call(this.children,e)}}function Vx(){return this.firstElementChild}function z_(e){return this.select(e==null?Vx:Lx(typeof e=="function"?e:qc(e)))}var jx=Array.prototype.filter;function Bx(){return Array.from(this.children)}function Ux(e){return function(){return jx.call(this.children,e)}}function G_(e){return this.selectAll(e==null?Bx:Ux(typeof e=="function"?e:qc(e)))}function W_(e){typeof e!="function"&&(e=Zi(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],c,l=0;l<s;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&a.push(c);return new re(r,this._parents)}function Zc(e){return new Array(e.length)}function q_(){return new re(this._enter||this._groups.map(Zc),this._parents)}function Yi(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Yi.prototype={constructor:Yi,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Z_(e){return function(){return e}}function $x(e,t,n,r,o,i){for(var s=0,a,c=t.length,l=i.length;s<l;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new Yi(e,i[s]);for(;s<c;++s)(a=t[s])&&(o[s]=a)}function Hx(e,t,n,r,o,i,s){var a,c,l=new Map,u=t.length,d=i.length,h=new Array(u),f;for(a=0;a<u;++a)(c=t[a])&&(h[a]=f=s.call(c,c.__data__,a,t)+"",l.has(f)?o[a]=c:l.set(f,c));for(a=0;a<d;++a)f=s.call(e,i[a],a,i)+"",(c=l.get(f))?(r[a]=c,c.__data__=i[a],l.delete(f)):n[a]=new Yi(e,i[a]);for(a=0;a<u;++a)(c=t[a])&&l.get(h[a])===c&&(o[a]=c)}function zx(e){return e.__data__}function Y_(e,t){if(!arguments.length)return Array.from(this,zx);var n=t?Hx:$x,r=this._parents,o=this._groups;typeof e!="function"&&(e=Z_(e));for(var i=o.length,s=new Array(i),a=new Array(i),c=new Array(i),l=0;l<i;++l){var u=r[l],d=o[l],h=d.length,f=Gx(e.call(u,u&&u.__data__,l,r)),m=f.length,g=a[l]=new Array(m),p=s[l]=new Array(m),y=c[l]=new Array(h);n(u,d,g,p,y,f,t);for(var D=0,x=0,b,G;D<m;++D)if(b=g[D]){for(D>=x&&(x=D+1);!(G=p[x])&&++x<m;);b._next=G||null}}return s=new re(s,r),s._enter=a,s._exit=c,s}function Gx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Q_(){return new re(this._exit||this._groups.map(Zc),this._parents)}function K_(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function X_(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,s=Math.min(o,i),a=new Array(o),c=0;c<s;++c)for(var l=n[c],u=r[c],d=l.length,h=a[c]=new Array(d),f,m=0;m<d;++m)(f=l[m]||u[m])&&(h[m]=f);for(;c<o;++c)a[c]=n[c];return new re(a,this._parents)}function J_(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function eD(e){e||(e=Wx);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],a=s.length,c=o[i]=new Array(a),l,u=0;u<a;++u)(l=s[u])&&(c[u]=l);c.sort(t)}return new re(o,this._parents).order()}function Wx(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function tD(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function nD(){return Array.from(this)}function rD(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function oD(){let e=0;for(let t of this)++e;return e}function iD(){return!this.node()}function sD(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function qx(e){return function(){this.removeAttribute(e)}}function Zx(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yx(e,t){return function(){this.setAttribute(e,t)}}function Qx(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Kx(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Xx(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function aD(e,t){var n=sn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Zx:qx:typeof t=="function"?n.local?Xx:Kx:n.local?Qx:Yx)(n,t))}function Yc(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Jx(e){return function(){this.style.removeProperty(e)}}function eA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function tA(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function cD(e,t,n){return arguments.length>1?this.each((t==null?Jx:typeof t=="function"?tA:eA)(e,t,n??"")):kn(this.node(),e)}function kn(e,t){return e.style.getPropertyValue(t)||Yc(e).getComputedStyle(e,null).getPropertyValue(t)}function nA(e){return function(){delete this[e]}}function rA(e,t){return function(){this[e]=t}}function oA(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function lD(e,t){return arguments.length>1?this.each((t==null?nA:typeof t=="function"?oA:rA)(e,t)):this.node()[e]}function uD(e){return e.trim().split(/^|\s+/)}function Nh(e){return e.classList||new dD(e)}function dD(e){this._node=e,this._names=uD(e.getAttribute("class")||"")}dD.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function fD(e,t){for(var n=Nh(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function hD(e,t){for(var n=Nh(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function iA(e){return function(){fD(this,e)}}function sA(e){return function(){hD(this,e)}}function aA(e,t){return function(){(t.apply(this,arguments)?fD:hD)(this,e)}}function pD(e,t){var n=uD(e+"");if(arguments.length<2){for(var r=Nh(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?aA:t?iA:sA)(n,t))}function cA(){this.textContent=""}function lA(e){return function(){this.textContent=e}}function uA(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function gD(e){return arguments.length?this.each(e==null?cA:(typeof e=="function"?uA:lA)(e)):this.node().textContent}function dA(){this.innerHTML=""}function fA(e){return function(){this.innerHTML=e}}function hA(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function mD(e){return arguments.length?this.each(e==null?dA:(typeof e=="function"?hA:fA)(e)):this.node().innerHTML}function pA(){this.nextSibling&&this.parentNode.appendChild(this)}function yD(){return this.each(pA)}function gA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vD(){return this.each(gA)}function _D(e){var t=typeof e=="function"?e:Wc(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function mA(){return null}function DD(e,t){var n=typeof e=="function"?e:Wc(e),r=t==null?mA:typeof t=="function"?t:yr(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function yA(){var e=this.parentNode;e&&e.removeChild(this)}function CD(){return this.each(yA)}function vA(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _A(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ED(e){return this.select(e?_A:vA)}function wD(e){return arguments.length?this.property("__data__",e):this.node().__data__}function DA(e){return function(t){e.call(this,t,this.__data__)}}function CA(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function EA(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function wA(e,t,n){return function(){var r=this.__on,o,i=DA(t);if(r){for(var s=0,a=r.length;s<a;++s)if((o=r[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function bD(e,t,n){var r=CA(e+""),o,i=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,u;c<l;++c)for(o=0,u=a[c];o<i;++o)if((s=r[o]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?wA:EA,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function ID(e,t,n){var r=Yc(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function bA(e,t){return function(){return ID(this,e,t)}}function IA(e,t){return function(){return ID(this,e,t.apply(this,arguments))}}function MD(e,t){return this.each((typeof t=="function"?IA:bA)(e,t))}function*SD(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var Rh=[null];function re(e,t){this._groups=e,this._parents=t}function TD(){return new re([[document.documentElement]],Rh)}function MA(){return this}re.prototype=TD.prototype={constructor:re,select:$_,selectAll:H_,selectChild:z_,selectChildren:G_,filter:W_,data:Y_,enter:q_,exit:Q_,join:K_,merge:X_,selection:MA,order:J_,sort:eD,call:tD,nodes:nD,node:rD,size:oD,empty:iD,each:sD,attr:aD,style:cD,property:lD,classed:pD,text:gD,html:mD,raise:yD,lower:vD,append:_D,insert:DD,remove:CD,clone:ED,datum:wD,on:bD,dispatch:MD,[Symbol.iterator]:SD};var an=TD;function Oh(e){return typeof e=="string"?new re([[document.querySelector(e)]],[document.documentElement]):new re([[e]],Rh)}function Qc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kh(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xi(){}var Qi=.7,Jc=1/Qi,So="\\s*([+-]?\\d+)\\s*",Ki="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SA=/^#([0-9a-f]{3,8})$/,TA=new RegExp(`^rgb\\(${So},${So},${So}\\)$`),xA=new RegExp(`^rgb\\(${Vt},${Vt},${Vt}\\)$`),AA=new RegExp(`^rgba\\(${So},${So},${So},${Ki}\\)$`),NA=new RegExp(`^rgba\\(${Vt},${Vt},${Vt},${Ki}\\)$`),RA=new RegExp(`^hsl\\(${Ki},${Vt},${Vt}\\)$`),OA=new RegExp(`^hsla\\(${Ki},${Vt},${Vt},${Ki}\\)$`),xD={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qc(Xi,Pn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:AD,formatHex:AD,formatHex8:kA,formatHsl:PA,formatRgb:ND,toString:ND});function AD(){return this.rgb().formatHex()}function kA(){return this.rgb().formatHex8()}function PA(){return LD(this).formatHsl()}function ND(){return this.rgb().formatRgb()}function Pn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SA.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?RD(t):n===3?new Ye(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=TA.exec(e))?new Ye(t[1],t[2],t[3],1):(t=xA.exec(e))?new Ye(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=AA.exec(e))?Kc(t[1],t[2],t[3],t[4]):(t=NA.exec(e))?Kc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=RA.exec(e))?PD(t[1],t[2]/100,t[3]/100,1):(t=OA.exec(e))?PD(t[1],t[2]/100,t[3]/100,t[4]):xD.hasOwnProperty(e)?RD(xD[e]):e==="transparent"?new Ye(NaN,NaN,NaN,0):null}function RD(e){return new Ye(e>>16&255,e>>8&255,e&255,1)}function Kc(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ye(e,t,n,r)}function FA(e){return e instanceof Xi||(e=Pn(e)),e?(e=e.rgb(),new Ye(e.r,e.g,e.b,e.opacity)):new Ye}function To(e,t,n,r){return arguments.length===1?FA(e):new Ye(e,t,n,r??1)}function Ye(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Qc(Ye,To,kh(Xi,{brighter(e){return e=e==null?Jc:Math.pow(Jc,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qi:Math.pow(Qi,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(_r(this.r),_r(this.g),_r(this.b),el(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:OD,formatHex:OD,formatHex8:LA,formatRgb:kD,toString:kD}));function OD(){return`#${vr(this.r)}${vr(this.g)}${vr(this.b)}`}function LA(){return`#${vr(this.r)}${vr(this.g)}${vr(this.b)}${vr((isNaN(this.opacity)?1:this.opacity)*255)}`}function kD(){let e=el(this.opacity);return`${e===1?"rgb(":"rgba("}${_r(this.r)}, ${_r(this.g)}, ${_r(this.b)}${e===1?")":`, ${e})`}`}function el(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _r(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vr(e){return e=_r(e),(e<16?"0":"")+e.toString(16)}function PD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wt(e,t,n,r)}function LD(e){if(e instanceof wt)return new wt(e.h,e.s,e.l,e.opacity);if(e instanceof Xi||(e=Pn(e)),!e)return new wt;if(e instanceof wt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,c=(i+o)/2;return a?(t===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-t)/a+2:s=(t-n)/a+4,a/=c<.5?i+o:2-i-o,s*=60):a=c>0&&c<1?0:s,new wt(s,a,c,e.opacity)}function VD(e,t,n,r){return arguments.length===1?LD(e):new wt(e,t,n,r??1)}function wt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Qc(wt,VD,kh(Xi,{brighter(e){return e=e==null?Jc:Math.pow(Jc,e),new wt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qi:Math.pow(Qi,e),new wt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ye(Ph(e>=240?e-240:e+120,o,r),Ph(e,o,r),Ph(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new wt(FD(this.h),Xc(this.s),Xc(this.l),el(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=el(this.opacity);return`${e===1?"hsl(":"hsla("}${FD(this.h)}, ${Xc(this.s)*100}%, ${Xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function FD(e){return e=(e||0)%360,e<0?e+360:e}function Xc(e){return Math.max(0,Math.min(1,e||0))}function Ph(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Fh(e,t,n,r,o){var i=e*e,s=i*e;return((1-3*e+3*i-s)*t+(4-6*i+3*s)*n+(1+3*e+3*i-3*s)*r+s*o)/6}function jD(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],s=r>0?e[r-1]:2*o-i,a=r<t-1?e[r+2]:2*i-o;return Fh((n-r/t)*t,s,o,i,a)}}function BD(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return Fh((n-r/t)*t,o,i,s,a)}}var Lh=e=>()=>e;function VA(e,t){return function(n){return e+n*t}}function jA(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function UD(e){return(e=+e)==1?tl:function(t,n){return n-t?jA(t,n,e):Lh(isNaN(t)?n:t)}}function tl(e,t){var n=t-e;return n?VA(e,n):Lh(isNaN(e)?t:e)}var nl=(function e(t){var n=UD(t);function r(o,i){var s=n((o=To(o)).r,(i=To(i)).r),a=n(o.g,i.g),c=n(o.b,i.b),l=tl(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=c(u),o.opacity=l(u),o+""}}return r.gamma=e,r})(1);function $D(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),s,a;for(s=0;s<n;++s)a=To(t[s]),r[s]=a.r||0,o[s]=a.g||0,i[s]=a.b||0;return r=e(r),o=e(o),i=e(i),a.opacity=1,function(c){return a.r=r(c),a.g=o(c),a.b=i(c),a+""}}}var BA=$D(jD),UA=$D(BD);function dt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var jh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vh=new RegExp(jh.source,"g");function $A(e){return function(){return e}}function HA(e){return function(t){return e(t)+""}}function Bh(e,t){var n=jh.lastIndex=Vh.lastIndex=0,r,o,i,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=jh.exec(e))&&(o=Vh.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,c.push({i:s,x:dt(r,o)})),n=Vh.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?HA(c[0].x):$A(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)a[(d=c[u]).i]=d.x(l);return a.join("")})}var HD=180/Math.PI,rl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Uh(e,t,n,r,o,i){var s,a,c;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),e*r<t*n&&(e=-e,t=-t,c=-c,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*HD,skewX:Math.atan(c)*HD,scaleX:s,scaleY:a}}var ol;function zD(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?rl:Uh(t.a,t.b,t.c,t.d,t.e,t.f)}function GD(e){return e==null?rl:(ol||(ol=document.createElementNS("http://www.w3.org/2000/svg","g")),ol.setAttribute("transform",e),(e=ol.transform.baseVal.consolidate())?(e=e.matrix,Uh(e.a,e.b,e.c,e.d,e.e,e.f)):rl)}function WD(e,t,n,r){function o(l){return l.length?l.pop()+" ":""}function i(l,u,d,h,f,m){if(l!==d||u!==h){var g=f.push("translate(",null,t,null,n);m.push({i:g-4,x:dt(l,d)},{i:g-2,x:dt(u,h)})}else(d||h)&&f.push("translate("+d+t+h+n)}function s(l,u,d,h){l!==u?(l-u>180?u+=360:u-l>180&&(l+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:dt(l,u)})):u&&d.push(o(d)+"rotate("+u+r)}function a(l,u,d,h){l!==u?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:dt(l,u)}):u&&d.push(o(d)+"skewX("+u+r)}function c(l,u,d,h,f,m){if(l!==d||u!==h){var g=f.push(o(f)+"scale(",null,",",null,")");m.push({i:g-4,x:dt(l,d)},{i:g-2,x:dt(u,h)})}else(d!==1||h!==1)&&f.push(o(f)+"scale("+d+","+h+")")}return function(l,u){var d=[],h=[];return l=e(l),u=e(u),i(l.translateX,l.translateY,u.translateX,u.translateY,d,h),s(l.rotate,u.rotate,d,h),a(l.skewX,u.skewX,d,h),c(l.scaleX,l.scaleY,u.scaleX,u.scaleY,d,h),l=u=null,function(f){for(var m=-1,g=h.length,p;++m<g;)d[(p=h[m]).i]=p.x(f);return d.join("")}}}var $h=WD(zD,"px, ","px)","deg)"),Hh=WD(GD,", ",")",")");var xo=0,es=0,Ji=0,ZD=1e3,il,ts,sl=0,Dr=0,al=0,ns=typeof performance=="object"&&performance.now?performance:Date,YD=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function os(){return Dr||(YD(zA),Dr=ns.now()+al)}function zA(){Dr=0}function rs(){this._call=this._time=this._next=null}rs.prototype=Ao.prototype={constructor:rs,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?os():+n)+(t==null?0:+t),!this._next&&ts!==this&&(ts?ts._next=this:il=this,ts=this),this._call=e,this._time=n,zh()},stop:function(){this._call&&(this._call=null,this._time=1/0,zh())}};function Ao(e,t,n){var r=new rs;return r.restart(e,t,n),r}function QD(){os(),++xo;for(var e=il,t;e;)(t=Dr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xo}function qD(){Dr=(sl=ns.now())+al,xo=es=0;try{QD()}finally{xo=0,WA(),Dr=0}}function GA(){var e=ns.now(),t=e-sl;t>ZD&&(al-=t,sl=e)}function WA(){for(var e,t=il,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:il=n);ts=e,zh(r)}function zh(e){if(!xo){es&&(es=clearTimeout(es));var t=e-Dr;t>24?(e<1/0&&(es=setTimeout(qD,e-ns.now()-al)),Ji&&(Ji=clearInterval(Ji))):(Ji||(sl=ns.now(),Ji=setInterval(GA,ZD)),xo=1,YD(qD))}}function cl(e,t,n){var r=new rs;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var qA=Wi("start","end","cancel","interrupt"),ZA=[],JD=0,KD=1,ul=2,ll=3,XD=4,dl=5,is=6;function Fn(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;YA(e,n,{name:t,index:r,group:o,on:qA,tween:ZA,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:JD})}function ss(e,t){var n=fe(e,t);if(n.state>JD)throw new Error("too late; already scheduled");return n}function be(e,t){var n=fe(e,t);if(n.state>ll)throw new Error("too late; already running");return n}function fe(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function YA(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Ao(i,0,n.time);function i(l){n.state=KD,n.timer.restart(s,n.delay,n.time),n.delay<=l&&s(l-n.delay)}function s(l){var u,d,h,f;if(n.state!==KD)return c();for(u in r)if(f=r[u],f.name===n.name){if(f.state===ll)return cl(s);f.state===XD?(f.state=is,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=is,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(cl(function(){n.state===ll&&(n.state=XD,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=ul,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ul){for(n.state=ll,o=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=f);o.length=d+1}}function a(l){for(var u=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=dl,1),d=-1,h=o.length;++d<h;)o[d].call(e,u);n.state===dl&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=is,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function fl(e,t){var n=e.__transition,r,o,i=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){i=!1;continue}o=r.state>ul&&r.state<dl,r.state=is,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function e0(e){return this.each(function(){fl(this,e)})}function QA(e,t){var n,r;return function(){var o=be(this,e),i=o.tween;if(i!==n){r=n=i;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}o.tween=r}}function KA(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=be(this,e),s=i.tween;if(s!==r){o=(r=s).slice();for(var a={name:t,value:n},c=0,l=o.length;c<l;++c)if(o[c].name===t){o[c]=a;break}c===l&&o.push(a)}i.tween=o}}function t0(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=fe(this.node(),n).tween,o=0,i=r.length,s;o<i;++o)if((s=r[o]).name===e)return s.value;return null}return this.each((t==null?QA:KA)(n,e,t))}function No(e,t,n){var r=e._id;return e.each(function(){var o=be(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return fe(o,r).value[t]}}function hl(e,t){var n;return(typeof t=="number"?dt:t instanceof Pn?nl:(n=Pn(t))?(t=n,nl):Bh)(e,t)}function XA(e){return function(){this.removeAttribute(e)}}function JA(e){return function(){this.removeAttributeNS(e.space,e.local)}}function eN(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function tN(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function nN(e,t,n){var r,o,i;return function(){var s,a=n(this),c;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=a+"",s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a)))}}function rN(e,t,n){var r,o,i;return function(){var s,a=n(this),c;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=a+"",s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a)))}}function n0(e,t){var n=sn(e),r=n==="transform"?Hh:hl;return this.attrTween(e,typeof t=="function"?(n.local?rN:nN)(n,r,No(this,"attr."+e,t)):t==null?(n.local?JA:XA)(n):(n.local?tN:eN)(n,r,t))}function oN(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function iN(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function sN(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&iN(e,i)),n}return o._value=t,o}function aN(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&oN(e,i)),n}return o._value=t,o}function r0(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=sn(e);return this.tween(n,(r.local?sN:aN)(r,t))}function cN(e,t){return function(){ss(this,e).delay=+t.apply(this,arguments)}}function lN(e,t){return t=+t,function(){ss(this,e).delay=t}}function o0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?cN:lN)(t,e)):fe(this.node(),t).delay}function uN(e,t){return function(){be(this,e).duration=+t.apply(this,arguments)}}function dN(e,t){return t=+t,function(){be(this,e).duration=t}}function i0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?uN:dN)(t,e)):fe(this.node(),t).duration}function fN(e,t){if(typeof t!="function")throw new Error;return function(){be(this,e).ease=t}}function s0(e){var t=this._id;return arguments.length?this.each(fN(t,e)):fe(this.node(),t).ease}function hN(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;be(this,e).ease=n}}function a0(e){if(typeof e!="function")throw new Error;return this.each(hN(this._id,e))}function c0(e){typeof e!="function"&&(e=Zi(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],c,l=0;l<s;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&a.push(c);return new Be(r,this._parents,this._name,this._id)}function l0(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),s=new Array(r),a=0;a<i;++a)for(var c=t[a],l=n[a],u=c.length,d=s[a]=new Array(u),h,f=0;f<u;++f)(h=c[f]||l[f])&&(d[f]=h);for(;a<r;++a)s[a]=t[a];return new Be(s,this._parents,this._name,this._id)}function pN(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function gN(e,t,n){var r,o,i=pN(t)?ss:be;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function u0(e,t){var n=this._id;return arguments.length<2?fe(this.node(),n).on.on(e):this.each(gN(n,e,t))}function mN(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function d0(){return this.on("end.remove",mN(this._id))}function f0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=yr(e));for(var r=this._groups,o=r.length,i=new Array(o),s=0;s<o;++s)for(var a=r[s],c=a.length,l=i[s]=new Array(c),u,d,h=0;h<c;++h)(u=a[h])&&(d=e.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d,Fn(l[h],t,n,h,l,fe(u,n)));return new Be(i,this._parents,t,n)}function h0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=qi(e));for(var r=this._groups,o=r.length,i=[],s=[],a=0;a<o;++a)for(var c=r[a],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var h=e.call(u,u.__data__,d,c),f,m=fe(u,n),g=0,p=h.length;g<p;++g)(f=h[g])&&Fn(f,t,n,g,h,m);i.push(h),s.push(u)}return new Be(i,s,t,n)}var yN=an.prototype.constructor;function p0(){return new yN(this._groups,this._parents)}function vN(e,t){var n,r,o;return function(){var i=kn(this,e),s=(this.style.removeProperty(e),kn(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function g0(e){return function(){this.style.removeProperty(e)}}function _N(e,t,n){var r,o=n+"",i;return function(){var s=kn(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function DN(e,t,n){var r,o,i;return function(){var s=kn(this,e),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(e),kn(this,e))),s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a))}}function CN(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var c=be(this,e),l=c.on,u=c.value[i]==null?a||(a=g0(t)):void 0;(l!==n||o!==u)&&(r=(n=l).copy()).on(s,o=u),c.on=r}}function m0(e,t,n){var r=(e+="")=="transform"?$h:hl;return t==null?this.styleTween(e,vN(e,r)).on("end.style."+e,g0(e)):typeof t=="function"?this.styleTween(e,DN(e,r,No(this,"style."+e,t))).each(CN(this._id,e)):this.styleTween(e,_N(e,r,t),n).on("end.style."+e,null)}function EN(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function wN(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&EN(e,s,n)),r}return i._value=t,i}function y0(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,wN(e,t,n??""))}function bN(e){return function(){this.textContent=e}}function IN(e){return function(){var t=e(this);this.textContent=t??""}}function v0(e){return this.tween("text",typeof e=="function"?IN(No(this,"text",e)):bN(e==null?"":e+""))}function MN(e){return function(t){this.textContent=e.call(this,t)}}function SN(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&MN(o)),t}return r._value=e,r}function _0(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,SN(e))}function D0(){for(var e=this._name,t=this._id,n=pl(),r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,c,l=0;l<a;++l)if(c=s[l]){var u=fe(c,t);Fn(c,e,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Be(r,this._parents,e,n)}function C0(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,s){var a={value:s},c={value:function(){--o===0&&i()}};n.each(function(){var l=be(this,r),u=l.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(c)),l.on=t}),o===0&&i()})}var TN=0;function Be(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function E0(e){return an().transition(e)}function pl(){return++TN}var cn=an.prototype;Be.prototype=E0.prototype={constructor:Be,select:f0,selectAll:h0,selectChild:cn.selectChild,selectChildren:cn.selectChildren,filter:c0,merge:l0,selection:p0,transition:D0,call:cn.call,nodes:cn.nodes,node:cn.node,size:cn.size,empty:cn.empty,each:cn.each,on:u0,attr:n0,attrTween:r0,style:m0,styleTween:y0,text:v0,textTween:_0,remove:d0,tween:t0,delay:o0,duration:i0,ease:s0,easeVarying:a0,end:C0,[Symbol.iterator]:cn[Symbol.iterator]};function gl(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var xN={time:null,delay:0,duration:250,ease:gl};function AN(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function w0(e){var t,n;e instanceof Be?(t=e._id,e=e._name):(t=pl(),(n=xN).time=os(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,c,l=0;l<a;++l)(c=s[l])&&Fn(c,e,t,l,s,n||AN(c,t));return new Be(r,this._parents,e,t)}an.prototype.interrupt=e0;an.prototype.transition=w0;var{abs:c9,max:l9,min:u9}=Math;function b0(e){return[+e[0],+e[1]]}function NN(e){return[b0(e[0]),b0(e[1])]}var d9={name:"x",handles:["w","e"].map(Gh),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},f9={name:"y",handles:["n","s"].map(Gh),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},h9={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Gh),input:function(e){return e==null?null:NN(e)},output:function(e){return e}};function Gh(e){return{type:e}}function Wh(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function o(){var i,s=n.length,a,c=0,l=0;for(i=0;i<s;++i)a=n[i],c+=a.x,l+=a.y;for(c=(c/s-e)*r,l=(l/s-t)*r,i=0;i<s;++i)a=n[i],a.x-=c,a.y-=l}return o.initialize=function(i){n=i},o.x=function(i){return arguments.length?(e=+i,o):e},o.y=function(i){return arguments.length?(t=+i,o):t},o.strength=function(i){return arguments.length?(r=+i,o):r},o}function I0(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return M0(this.cover(t,n),t,n,e)}function M0(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,i=e._root,s={data:r},a=e._x0,c=e._y0,l=e._x1,u=e._y1,d,h,f,m,g,p,y,D;if(!i)return e._root=s,e;for(;i.length;)if((g=t>=(d=(a+l)/2))?a=d:l=d,(p=n>=(h=(c+u)/2))?c=h:u=h,o=i,!(i=i[y=p<<1|g]))return o[y]=s,e;if(f=+e._x.call(null,i.data),m=+e._y.call(null,i.data),t===f&&n===m)return s.next=i,o?o[y]=s:e._root=s,e;do o=o?o[y]=new Array(4):e._root=new Array(4),(g=t>=(d=(a+l)/2))?a=d:l=d,(p=n>=(h=(c+u)/2))?c=h:u=h;while((y=p<<1|g)===(D=(m>=h)<<1|f>=d));return o[D]=i,o[y]=s,e}function S0(e){var t,n,r=e.length,o,i,s=new Array(r),a=new Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=o,a[n]=i,o<c&&(c=o),o>u&&(u=o),i<l&&(l=i),i>d&&(d=i));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)M0(this,s[n],a[n],e[n]);return this}function T0(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,i=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var s=o-n||1,a=this._root,c,l;n>e||e>=o||r>t||t>=i;)switch(l=(t<r)<<1|e<n,c=new Array(4),c[l]=a,a=c,s*=2,l){case 0:o=n+s,i=r+s;break;case 1:n=o-s,i=r+s;break;case 2:o=n+s,r=i-s;break;case 3:n=o-s,r=i-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this}function x0(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function A0(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function ve(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function N0(e,t,n){var r,o=this._x0,i=this._y0,s,a,c,l,u=this._x1,d=this._y1,h=[],f=this._root,m,g;for(f&&h.push(new ve(f,o,i,u,d)),n==null?n=1/0:(o=e-n,i=t-n,u=e+n,d=t+n,n*=n);m=h.pop();)if(!(!(f=m.node)||(s=m.x0)>u||(a=m.y0)>d||(c=m.x1)<o||(l=m.y1)<i))if(f.length){var p=(s+c)/2,y=(a+l)/2;h.push(new ve(f[3],p,y,c,l),new ve(f[2],s,y,p,l),new ve(f[1],p,a,c,y),new ve(f[0],s,a,p,y)),(g=(t>=y)<<1|e>=p)&&(m=h[h.length-1],h[h.length-1]=h[h.length-1-g],h[h.length-1-g]=m)}else{var D=e-+this._x.call(null,f.data),x=t-+this._y.call(null,f.data),b=D*D+x*x;if(b<n){var G=Math.sqrt(n=b);o=e-G,i=t-G,u=e+G,d=t+G,r=f.data}}return r}function R0(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,o,i,s=this._x0,a=this._y0,c=this._x1,l=this._y1,u,d,h,f,m,g,p,y;if(!n)return this;if(n.length)for(;;){if((m=u>=(h=(s+c)/2))?s=h:c=h,(g=d>=(f=(a+l)/2))?a=f:l=f,t=n,!(n=n[p=g<<1|m]))return this;if(!n.length)break;(t[p+1&3]||t[p+2&3]||t[p+3&3])&&(r=t,y=p)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[p]=i:delete t[p],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=i,this)}function O0(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function k0(){return this._root}function P0(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function F0(e){var t=[],n,r=this._root,o,i,s,a,c;for(r&&t.push(new ve(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,i=n.x0,s=n.y0,a=n.x1,c=n.y1)&&r.length){var l=(i+a)/2,u=(s+c)/2;(o=r[3])&&t.push(new ve(o,l,u,a,c)),(o=r[2])&&t.push(new ve(o,i,u,l,c)),(o=r[1])&&t.push(new ve(o,l,s,a,u)),(o=r[0])&&t.push(new ve(o,i,s,l,u))}return this}function L0(e){var t=[],n=[],r;for(this._root&&t.push(new ve(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var o=r.node;if(o.length){var i,s=r.x0,a=r.y0,c=r.x1,l=r.y1,u=(s+c)/2,d=(a+l)/2;(i=o[0])&&t.push(new ve(i,s,a,u,d)),(i=o[1])&&t.push(new ve(i,u,a,c,d)),(i=o[2])&&t.push(new ve(i,s,d,u,l)),(i=o[3])&&t.push(new ve(i,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function V0(e){return e[0]}function j0(e){return arguments.length?(this._x=e,this):this._x}function B0(e){return e[1]}function U0(e){return arguments.length?(this._y=e,this):this._y}function Cr(e,t,n){var r=new qh(t??V0,n??B0,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function qh(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function $0(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ue=Cr.prototype=qh.prototype;Ue.copy=function(){var e=new qh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=$0(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(r=t.source[o])&&(r.length?n.push({source:r,target:t.target[o]=new Array(4)}):t.target[o]=$0(r));return e};Ue.add=I0;Ue.addAll=S0;Ue.cover=T0;Ue.data=x0;Ue.extent=A0;Ue.find=N0;Ue.remove=R0;Ue.removeAll=O0;Ue.root=k0;Ue.size=P0;Ue.visit=F0;Ue.visitAfter=L0;Ue.x=j0;Ue.y=U0;function jt(e){return function(){return e}}function bt(e){return(e()-.5)*1e-6}function RN(e){return e.x+e.vx}function ON(e){return e.y+e.vy}function Zh(e){var t,n,r,o=1,i=1;typeof e!="function"&&(e=jt(e==null?1:+e));function s(){for(var l,u=t.length,d,h,f,m,g,p,y=0;y<i;++y)for(d=Cr(t,RN,ON).visitAfter(a),l=0;l<u;++l)h=t[l],g=n[h.index],p=g*g,f=h.x+h.vx,m=h.y+h.vy,d.visit(D);function D(x,b,G,ee,Re){var he=x.data,ft=x.r,pe=g+ft;if(he){if(he.index>h.index){var ln=f-he.x-he.vx,un=m-he.y-he.vy,Bt=ln*ln+un*un;Bt<pe*pe&&(ln===0&&(ln=bt(r),Bt+=ln*ln),un===0&&(un=bt(r),Bt+=un*un),Bt=(pe-(Bt=Math.sqrt(Bt)))/Bt*o,h.vx+=(ln*=Bt)*(pe=(ft*=ft)/(p+ft)),h.vy+=(un*=Bt)*pe,he.vx-=ln*(pe=1-pe),he.vy-=un*pe)}return}return b>f+pe||ee<f-pe||G>m+pe||Re<m-pe}}function a(l){if(l.data)return l.r=n[l.data.index];for(var u=l.r=0;u<4;++u)l[u]&&l[u].r>l.r&&(l.r=l[u].r)}function c(){if(t){var l,u=t.length,d;for(n=new Array(u),l=0;l<u;++l)d=t[l],n[d.index]=+e(d,l,t)}}return s.initialize=function(l,u){t=l,r=u,c()},s.iterations=function(l){return arguments.length?(i=+l,s):i},s.strength=function(l){return arguments.length?(o=+l,s):o},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:jt(+l),c(),s):e},s}function kN(e){return e.index}function H0(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Yh(e){var t=kN,n=d,r,o=jt(30),i,s,a,c,l,u=1;e==null&&(e=[]);function d(p){return 1/Math.min(a[p.source.index],a[p.target.index])}function h(p){for(var y=0,D=e.length;y<u;++y)for(var x=0,b,G,ee,Re,he,ft,pe;x<D;++x)b=e[x],G=b.source,ee=b.target,Re=ee.x+ee.vx-G.x-G.vx||bt(l),he=ee.y+ee.vy-G.y-G.vy||bt(l),ft=Math.sqrt(Re*Re+he*he),ft=(ft-i[x])/ft*p*r[x],Re*=ft,he*=ft,ee.vx-=Re*(pe=c[x]),ee.vy-=he*pe,G.vx+=Re*(pe=1-pe),G.vy+=he*pe}function f(){if(s){var p,y=s.length,D=e.length,x=new Map(s.map((G,ee)=>[t(G,ee,s),G])),b;for(p=0,a=new Array(y);p<D;++p)b=e[p],b.index=p,typeof b.source!="object"&&(b.source=H0(x,b.source)),typeof b.target!="object"&&(b.target=H0(x,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(p=0,c=new Array(D);p<D;++p)b=e[p],c[p]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);r=new Array(D),m(),i=new Array(D),g()}}function m(){if(s)for(var p=0,y=e.length;p<y;++p)r[p]=+n(e[p],p,e)}function g(){if(s)for(var p=0,y=e.length;p<y;++p)i[p]=+o(e[p],p,e)}return h.initialize=function(p,y){s=p,l=y,f()},h.links=function(p){return arguments.length?(e=p,f(),h):e},h.id=function(p){return arguments.length?(t=p,h):t},h.iterations=function(p){return arguments.length?(u=+p,h):u},h.strength=function(p){return arguments.length?(n=typeof p=="function"?p:jt(+p),m(),h):n},h.distance=function(p){return arguments.length?(o=typeof p=="function"?p:jt(+p),g(),h):o},h}function z0(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function G0(e){return e.x}function W0(e){return e.y}var PN=10,FN=Math.PI*(3-Math.sqrt(5));function Qh(e){var t,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,s=.6,a=new Map,c=Ao(d),l=Wi("tick","end"),u=z0();e==null&&(e=[]);function d(){h(),l.call("tick",t),n<r&&(c.stop(),l.call("end",t))}function h(g){var p,y=e.length,D;g===void 0&&(g=1);for(var x=0;x<g;++x)for(n+=(i-n)*o,a.forEach(function(b){b(n)}),p=0;p<y;++p)D=e[p],D.fx==null?D.x+=D.vx*=s:(D.x=D.fx,D.vx=0),D.fy==null?D.y+=D.vy*=s:(D.y=D.fy,D.vy=0);return t}function f(){for(var g=0,p=e.length,y;g<p;++g){if(y=e[g],y.index=g,y.fx!=null&&(y.x=y.fx),y.fy!=null&&(y.y=y.fy),isNaN(y.x)||isNaN(y.y)){var D=PN*Math.sqrt(.5+g),x=g*FN;y.x=D*Math.cos(x),y.y=D*Math.sin(x)}(isNaN(y.vx)||isNaN(y.vy))&&(y.vx=y.vy=0)}}function m(g){return g.initialize&&g.initialize(e,u),g}return f(),t={tick:h,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(g){return arguments.length?(e=g,f(),a.forEach(m),t):e},alpha:function(g){return arguments.length?(n=+g,t):n},alphaMin:function(g){return arguments.length?(r=+g,t):r},alphaDecay:function(g){return arguments.length?(o=+g,t):+o},alphaTarget:function(g){return arguments.length?(i=+g,t):i},velocityDecay:function(g){return arguments.length?(s=1-g,t):1-s},randomSource:function(g){return arguments.length?(u=g,a.forEach(m),t):u},force:function(g,p){return arguments.length>1?(p==null?a.delete(g):a.set(g,m(p)),t):a.get(g)},find:function(g,p,y){var D=0,x=e.length,b,G,ee,Re,he;for(y==null?y=1/0:y*=y,D=0;D<x;++D)Re=e[D],b=g-Re.x,G=p-Re.y,ee=b*b+G*G,ee<y&&(he=Re,y=ee);return he},on:function(g,p){return arguments.length>1?(l.on(g,p),t):l.on(g)}}}function Kh(){var e,t,n,r,o=jt(-30),i,s=1,a=1/0,c=.81;function l(f){var m,g=e.length,p=Cr(e,G0,W0).visitAfter(d);for(r=f,m=0;m<g;++m)t=e[m],p.visit(h)}function u(){if(e){var f,m=e.length,g;for(i=new Array(m),f=0;f<m;++f)g=e[f],i[g.index]=+o(g,f,e)}}function d(f){var m=0,g,p,y=0,D,x,b;if(f.length){for(D=x=b=0;b<4;++b)(g=f[b])&&(p=Math.abs(g.value))&&(m+=g.value,y+=p,D+=p*g.x,x+=p*g.y);f.x=D/y,f.y=x/y}else{g=f,g.x=g.data.x,g.y=g.data.y;do m+=i[g.data.index];while(g=g.next)}f.value=m}function h(f,m,g,p){if(!f.value)return!0;var y=f.x-t.x,D=f.y-t.y,x=p-m,b=y*y+D*D;if(x*x/c<b)return b<a&&(y===0&&(y=bt(n),b+=y*y),D===0&&(D=bt(n),b+=D*D),b<s&&(b=Math.sqrt(s*b)),t.vx+=y*f.value*r/b,t.vy+=D*f.value*r/b),!0;if(f.length||b>=a)return;(f.data!==t||f.next)&&(y===0&&(y=bt(n),b+=y*y),D===0&&(D=bt(n),b+=D*D),b<s&&(b=Math.sqrt(s*b)));do f.data!==t&&(x=i[f.data.index]*r/b,t.vx+=y*x,t.vy+=D*x);while(f=f.next)}return l.initialize=function(f,m){e=f,n=m,u()},l.strength=function(f){return arguments.length?(o=typeof f=="function"?f:jt(+f),u(),l):o},l.distanceMin=function(f){return arguments.length?(s=f*f,l):Math.sqrt(s)},l.distanceMax=function(f){return arguments.length?(a=f*f,l):Math.sqrt(a)},l.theta=function(f){return arguments.length?(c=f*f,l):Math.sqrt(c)},l}function Ln(e,t,n){this.k=e,this.x=t,this.y=n}Ln.prototype={constructor:Ln,scale:function(e){return e===1?this:new Ln(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ln(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Xh=new Ln(1,0,0);Jh.prototype=Ln.prototype;function Jh(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Xh;return e.__zoom}var VN=["commitGraph"],ml=class e{svgElement;commits=[];colorPalette;commitClick=new Y;svg;g;observer=null;ngAfterViewInit(){this.initializeGraph(),this.setupDarkModeObserver()}ngOnChanges(t){t.commits&&this.svg&&this.renderGraph()}ngOnDestroy(){this.observer&&this.observer.disconnect()}initializeGraph(){this.svg=Oh(this.svgElement.nativeElement),this.g=this.svg.append("g"),this.renderGraph()}renderGraph(){if(!this.commits.length)return;this.g.selectAll("*").remove();let t=this.svgElement.nativeElement.getBoundingClientRect().width,n=600,r={top:20,right:20,bottom:20,left:20},o=this.getGraphColors(),{nodes:i,links:s,branches:a}=this.createGitGraphStructure(),c=Qh(i).force("link",Yh(s).id(d=>d.id).distance(100)).force("charge",Kh().strength(-300)).force("center",Wh(t/2,n/2)).force("collision",Zh().radius(30)),l=this.g.selectAll(".branch-group").data(a).enter().append("g").attr("class","branch-group");l.selectAll(".branch-line").data(d=>d.links).enter().append("line").attr("class","branch-line").attr("stroke",(d,h)=>this.getBranchColor(d.branch,o)).attr("stroke-width",3).attr("opacity",.7),this.g.selectAll(".link").data(s).enter().append("line").attr("class","link").attr("stroke",o.link).attr("stroke-width",2).attr("opacity",.5);let u=this.g.selectAll(".commit-node").data(i).enter().append("g").attr("class","commit-node").style("cursor","pointer");u.append("circle").attr("r",10).attr("fill",d=>this.getNodeColor(d,o)).attr("stroke",o.nodeStroke).attr("stroke-width",2),u.append("text").attr("text-anchor","middle").attr("dy",25).attr("fill",o.text).attr("class","text-xs").text(d=>d.commit.hash.substring(0,6)),u.append("title").text(d=>`${d.commit.message}
|
|
6
|
+
${d.commit.author}
|
|
7
|
+
${this.formatDate(d.commit.date)}`),u.on("click",(d,h)=>{this.commitClick.emit(h.commit)}),c.on("tick",()=>{l.selectAll(".branch-line").attr("x1",d=>d.source.x).attr("y1",d=>d.source.y).attr("x2",d=>d.target.x).attr("y2",d=>d.target.y),this.g.selectAll(".link").attr("x1",d=>d.source.x).attr("y1",d=>d.source.y).attr("x2",d=>d.target.x).attr("y2",d=>d.target.y),u.attr("transform",d=>`translate(${d.x},${d.y})`)})}getGraphColors(){let t=document.documentElement.classList.contains("dark");return console.log("Graph colors - Dark mode:",t),this.colorPalette?{link:this.colorPalette.colors.link,nodeFill:this.colorPalette.colors.nodeFill,nodeStroke:this.colorPalette.colors.nodeStroke,text:this.colorPalette.colors.graphText}:t?{link:"#4b5563",nodeFill:"#3b82f6",nodeStroke:"#1e40af",text:"#9ca3af"}:{link:"#cbd5e0",nodeFill:"#3b82f6",nodeStroke:"#1e40af",text:"#6b7280"}}setupDarkModeObserver(){this.observer=new MutationObserver(t=>{t.forEach(n=>{n.type==="attributes"&&n.attributeName==="class"&&this.svg&&this.renderGraph()})}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}createGitGraphStructure(){let t=this.commits.map((s,a)=>({id:s.hash,commit:s,branch:s.branches[0]||"main",index:a,isMerge:s.parents&&s.parents.length>1,isBranch:s.branches.length>0})),n=[],r=[],o=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4"];for(let s=1;s<t.length;s++){let a=t[s],c=t[s-1];n.push({source:c.id,target:a.id,branch:a.branch})}let i=new Map;return t.forEach(s=>{let a=s.branch;i.has(a)||i.set(a,[]),i.get(a).push(s)}),i.forEach((s,a)=>{let c=[];for(let l=1;l<s.length;l++)c.push({source:s[l-1],target:s[l],branch:a});r.push({name:a,links:c,color:o[r.length%o.length]})}),{nodes:t,links:n,branches:r}}getBranchColor(t,n){let r=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],o=t.charCodeAt(0)%r.length;return r[o]}getNodeColor(t,n){return t.isMerge?"#8b5cf6":t.isBranch?"#10b981":n.nodeFill}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ve({type:e,selectors:[["app-commit-graph"]],viewQuery:function(n,r){if(n&1&&hf(VN,7),n&2){let o;pf(o=gf())&&(r.svgElement=o.first)}},inputs:{commits:"commits",colorPalette:"colorPalette"},outputs:{commitClick:"commitClick"},features:[kt],decls:3,vars:0,consts:[["commitGraph",""],[1,"graph-container"],["width","100%","height","600"]],template:function(n,r){n&1&&(di(0,"div",1),bn(),Qa(1,"svg",2,0),fi())},dependencies:[qe],styles:[".graph-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1.5rem;transition:background-color .2s ease}.dark[_ngcontent-%COMP%] .graph-container[_ngcontent-%COMP%]{background-color:#2d2d2d}.dark[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{background-color:transparent}"]})};function jN(e,t){if(e&1){let n=Ft();w(0,"div",22)(1,"span",23),N(2),E(),w(3,"button",24),z("click",function(){let o=Fe(n).$implicit,i=J(2);return Le(i.onFileClick(o.file))}),N(4," View Diff "),E()()}if(e&2){let n=t.$implicit;C(2),ye(n.file)}}function BN(e,t){if(e&1&&(w(0,"div",27)(1,"div",28),N(2),E(),w(3,"div",29),N(4),E()()),e&2){let n=t.$implicit;C(2),ye(n.file),C(2),Xa(" +",n.additions," -",n.deletions," ")}}function UN(e,t){if(e&1&&(w(0,"div",17)(1,"h4",18),N(2,"Diff Summary"),E(),w(3,"div",25),ce(4,BN,5,3,"div",26),E()()),e&2){let n=J(2);C(4),H("ngForOf",n.diffFiles)}}function $N(e,t){if(e&1&&(w(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),N(5),E(),w(6,"span",13),N(7),E(),w(8,"span",14),N(9),E()(),w(10,"h3",15),N(11),E()(),w(12,"div",16)(13,"div",17)(14,"h4",18),N(15,"Files Changed"),E(),w(16,"div",19),ce(17,jN,5,1,"div",20),E()(),ce(18,UN,5,1,"div",21),E()()()),e&2){let n=J();C(5),ye(n.commit.hash),C(2),Ee("by ",n.commit.author),C(2),ye(n.formatDate(n.commit.date)),C(2),ye(n.commit.message),C(6),H("ngForOf",n.diffFiles),C(),H("ngIf",n.diffFiles.length>0)}}var yl=class e{commit=null;diffFiles=[];close=new Y;fileClick=new Y;isDarkMode=!1;ngOnInit(){this.checkDarkMode(),this.setupDarkModeObserver()}checkDarkMode(){this.isDarkMode=document.documentElement.classList.contains("dark")}setupDarkModeObserver(){new MutationObserver(n=>{n.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&this.checkDarkMode()})}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}onClose(){this.close.emit()}onFileClick(t){this.fileClick.emit(t)}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ve({type:e,selectors:[["app-commit-detail"]],inputs:{commit:"commit",diffFiles:"diffFiles"},outputs:{close:"close",fileClick:"fileClick"},decls:9,vars:3,consts:[[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],[1,"modal-title"],[1,"close-button",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"close-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["class","modal-content",4,"ngIf"],[1,"modal-content"],[1,"commit-details"],[1,"commit-header"],[1,"commit-meta"],[1,"commit-hash"],[1,"commit-author"],[1,"commit-date"],[1,"commit-message"],[1,"commit-sections"],[1,"section"],[1,"section-title"],[1,"file-list"],["class","file-item",4,"ngFor","ngForOf"],["class","section",4,"ngIf"],[1,"file-item"],[1,"file-name"],[1,"btn","btn-primary",3,"click"],[1,"diff-summary"],["class","diff-item",4,"ngFor","ngForOf"],[1,"diff-item"],[1,"diff-file-name"],[1,"diff-stats"]],template:function(n,r){n&1&&(w(0,"div",0),z("click",function(){return r.onClose()}),w(1,"div",1),z("click",function(i){return i.stopPropagation()}),w(2,"div",2)(3,"h3",3),N(4,"Commit Details"),E(),w(5,"button",4),z("click",function(){return r.onClose()}),bn(),w(6,"svg",5),We(7,"path",6),E()()(),ce(8,$N,19,6,"div",7),E()()),n&2&&(C(),xn("dark",r.isDarkMode),C(7),H("ngIf",r.commit))},dependencies:[qe,lt,Ct],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:50;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}.modal-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 20px 25px -5px #0000001a;max-width:64rem;width:100%;max-height:100vh;overflow-y:auto;transition:background-color .2s ease,color .2s ease}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb;transition:border-bottom-color .2s ease}.modal-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#111827;transition:color .2s ease}.modal-container.dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .modal-container.dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.close-button[_ngcontent-%COMP%]{color:#6b7280;background:none;border:none;cursor:pointer;padding:.5rem}.close-button[_ngcontent-%COMP%]:hover{color:#374151}.close-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.modal-content[_ngcontent-%COMP%]{padding:1.5rem}.commit-header[_ngcontent-%COMP%]{border-bottom:1px solid #e5e7eb;padding-bottom:1rem;margin-bottom:1rem;transition:border-bottom-color .2s ease}.commit-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.commit-hash[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;color:#6b7280;transition:color .2s ease}.commit-author[_ngcontent-%COMP%]{font-size:.875rem;color:#374151;transition:color .2s ease}.commit-date[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;transition:color .2s ease}.commit-message[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#111827;transition:color .2s ease}.commit-sections[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.section-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500;color:#111827;margin-bottom:.75rem;transition:color .2s ease}.file-list[_ngcontent-%COMP%], .diff-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.file-item[_ngcontent-%COMP%], .diff-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background-color:#f9fafb;border-radius:.25rem;transition:background-color .2s ease}.file-name[_ngcontent-%COMP%], .diff-file-name[_ngcontent-%COMP%]{font-size:.875rem;color:#374151;transition:color .2s ease}.diff-stats[_ngcontent-%COMP%]{font-size:.75rem;color:#6b7280;transition:color .2s ease}.dark[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{background-color:#2d2d2d!important;color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%]{border-color:#404040!important}.dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .commit-header[_ngcontent-%COMP%]{border-color:#404040!important}.dark[_ngcontent-%COMP%] .commit-hash[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .commit-author[_ngcontent-%COMP%]{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .commit-date[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .commit-message[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .diff-item[_ngcontent-%COMP%]{background-color:#404040!important}.dark[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .diff-file-name[_ngcontent-%COMP%]{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .diff-stats[_ngcontent-%COMP%]{color:#9ca3af!important}@media (max-width: 768px){.commit-sections[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};function HN(e,t){if(e&1&&(w(0,"div",14)(1,"span",15),N(2),E(),w(3,"span",16),N(4),E()()),e&2){let n=t.$implicit;xn("added",n.type==="added")("removed",n.type==="removed")("context",n.type==="context"),C(2),ye(n.lineNumber),C(2),ye(n.content)}}function zN(e,t){if(e&1&&(w(0,"div",12),ce(1,HN,5,8,"div",13),E()),e&2){let n=J();C(),H("ngForOf",n.diffLines)("ngForTrackBy",n.trackByLine)}}function GN(e,t){e&1&&(w(0,"div",17)(1,"p"),N(2,"No diff content available for this file."),E()())}var vl=class e{fileName="";diffFile=null;close=new Y;diffLines=[];ngOnInit(){console.log("DiffViewer ngOnInit called"),this.parseDiff()}ngOnChanges(){console.log("DiffViewer ngOnChanges called"),this.parseDiff()}parseDiff(){if(console.log("parseDiff called with diffFile:",this.diffFile),!this.diffFile?.changes){console.log("No changes found in diffFile"),this.diffLines=[];return}let t=this.diffFile.changes.split(`
|
|
8
|
+
`);console.log("Parsed lines:",t.length),this.diffLines=t.map((n,r)=>{let o="context",i=(r+1).toString(),s=n;return n.startsWith("+")?(o="added",s=n.substring(1)):n.startsWith("-")?(o="removed",s=n.substring(1)):n.startsWith("@@")&&(i="@@",s=n),{type:o,lineNumber:i,content:s}}),console.log("Parsed diff lines:",this.diffLines.length)}onClose(){this.close.emit()}trackByLine(t,n){return`${n.type}-${t}`}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ve({type:e,selectors:[["app-diff-viewer"]],inputs:{fileName:"fileName",diffFile:"diffFile"},outputs:{close:"close"},features:[kt],decls:15,vars:5,consts:[[1,"diff-viewer"],[1,"diff-header"],[1,"diff-title"],[1,"close-button",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"close-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"diff-content"],[1,"diff-stats"],[1,"stat","added"],[1,"stat","removed"],["class","diff-lines",4,"ngIf"],["class","no-diff",4,"ngIf"],[1,"diff-lines"],["class","diff-line",3,"added","removed","context",4,"ngFor","ngForOf","ngForTrackBy"],[1,"diff-line"],[1,"line-number"],[1,"line-content"],[1,"no-diff"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"div",1)(2,"h3",2),N(3),E(),w(4,"button",3),z("click",function(){return r.onClose()}),bn(),w(5,"svg",4),We(6,"path",5),E()()(),la(),w(7,"div",6)(8,"div",7)(9,"span",8),N(10),E(),w(11,"span",9),N(12),E()(),ce(13,zN,2,2,"div",10)(14,GN,3,0,"div",11),E()()),n&2&&(C(3),Ee("Diff: ",r.fileName),C(7),Ee("+",(r.diffFile==null?null:r.diffFile.additions)||0," additions"),C(2),Ee("-",(r.diffFile==null?null:r.diffFile.deletions)||0," deletions"),C(),H("ngIf",r.diffLines.length>0),C(),H("ngIf",r.diffLines.length===0))},dependencies:[qe,lt,Ct],styles:[".diff-viewer[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 20px 25px -5px #0000001a;max-width:90vw;width:100%;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.diff-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e5e7eb;background-color:#f9fafb}.diff-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#111827;margin:0}.close-button[_ngcontent-%COMP%]{background:none;border:none;color:#6b7280;cursor:pointer;padding:.25rem;border-radius:.25rem;transition:color .2s}.close-button[_ngcontent-%COMP%]:hover{color:#374151}.close-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.diff-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:1rem}.diff-stats[_ngcontent-%COMP%]{display:flex;gap:1rem;margin-bottom:1rem;padding:.5rem;background-color:#f9fafb;border-radius:.375rem}.stat[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500}.stat.added[_ngcontent-%COMP%]{color:#059669}.stat.removed[_ngcontent-%COMP%]{color:#dc2626}.diff-lines[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.5;border:1px solid #e5e7eb;border-radius:.375rem;overflow:hidden}.diff-line[_ngcontent-%COMP%]{display:flex;padding:.125rem .5rem;border-bottom:1px solid #f3f4f6}.diff-line[_ngcontent-%COMP%]:last-child{border-bottom:none}.diff-line.added[_ngcontent-%COMP%]{background-color:#dcfce7}.diff-line.removed[_ngcontent-%COMP%]{background-color:#fee2e2}.diff-line.context[_ngcontent-%COMP%]{background-color:#f9fafb}.line-number[_ngcontent-%COMP%]{min-width:3rem;color:#6b7280;font-size:.75rem;padding-right:.5rem;border-right:1px solid #e5e7eb;margin-right:.5rem}.line-content[_ngcontent-%COMP%]{flex:1;white-space:pre-wrap;word-break:break-all}.diff-line.added[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#166534}.diff-line.removed[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#991b1b}.diff-line.context[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#374151}.no-diff[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:#6b7280}.dark[_ngcontent-%COMP%] .diff-viewer[_ngcontent-%COMP%]{background-color:#2d2d2d;color:#e0e0e0}.dark[_ngcontent-%COMP%] .diff-header[_ngcontent-%COMP%]{background-color:#404040;border-color:#555}.dark[_ngcontent-%COMP%] .diff-title[_ngcontent-%COMP%]{color:#e0e0e0}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:#9ca3af}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#d1d5db}.dark[_ngcontent-%COMP%] .diff-stats[_ngcontent-%COMP%]{background-color:#404040}.dark[_ngcontent-%COMP%] .diff-lines[_ngcontent-%COMP%]{border-color:#555}.dark[_ngcontent-%COMP%] .diff-line[_ngcontent-%COMP%]{border-color:#404040}.dark[_ngcontent-%COMP%] .diff-line.added[_ngcontent-%COMP%]{background-color:#14532d}.dark[_ngcontent-%COMP%] .diff-line.removed[_ngcontent-%COMP%]{background-color:#7f1d1d}.dark[_ngcontent-%COMP%] .diff-line.context[_ngcontent-%COMP%]{background-color:#404040}.dark[_ngcontent-%COMP%] .line-number[_ngcontent-%COMP%]{color:#9ca3af;border-color:#555}.dark[_ngcontent-%COMP%] .diff-line.added[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#bbf7d0}.dark[_ngcontent-%COMP%] .diff-line.removed[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#fecaca}.dark[_ngcontent-%COMP%] .diff-line.context[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#d1d5db}.dark[_ngcontent-%COMP%] .no-diff[_ngcontent-%COMP%]{color:#9ca3af}"]})};var Ro={default:{id:"default",name:"Default",description:"Classic blue theme",colors:{primary:"#3b82f6",secondary:"#6b7280",accent:"#1e40af",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#cbd5e0",nodeFill:"#3b82f6",nodeStroke:"#1e40af",graphText:"#6b7280"}},ocean:{id:"ocean",name:"Ocean",description:"Deep blue ocean theme",colors:{primary:"#0ea5e9",secondary:"#64748b",accent:"#0369a1",background:"#ffffff",text:"#0f172a",border:"#e2e8f0",link:"#94a3b8",nodeFill:"#0ea5e9",nodeStroke:"#0369a1",graphText:"#475569"}},forest:{id:"forest",name:"Forest",description:"Green nature theme",colors:{primary:"#10b981",secondary:"#6b7280",accent:"#059669",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#d1fae5",nodeFill:"#10b981",nodeStroke:"#059669",graphText:"#6b7280"}},sunset:{id:"sunset",name:"Sunset",description:"Warm orange theme",colors:{primary:"#f59e0b",secondary:"#6b7280",accent:"#d97706",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#fed7aa",nodeFill:"#f59e0b",nodeStroke:"#d97706",graphText:"#6b7280"}},monochrome:{id:"monochrome",name:"Monochrome",description:"Black and white theme",colors:{primary:"#374151",secondary:"#6b7280",accent:"#111827",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#d1d5db",nodeFill:"#374151",nodeStroke:"#111827",graphText:"#6b7280"}},neon:{id:"neon",name:"Neon",description:"Bright neon theme",colors:{primary:"#ec4899",secondary:"#8b5cf6",accent:"#06b6d4",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#f0abfc",nodeFill:"#ec4899",nodeStroke:"#be185d",graphText:"#6b7280"}}},as={default:{id:"default",name:"Default Dark",description:"Classic dark theme",colors:{primary:"#3b82f6",secondary:"#6b7280",accent:"#1e40af",background:"#1a1a1a",text:"#e0e0e0",border:"#404040",link:"#4b5563",nodeFill:"#3b82f6",nodeStroke:"#1e40af",graphText:"#9ca3af"}},ocean:{id:"ocean",name:"Ocean Dark",description:"Deep ocean dark theme",colors:{primary:"#0ea5e9",secondary:"#64748b",accent:"#0369a1",background:"#0f172a",text:"#f1f5f9",border:"#334155",link:"#475569",nodeFill:"#0ea5e9",nodeStroke:"#0369a1",graphText:"#94a3b8"}},forest:{id:"forest",name:"Forest Dark",description:"Dark green theme",colors:{primary:"#10b981",secondary:"#6b7280",accent:"#059669",background:"#064e3b",text:"#ecfdf5",border:"#065f46",link:"#065f46",nodeFill:"#10b981",nodeStroke:"#059669",graphText:"#6ee7b7"}},sunset:{id:"sunset",name:"Sunset Dark",description:"Dark orange theme",colors:{primary:"#f59e0b",secondary:"#6b7280",accent:"#d97706",background:"#451a03",text:"#fef3c7",border:"#92400e",link:"#92400e",nodeFill:"#f59e0b",nodeStroke:"#d97706",graphText:"#fbbf24"}},monochrome:{id:"monochrome",name:"Monochrome Dark",description:"Pure black and white",colors:{primary:"#e5e7eb",secondary:"#9ca3af",accent:"#f9fafb",background:"#000000",text:"#ffffff",border:"#374151",link:"#4b5563",nodeFill:"#e5e7eb",nodeStroke:"#f9fafb",graphText:"#9ca3af"}},neon:{id:"neon",name:"Neon Dark",description:"Bright neon on dark",colors:{primary:"#ec4899",secondary:"#8b5cf6",accent:"#06b6d4",background:"#0f0f23",text:"#ffffff",border:"#312e81",link:"#581c87",nodeFill:"#ec4899",nodeStroke:"#be185d",graphText:"#f0abfc"}}};function WN(e,t){if(e&1&&(w(0,"option",5),N(1),E()),e&2){let n=t.$implicit;H("value",n.id),C(),Ee(" ",n.name," ")}}function qN(e,t){if(e&1&&(w(0,"div",6)(1,"div",7)(2,"span",8),N(3,"Primary:"),E(),We(4,"div",9),E(),w(5,"div",7)(6,"span",8),N(7,"Secondary:"),E(),We(8,"div",9),E(),w(9,"div",7)(10,"span",8),N(11,"Accent:"),E(),We(12,"div",9),E()()),e&2){let n=J();C(4),Q("background-color",n.currentPalette.colors.primary),C(4),Q("background-color",n.currentPalette.colors.secondary),C(4),Q("background-color",n.currentPalette.colors.accent)}}var _l=class e{selectedPalette="default";darkMode=!1;paletteChange=new Y;get availablePalettes(){let t=this.darkMode?as:Ro;return Object.values(t)}get currentPalette(){return(this.darkMode?as:Ro)[this.selectedPalette]||null}onPaletteChange(t){let r=t.target.value;this.paletteChange.emit(r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ve({type:e,selectors:[["app-color-palette-selector"]],inputs:{selectedPalette:"selectedPalette",darkMode:"darkMode"},outputs:{paletteChange:"paletteChange"},decls:6,vars:9,consts:[[1,"palette-selector"],[1,"palette-label"],[1,"palette-select",3,"change","value"],[3,"value",4,"ngFor","ngForOf"],["class","color-preview",4,"ngIf"],[3,"value"],[1,"color-preview"],[1,"preview-item"],[1,"preview-label"],[1,"color-swatch"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"label",1),N(2,"Theme:"),E(),w(3,"select",2),z("change",function(i){return r.onPaletteChange(i)}),ce(4,WN,2,2,"option",3),E(),ce(5,qN,13,6,"div",4),E()),n&2&&(C(3),Q("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),H("value",r.selectedPalette),C(),H("ngForOf",r.availablePalettes),C(),H("ngIf",r.currentPalette))},dependencies:[qe,lt,Ct],styles:[".palette-selector[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.5rem;border-radius:.375rem;background-color:#ffffff0d;border:1px solid rgba(255,255,255,.1)}.palette-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:inherit;white-space:nowrap}.palette-select[_ngcontent-%COMP%]{padding:.25rem .5rem;border:1px solid;border-radius:.25rem;font-size:.875rem;cursor:pointer;transition:all .2s ease}.palette-select[_ngcontent-%COMP%]:focus{outline:none;box-shadow:0 0 0 2px #3b82f680}.color-preview[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-left:.5rem}.preview-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.preview-label[_ngcontent-%COMP%]{font-size:.75rem;color:inherit;opacity:.7}.color-swatch[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.125rem;border:1px solid rgba(0,0,0,.1);box-shadow:0 1px 2px #0000001a}.dark[_ngcontent-%COMP%] .palette-selector[_ngcontent-%COMP%]{background-color:#0003;border-color:#ffffff1a}.dark[_ngcontent-%COMP%] .color-swatch[_ngcontent-%COMP%]{border-color:#fff3}@media (max-width: 768px){.color-preview[_ngcontent-%COMP%]{display:none}}"]})};var Dl=class e{constructor(t){this.http=t}apiUrl="/api";getCommits(t={}){let n=new URLSearchParams;return t.file&&n.set("file",t.file),t.since&&n.set("since",t.since),t.author&&n.set("author",t.author),t.limit&&n.set("limit",t.limit.toString()),this.http.get(`${this.apiUrl}/commits?${n.toString()}`)}getCommit(t){return this.http.get(`${this.apiUrl}/commit/${t}`)}getDiff(t){return this.http.get(`${this.apiUrl}/diff/${t}`)}getBlame(t){return this.http.get(`${this.apiUrl}/blame/${encodeURIComponent(t)}`)}getTags(){return this.http.get(`${this.apiUrl}/tags`)}getBranches(){return this.http.get(`${this.apiUrl}/branches`)}static \u0275fac=function(n){return new(n||e)(T(hc))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};function YN(e,t){if(e&1&&(w(0,"option",24),N(1),E()),e&2){let n=t.$implicit;H("value",n),C(),ye(n)}}function QN(e,t){if(e&1&&(w(0,"div",25),We(1,"div",26),w(2,"span"),N(3,"Loading commits..."),E()()),e&2){let n=J();Q("color",n.darkMode?"#e0e0e0":"#374151")}}function KN(e,t){if(e&1){let n=Ft();w(0,"div")(1,"app-commit-graph",27),z("commitClick",function(o){Fe(n);let i=J();return Le(i.showCommitDetails(o))}),E()()}if(e&2){let n=J();C(),H("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())}}function XN(e,t){if(e&1){let n=Ft();w(0,"div")(1,"app-commit-list",27),z("commitClick",function(o){Fe(n);let i=J();return Le(i.showCommitDetails(o))}),E()()}if(e&2){let n=J();C(),H("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())}}function JN(e,t){if(e&1){let n=Ft();w(0,"app-commit-detail",28),z("close",function(){Fe(n);let o=J();return Le(o.closeModal())})("fileClick",function(o){Fe(n);let i=J();return Le(i.onFileClick(o))}),E()}if(e&2){let n=J();H("commit",n.selectedCommit)("diffFiles",n.diffFiles)}}function eR(e,t){if(e&1){let n=Ft();w(0,"div",29),z("click",function(){Fe(n);let o=J();return Le(o.closeDiffModal())}),w(1,"div",30),z("click",function(o){return Fe(n),Le(o.stopPropagation())}),w(2,"app-diff-viewer",31),z("close",function(){Fe(n);let o=J();return Le(o.closeDiffModal())}),E()()()}if(e&2){let n=J();C(2),H("fileName",n.selectedFileName)("diffFile",n.selectedDiffFile)}}var Cl=class e{constructor(t){this.gitService=t}commits=[];filteredCommits=[];authors=[];tags=[];currentView="list";darkMode=!1;selectedColorPalette="default";loading=!0;showModal=!1;selectedCommit=null;diffFiles=[];showDiffModal=!1;selectedFileName="";selectedDiffFile=null;searchQuery="";selectedAuthor="";selectedSince="";fileFilter="";ngOnInit(){this.initializeDarkMode(),this.initializeColorPalette(),this.loadCommits(),this.loadTags(),this.checkDarkMode()}loadCommits(){this.loading=!0,this.gitService.getCommits().subscribe({next:t=>{this.commits=t,this.filteredCommits=t,this.authors=[...new Set(t.map(n=>n.author))],this.loading=!1},error:t=>{console.error("Error loading commits:",t),this.loading=!1}})}loadTags(){this.gitService.getTags().subscribe({next:t=>{this.tags=t},error:t=>{console.error("Error loading tags:",t)}})}switchView(t){this.currentView=t}toggleDarkMode(){this.darkMode=!this.darkMode,document.documentElement.classList.toggle("dark",this.darkMode),document.body.classList.toggle("dark",this.darkMode),localStorage.setItem("darkMode",this.darkMode.toString()),console.log("Dark mode toggled:",this.darkMode),console.log("Document element classes:",document.documentElement.classList.toString()),console.log("Body classes:",document.body.classList.toString()),document.body.offsetHeight}checkDarkMode(){this.darkMode=document.documentElement.classList.contains("dark")}initializeDarkMode(){let t=localStorage.getItem("darkMode");t!==null&&(this.darkMode=t==="true",this.darkMode&&(document.documentElement.classList.add("dark"),document.body.classList.add("dark")))}initializeColorPalette(){let t=localStorage.getItem("colorPalette");t&&Object.keys(Ro).includes(t)&&(this.selectedColorPalette=t)}onColorPaletteChange(t){this.selectedColorPalette=t,localStorage.setItem("colorPalette",t)}getCurrentPalette(){return(this.darkMode?as:Ro)[this.selectedColorPalette]}onSearch(){this.applyFilters()}onAuthorFilter(){this.applyFilters()}onSinceFilter(){this.applyFilters(),console.log("Date picker dark mode:",this.darkMode),console.log("Document dark class:",document.documentElement.classList.contains("dark"))}onFileFilter(){this.applyFilters()}applyFilters(){let t=this.commits;if(this.searchQuery){let n=this.searchQuery.toLowerCase();t=t.filter(r=>r.message.toLowerCase().includes(n)||r.author.toLowerCase().includes(n)||r.hash.toLowerCase().includes(n))}if(this.selectedAuthor&&(t=t.filter(n=>n.author===this.selectedAuthor)),this.selectedSince){let n=new Date(this.selectedSince);isNaN(n.getTime())||(t=t.filter(r=>new Date(r.date)>=n))}this.fileFilter&&(t=t.filter(n=>n.files.some(r=>r.toLowerCase().includes(this.fileFilter.toLowerCase())))),this.filteredCommits=t}showCommitDetails(t){this.selectedCommit=t,this.gitService.getDiff(t.hash).subscribe({next:n=>{this.diffFiles=n,this.showModal=!0},error:n=>{console.error("Error loading diff:",n),this.diffFiles=[],this.showModal=!0}})}closeModal(){this.showModal=!1,this.selectedCommit=null,this.diffFiles=[]}onFileClick(t){console.log("File clicked:",t),console.log("Available diff files:",this.diffFiles);let n=this.diffFiles.find(r=>r.file===t);console.log("Found diff file:",n),n?(this.selectedFileName=t,this.selectedDiffFile=n,this.showDiffModal=!0,console.log("Diff modal should be visible now")):console.warn("No diff found for file:",t)}closeDiffModal(){this.showDiffModal=!1,this.selectedFileName="",this.selectedDiffFile=null}static \u0275fac=function(n){return new(n||e)(q(Dl))};static \u0275cmp=Ve({type:e,selectors:[["app-root"]],decls:43,vars:61,consts:[[1,"app-container"],[1,"header"],[1,"container"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","space-x-4"],[1,"app-title"],[1,"flex","items-center",2,"gap","0.5rem"],[3,"click"],[3,"paletteChange","selectedPalette","darkMode"],[1,"btn","btn-secondary",3,"click"],[1,"search-container"],["type","text","placeholder","Search commits...",1,"search-input",3,"ngModelChange","input","ngModel"],[1,"filters"],[1,"filter-group"],[1,"filter-select",3,"ngModelChange","change","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","date","placeholder","Select date",1,"filter-input","date-picker",3,"ngModelChange","change","ngModel"],["type","text","placeholder","Filter by file...",1,"filter-input",3,"ngModelChange","input","ngModel"],[1,"main-content"],["class","loading",3,"color",4,"ngIf"],[4,"ngIf"],[3,"commit","diffFiles","close","fileClick",4,"ngIf"],["class","modal-overlay",3,"click",4,"ngIf"],[3,"value"],[1,"loading"],[1,"spinner"],[3,"commitClick","commits","colorPalette"],[3,"close","fileClick","commit","diffFiles"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[3,"close","fileName","diffFile"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),N(6," \u{1F4CA} Git History UI "),E(),w(7,"div",6)(8,"button",7),z("click",function(){return r.switchView("graph")}),N(9," Graph View "),E(),w(10,"button",7),z("click",function(){return r.switchView("list")}),N(11," List View "),E()()(),w(12,"div",4)(13,"app-color-palette-selector",8),z("paletteChange",function(i){return r.onColorPaletteChange(i)}),E(),w(14,"button",9),z("click",function(){return r.toggleDarkMode()}),N(15),E(),w(16,"div",10)(17,"input",11),dr("ngModelChange",function(i){return to(r.searchQuery,i)||(r.searchQuery=i),i}),z("input",function(){return r.onSearch()}),E()()()()()(),w(18,"div",12)(19,"div",2)(20,"div",4)(21,"div",13)(22,"label"),N(23,"Author:"),E(),w(24,"select",14),dr("ngModelChange",function(i){return to(r.selectedAuthor,i)||(r.selectedAuthor=i),i}),z("change",function(){return r.onAuthorFilter()}),w(25,"option",15),N(26,"All authors"),E(),ce(27,YN,2,2,"option",16),E()(),w(28,"div",13)(29,"label"),N(30,"Since:"),E(),w(31,"input",17),dr("ngModelChange",function(i){return to(r.selectedSince,i)||(r.selectedSince=i),i}),z("change",function(){return r.onSinceFilter()}),E()(),w(32,"div",13)(33,"label"),N(34,"File:"),E(),w(35,"input",18),dr("ngModelChange",function(i){return to(r.fileFilter,i)||(r.fileFilter=i),i}),z("input",function(){return r.onFileFilter()}),E()()()()(),w(36,"main",19)(37,"div",2),ce(38,QN,4,2,"div",20)(39,KN,2,2,"div",21)(40,XN,2,2,"div",21),E()(),ce(41,JN,1,2,"app-commit-detail",22)(42,eR,3,2,"div",23),E()),n&2&&(C(),Q("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),C(4),Q("color",r.darkMode?"#e0e0e0":"#111827"),C(3),Ka(r.currentView==="graph"?"btn btn-primary":"btn btn-secondary"),C(2),Ka(r.currentView==="list"?"btn btn-primary":"btn btn-secondary"),C(3),H("selectedPalette",r.selectedColorPalette)("darkMode",r.darkMode),C(2),Ee(" ",r.darkMode?"\u2600\uFE0F":"\u{1F319}"," "),C(2),Q("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),ur("ngModel",r.searchQuery),C(),Q("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),C(4),Q("color",r.darkMode?"#d1d5db":"#374151"),C(2),Q("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),ur("ngModel",r.selectedAuthor),C(3),H("ngForOf",r.authors),C(2),Q("color",r.darkMode?"#d1d5db":"#374151"),C(2),Q("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db")("caret-color",r.darkMode?"#e0e0e0":"#111827"),ur("ngModel",r.selectedSince),C(2),Q("color",r.darkMode?"#d1d5db":"#374151"),C(2),Q("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),ur("ngModel",r.fileFilter),C(),Q("background-color",r.darkMode?"#1a1a1a":"#f8f9fa"),C(2),H("ngIf",r.loading),C(),H("ngIf",!r.loading&&r.currentView==="graph"),C(),H("ngIf",!r.loading&&r.currentView==="list"),C(),H("ngIf",r.showModal),C(),H("ngIf",r.showDiffModal))},dependencies:[qe,lt,Ct,j_,F_,V_,Bc,$c,R_,Th,Bf,Hc,ml,yl,vl,_l],styles:[".app-container[_ngcontent-%COMP%]{min-height:100vh;background-color:#f8f9fa;transition:background-color .2s ease}.dark[_ngcontent-%COMP%] .app-container[_ngcontent-%COMP%]{background-color:#1a1a1a}.header[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0;transition:background-color .2s ease,border-bottom-color .2s ease}.app-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;color:#111827;transition:color .2s ease}.search-container[_ngcontent-%COMP%]{position:relative}.search-input[_ngcontent-%COMP%]{width:16rem;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;background-color:#fff;font-size:.875rem}.filters[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0}.filter-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.filter-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#374151}.filter-select[_ngcontent-%COMP%], .filter-input[_ngcontent-%COMP%]{padding:.25rem .5rem;border:1px solid #d1d5db;border-radius:.25rem;background-color:#fff;font-size:.875rem}.date-picker[_ngcontent-%COMP%]{min-width:200px;transition:all .2s ease}.date-picker[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{filter:invert(.5);cursor:pointer;transition:filter .2s ease}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{filter:invert(1)}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-input.date-picker[_ngcontent-%COMP%]{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.date-picker[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-fields-wrapper{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-text{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-month-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-day-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-year-field{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-hour-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-minute-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-second-field{color:inherit}.main-content[_ngcontent-%COMP%]{padding:1.5rem 0;transition:background-color .2s ease}.dark[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{background-color:#1a1a1a}.loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:3rem 0;gap:.75rem}.spinner[_ngcontent-%COMP%]{width:2rem;height:2rem;border:2px solid #e5e7eb;border-top:2px solid #3b82f6;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}.dark[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{border-color:#404040;border-top-color:#3b82f6}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:50;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}.modal-container[_ngcontent-%COMP%]{background-color:transparent;max-width:90vw;width:100%;max-height:90vh;overflow:hidden}.dark[_ngcontent-%COMP%] .app-container[_ngcontent-%COMP%]{background-color:#1a1a1a!important}.dark[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-select[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%]{background-color:#404040;border-color:#555;color:#e0e0e0}.dark[_ngcontent-%COMP%] .filter-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#d1d5db}.dark[_ngcontent-%COMP%] .graph-container[_ngcontent-%COMP%]{background-color:#2d2d2d;color:#e0e0e0}.dark[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{background-color:transparent}"]})};kf(Cl,g_).catch(e=>console.error(e));
|