git-history-ui 5.0.0 → 5.0.2
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/CHANGELOG.md +25 -0
- package/README.md +3 -4
- package/build/frontend/chunk-6DL2ZTKG.js +1 -0
- package/build/frontend/chunk-ACWXPHRR.js +1 -0
- package/build/frontend/{chunk-3E3FVV4X.js → chunk-F6HZ5OVS.js} +1 -1
- package/build/frontend/{chunk-GJRIJIZY.js → chunk-GHSRMAIR.js} +1 -1
- package/build/frontend/chunk-J5ZVP6TN.js +9 -0
- package/build/frontend/chunk-PRY6VAFG.js +1 -0
- package/build/frontend/{chunk-V6G3DEZ6.js → chunk-PXNKNORB.js} +1 -1
- package/build/frontend/chunk-S56XRIZ7.js +9 -0
- package/build/frontend/chunk-STUSEB5P.js +1 -0
- package/build/frontend/chunk-UM7ESEXJ.js +5 -0
- package/build/frontend/chunk-VGAHCEAA.js +1 -0
- package/build/frontend/chunk-XLGWMKXV.js +1 -0
- package/build/frontend/index.html +2 -2
- package/build/frontend/main-W5NQX3FE.js +1 -0
- package/build/frontend/styles-RQGRQK4Z.css +1 -0
- package/dist/backend/annotations.d.ts +9 -1
- package/dist/backend/annotations.d.ts.map +1 -1
- package/dist/backend/annotations.js +84 -9
- package/dist/backend/annotations.js.map +1 -1
- package/dist/backend/breakage.d.ts +70 -0
- package/dist/backend/breakage.d.ts.map +1 -0
- package/dist/backend/breakage.js +235 -0
- package/dist/backend/breakage.js.map +1 -0
- package/dist/backend/cache/sqliteIndex.d.ts +1 -1
- package/dist/backend/cache/sqliteIndex.d.ts.map +1 -1
- package/dist/backend/cache/sqliteIndex.js +36 -23
- package/dist/backend/cache/sqliteIndex.js.map +1 -1
- package/dist/backend/gitService.d.ts +14 -6
- package/dist/backend/gitService.d.ts.map +1 -1
- package/dist/backend/gitService.js +148 -45
- package/dist/backend/gitService.js.map +1 -1
- package/dist/backend/grouping/prGrouping.d.ts.map +1 -1
- package/dist/backend/grouping/prGrouping.js +41 -19
- package/dist/backend/grouping/prGrouping.js.map +1 -1
- package/dist/backend/impact.d.ts +3 -1
- package/dist/backend/impact.d.ts.map +1 -1
- package/dist/backend/impact.js +30 -16
- package/dist/backend/impact.js.map +1 -1
- package/dist/backend/insights.d.ts.map +1 -1
- package/dist/backend/insights.js +8 -3
- package/dist/backend/insights.js.map +1 -1
- package/dist/backend/llm/openaiProvider.d.ts +1 -0
- package/dist/backend/llm/openaiProvider.d.ts.map +1 -1
- package/dist/backend/llm/openaiProvider.js +21 -1
- package/dist/backend/llm/openaiProvider.js.map +1 -1
- package/dist/backend/server.d.ts.map +1 -1
- package/dist/backend/server.js +54 -9
- package/dist/backend/server.js.map +1 -1
- package/dist/backend/snapshot.d.ts +3 -1
- package/dist/backend/snapshot.d.ts.map +1 -1
- package/dist/backend/snapshot.js +14 -9
- package/dist/backend/snapshot.js.map +1 -1
- package/docs/images/demo.gif +0 -0
- package/package.json +1 -1
- package/build/frontend/chunk-465Y7ZAS.js +0 -2
- package/build/frontend/chunk-7VJNS7EY.js +0 -1
- package/build/frontend/chunk-GBKH4M7W.js +0 -1
- package/build/frontend/chunk-LRN4ELHN.js +0 -9
- package/build/frontend/chunk-PJETIVS4.js +0 -1
- package/build/frontend/chunk-QH2BEUIU.js +0 -5
- package/build/frontend/chunk-SJJTMQGL.js +0 -1
- package/build/frontend/chunk-TI46NMVL.js +0 -1
- package/build/frontend/chunk-WPYI663L.js +0 -7
- package/build/frontend/main-735KK4CH.js +0 -1
- package/build/frontend/styles-DUWPKHDX.css +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var Dg=Object.create;var ds=Object.defineProperty,Eg=Object.defineProperties,Ig=Object.getOwnPropertyDescriptor,wg=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertyNames,Zu=Object.getOwnPropertySymbols,bg=Object.getPrototypeOf,Qu=Object.prototype.hasOwnProperty,_g=Object.prototype.propertyIsEnumerable;var Yu=(e,t,n)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t)=>{for(var n in t||={})Qu.call(t,n)&&Yu(e,n,t[n]);if(Zu)for(var n of Zu(t))_g.call(t,n)&&Yu(e,n,t[n]);return e},Z=(e,t)=>Eg(e,wg(t));var EC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cg(t))!Qu.call(e,o)&&o!==n&&ds(e,o,{get:()=>t[o],enumerable:!(r=Ig(t,o))||r.enumerable});return e};var IC=(e,t,n)=>(n=e!=null?Dg(bg(e)):{},Tg(t||!e||!e.__esModule?ds(n,"default",{value:e,enumerable:!0}):n,e));var tn=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var fs;function Gr(){return fs}function Ae(e){let t=fs;return fs=e,t}var Ku=Symbol("NotFound");function nn(e){return e===Ku||e?.name==="\u0275NotFound"}function Qr(e,t){return Object.is(e,t)}var K=null,Wr=!1,ps=1,Mg=null,J=Symbol("SIGNAL");function T(e){let t=K;return K=e,t}function Kr(){return K}var ot={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 rn(e){if(Wr)throw new Error("");if(K===null)return;K.consumerOnSignalRead(e);let t=K.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=K.recomputing;if(r&&(n=t!==void 0?t.nextProducer:K.producers,n!==void 0&&n.producer===e)){K.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===K&&(!r||Sg(o,K)))return;let i=sn(K),s={producer:e,consumer:K,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};K.producersTail=s,t!==void 0?t.nextProducer=s:K.producers=s,i&&Xu(e,s)}function Ju(){ps++}function Jr(e){if(!(sn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ps)){if(!e.producerMustRecompute(e)&&!on(e)){Yr(e);return}e.producerRecomputeValue(e),Yr(e)}}function hs(e){if(e.consumers===void 0)return;let t=Wr;Wr=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Ng(r)}}finally{Wr=t}}function gs(){return K?.consumerAllowSignalWrites!==!1}function Ng(e){e.dirty=!0,hs(e),e.consumerMarkedDirty?.(e)}function Yr(e){e.dirty=!1,e.lastCleanEpoch=ps}function it(e){return e&&(e.producersTail=void 0,e.recomputing=!0),T(e)}function _t(e,t){if(T(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(sn(e))do r=ms(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function on(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Jr(n),r!==n.version))return!0}return!1}function Tt(e){if(sn(e)){let t=e.producers;for(;t!==void 0;)t=ms(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Xu(e,t){let n=e.consumersTail,r=sn(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)Xu(o.producer,o)}function ms(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,!sn(t)){let i=t.producers;for(;i!==void 0;)i=ms(i)}return n}function sn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Xr(e){Mg?.(e)}function Sg(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 eo(e,t){let n=Object.create(xg);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Jr(n),rn(n),n.value===$n)throw n.error;return n.value};return r[J]=n,Xr(n),r}var qr=Symbol("UNSET"),Zr=Symbol("COMPUTING"),$n=Symbol("ERRORED"),xg=Z(H({},ot),{value:qr,dirty:!0,error:null,equal:Qr,kind:"computed",producerMustRecompute(e){return e.value===qr||e.value===Zr},producerRecomputeValue(e){if(e.value===Zr)throw new Error("");let t=e.value;e.value=Zr;let n=it(e),r,o=!1;try{r=e.computation(),T(null),o=t!==qr&&t!==$n&&r!==$n&&e.equal(t,r)}catch(i){r=$n,e.error=i}finally{_t(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Ag(){throw new Error}var el=Ag;function tl(e){el(e)}function ys(e){el=e}var Rg=null;function vs(e,t){let n=Object.create(to);n.value=e,t!==void 0&&(n.equal=t);let r=()=>nl(n);return r[J]=n,Xr(n),[r,s=>an(n,s),s=>Ds(n,s)]}function nl(e){return rn(e),e.value}function an(e,t){gs()||tl(e),e.equal(e.value,t)||(e.value=t,Og(e))}function Ds(e,t){gs()||tl(e),an(e,t(e.value))}var to=Z(H({},ot),{equal:Qr,value:void 0,kind:"signal"});function Og(e){e.version++,Ju(),hs(e),Rg?.(e)}function M(e){return typeof e=="function"}function cn(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 no=cn(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 Mt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var V=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(M(r))try{r()}catch(i){t=i instanceof no?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{rl(i)}catch(s){t=t??[],s instanceof no?t=[...t,...s.errors]:t.push(s)}}if(t)throw new no(t)}}add(t){var n;if(t&&t!==this)if(this.closed)rl(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)&&Mt(n,t)}remove(t){let{_finalizers:n}=this;n&&Mt(n,t),t instanceof e&&t._removeParent(this)}};V.EMPTY=(()=>{let e=new V;return e.closed=!0,e})();var Es=V.EMPTY;function ro(e){return e instanceof V||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function rl(e){M(e)?e():e.unsubscribe()}var Ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var un={setTimeout(e,t,...n){let{delegate:r}=un;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=un;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function oo(e){un.setTimeout(()=>{let{onUnhandledError:t}=Ee;if(t)t(e);else throw e})}function Un(){}var ol=Is("C",void 0,void 0);function il(e){return Is("E",void 0,e)}function sl(e){return Is("N",e,void 0)}function Is(e,t,n){return{kind:e,value:t,error:n}}var Nt=null;function ln(e){if(Ee.useDeprecatedSynchronousErrorHandling){let t=!Nt;if(t&&(Nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Nt;if(Nt=null,n)throw r}}else e()}function al(e){Ee.useDeprecatedSynchronousErrorHandling&&Nt&&(Nt.errorThrown=!0,Nt.error=e)}var St=class extends V{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ro(t)&&t.add(this)):this.destination=Pg}static create(t,n,r){return new Ge(t,n,r)}next(t){this.isStopped?Cs(sl(t),this):this._next(t)}error(t){this.isStopped?Cs(il(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Cs(ol,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()}}},Fg=Function.prototype.bind;function ws(e,t){return Fg.call(e,t)}var bs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){io(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){io(r)}else io(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){io(n)}}},Ge=class extends St{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ee.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ws(t.next,i),error:t.error&&ws(t.error,i),complete:t.complete&&ws(t.complete,i)}):o=t}this.destination=new bs(o)}};function io(e){Ee.useDeprecatedSynchronousErrorHandling?al(e):oo(e)}function kg(e){throw e}function Cs(e,t){let{onStoppedNotification:n}=Ee;n&&un.setTimeout(()=>n(e,t))}var Pg={closed:!0,next:Un,error:kg,complete:Un};var dn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ne(e){return e}function Lg(...e){return _s(e)}function _s(e){return e.length===0?ne:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var S=(()=>{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=Vg(n)?n:new Ge(n,r,o);return ln(()=>{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=cl(r),new r((o,i)=>{let s=new Ge({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)}[dn](){return this}pipe(...n){return _s(n)(this)}toPromise(n){return n=cl(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 cl(e){var t;return(t=e??Ee.Promise)!==null&&t!==void 0?t:Promise}function jg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Vg(e){return e&&e instanceof St||jg(e)&&ro(e)}function Ts(e){return M(e?.lift)}function C(e){return t=>{if(Ts(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 w(e,t,n,r,o){return new Ms(e,t,n,r,o)}var Ms=class extends St{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 Ns(){return C((e,t)=>{let n=null;e._refCount++;let r=w(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 Ss=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ts(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 V;let n=this.getSubject();t.add(this.source.subscribe(w(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=V.EMPTY)}return t}refCount(){return Ns()(this)}};var fn={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=fn;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new V(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=fn;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=fn;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var ul=cn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ae=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new so(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ul}next(n){ln(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ln(()=>{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(){ln(()=>{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?Es:(this.currentObservers=null,i.push(n),new V(()=>{this.currentObservers=null,Mt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new so(t,n),e})(),so=class extends ae{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:Es}};var zn=class extends ae{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 Gn={now(){return(Gn.delegate||Date).now()},delegate:void 0};var Wn=class extends ae{constructor(t=1/0,n=1/0,r=Gn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var ao=class extends V{constructor(t,n){super()}schedule(t,n=0){return this}};var qn={setInterval(e,t,...n){let{delegate:r}=qn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=qn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var st=class extends ao{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return qn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&qn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Mt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Bg=1,xs,As={};function ll(e){return e in As?(delete As[e],!0):!1}var dl={setImmediate(e){let t=Bg++;return As[t]=!0,xs||(xs=Promise.resolve()),xs.then(()=>ll(t)&&e()),t},clearImmediate(e){ll(e)}};var{setImmediate:Hg,clearImmediate:$g}=dl,Zn={setImmediate(...e){let{delegate:t}=Zn;return(t?.setImmediate||Hg)(...e)},clearImmediate(e){let{delegate:t}=Zn;return(t?.clearImmediate||$g)(e)},delegate:void 0};var co=class extends st{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Zn.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Zn.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var pn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};pn.now=Gn.now;var at=class extends pn{constructor(t,n=pn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var uo=class extends at{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Ug=new uo(co);var Yn=new at(st),fl=Yn;var lo=class extends st{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=fn.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(fn.cancelAnimationFrame(n),t._scheduled=void 0)}};var fo=class extends at{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var zg=new fo(lo);var Qn=new S(e=>e.complete());function po(e){return e&&M(e.schedule)}function pl(e){return e[e.length-1]}function ho(e){return M(pl(e))?e.pop():void 0}function ct(e){return po(pl(e))?e.pop():void 0}function gl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function hl(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 xt(e){return this instanceof xt?(this.v=e,this):new xt(e)}function ml(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(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(v){return new Promise(function(y,g){i.push([f,v,y,g])>1||c(f,v)})},h&&(o[f]=h(o[f])))}function c(f,h){try{u(r[f](h))}catch(v){p(i[0][3],v)}}function u(f){f.value instanceof xt?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function yl(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 hl=="function"?hl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var go=e=>e&&typeof e.length=="number"&&typeof e!="function";function mo(e){return M(e?.then)}function yo(e){return M(e[dn])}function vo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Do(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 Gg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Eo=Gg();function Io(e){return M(e?.[Eo])}function wo(e){return ml(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield xt(n.read());if(o)return yield xt(void 0);yield yield xt(r)}}finally{n.releaseLock()}})}function Co(e){return M(e?.getReader)}function k(e){if(e instanceof S)return e;if(e!=null){if(yo(e))return Wg(e);if(go(e))return qg(e);if(mo(e))return Zg(e);if(vo(e))return vl(e);if(Io(e))return Yg(e);if(Co(e))return Qg(e)}throw Do(e)}function Wg(e){return new S(t=>{let n=e[dn]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qg(e){return new S(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Zg(e){return new S(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,oo)})}function Yg(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function vl(e){return new S(t=>{Kg(e,t).catch(n=>t.error(n))})}function Qg(e){return vl(wo(e))}function Kg(e,t){var n,r,o,i;return gl(this,void 0,void 0,function*(){try{for(n=yl(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 ce(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 bo(e,t=0){return C((n,r)=>{n.subscribe(w(r,o=>ce(r,e,()=>r.next(o),t),()=>ce(r,e,()=>r.complete(),t),o=>ce(r,e,()=>r.error(o),t)))})}function _o(e,t=0){return C((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Dl(e,t){return k(e).pipe(_o(t),bo(t))}function El(e,t){return k(e).pipe(_o(t),bo(t))}function Il(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function wl(e,t){return new S(n=>{let r;return ce(n,t,()=>{r=e[Eo](),ce(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)}),()=>M(r?.return)&&r.return()})}function To(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{ce(n,t,()=>{let r=e[Symbol.asyncIterator]();ce(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Cl(e,t){return To(wo(e),t)}function bl(e,t){if(e!=null){if(yo(e))return Dl(e,t);if(go(e))return Il(e,t);if(mo(e))return El(e,t);if(vo(e))return To(e,t);if(Io(e))return wl(e,t);if(Co(e))return Cl(e,t)}throw Do(e)}function ut(e,t){return t?bl(e,t):k(e)}function Mo(...e){let t=ct(e);return ut(e,t)}function Jg(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new S(t?o=>t.schedule(r,0,o):r)}function Xg(e){return!!e&&(e instanceof S||M(e.lift)&&M(e.subscribe))}var At=cn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function _l(e){return e instanceof Date&&!isNaN(e)}function ge(e,t){return C((n,r)=>{let o=0;n.subscribe(w(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:em}=Array;function tm(e,t){return em(t)?e(...t):e(t)}function No(e){return ge(t=>tm(e,t))}var{isArray:nm}=Array,{getPrototypeOf:rm,prototype:om,keys:im}=Object;function So(e){if(e.length===1){let t=e[0];if(nm(t))return{args:t,keys:null};if(sm(t)){let n=im(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function sm(e){return e&&typeof e=="object"&&rm(e)===om}function xo(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function am(...e){let t=ct(e),n=ho(e),{args:r,keys:o}=So(e);if(r.length===0)return ut([],t);let i=new S(cm(r,t,o?s=>xo(o,s):ne));return n?i.pipe(No(n)):i}function cm(e,t,n=ne){return r=>{Tl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Tl(t,()=>{let u=ut(e[c],t),l=!1;u.subscribe(w(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Tl(e,t,n){e?ce(n,e,t):t()}function Ml(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,p=()=>{d&&!c.length&&!u&&t.complete()},f=v=>u<r?h(v):c.push(v),h=v=>{i&&t.next(v),u++;let y=!1;k(n(v,l++)).subscribe(w(t,g=>{o?.(g),i?f(g):t.next(g)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;c.length&&u<r;){let g=c.shift();s?ce(t,s,()=>h(g)):h(g)}p()}catch(g){t.error(g)}}))};return e.subscribe(w(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Rt(e,t,n=1/0){return M(t)?Rt((r,o)=>ge((i,s)=>t(r,i,o,s))(k(e(r,o))),n):(typeof t=="number"&&(n=t),C((r,o)=>Ml(r,o,e,n)))}function Rs(e=1/0){return Rt(ne,e)}function Nl(){return Rs(1)}function Ao(...e){return Nl()(ut(e,ct(e)))}function um(e){return new S(t=>{k(e()).subscribe(t)})}function lm(...e){let t=ho(e),{args:n,keys:r}=So(e),o=new S(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;k(n[l]).subscribe(w(i,p=>{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?xo(r,a):a),i.complete())}))}});return t?o.pipe(No(t)):o}function Sl(e=0,t,n=fl){let r=-1;return t!=null&&(po(t)?n=t:r=t),new S(o=>{let i=_l(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Ot(e,t){return C((n,r)=>{let o=0;n.subscribe(w(r,i=>e.call(t,i,o++)&&r.next(i)))})}function xl(e){return C((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(w(n,u=>{r=!0,o=u,i||k(e(u)).subscribe(i=w(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function dm(e,t=Yn){return xl(()=>Sl(e,t))}function Os(e){return C((t,n)=>{let r=null,o=!1,i;r=t.subscribe(w(n,void 0,void 0,s=>{i=k(e(s,Os(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Al(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(w(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Fs(e,t){return M(t)?Rt(e,t,1):Rt(e,1)}function fm(e,t=Yn){return C((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(w(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Kn(e){return C((t,n)=>{let r=!1;t.subscribe(w(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function ks(e){return e<=0?()=>Qn:C((t,n)=>{let r=0;t.subscribe(w(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function pm(e,t=ne){return e=e??hm,C((n,r)=>{let o,i=!0;n.subscribe(w(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function hm(e,t){return e===t}function Ro(e=gm){return C((t,n)=>{let r=!1;t.subscribe(w(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function gm(){return new At}function Ps(e){return C((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function mm(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot((o,i)=>e(o,i,r)):ne,ks(1),n?Kn(t):Ro(()=>new At))}function Ls(e){return e<=0?()=>Qn:C((t,n)=>{let r=[];t.subscribe(w(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 ym(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot((o,i)=>e(o,i,r)):ne,Ls(1),n?Kn(t):Ro(()=>new At))}function vm(){return C((e,t)=>{let n,r=!1;e.subscribe(w(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function Dm(e,t){return C(Al(e,t,arguments.length>=2,!0))}function Rl(e={}){let{connector:t=()=>new ae,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,l=d=!1},h=()=>{let v=s;f(),v?.unsubscribe()};return C((v,y)=>{u++,!d&&!l&&p();let g=c=c??t();y.add(()=>{u--,u===0&&!d&&!l&&(a=js(h,o))}),g.subscribe(y),!s&&u>0&&(s=new Ge({next:z=>g.next(z),error:z=>{d=!0,p(),a=js(f,n,z),g.error(z)},complete:()=>{l=!0,p(),a=js(f,r),g.complete()}}),k(v).subscribe(s))})(i)}}function js(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ge({next:()=>{r.unsubscribe(),e()}});return k(t(...n)).subscribe(r)}function Em(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Rl({connector:()=>new Wn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Im(...e){let t=ct(e);return C((n,r)=>{(t?Ao(e,n,t):Ao(e,n)).subscribe(r)})}function Oo(e,t){return C((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(w(r,c=>{o?.unsubscribe();let u=0,l=i++;k(e(c,l)).subscribe(o=w(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function wm(e){return C((t,n)=>{k(e).subscribe(w(n,()=>n.complete(),Un)),!n.closed&&t.subscribe(n)})}function Cm(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?C((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(w(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ne}function Ol(e){let t=T(null);try{return e()}finally{T(t)}}var jo="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(t,n){super(jt(t,n)),this.code=t}};function bm(e){return`NG0${Math.abs(e)}`}function jt(e,t){return`${bm(e)}${t?": "+t:""}`}var Oe=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("")}function Pl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function qe(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(qe).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 Vo(e,t){return e?t?`${e} ${t}`:e:t||""}var _m=A({__forward_ref__:A});function Bo(e){return e.__forward_ref__=Bo,e.toString=function(){return qe(this())},e}function Y(e){return Qs(e)?e():e}function Qs(e){return typeof e=="function"&&e.hasOwnProperty(_m)&&e.__forward_ref__===Bo}function Ll(e,t){e==null&&Ks(t,e,null,"!=")}function Ks(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function rr(e){return{providers:e.providers||[],imports:e.imports||[]}}function or(e){return Mm(e,Ho)}function Tm(e){return or(e)!==null}function Mm(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Nm(e){let t=e?.[Ho]??null;return t||null}function Bs(e){return e&&e.hasOwnProperty(ko)?e[ko]:null}var Ho=A({\u0275prov:A}),ko=A({\u0275inj:A}),b=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=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Js(e){return e&&!!e.\u0275providers}var Xs=A({\u0275cmp:A}),ea=A({\u0275dir:A}),ta=A({\u0275pipe:A}),na=A({\u0275mod:A}),er=A({\u0275fac:A}),Vt=A({__NG_ELEMENT_ID__:A}),Fl=A({__NG_ENV_ID__:A});function we(e){return typeof e=="string"?e:e==null?"":String(e)}function Po(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():we(e)}var ra=A({ngErrorCode:A}),jl=A({ngErrorMessage:A}),Xn=A({ngTokenPath:A});function oa(e,t){return Vl("",-200,t)}function $o(e,t){throw new D(-201,!1)}function Sm(e,t){e[Xn]??=[];let n=e[Xn],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(Ll(t.provide,"Token with multi: true should have a provide property"),r=Po(t.provide)):r=Po(t),n[0]!==r&&e[Xn].unshift(r)}function xm(e,t){let n=e[Xn],r=e[ra],o=e[jl]||e.message;return e.message=Rm(o,r,n,t),e}function Vl(e,t,n){let r=new D(t,e);return r[ra]=t,r[jl]=e,n&&(r[Xn]=n),r}function Am(e){return e[ra]}function Rm(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return jt(t,`${e}${i}${o}`)}var Hs;function Bl(){return Hs}function re(e){let t=Hs;return Hs=e,t}function ia(e,t,n){let r=or(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;$o(e,"Injector")}var Om={},Ft=Om,$s="__NG_DI_FLAG__",Us=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=kt(n)||0;try{return this.injector.get(t,r&8?null:Ft,r)}catch(o){if(nn(o))return o;throw o}}};function Fm(e,t=0){let n=Gr();if(n===void 0)throw new D(-203,!1);if(n===null)return ia(e,void 0,t);{let r=km(t),o=n.retrieve(e,r);if(nn(o)){if(r.optional)return null;throw o}return o}}function L(e,t=0){return(Bl()||Fm)(Y(e),t)}function m(e,t){return L(e,kt(t))}function kt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function km(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function zs(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new D(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Pm(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(L(o,i))}else t.push(L(r))}return t}function Uo(e,t){return e[$s]=t,e.prototype[$s]=t,e}function Pm(e){return e[$s]}function lt(e,t){let n=e.hasOwnProperty(er);return n?e[er]:null}function Hl(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 $l(e){return e.flat(Number.POSITIVE_INFINITY)}function zo(e,t){e.forEach(n=>Array.isArray(n)?zo(n,t):t(n))}function sa(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ir(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ul(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function zl(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 Go(e,t,n){let r=gn(e,t);return r>=0?e[r|1]=n:(r=~r,zl(e,r,t,n)),r}function Wo(e,t){let n=gn(e,t);if(n>=0)return e[n|1]}function gn(e,t){return Lm(e,t,1)}function Lm(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 ft={},oe=[],Bt=new b(""),aa=new b("",-1),ca=new b(""),tr=class{get(t,n=Ft){if(n===Ft){let o=Vl("",-201);throw o.name="\u0275NotFound",o}return n}};function ua(e){return e[na]||null}function pt(e){return e[Xs]||null}function la(e){return e[ea]||null}function Gl(e){return e[ta]||null}function sr(e){return{\u0275providers:e}}function Wl(...e){return{\u0275providers:da(!0,e),\u0275fromNgModule:!0}}function da(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return zo(t,s=>{let a=s;Lo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ql(o,i),n}function ql(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];fa(o,i=>{t(i,r)})}}function Lo(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Bs(e),s=!i&&pt(e);if(!i&&!s){let c=e.ngModule;if(i=Bs(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Lo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{zo(i.imports,l=>{Lo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&ql(u,t)}if(!a){let u=lt(o)||(()=>new o);t({provide:o,useFactory:u,deps:oe},o),t({provide:ca,useValue:o,multi:!0},o),t({provide:Bt,useValue:()=>L(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;fa(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function fa(e,t){for(let n of e)Js(n)&&(n=n.\u0275providers),Array.isArray(n)?fa(n,t):t(n)}var jm=A({provide:String,useValue:A});function Zl(e){return e!==null&&typeof e=="object"&&jm in e}function Vm(e){return!!(e&&e.useExisting)}function Bm(e){return!!(e&&e.useFactory)}function Pt(e){return typeof e=="function"}function Yl(e){return!!e.useClass}var pa=new b(""),Fo={},kl={},Vs;function ar(){return Vs===void 0&&(Vs=new tr),Vs}var ue=class{},Lt=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,Ws(t,s=>this.processProvider(s)),this.records.set(aa,hn(void 0,this)),o.has("environment")&&this.records.set(ue,hn(void 0,this));let i=this.records.get(pa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ca,oe,{self:!0}))}retrieve(t,n){let r=kt(n)||0;try{return this.get(t,Ft,r)}catch(o){if(nn(o))return o;throw o}}destroy(){Jn(this),this._destroyed=!0;let t=T(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(),T(t)}}onDestroy(t){return Jn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jn(this);let n=Ae(this),r=re(void 0),o;try{return t()}finally{Ae(n),re(r)}}get(t,n=Ft,r){if(Jn(this),t.hasOwnProperty(Fl))return t[Fl](this);let o=kt(r),i,s=Ae(this),a=re(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Gm(t)&&or(t);l&&this.injectableDefInScope(l)?u=hn(Gs(t),Fo):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?ar():this.parent;return n=o&8&&n===Ft?null:n,c.get(t,n)}catch(c){let u=Am(c);throw u===-200||u===-201?new D(u,null):c}finally{re(a),Ae(s)}}resolveInjectorInitializers(){let t=T(null),n=Ae(this),r=re(void 0),o;try{let i=this.get(Bt,oe,{self:!0});for(let s of i)s()}finally{Ae(n),re(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(qe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=Pt(t)?t:Y(t&&t.provide),r=$m(t);if(!Pt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=hn(void 0,Fo,!0),o.factory=()=>zs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=T(null);try{if(n.value===kl)throw oa(qe(t));return n.value===Fo&&(n.value=kl,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&zm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(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 Gs(e){let t=or(e),n=t!==null?t.factory:lt(e);if(n!==null)return n;if(e instanceof b)throw new D(204,!1);if(e instanceof Function)return Hm(e);throw new D(204,!1)}function Hm(e){if(e.length>0)throw new D(204,!1);let n=Nm(e);return n!==null?()=>n.factory(e):()=>new e}function $m(e){if(Zl(e))return hn(void 0,e.useValue);{let t=ha(e);return hn(t,Fo)}}function ha(e,t,n){let r;if(Pt(e)){let o=Y(e);return lt(o)||Gs(o)}else if(Zl(e))r=()=>Y(e.useValue);else if(Bm(e))r=()=>e.useFactory(...zs(e.deps||[]));else if(Vm(e))r=(o,i)=>L(Y(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(e&&(e.useClass||e.provide));if(Um(e))r=()=>new o(...zs(e.deps));else return lt(o)||Gs(o)}return r}function Jn(e){if(e.destroyed)throw new D(205,!1)}function hn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Um(e){return!!e.deps}function zm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Gm(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ws(e,t){for(let n of e)Array.isArray(n)?Ws(n,t):n&&Js(n)?Ws(n.\u0275providers,t):t(n)}function mn(e,t){let n;e instanceof Lt?(Jn(e),n=e):n=new Us(e);let r,o=Ae(n),i=re(void 0);try{return t()}finally{Ae(o),re(i)}}function Ql(){return Bl()!==void 0||Gr()!=null}var Ce=0,E=1,I=2,q=3,me=4,ie=5,yn=6,vn=7,X=8,Ht=9,Fe=10,P=11,Dn=12,ga=13,$t=14,le=15,ht=16,Ut=17,ke=18,cr=19,ma=20,We=21,qo=22,Ye=23,pe=24,zt=25,j=26,Kl=1;var gt=7,ur=8,Gt=9,se=10;function Pe(e){return Array.isArray(e)&&typeof e[Kl]=="object"}function be(e){return Array.isArray(e)&&e[Kl]===!0}function ya(e){return(e.flags&4)!==0}function mt(e){return e.componentOffset>-1}function En(e){return(e.flags&1)===1}function Le(e){return!!e.template}function In(e){return(e[I]&512)!==0}function Wt(e){return(e[I]&256)===256}var va="svg",Jl="math";function ye(e){for(;Array.isArray(e);)e=e[Ce];return e}function Da(e,t){return ye(t[e])}function _e(e,t){return ye(t[e.index])}function Zo(e,t){return e.data[t]}function lr(e,t){return e[t]}function Ea(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ve(e,t){let n=t[e];return Pe(n)?n:n[Ce]}function Xl(e){return(e[I]&4)===4}function Yo(e){return(e[I]&128)===128}function ed(e){return be(e[q])}function yt(e,t){return t==null?null:e[t]}function Ia(e){e[Ut]=0}function wa(e){e[I]&1024||(e[I]|=1024,Yo(e)&&vt(e))}function td(e,t){for(;e>0;)t=t[$t],e--;return t}function dr(e){return!!(e[I]&9216||e[pe]?.dirty)}function Qo(e){e[Fe].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),dr(e)&&vt(e)}function vt(e){e[Fe].changeDetectionScheduler?.notify(0);let t=dt(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!Yo(t)));)t=dt(t)}function Ca(e,t){if(Wt(e))throw new D(911,!1);e[We]===null&&(e[We]=[]),e[We].push(t)}function nd(e,t){if(e[We]===null)return;let n=e[We].indexOf(t);n!==-1&&e[We].splice(n,1)}function dt(e){let t=e[q];return be(t)?t[q]:t}function ba(e){return e[vn]??=[]}function _a(e){return e.cleanup??=[]}function rd(e,t,n,r){let o=ba(t);o.push(n),e.firstCreatePass&&_a(e).push(r,o.length-1)}var N={lFrame:md(null),bindingsEnabled:!0,skipHydrationRootTNode:null},fr=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(fr||{}),Wm=0,qs=!1;function od(){return N.lFrame.elementDepthCount}function id(){N.lFrame.elementDepthCount++}function Ta(){N.lFrame.elementDepthCount--}function Ko(){return N.bindingsEnabled}function Ma(){return N.skipHydrationRootTNode!==null}function Na(e){return N.skipHydrationRootTNode===e}function Sa(){N.skipHydrationRootTNode=null}function _(){return N.lFrame.lView}function $(){return N.lFrame.tView}function sd(e){return N.lFrame.contextLView=e,e[X]}function ad(e){return N.lFrame.contextLView=null,e}function W(){let e=xa();for(;e!==null&&e.type===64;)e=e.parent;return e}function xa(){return N.lFrame.currentTNode}function cd(){let e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function wn(e,t){let n=N.lFrame;n.currentTNode=e,n.isParent=t}function Aa(){return N.lFrame.isParent}function Ra(){N.lFrame.isParent=!1}function ud(){return N.lFrame.contextLView}function Oa(e){Ks("Must never be called in production mode"),Wm=e}function Fa(){return qs}function Cn(e){let t=qs;return qs=e,t}function pr(){let e=N.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ka(){return N.lFrame.bindingIndex}function ld(e){return N.lFrame.bindingIndex=e}function hr(){return N.lFrame.bindingIndex++}function gr(e){let t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function dd(){return N.lFrame.inI18n}function fd(e,t){let n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Jo(t)}function pd(){return N.lFrame.currentDirectiveIndex}function Jo(e){N.lFrame.currentDirectiveIndex=e}function hd(e){let t=N.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Pa(){return N.lFrame.currentQueryIndex}function Xo(e){N.lFrame.currentQueryIndex=e}function qm(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[ie]:null}function La(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=qm(i),o===null||(i=i[$t],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=N.lFrame=gd();return r.currentTNode=t,r.lView=e,!0}function ei(e){let t=gd(),n=e[E];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gd(){let e=N.lFrame,t=e===null?null:e.child;return t===null?md(e):t}function md(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 yd(){let e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ja=yd;function ti(){let e=yd();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 vd(e){return(N.lFrame.contextLView=td(e,N.lFrame.contextLView))[X]}function je(){return N.lFrame.selectedIndex}function Dt(e){N.lFrame.selectedIndex=e}function ni(){let e=N.lFrame;return Zo(e.tView,e.selectedIndex)}function Dd(){N.lFrame.currentNamespace=va}function Ed(){Zm()}function Zm(){N.lFrame.currentNamespace=null}function Id(){return N.lFrame.currentNamespace}var wd=!0;function ri(){return wd}function mr(e){wd=e}var Ym={elements:void 0};function Cd(){return Ym}function Zs(e,t=null,n=null,r){let o=Va(e,t,n,r);return o.resolveInjectorInitializers(),o}function Va(e,t=null,n=null,r,o=new Set){let i=[n||oe,Wl(e)];return r=r||(typeof e=="object"?void 0:qe(e)),new Lt(i,t||ar(),r||null,o)}var Re=class e{static THROW_IF_NOT_FOUND=Ft;static NULL=new tr;static create(t,n){if(Array.isArray(t))return Zs({name:""},n,t,"");{let r=t.name??"";return Zs({name:r},t.parent,t.providers,r)}}static \u0275prov=x({token:e,providedIn:"any",factory:()=>L(aa)});static __NG_ELEMENT_ID__=-1},qt=new b(""),Qe=(()=>{class e{static __NG_ELEMENT_ID__=Qm;static __NG_ENV_ID__=n=>n}return e})(),nr=class extends Qe{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Wt(this._lView)}onDestroy(t){let n=this._lView;return Ca(n,t),()=>nd(n,t)}};function Qm(){return new nr(_())}var Ze=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ve=new b("",{providedIn:"root",factory:()=>{let e=m(ue),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ze),t.handleError(n))}}}),bd={provide:Bt,useValue:()=>void m(Ze),multi:!0};function Ba(e){return typeof e=="function"&&e[J]!==void 0}function Ha(e,t){let[n,r,o]=vs(e,t?.equal),i=n,s=i[J];return i.set=r,i.update=o,i.asReadonly=$a.bind(i),i}function $a(){let e=this[J];if(e.readonlyFn===void 0){let t=()=>this();t[J]=e,e.readonlyFn=t}return e.readonlyFn}function Ua(e){return Ba(e)&&typeof e.set=="function"}var Ie=class{},yr=new b("",{providedIn:"root",factory:()=>!1});var za=new b(""),Ga=new b("");var bn=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Km}return e})();function Km(){return new bn(_(),W())}var Et=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new zn(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new S(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=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),vr=(()=>{class e{internalPendingTasks=m(Et);scheduler=m(Ie);errorHandler=m(Ve);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=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function Zt(...e){}var Dr=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Ys})}return e})(),Ys=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 Rn(e){return{toString:e}.toString()}var oi="__parameters__";function oy(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function jc(e,t,n){return Rn(()=>{let r=oy(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(oi)?c[oi]:Object.defineProperty(c,oi,{value:[]})[oi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var iy=Uo(jc("Inject",e=>({token:e})),-1),nf=Uo(jc("Optional"),8);var rf=Uo(jc("SkipSelf"),4);function sy(e){return typeof e=="function"}var pi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function of(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var sf=(()=>{let e=()=>af;return e.ngInherit=!0,e})();function af(e){return e.type.prototype.ngOnChanges&&(e.setInput=cy),ay}function ay(){let e=uf(this),t=e?.current;if(t){let n=e.previous;if(n===ft)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function cy(e,t,n,r,o){let i=this.declaredInputs[r],s=uf(e)||uy(e,{previous:ft,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new pi(u&&u.currentValue,n,c===ft),of(e,t,o,n)}var cf="__ngSimpleChanges__";function uf(e){return e[cf]||null}function uy(e,t){return e[cf]=t}var _d=[];var R=function(e,t=null,n){for(let r=0;r<_d.length;r++){let o=_d[r];o(e,t,n)}};function ly(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=af(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 lf(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function ui(e,t,n){df(e,t,3,n)}function li(e,t,n,r){(e[I]&3)===n&&df(e,t,n,r)}function Wa(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function df(e,t,n,r){let o=r!==void 0?e[Ut]&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[Ut]+=65536),(a<i||i==-1)&&(dy(e,n,t,c),e[Ut]=(e[Ut]&4294901760)+c+2),c++}function Td(e,t){R(4,e,t);let n=T(null);try{t.call(e)}finally{T(n),R(5,e,t)}}function dy(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[Ut]>>16&&(e[I]&3)===t&&(e[I]+=16384,Td(a,i)):Td(a,i)}var Tn=-1,Kt=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 fy(e){return(e.flags&8)!==0}function py(e){return(e.flags&16)!==0}function hy(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];gy(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function ff(e){return e===3||e===4||e===6}function gy(e){return e.charCodeAt(0)===64}function Mn(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?Md(e,n,o,null,t[++r]):Md(e,n,o,null,null))}}return e}function Md(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 pf(e){return e!==Tn}function hi(e){return e&32767}function my(e){return e>>16}function gi(e,t){let n=my(e),r=t;for(;n>0;)r=r[$t],n--;return r}var rc=!0;function mi(e){let t=rc;return rc=e,t}var yy=256,hf=yy-1,gf=5,vy=0,Be={};function Dy(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Vt)&&(r=n[Vt]),r==null&&(r=n[Vt]=vy++);let o=r&hf,i=1<<o;t.data[e+(o>>gf)]|=i}function yi(e,t){let n=mf(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,qa(r.data,e),qa(t,null),qa(r.blueprint,null));let o=Vc(e,t),i=e.injectorIndex;if(pf(o)){let s=hi(o),a=gi(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function qa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function mf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Vc(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=If(o),r===null)return Tn;if(n++,o=o[$t],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Tn}function oc(e,t,n){Dy(e,t,n)}function Ey(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(ff(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function yf(e,t,n){if(n&8||e!==void 0)return e;$o(t,"NodeInjector")}function vf(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ht],i=re(void 0);try{return o?o.get(t,r,n&8):ia(t,r,n&8)}finally{re(i)}}return yf(r,t,n)}function Df(e,t,n,r=0,o){if(e!==null){if(t[I]&2048&&!(r&2)){let s=_y(e,t,n,r,Be);if(s!==Be)return s}let i=Ef(e,t,n,r,Be);if(i!==Be)return i}return vf(t,n,r,o)}function Ef(e,t,n,r,o){let i=wy(n);if(typeof i=="function"){if(!La(t,e,r))return r&1?yf(o,n,r):vf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))$o(n);else return s}finally{ja()}}else if(typeof i=="number"){let s=null,a=mf(e,t),c=Tn,u=r&1?t[le][ie]:null;for((a===-1||r&4)&&(c=a===-1?Vc(e,t):t[a+8],c===Tn||!Sd(r,!1)?a=-1:(s=t[E],a=hi(c),t=gi(c,t)));a!==-1;){let l=t[E];if(Nd(i,a,l.data)){let d=Iy(a,t,n,s,r,u);if(d!==Be)return d}c=t[a+8],c!==Tn&&Sd(r,t[E].data[a+8]===u)&&Nd(i,a,t)?(s=l,a=hi(c),t=gi(c,t)):a=-1}}return o}function Iy(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?mt(a)&&rc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=di(a,s,n,c,u);return l!==null?wr(t,s,l,a,o):Be}function di(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Le(f)&&f.type===n)return c}return null}function wr(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Kt){let a=i;if(a.resolving){let f=Po(s[n]);throw oa(f)}let c=mi(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?re(a.injectImpl):null,p=La(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&ly(n,s[n],t)}finally{d!==null&&re(d),mi(c),a.resolving=!1,ja()}}return i}function wy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Vt)?e[Vt]:void 0;return typeof t=="number"?t>=0?t&hf:Cy:t}function Nd(e,t,n){let r=1<<e;return!!(n[t+(e>>gf)]&r)}function Sd(e,t){return!(e&2)&&!(e&1&&t)}var Qt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Df(this._tNode,this._lView,t,kt(r),n)}};function Cy(){return new Qt(W(),_())}function by(e){return Rn(()=>{let t=e.prototype.constructor,n=t[er]||ic(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[er]||ic(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ic(e){return Qs(e)?()=>{let t=ic(Y(e));return t&&t()}:lt(e)}function _y(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!In(s);){let a=Ef(i,s,n,r|2,Be);if(a!==Be)return a;let c=i.parent;if(!c){let u=s[ma];if(u){let l=u.get(n,Be,r);if(l!==Be)return l}c=If(s),s=s[$t]}i=c}return o}function If(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[ie]:null}function Bc(e){return Ey(W(),e)}function Ty(){return On(W(),_())}function On(e,t){return new Fn(_e(e,t))}var Fn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ty}return e})();function My(e){return e instanceof Fn?e.nativeElement:e}function Ny(){return this._results[Symbol.iterator]()}var vi=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 ae}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=$l(t);(this._changesDetected=!Hl(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]=Ny};function wf(e){return(e.flags&128)===128}var Hc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Hc||{}),Cf=new Map,Sy=0;function xy(){return Sy++}function Ay(e){Cf.set(e[cr],e)}function sc(e){Cf.delete(e[cr])}var xd="__ngContext__";function Nn(e,t){Pe(t)?(e[xd]=t[cr],Ay(t)):e[xd]=t}function bf(e){return Tf(e[Dn])}function _f(e){return Tf(e[me])}function Tf(e){for(;e!==null&&!be(e);)e=e[me];return e}var ac;function Ry(e){ac=e}function $c(){if(ac!==void 0)return ac;if(typeof document<"u")return document;throw new D(210,!1)}var Oy=new b("",{providedIn:"root",factory:()=>Fy}),Fy="ng",Mf=new b(""),ky=new b("",{providedIn:"platform",factory:()=>"unknown"});var Py=new b("",{providedIn:"root",factory:()=>$c().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Ly="h",jy="b";var Nf=!1,Sf=new b("",{providedIn:"root",factory:()=>Nf});var Vy=(e,t,n,r)=>{};function By(e,t,n,r){Vy(e,t,n,r)}function Ai(e){return(e.flags&32)===32}var Hy=()=>null;function xf(e,t,n=!1){return Hy(e,t,n)}function Af(e,t){let n=e.contentQueries;if(n!==null){let r=T(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];Xo(i),a.contentQueries(2,t[s],s)}}}finally{T(r)}}}function cc(e,t,n){Xo(0);let r=T(null);try{t(e,n)}finally{T(r)}}function Uc(e,t,n){if(ya(t)){let r=T(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{T(r)}}}var Sn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Sn||{}),ii;function $y(){if(ii===void 0&&(ii=null,Oe.trustedTypes))try{ii=Oe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ii}function Ri(e){return $y()?.createHTML(e)||e}var si;function Rf(){if(si===void 0&&(si=null,Oe.trustedTypes))try{si=Oe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return si}function Ad(e){return Rf()?.createHTML(e)||e}function Rd(e){return Rf()?.createScriptURL(e)||e}var Je=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${jo})`}},uc=class extends Je{getTypeName(){return"HTML"}},lc=class extends Je{getTypeName(){return"Style"}},dc=class extends Je{getTypeName(){return"Script"}},fc=class extends Je{getTypeName(){return"URL"}},pc=class extends Je{getTypeName(){return"ResourceURL"}};function kn(e){return e instanceof Je?e.changingThisBreaksApplicationSecurity:e}function Oi(e,t){let n=Of(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${jo})`)}return n===t}function Of(e){return e instanceof Je&&e.getTypeName()||null}function Uy(e){return new uc(e)}function zy(e){return new lc(e)}function Gy(e){return new dc(e)}function Wy(e){return new fc(e)}function qy(e){return new pc(e)}function Zy(e){let t=new gc(e);return Yy()?new hc(t):t}var hc=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Ri(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},gc=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Ri(t),n}};function Yy(){try{return!!new window.DOMParser().parseFromString(Ri(""),"text/html")}catch{return!1}}var Qy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zc(e){return e=String(e),e.match(Qy)?e:"unsafe:"+e}function Xe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Nr(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Ff=Xe("area,br,col,hr,img,wbr"),kf=Xe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pf=Xe("rp,rt"),Ky=Nr(Pf,kf),Jy=Nr(kf,Xe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Xy=Nr(Pf,Xe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Od=Nr(Ff,Jy,Xy,Ky),Lf=Xe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ev=Xe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),tv=Xe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),nv=Nr(Lf,ev,tv),rv=Xe("script,style,template"),mc=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=sv(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=iv(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Fd(t).toLowerCase();if(!Od.hasOwnProperty(n))return this.sanitizedSomething=!0,!rv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!nv.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Lf[a]&&(c=zc(c)),this.buf.push(" ",s,'="',kd(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=Fd(t).toLowerCase();Od.hasOwnProperty(n)&&!Ff.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(kd(t))}};function ov(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function iv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw jf(t);return t}function sv(e){let t=e.firstChild;if(t&&ov(e,t))throw jf(t);return t}function Fd(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function jf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var av=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cv=/([^\#-~ |!])/g;function kd(e){return e.replace(/&/g,"&").replace(av,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(cv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var ai;function Vf(e,t){let n=null;try{ai=ai||Zy(e);let r=t?String(t):"";n=ai.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ai.getInertBodyElement(r)}while(r!==i);let a=new mc().sanitizeChildren(Pd(n)||n);return Ri(a)}finally{if(n){let r=Pd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Pd(e){return"content"in e&&uv(e)?e.content:null}function uv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Sr=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(Sr||{});function lv(e){let t=Gc();return t?Ad(t.sanitize(Sr.HTML,e)||""):Oi(e,"HTML")?Ad(kn(e)):Vf($c(),we(e))}function Bf(e){let t=Gc();return t?t.sanitize(Sr.URL,e)||"":Oi(e,"URL")?kn(e):zc(we(e))}function Hf(e){let t=Gc();if(t)return Rd(t.sanitize(Sr.RESOURCE_URL,e)||"");if(Oi(e,"ResourceURL"))return Rd(kn(e));throw new D(904,!1)}function dv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Hf:Bf}function fv(e,t,n){return dv(t,n)(e)}function Gc(){let e=_();return e&&e[Fe].sanitizer}var pv=/^>|^->|<!--|-->|--!>|<!-$/g,hv=/(<|>)/g,gv="\u200B$1\u200B";function mv(e){return e.replace(pv,t=>t.replace(hv,gv))}function yv(e){return e.ownerDocument.defaultView}function vv(e){return e.ownerDocument}function $f(e){return e instanceof Function?e():e}function Dv(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 Uf="ng-template";function Ev(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Dv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Wc(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 Wc(e){return e.type===4&&e.value!==Uf}function Iv(e,t,n){let r=e.type===4&&!n?Uf:e.value;return t===r}function wv(e,t,n){let r=4,o=e.attrs,i=o!==null?_v(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Te(r)&&!Te(c))return!1;if(s&&Te(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Iv(e,c,n)||c===""&&t.length===1){if(Te(r))return!1;s=!0}}else if(r&8){if(o===null||!Ev(e,o,c,n)){if(Te(r))return!1;s=!0}}else{let u=t[++a],l=Cv(c,o,Wc(e),n);if(l===-1){if(Te(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Te(r))return!1;s=!0}}}}return Te(r)||s}function Te(e){return(e&1)===0}function Cv(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 Tv(t,e)}function zf(e,t,n=!1){for(let r=0;r<t.length;r++)if(wv(e,t[r],n))return!0;return!1}function bv(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function _v(e){for(let t=0;t<e.length;t++){let n=e[t];if(ff(n))return t}return e.length}function Tv(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 Mv(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function Ld(e,t){return e?":not("+t.trim()+")":t}function Nv(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!==""&&!Te(s)&&(t+=Ld(i,o),o=""),r=s,i=i||!Te(r);n++}return o!==""&&(t+=Ld(i,o)),t}function Sv(e){return e.map(Nv).join(",")}function xv(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(!Te(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ee={};function Av(e,t){return e.createText(t)}function Rv(e,t,n){e.setValue(t,n)}function Ov(e,t){return e.createComment(mv(t))}function Gf(e,t,n){return e.createElement(t,n)}function Di(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Wf(e,t,n){e.appendChild(t,n)}function jd(e,t,n,r,o){r!==null?Di(e,t,n,r,o):Wf(e,t,n)}function Fv(e,t,n){e.removeChild(null,t,n)}function kv(e,t,n){e.setAttribute(t,"style",n)}function Pv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function qf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&hy(e,t,r),o!==null&&Pv(e,t,o),i!==null&&kv(e,t,i)}function qc(e,t,n,r,o,i,s,a,c,u,l){let d=j+r,p=d+o,f=Lv(d,p),h=typeof u=="function"?u():u;return f[E]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l}}function Lv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ee);return n}function jv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=qc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Zc(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ce]=o,d[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(d[I]|=2048),Ia(d),d[q]=d[$t]=e,d[X]=n,d[Fe]=s||e&&e[Fe],d[P]=a||e&&e[P],d[Ht]=c||e&&e[Ht]||null,d[ie]=i,d[cr]=xy(),d[yn]=l,d[ma]=u,d[le]=t.type==2?e[le]:d,d}function Vv(e,t,n){let r=_e(t,e),o=jv(n),i=e[Fe].rendererFactory,s=Yc(e,Zc(e,o,null,Zf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Zf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Yf(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 Yc(e,t){return e[Dn]?e[ga][me]=t:e[Dn]=t,e[ga]=t,t}function Bv(e=1){Qf($(),_(),je()+e,!1)}function Qf(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ui(t,i,n)}else{let i=e.preOrderHooks;i!==null&&li(t,i,0,n)}Dt(n)}var Fi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Fi||{});function yc(e,t,n,r){let o=T(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Fi.SignalBased)!==0&&(c=t[i][J]),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):of(t,c,i,r)}finally{T(o)}}var Cr=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Cr||{}),Hv;function Qc(e,t){return Hv(e,t)}function _n(e,t,n,r,o){if(r!=null){let i,s=!1;be(r)?i=r:Pe(r)&&(s=!0,r=r[Ce]);let a=ye(r);e===0&&n!==null?o==null?Wf(t,n,a):Di(t,n,a,o||null,!0):e===1&&n!==null?Di(t,n,a,o||null,!0):e===2?Fv(t,a,s):e===3&&t.destroyNode(a),i!=null&&Kv(t,e,i,n,o)}}function $v(e,t){Kf(e,t),t[Ce]=null,t[ie]=null}function Uv(e,t,n,r,o,i){r[Ce]=o,r[ie]=t,ki(e,r,n,1,o,i)}function Kf(e,t){t[Fe].changeDetectionScheduler?.notify(9),ki(e,t,t[P],2,null,null)}function zv(e){let t=e[Dn];if(!t)return Za(e[E],e);for(;t;){let n=null;if(Pe(t))n=t[Dn];else{let r=t[se];r&&(n=r)}if(!n){for(;t&&!t[me]&&t!==e;)Pe(t)&&Za(t[E],t),t=t[q];t===null&&(t=e),Pe(t)&&Za(t[E],t),n=t&&t[me]}t=n}}function Kc(e,t){let n=e[Gt],r=n.indexOf(t);n.splice(r,1)}function Jf(e,t){if(Wt(t))return;let n=t[P];n.destroyNode&&ki(e,t,n,3,null,null),zv(t)}function Za(e,t){if(Wt(t))return;let n=T(null);try{t[I]&=-129,t[I]|=256,t[pe]&&Tt(t[pe]),Wv(e,t),Gv(e,t),t[E].type===1&&t[P].destroy();let r=t[ht];if(r!==null&&be(t[q])){r!==t[q]&&Kc(r,t);let o=t[ke];o!==null&&o.detachView(e)}sc(t)}finally{T(n)}}function Gv(e,t){let n=e.cleanup,r=t[vn];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[vn]=null);let o=t[We];if(o!==null){t[We]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Ye];if(i!==null){t[Ye]=null;for(let s of i)s.destroy()}}function Wv(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 Kt)){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];R(4,a,c);try{c.call(a)}finally{R(5,a,c)}}else{R(4,o,i);try{i.call(o)}finally{R(5,o,i)}}}}}function Xf(e,t,n){return qv(e,t.parent,n)}function qv(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ce];if(mt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Sn.None||o===Sn.Emulated)return null}return _e(r,n)}function ep(e,t,n){return Yv(e,t,n)}function Zv(e,t,n){return e.type&40?_e(e,n):null}var Yv=Zv,Vd;function Jc(e,t,n,r){let o=Xf(e,r,t),i=t[P],s=r.parent||t[ie],a=ep(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)jd(i,o,n[c],a,!1);else jd(i,o,n,a,!1);Vd!==void 0&&Vd(i,r,t,n,o)}function Er(e,t){if(t!==null){let n=t.type;if(n&3)return _e(t,e);if(n&4)return vc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Er(e,r);{let o=e[t.index];return be(o)?vc(-1,o):ye(o)}}else{if(n&128)return Er(e,t.next);if(n&32)return Qc(t,e)()||ye(e[t.index]);{let r=tp(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=dt(e[le]);return Er(o,r)}else return Er(e,t.next)}}}return null}function tp(e,t){if(t!==null){let r=e[le][ie],o=t.projection;return r.projection[o]}return null}function vc(e,t){let n=se+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return Er(r,o)}return t[gt]}function Xc(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&&Nn(ye(a),r),n.flags|=2),!Ai(n))if(c&8)Xc(e,t,n.child,r,o,i,!1),_n(t,e,o,a,i);else if(c&32){let u=Qc(n,r),l;for(;l=u();)_n(t,e,o,l,i);_n(t,e,o,a,i)}else c&16?np(e,t,r,n,o,i):_n(t,e,o,a,i);n=s?n.projectionNext:n.next}}function ki(e,t,n,r,o,i){Xc(n,r,e.firstChild,t,o,i,!1)}function Qv(e,t,n){let r=t[P],o=Xf(e,n,t),i=n.parent||t[ie],s=ep(i,n,t);np(r,0,t,n,o,s)}function np(e,t,n,r,o,i){let s=n[le],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];_n(t,e,o,l,i)}else{let u=c,l=s[q];wf(r)&&(u.flags|=128),Xc(e,t,u,l,o,i,!0)}}function Kv(e,t,n,r,o){let i=n[gt],s=ye(n);i!==s&&_n(t,e,r,i,o);for(let a=se;a<n.length;a++){let c=n[a];ki(c[E],c,e,t,r,i)}}function Jv(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Cr.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Cr.Important),e.setStyle(n,r,o,i))}}function rp(e,t,n,r,o){let i=je(),s=r&2;try{Dt(-1),s&&t.length>j&&Qf(e,t,j,!1),R(s?2:0,o,n),n(r,o)}finally{Dt(i),R(s?3:1,o,n)}}function Pi(e,t,n){iD(e,t,n),(n.flags&64)===64&&sD(e,t,n)}function xr(e,t,n=_e){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 Xv(e,t,n,r){let i=r.get(Sf,Nf)||n===Sn.ShadowDom,s=e.selectRootElement(t,i);return eD(s),s}function eD(e){tD(e)}var tD=()=>null;function nD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function op(e,t,n,r,o,i){let s=t[E];if(ru(e,s,t,n,r)){mt(e)&&oD(t,e.index);return}e.type&3&&(n=nD(n)),rD(e,t,n,r,o,i)}function rD(e,t,n,r,o,i){if(e.type&3){let s=_e(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function oD(e,t){let n=ve(t,e);n[I]&16||(n[I]|=64)}function iD(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mt(n)&&Vv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||yi(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=wr(t,e,s,n);if(Nn(c,t),i!==null&&lD(t,s-r,c,a,n,i),Le(a)){let u=ve(n.index,t);u[X]=wr(t,e,s,n)}}}function sD(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=pd();try{Dt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Jo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&aD(c,u)}}finally{Dt(-1),Jo(s)}}function aD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function eu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];zf(t,i.selectors,!1)&&(r??=[],Le(i)?r.unshift(i):r.push(i))}return r}function cD(e,t,n,r,o,i){let s=_e(e,t);uD(t[P],s,i,e.value,n,r,o)}function uD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?we(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function lD(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];yc(r,n,c,u)}}function tu(e,t,n,r,o){let i=j+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,wn(e,!0);let c=e.type===2;return c?(qf(t[P],a,e),(od()===0||En(e))&&Nn(a,t),id()):Nn(a,t),ri()&&(!c||!Ai(e))&&Jc(s,t,a,e),e}function nu(e){let t=e;return Aa()?Ra():(t=t.parent,wn(t,!1)),t}function dD(e,t){let n=e[Ht];if(!n)return;n.get(Ve,null)?.(t)}function ru(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];yc(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];yc(l,u,r,o),a=!0}return a}function fD(e,t){let n=ve(t,e),r=n[E];pD(r,n);let o=n[Ce];o!==null&&n[yn]===null&&(n[yn]=xf(o,n[Ht])),R(18),ou(r,n,n[X]),R(19,n[X])}function pD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function ou(e,t,n){ei(t);try{let r=e.viewQuery;r!==null&&cc(1,r,n);let o=e.template;o!==null&&rp(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[ke]?.finishViewCreation(e),e.staticContentQueries&&Af(e,t),e.staticViewQueries&&cc(2,e.viewQuery,n);let i=e.components;i!==null&&hD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,ti()}}function hD(e,t){for(let n=0;n<t.length;n++)fD(e,t[n])}function ip(e,t,n,r){let o=T(null);try{let i=t.tView,a=e[I]&4096?4096:16,c=Zc(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[ht]=u;let l=e[ke];return l!==null&&(c[ke]=l.createEmbeddedView(i)),ou(i,c,n),c}finally{T(o)}}function Dc(e,t){return!t||t.firstChild===null||wf(e)}var Bd=!1,gD=new b("");function br(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(ye(i)),be(i)&&sp(i,r);let s=n.type;if(s&8)br(e,t,n.child,r);else if(s&32){let a=Qc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=tp(t,n);if(Array.isArray(a))r.push(...a);else{let c=dt(t[le]);br(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function sp(e,t){for(let n=se;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&br(r[E],r,o,t)}e[gt]!==e[Ce]&&t.push(e[gt])}function ap(e){if(e[zt]!==null){for(let t of e[zt])t.impl.addSequence(t);e[zt].length=0}}var cp=[];function mD(e){return e[pe]??yD(e)}function yD(e){let t=cp.pop()??Object.create(DD);return t.lView=e,t}function vD(e){e.lView[pe]!==e&&(e.lView=null,cp.push(e))}var DD=Z(H({},ot),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{vt(e.lView)},consumerOnSignalRead(){this.lView[pe]=this}});function ED(e){let t=e[pe]??Object.create(ID);return t.lView=e,t}var ID=Z(H({},ot),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=dt(e.lView);for(;t&&!up(t[E]);)t=dt(t);t&&wa(t)},consumerOnSignalRead(){this.lView[pe]=this}});function up(e){return e.type!==2}function lp(e){if(e[Ye]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Ye])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var wD=100;function iu(e,t=0){let r=e[Fe].rendererFactory,o=!1;o||r.begin?.();try{CD(e,t)}finally{o||r.end?.()}}function CD(e,t){let n=Fa();try{Cn(!0),Ec(e,t);let r=0;for(;dr(e);){if(r===wD)throw new D(103,!1);r++,Ec(e,1)}}finally{Cn(n)}}function dp(e,t){Oa(t?fr.Exhaustive:fr.OnlyDirtyViews);try{iu(e)}finally{Oa(fr.Off)}}function bD(e,t,n,r){if(Wt(t))return;let o=t[I],i=!1,s=!1;ei(t);let a=!0,c=null,u=null;i||(up(e)?(u=mD(t),c=it(u)):Kr()===null?(a=!1,u=ED(t),c=it(u)):t[pe]&&(Tt(t[pe]),t[pe]=null));try{Ia(t),ld(e.bindingStartIndex),n!==null&&rp(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&ui(t,f,null)}else{let f=e.preOrderHooks;f!==null&&li(t,f,0,null),Wa(t,0)}if(s||_D(t),lp(t),fp(t,0),e.contentQueries!==null&&Af(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&ui(t,f)}else{let f=e.contentHooks;f!==null&&li(t,f,1),Wa(t,1)}MD(e,t);let d=e.components;d!==null&&hp(t,d,0);let p=e.viewQuery;if(p!==null&&cc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&ui(t,f)}else{let f=e.viewHooks;f!==null&&li(t,f,2),Wa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[qo]){for(let f of t[qo])f();t[qo]=null}i||(ap(t),t[I]&=-73)}catch(l){throw i||vt(t),l}finally{u!==null&&(_t(u,c),a&&vD(u)),ti()}}function fp(e,t){for(let n=bf(e);n!==null;n=_f(n))for(let r=se;r<n.length;r++){let o=n[r];pp(o,t)}}function _D(e){for(let t=bf(e);t!==null;t=_f(t)){if(!(t[I]&2))continue;let n=t[Gt];for(let r=0;r<n.length;r++){let o=n[r];wa(o)}}}function TD(e,t,n){R(18);let r=ve(t,e);pp(r,n),R(19,r[X])}function pp(e,t){Yo(e)&&Ec(e,t)}function Ec(e,t){let r=e[E],o=e[I],i=e[pe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&on(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)bD(r,e,r.template,e[X]);else if(o&8192){let a=T(null);try{lp(e),fp(e,1);let c=r.components;c!==null&&hp(e,c,1),ap(e)}finally{T(a)}}}function hp(e,t,n){for(let r=0;r<t.length;r++)TD(e,t[r],n)}function MD(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)Dt(~o);else{let i=o,s=n[++r],a=n[++r];fd(s,i);let c=t[i];R(24,c),a(2,c),R(25,c)}}}finally{Dt(-1)}}function su(e,t){let n=Fa()?64:1088;for(e[Fe].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=dt(e);if(In(e)&&!r)return e;e=r}return null}function gp(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function mp(e,t,n,r=!0){let o=t[E];if(ND(o,t,e,n),r){let s=vc(n,e),a=t[P],c=a.parentNode(e[gt]);c!==null&&Uv(o,e[ie],a,t,c,s)}let i=t[yn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Ic(e,t){if(e.length<=se)return;let n=se+t,r=e[n];if(r){let o=r[ht];o!==null&&o!==e&&Kc(o,r),t>0&&(e[n-1][me]=r[me]);let i=ir(e,se+t);$v(r[E],r);let s=i[ke];s!==null&&s.detachView(i[E]),r[q]=null,r[me]=null,r[I]&=-129}return r}function ND(e,t,n,r){let o=se+r,i=n.length;r>0&&(n[o-1][me]=t),r<i-se?(t[me]=n[o],sa(n,se+r,t)):(n.push(t),t[me]=null),t[q]=n;let s=t[ht];s!==null&&n!==s&&yp(s,t);let a=t[ke];a!==null&&a.insertView(e),Qo(t),t[I]|=128}function yp(e,t){let n=e[Gt],r=t[q];if(Pe(r))e[I]|=2;else{let o=r[q][le];t[le]!==o&&(e[I]|=2)}n===null?e[Gt]=[t]:n.push(t)}var It=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return br(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[X]}set context(t){this._lView[X]=t}get destroyed(){return Wt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[q];if(be(t)){let n=t[ur],r=n?n.indexOf(this):-1;r>-1&&(Ic(t,r),ir(n,r))}this._attachedToViewContainer=!1}Jf(this._lView[E],this._lView)}onDestroy(t){Ca(this._lView,t)}markForCheck(){su(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[I]&=-129}reattach(){Qo(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,iu(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=In(this._lView),n=this._lView[ht];n!==null&&!t&&Kc(n,this._lView),Kf(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=In(this._lView),r=this._lView[ht];r!==null&&!n&&yp(r,this._lView),Qo(this._lView)}};var wt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=SD;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=ip(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new It(i)}}return e})();function SD(){return Li(W(),_())}function Li(e,t){return e.type&4?new wt(t,e,On(e,t)):null}function Pn(e,t,n,r,o){let i=e.data[t];if(i===null)i=xD(e,t,n,r,o),dd()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=cd();i.injectorIndex=s===null?-1:s.injectorIndex}return wn(i,!0),i}function xD(e,t,n,r,o){let i=xa(),s=Aa(),a=s?i:i&&i.parent,c=e.data[t]=RD(e,a,n,t,r,o);return AD(e,c,i,s),c}function AD(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 RD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Ma()&&(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 lA=new RegExp(`^(\\d+)*(${jy}|${Ly})*(.*)`);var OD=()=>null;function wc(e,t){return OD(e,t)}var vp=class{},ji=class{},Cc=class{resolveComponentFactory(t){throw new D(917,!1)}},Ar=class{static NULL=new Cc},_r=class{},Dp=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>FD()}return e})();function FD(){let e=_(),t=W(),n=ve(t.index,e);return(Pe(n)?n:e)[P]}var Ep=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();var fi={},bc=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,fi,r);return o!==fi||n===fi?o:this.parentInjector.get(t,n,r)}};function Ei(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=Vo(o,a);else if(i==2){let c=a,u=t[++s];r=Vo(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function de(e,t=0){let n=_();if(n===null)return L(e,t);let r=W();return Df(r,n,Y(e),t)}function Ip(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}LD(e,t,n,a,i,c,u)}i!==null&&r!==null&&kD(n,r,i)}function kD(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 D(-301,!1);r.push(t[o],i)}}function PD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function LD(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&Le(f)&&(c=!0,PD(e,n,p)),oc(yi(n,t),e,f.type)}UD(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,d=Yf(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Mn(n.mergedAttrs,f.hostAttrs),VD(e,n,t,d,f),$D(d,f,o),s!==null&&s.has(f)){let[v,y]=s.get(f);n.directiveToIndex.set(f.type,[d,v+n.directiveStart,y+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 h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}jD(e,n,i)}function jD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Hd(0,t,o,r),Hd(1,t,o,r),Ud(t,r,!1);else{let i=n.get(o);$d(0,t,i,r),$d(1,t,i,r),Ud(t,r,!0)}}}function Hd(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),wp(t,i)}}function $d(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),wp(t,s)}}function wp(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ud(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Wc(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function VD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=lt(o.type,!0)),s=new Kt(i,Le(o),de,null);e.blueprint[r]=s,n[r]=s,BD(e,t,r,Yf(e,n,o.hostVars,ee),o)}function BD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;HD(s)!=a&&s.push(a),s.push(n,r,i)}}function HD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function $D(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Le(t)&&(n[""]=e)}}function UD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function au(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=yt(u,s),d=Pn(c,e,n,r,l);return i&&Ip(c,t,d,yt(u,a),o),d.mergedAttrs=Mn(d.mergedAttrs,d.attrs),d.attrs!==null&&Ei(d,d.attrs,!1),d.mergedAttrs!==null&&Ei(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function cu(e,t){lf(e,t),ya(t)&&e.queries.elementEnd(t)}function zD(e,t,n,r,o,i){let s=t.consts,a=yt(s,o),c=Pn(t,e,n,r,a);if(c.mergedAttrs=Mn(c.mergedAttrs,c.attrs),i!=null){let u=yt(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&Ei(c,c.attrs,!1),c.mergedAttrs!==null&&Ei(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function uu(e){return bp(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Cp(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 bp(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Vi(e,t,n){return e[t]=n}function GD(e,t){return e[t]}function He(e,t,n){if(n===ee)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function lu(e,t,n,r){let o=He(e,t,n);return He(e,t+1,r)||o}function _p(e,t,n,r,o){let i=lu(e,t,n,r);return He(e,t+2,o)||i}function Ya(e,t,n){return function r(o){let i=mt(e)?ve(e.index,t):t;su(i,5);let s=t[X],a=zd(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=zd(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function zd(e,t,n,r){let o=T(null);try{return R(6,t,n),n(r)!==!1}catch(i){return dD(e,i),!1}finally{R(7,t,n),T(o)}}function WD(e,t,n,r,o,i,s,a){let c=En(e),u=!1,l=null;if(!r&&c&&(l=qD(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=_e(e,n),p=r?r(d):d;By(n,p,i,a);let f=o.listen(p,i,a),h=r?v=>r(ye(v[e.index])):e.index;Tp(h,t,n,i,a,f,!1)}return u}function qD(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[vn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Tp(e,t,n,r,o,i,s){let a=t.firstCreatePass?_a(t):null,c=ba(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function Gd(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);Tp(e.index,a,t,o,i,d,!0)}var _c=Symbol("BINDING");var Ii=class extends Ar{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=pt(t);return new xn(n,this.ngModule)}};function ZD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Fi.SignalBased)!==0};return o&&(i.transform=o),i})}function YD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function QD(e,t,n){let r=t instanceof ue?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new bc(n,r):n}function KD(e){let t=e.get(_r,null);if(t===null)throw new D(407,!1);let n=e.get(Ep,null),r=e.get(Ie,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function JD(e,t){let n=Mp(e);return Gf(t,n,n==="svg"?va:n==="math"?Jl:null)}function Mp(e){return(e.selectors[0][0]||"div").toLowerCase()}var xn=class extends ji{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=ZD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=YD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Sv(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){R(22);let a=T(null);try{let c=this.componentDef,u=XD(r,c,s,i),l=QD(c,o||this.ngModule,t),d=KD(l),p=d.rendererFactory.createRenderer(null,c),f=r?Xv(p,r,c.encapsulation,l):JD(c,p),h=s?.some(Wd)||i?.some(g=>typeof g!="function"&&g.bindings.some(Wd)),v=Zc(null,u,null,512|Zf(c),null,null,d,p,l,null,xf(f,l,!0));v[j]=f,ei(v);let y=null;try{let g=au(j,v,2,"#host",()=>u.directiveRegistry,!0,0);f&&(qf(p,f,g),Nn(f,v)),Pi(u,v,g),Uc(u,g,v),cu(u,g),n!==void 0&&tE(g,this.ngContentSelectors,n),y=ve(g.index,v),v[X]=y[X],ou(u,v,null)}catch(g){throw y!==null&&sc(y),sc(v),g}finally{R(23),ti()}return new wi(this.componentType,v,!!h)}finally{T(a)}}};function XD(e,t,n,r){let o=e?["ng-version","20.2.1"]:xv(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[_c].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[_c].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=la(d);c.push(p)}return qc(0,null,eE(i,s),1,a,c,null,null,null,[o],null)}function eE(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 Wd(e){let t=e[_c].kind;return t==="input"||t==="twoWay"}var wi=class extends vp{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Zo(n[E],j),this.location=On(this._tNode,n),this.instance=ve(this._tNode.index,n)[X],this.hostView=this.changeDetectorRef=new It(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=ru(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=ve(r.index,o);su(s,1)}get injector(){return new Qt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function tE(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 en=(()=>{class e{static __NG_ELEMENT_ID__=nE}return e})();function nE(){let e=W();return Sp(e,_())}var rE=en,Np=class extends rE{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return On(this._hostTNode,this._hostLView)}get injector(){return new Qt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Vc(this._hostTNode,this._hostLView);if(pf(t)){let n=gi(t,this._hostLView),r=hi(t),o=n[E].data[r+8];return new Qt(o,n)}else return new Qt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=qd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-se}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=wc(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Dc(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!sy(t),u;if(c)u=n;else{let y=n||{};u=y.index,r=y.injector,o=y.projectableNodes,i=y.environmentInjector||y.ngModuleRef,s=y.directives,a=y.bindings}let l=c?t:new xn(pt(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let g=(c?d:this.parentInjector).get(ue,null);g&&(i=g)}let p=pt(l.componentType??{}),f=wc(this._lContainer,p?.id??null),h=f?.firstChild??null,v=l.create(d,o,h,i,s,a);return this.insertImpl(v.hostView,u,Dc(this._hostTNode,f)),v}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ed(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[q],u=new Np(c,c[ie],c[q]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return mp(s,o,i,r),t.attachToViewContainerRef(),sa(Qa(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=qd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ic(this._lContainer,n);r&&(ir(Qa(this._lContainer),n),Jf(r[E],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ic(this._lContainer,n);return r&&ir(Qa(this._lContainer),n)!=null?new It(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function qd(e){return e[ur]}function Qa(e){return e[ur]||(e[ur]=[])}function Sp(e,t){let n,r=t[e.index];return be(r)?n=r:(n=gp(r,t,null,e),t[e.index]=n,Yc(t,n)),iE(n,t,e,r),new Np(n,e,t)}function oE(e,t){let n=e[P],r=n.createComment(""),o=_e(t,e),i=n.parentNode(o);return Di(n,i,r,n.nextSibling(o),!1),r}var iE=cE,sE=()=>!1;function aE(e,t,n){return sE(e,t,n)}function cE(e,t,n,r){if(e[gt])return;let o;n.type&8?o=ye(r):o=oE(t,n),e[gt]=o}var Tc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Mc=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++)du(t,n).matches!==null&&this.queries[n].setDirty()}},Ci=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=mE(t):this.predicate=t}},Nc=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)}},Sc=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,uE(n,i)),this.matchTNodeWithReadOption(t,n,di(n,t,i,!1,!1))}else r===wt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,di(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Fn||o===en||o===wt&&n.type&4)this.addMatch(n.index,-2);else{let i=di(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 uE(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 lE(e,t){return e.type&11?On(e,t):e.type&4?Li(e,t):null}function dE(e,t,n,r){return n===-1?lE(t,e):n===-2?fE(e,t,r):wr(e,e[E],n,t)}function fE(e,t,n){if(n===Fn)return On(t,e);if(n===wt)return Li(t,e);if(n===en)return Sp(t,e)}function xp(e,t,n,r){let o=t[ke].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 u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(dE(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function xc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=xp(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 u=i[a+1],l=t[-c];for(let d=se;d<l.length;d++){let p=l[d];p[ht]===p[q]&&xc(p[E],p,u,r)}if(l[Gt]!==null){let d=l[Gt];for(let p=0;p<d.length;p++){let f=d[p];xc(f[E],f,u,r)}}}}}return r}function pE(e,t){return e[ke].queries[t].queryList}function Ap(e,t,n){let r=new vi((n&4)===4);return rd(e,t,r,r.destroy),(t[ke]??=new Mc).queries.push(new Tc(r))-1}function hE(e,t,n){let r=$();return r.firstCreatePass&&(Rp(r,new Ci(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Ap(r,_(),t)}function gE(e,t,n,r){let o=$();if(o.firstCreatePass){let i=W();Rp(o,new Ci(t,n,r),i.index),yE(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return Ap(o,_(),n)}function mE(e){return e.split(",").map(t=>t.trim())}function Rp(e,t,n){e.queries===null&&(e.queries=new Nc),e.queries.track(new Sc(t,n))}function yE(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function du(e,t){return e.queries.getByIndex(t)}function vE(e,t){let n=e[E],r=du(n,t);return r.crossesNgTemplate?xc(n,e,t,[]):xp(n,e,r,t)}var Zd=new Set;function Bi(e){Zd.has(e)||(Zd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Jt=class{},Op=class{};var bi=class extends Jt{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ii(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=ua(t);this._bootstrapComponents=$f(i.bootstrap),this._r3Injector=Va(t,n,[{provide:Jt,useValue:this},{provide:Ar,useValue:this.componentFactoryResolver},...r],qe(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)}},_i=class extends Op{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new bi(this.moduleType,t,[])}};var Tr=class extends Jt{injector;componentFactoryResolver=new Ii(this);instance=null;constructor(t){super();let n=new Lt([...t.providers,{provide:Jt,useValue:this},{provide:Ar,useValue:this.componentFactoryResolver}],t.parent||ar(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Fp(e,t,n=null){return new Tr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var DE=(()=>{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=da(!1,n.type),o=r.length>0?Fp([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=x({token:e,providedIn:"environment",factory:()=>new e(L(ue))})}return e})();function EE(e){return Rn(()=>{let t=kp(e),n=Z(H({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Hc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(DE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Sn.Emulated,styles:e.styles||oe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Bi("NgStandalone"),Pp(n);let r=e.dependencies;return n.directiveDefs=Yd(r,IE),n.pipeDefs=Yd(r,Gl),n.id=bE(n),n})}function IE(e){return pt(e)||la(e)}function Hi(e){return Rn(()=>({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 wE(e,t){if(e==null)return ft;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=Fi.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function CE(e){if(e==null)return ft;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $i(e){return Rn(()=>{let t=kp(e);return Pp(t),t})}function Ui(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function kp(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||ft,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:wE(e.inputs,t),outputs:CE(e.outputs),debugInfo:null}}function Pp(e){e.features?.forEach(t=>t(e))}function Yd(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 bE(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 _E(e){return Object.getPrototypeOf(e.prototype).constructor}function Lp(e){let t=_E(e.type),n=!0,r=[e];for(;t;){let o;if(Le(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ka(e.inputs),s.declaredInputs=Ka(e.declaredInputs),s.outputs=Ka(e.outputs);let a=o.hostBindings;a&&xE(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&NE(e,c),u&&SE(e,u),TE(e,o),Pl(e.outputs,o.outputs),Le(o)&&o.data.animation){let l=e.data;l.animation=(l.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===Lp&&(n=!1)}}t=Object.getPrototypeOf(t)}ME(r)}function TE(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 ME(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=Mn(o.hostAttrs,n=Mn(n,o.hostAttrs))}}function Ka(e){return e===ft?{}:e===oe?[]:e}function NE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function SE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function xE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function jp(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Mn(e.mergedAttrs,e.attrs);let l=e.tView=qc(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),wn(e,!1);let c=OE(n,t,e,r);ri()&&Jc(n,t,c,e),Nn(c,t);let u=gp(c,t,c,e);t[r+j]=u,Yc(t,u),aE(u,e,t)}function AE(e,t,n,r,o,i,s,a,c,u,l){let d=n+j,p;return t.firstCreatePass?(p=Pn(t,d,4,s||null,a||null),Ko()&&Ip(t,e,p,yt(t.consts,u),eu),lf(t,p)):p=t.data[d],jp(p,e,t,n,r,o,i,c),En(p)&&Pi(t,e,p),u!=null&&xr(e,p,l),p}function RE(e,t,n,r,o,i,s,a,c,u,l){let d=n+j,p;if(t.firstCreatePass){if(p=Pn(t,d,4,s||null,a||null),u!=null){let f=yt(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=t.data[d];return jp(p,e,t,n,r,o,i,c),u!=null&&xr(e,p,l),p}function Vp(e,t,n,r,o,i,s,a){let c=_(),u=$(),l=yt(u.consts,i);return AE(c,u,e,t,n,r,o,l,void 0,s,a),Vp}var OE=FE;function FE(e,t,n,r){return mr(!0),t[P].createComment("")}var zi=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(zi||{}),Rr=new b(""),Bp=!1,Ac=class extends ae{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ql()&&(this.destroyRef=m(Qe,{optional:!0})??void 0,this.pendingTasks=m(Et,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(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 V&&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)}})}}},Ke=Ac;function Hp(e){let t,n;function r(){e=Zt;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 Qd(e){return queueMicrotask(()=>e()),()=>{e=Zt}}var fu="isAngularZone",Ti=fu+"_ID",kE=0,Q=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ke(!1);onMicrotaskEmpty=new Ke(!1);onStable=new Ke(!1);onError=new Ke(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Bp}=t;if(typeof Zone>"u")throw new D(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,jE(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(fu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(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,PE,Zt,Zt);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)}},PE={};function pu(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 LE(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Hp(()=>{e.callbackScheduled=!1,Rc(e),e.isCheckStableRunning=!0,pu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Rc(e)}function jE(e){let t=()=>{LE(e)},n=kE++;e._inner=e._inner.fork({name:"angular",properties:{[fu]:!0,[Ti]:n,[Ti+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(VE(c))return r.invokeTask(i,s,a,c);try{return Kd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Jd(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Kd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!BE(c)&&t(),Jd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Rc(e),pu(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 Rc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Kd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jd(e){e._nesting--,pu(e)}var Mi=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ke;onMicrotaskEmpty=new Ke;onStable=new Ke;onError=new Ke;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 VE(e){return $p(e,"__ignore_ng_zone__")}function BE(e){return $p(e,"__scheduler_tick__")}function $p(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var hu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Up=[0,1,2,3],zp=(()=>{class e{ngZone=m(Q);scheduler=m(Ie);errorHandler=m(Ze,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){m(Rr,{optional:!0})}execute(){let n=this.sequences.size>0;n&&R(16),this.executing=!0;for(let r of Up)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&&R(17)}register(n){let{view:r}=n;r!==void 0?((r[zt]??=[]).push(n),vt(r),r[I]|=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(zi.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ni=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?.[zt];t&&(this.view[zt]=t.filter(n=>n!==this))}};function HE(e,t){let n=t?.injector??m(Re);return Bi("NgAfterNextRender"),UE(e,n,t,!0)}function $E(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function UE(e,t,n,r){let o=t.get(hu);o.impl??=t.get(zp);let i=t.get(Rr,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Qe):null,a=t.get(bn,null,{optional:!0}),c=new Ni(o.impl,$E(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var zE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Gp=new b("");function Gi(e){return!!e&&typeof e.then=="function"}function gu(e){return!!e&&typeof e.subscribe=="function"}var Wp=new b("");var mu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=m(Wp,{optional:!0})??[];injector=m(Re);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=mn(this.injector,o);if(Gi(i))n.push(i);else if(gu(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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qp=new b("");function Zp(){ys(()=>{let e="";throw new D(600,e)})}function Yp(e){return e.isBoundToModule}var GE=10;var Or=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=m(Ve);afterRenderManager=m(hu);zonelessEnabled=m(yr);rootEffectScheduler=m(Dr);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ae;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=m(Et);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ge(n=>!n))}constructor(){m(Rr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=m(ue);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Re.NULL){return this._injector.get(Q).run(()=>{R(10);let s=n instanceof ji;if(!this._injector.get(mu).done){let h="";throw new D(405,h)}let c;s?c=n:c=this._injector.get(Ar).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=Yp(c)?void 0:this._injector.get(Jt),l=r||c.selector,d=c.create(o,[],l,u),p=d.location.nativeElement,f=d.injector.get(Gp,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),Ir(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),R(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){R(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(zi.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new D(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,T(n),this.afterTick.next(),R(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_r,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<GE;)R(14),this.synchronizeOnce(),R(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&&!dr(o))continue;let i=r&&!this.zonelessEnabled?0:1;iu(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})=>dr(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;Ir(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(qp,[]).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),()=>Ir(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ir(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Qp(e,t,n,r){let o=_(),i=hr();if(He(o,i,t)){let s=$(),a=ni();cD(a,o,e,t,n,r)}return Qp}var WE=new b("",{providedIn:"root",factory:()=>!1}),qE=new b("",{providedIn:"root",factory:()=>ZE}),ZE=4e3;var yA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Kp(e,t,n){let r=_(),o=hr();if(He(r,o,t)){let i=$(),s=ni();op(s,r,e,t,r[P],n)}return Kp}function Oc(e,t,n,r,o){ru(t,e,n,o?"class":"style",r)}function yu(e,t,n,r){let o=_(),i=o[E],s=e+j,a=i.firstCreatePass?au(s,o,2,t,eu,Ko(),n,r):i.data[s];if(tu(a,o,e,t,eh),En(a)){let c=o[E];Pi(c,o,a),Uc(c,a,o)}return r!=null&&xr(o,a),yu}function vu(){let e=$(),t=W(),n=nu(t);return e.firstCreatePass&&cu(e,n),Na(n)&&Sa(),Ta(),n.classesWithoutHost!=null&&fy(n)&&Oc(e,n,_(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&py(n)&&Oc(e,n,_(),n.stylesWithoutHost,!1),vu}function Jp(e,t,n,r){return yu(e,t,n,r),vu(),Jp}function Du(e,t,n,r){let o=_(),i=o[E],s=e+j,a=i.firstCreatePass?zD(s,i,2,t,n,r):i.data[s];return tu(a,o,e,t,eh),r!=null&&xr(o,a),Du}function Eu(){let e=W(),t=nu(e);return Na(t)&&Sa(),Ta(),Eu}function Xp(e,t,n,r){return Du(e,t,n,r),Eu(),Xp}var eh=(e,t,n,r,o)=>(mr(!0),Gf(t[P],r,Id()));function th(e,t,n){let r=_(),o=r[E],i=e+j,s=o.firstCreatePass?au(i,r,8,"ng-container",eu,Ko(),t,n):o.data[i];if(tu(s,r,e,"ng-container",YE),En(s)){let a=r[E];Pi(a,r,s),Uc(a,s,r)}return n!=null&&xr(r,s),th}function nh(){let e=$(),t=W(),n=nu(t);return e.firstCreatePass&&cu(e,n),nh}var YE=(e,t,n,r,o)=>(mr(!0),Ov(t[P],""));function QE(){return _()}var Yt=void 0;function KE(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var JE=["en",[["a","p"],["AM","PM"],Yt],[["AM","PM"],Yt,Yt],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Yt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Yt,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Yt,"{1} 'at' {0}",Yt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",KE],Ja={};function he(e){let t=XE(e),n=Xd(t);if(n)return n;let r=t.split("-")[0];if(n=Xd(r),n)return n;if(r==="en")return JE;throw new D(701,!1)}function Xd(e){return e in Ja||(Ja[e]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[e]),Ja[e]}var B=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(B||{});function XE(e){return e.toLowerCase().replace(/_/g,"-")}var Fr="en-US";var eI=Fr;function rh(e){typeof e=="string"&&(eI=e.toLowerCase().replace(/_/g,"-"))}function oh(e,t,n){let r=_(),o=$(),i=W();return ih(o,r,r[P],i,e,t,n),oh}function ih(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Ya(r,t,i),WD(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=Ya(r,t,i),Gd(r,t,p,f,o,c)}if(u&&u.length)for(let d of u)c??=Ya(r,t,i),Gd(r,t,d,o,o,c)}}function tI(e=1){return vd(e)}function nI(e,t){let n=null,r=bv(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?zf(e,i,!0):Mv(r,i))return o}return n}function rI(e){let t=_()[le][ie];if(!t.projection){let n=e?e.length:1,r=t.projection=Ul(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?nI(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function oI(e,t=0,n,r,o,i){let s=_(),a=$(),c=r?e+1:null;c!==null&&RE(s,a,c,r,o,i,null,n);let u=Pn(a,j+e,16,null,n||null);u.projection===null&&(u.projection=t),Ra();let d=!s[yn]||Ma();s[le][ie].projection[u.projection]===null&&c!==null?iI(s,a,c):d&&!Ai(u)&&Qv(a,s,u)}function iI(e,t,n){let r=j+n,o=t.data[r],i=e[r],s=wc(i,o.tView.ssrId),a=ip(e,o,void 0,{dehydratedView:s});mp(i,a,0,Dc(o,s))}function sI(e,t,n,r){gE(e,t,n,r)}function aI(e,t,n){hE(e,t,n)}function cI(e){let t=_(),n=$(),r=Pa();Xo(r+1);let o=du(n,r);if(e.dirty&&Xl(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=vE(t,r);e.reset(i,My),e.notifyOnChanges()}return!0}return!1}function uI(){return pE(_(),Pa())}function lI(e){let t=ud();return lr(t,j+e)}function ci(e,t){return e<<17|t<<2}function Xt(e){return e>>17&32767}function dI(e){return(e&2)==2}function fI(e,t){return e&131071|t<<17}function Fc(e){return e|2}function An(e){return(e&131068)>>2}function Xa(e,t){return e&-131069|t<<2}function pI(e){return(e&1)===1}function kc(e){return e|1}function hI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Xt(s),c=An(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||gn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=Xt(e[a+1]);e[r+1]=ci(p,a),p!==0&&(e[p+1]=Xa(e[p+1],r)),e[a+1]=fI(e[a+1],r)}else e[r+1]=ci(a,0),a!==0&&(e[a+1]=Xa(e[a+1],r)),a=r;else e[r+1]=ci(c,0),a===0?a=r:e[c+1]=Xa(e[c+1],r),c=r;u&&(e[r+1]=Fc(e[r+1])),ef(e,l,r,!0),ef(e,l,r,!1),gI(t,l,e,r,i),s=ci(a,c),i?t.classBindings=s:t.styleBindings=s}function gI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gn(i,t)>=0&&(n[r+1]=kc(n[r+1]))}function ef(e,t,n,r){let o=e[n+1],i=t===null,s=r?Xt(o):An(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];mI(c,t)&&(a=!0,e[s+1]=r?kc(u):Fc(u)),s=r?Xt(u):An(u)}a&&(e[n+1]=r?Fc(o):kc(o))}function mI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?gn(e,t)>=0:!1}var Me={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yI(e){return e.substring(Me.key,Me.keyEnd)}function vI(e){return DI(e),sh(e,ah(e,0,Me.textEnd))}function sh(e,t){let n=Me.textEnd;return n===t?-1:(t=Me.keyEnd=EI(e,Me.key=t,n),ah(e,t,n))}function DI(e){Me.key=0,Me.keyEnd=0,Me.value=0,Me.valueEnd=0,Me.textEnd=e.length}function ah(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function EI(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function ch(e,t,n){return lh(e,t,n,!1),ch}function uh(e,t){return lh(e,t,null,!0),uh}function II(e){CI(SI,wI,e,!0)}function wI(e,t){for(let n=vI(t);n>=0;n=sh(t,n))Go(e,yI(t),!0)}function lh(e,t,n,r){let o=_(),i=$(),s=gr(2);if(i.firstUpdatePass&&fh(i,e,s,r),t!==ee&&He(o,s,t)){let a=i.data[je()];ph(i,a,o,o[P],e,o[s+1]=AI(t,n),r,s)}}function CI(e,t,n,r){let o=$(),i=gr(2);o.firstUpdatePass&&fh(o,null,i,r);let s=_();if(n!==ee&&He(s,i,n)){let a=o.data[je()];if(hh(a,r)&&!dh(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Vo(c,n||"")),Oc(o,a,s,n,r)}else xI(o,a,s,s[P],s[i+1],s[i+1]=NI(e,t,n),r,i)}}function dh(e,t){return t>=e.expandoStartIndex}function fh(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[je()],s=dh(e,n);hh(i,r)&&t===null&&!s&&(t=!1),t=bI(o,i,t,r),hI(o,i,t,n,s,r)}}function bI(e,t,n,r){let o=hd(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ec(null,e,t,n,r),n=Mr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ec(o,e,t,n,r),i===null){let c=_I(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ec(null,e,t,c[1],r),c=Mr(c,t.attrs,r),TI(e,t,r,c))}else i=MI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function _I(e,t,n){let r=n?t.classBindings:t.styleBindings;if(An(r)!==0)return e[Xt(r)]}function TI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Xt(o)]=r}function MI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Mr(r,s,n)}return Mr(r,t.attrs,n)}function ec(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=Mr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Mr(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]),Go(e,s,n?!0:t[++i]))}return e===void 0?null:e}function NI(e,t,n){if(n==null||n==="")return oe;let r=[],o=kn(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 SI(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Go(e,r,n)}function xI(e,t,n,r,o,i,s,a){o===ee&&(o=oe);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,v;l===d?(c+=2,u+=2,p!==f&&(h=d,v=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,v=f),h!==null&&ph(e,t,n,r,h,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}function ph(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=pI(u)?tf(c,t,n,o,An(u),s):void 0;if(!Si(l)){Si(i)||dI(u)&&(i=tf(c,null,n,o,a,s));let d=Da(je(),n);Jv(r,s,d,o,i)}}function tf(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===ee&&(p=d?oe:void 0);let f=d?Wo(p,r):l===r?p:void 0;if(u&&!Si(f)&&(f=Wo(c,r)),Si(f)&&(a=f,s))return a;let h=e[o+1];o=s?Xt(h):An(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Wo(c,r))}return a}function Si(e){return e!==void 0}function AI(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=qe(kn(e)))),e}function hh(e,t){return(e.flags&(t?8:16))!==0}function RI(e,t=""){let n=_(),r=$(),o=e+j,i=r.firstCreatePass?Pn(r,o,1,t,null):r.data[o],s=OI(r,n,i,t,e);n[o]=s,ri()&&Jc(r,n,s,i),wn(i,!1)}var OI=(e,t,n,r,o)=>(mr(!0),Av(t[P],r));function gh(e,t,n,r=""){return He(e,hr(),n)?t+we(n)+r:ee}function FI(e,t,n,r,o,i=""){let s=ka(),a=lu(e,s,n,o);return gr(2),a?t+we(n)+r+we(o)+i:ee}function kI(e,t,n,r,o,i,s,a=""){let c=ka(),u=_p(e,c,n,o,s);return gr(3),u?t+we(n)+r+we(o)+i+we(s)+a:ee}function mh(e){return Iu("",e),mh}function Iu(e,t,n){let r=_(),o=gh(r,e,t,n);return o!==ee&&wu(r,je(),o),Iu}function yh(e,t,n,r,o){let i=_(),s=FI(i,e,t,n,r,o);return s!==ee&&wu(i,je(),s),yh}function vh(e,t,n,r,o,i,s){let a=_(),c=kI(a,e,t,n,r,o,i,s);return c!==ee&&wu(a,je(),c),vh}function wu(e,t,n){let r=Da(t,e);Rv(e[P],r,n)}function Dh(e,t,n){Ua(t)&&(t=t());let r=_(),o=hr();if(He(r,o,t)){let i=$(),s=ni();op(s,r,e,t,r[P],n)}return Dh}function PI(e,t){let n=Ua(e);return n&&e.set(t),n}function Eh(e,t){let n=_(),r=$(),o=W();return ih(r,n,n[P],o,e,t),Eh}function LI(e,t,n=""){return gh(_(),e,t,n)}function jI(e,t,n){let r=$();if(r.firstCreatePass){let o=Le(e);Pc(n,r.data,r.blueprint,o,!0),Pc(t,r.data,r.blueprint,o,!1)}}function Pc(e,t,n,r,o){if(e=Y(e),Array.isArray(e))for(let i=0;i<e.length;i++)Pc(e[i],t,n,r,o);else{let i=$(),s=_(),a=W(),c=Pt(e)?e:Y(e.provide),u=ha(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Pt(e)||!e.multi){let f=new Kt(u,o,de,null),h=nc(c,t,o?l:l+p,d);h===-1?(oc(yi(a,s),i,c),tc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=nc(c,t,l+p,d),h=nc(c,t,l,l+p),v=f>=0&&n[f],y=h>=0&&n[h];if(o&&!y||!o&&!v){oc(yi(a,s),i,c);let g=HI(o?BI:VI,n.length,o,r,u,e);!o&&y&&(n[h].providerFactory=g),tc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(g),s.push(g)}else{let g=Ih(n[o?h:f],u,!o&&r);tc(i,e,f>-1?f:h,g)}!o&&r&&y&&n[h].componentProviders++}}}function tc(e,t,n,r){let o=Pt(t),i=Yl(t);if(o||i){let c=(i?Y(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Ih(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function VI(e,t,n,r,o){return Lc(this.multi,[])}function BI(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=wr(r,r[E],this.providerFactory.index,o);s=c.slice(0,a),Lc(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Lc(i,s);return s}function Lc(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function HI(e,t,n,r,o,i){let s=new Kt(e,n,de,null);return s.multi=[],s.index=t,s.componentProviders=0,Ih(s,o,r&&!n),s}function $I(e,t=[]){return n=>{n.providersResolver=(r,o)=>jI(r,o?o(e):e,t)}}function UI(e,t,n){let r=pr()+e,o=_();return o[r]===ee?Vi(o,r,n?t.call(n):t()):GD(o,r)}function Cu(e,t){let n=e[t];return n===ee?void 0:n}function zI(e,t,n,r,o,i){let s=t+n;return He(e,s,o)?Vi(e,s+1,i?r.call(i,o):r(o)):Cu(e,s+1)}function GI(e,t,n,r,o,i,s){let a=t+n;return lu(e,a,o,i)?Vi(e,a+2,s?r.call(s,o,i):r(o,i)):Cu(e,a+2)}function WI(e,t,n,r,o,i,s,a){let c=t+n;return _p(e,c,o,i,s)?Vi(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):Cu(e,c+3)}function qI(e,t){let n=$(),r,o=e+j;n.firstCreatePass?(r=ZI(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=lt(r.type,!0)),s,a=re(de);try{let c=mi(!1),u=i();return mi(c),Ea(n,_(),o,u),u}finally{re(a)}}function ZI(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function YI(e,t,n){let r=e+j,o=_(),i=lr(o,r);return bu(o,r)?zI(o,pr(),t,i.transform,n,i):i.transform(n)}function QI(e,t,n,r){let o=e+j,i=_(),s=lr(i,o);return bu(i,o)?GI(i,pr(),t,s.transform,n,r,s):s.transform(n,r)}function KI(e,t,n,r,o){let i=e+j,s=_(),a=lr(s,i);return bu(s,i)?WI(s,pr(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function bu(e,t){return e[E].data[t].pure}function JI(e,t){return Li(e,t)}var xi=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},XI=(()=>{class e{compileModuleSync(n){return new _i(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=ua(n),i=$f(o.declarations).reduce((s,a)=>{let c=pt(a);return c&&s.push(new xn(c)),s},[]);return new xi(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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ew=(()=>{class e{zone=m(Q);changeDetectionScheduler=m(Ie);applicationRef=m(Or);applicationErrorHandler=m(Ve);_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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wh=new b("",{factory:()=>!1});function _u({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Q(Z(H({},Tu()),{scheduleInRootZone:n})),[{provide:Q,useFactory:e},{provide:Bt,multi:!0,useFactory:()=>{let r=m(ew,{optional:!0});return()=>r.initialize()}},{provide:Bt,multi:!0,useFactory:()=>{let r=m(nw);return()=>{r.initialize()}}},t===!0?{provide:za,useValue:!0}:[],{provide:Ga,useValue:n??Bp},{provide:Ve,useFactory:()=>{let r=m(Q),o=m(ue),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Ze),i.handleError(s))})}}}]}function tw(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=_u({ngZoneFactory:()=>{let o=Tu(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Bi("NgZone_CoalesceEvent"),new Q(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return sr([{provide:wh,useValue:!0},{provide:yr,useValue:!1},r])}function Tu(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var nw=(()=>{class e{subscription=new V;initialized=!1;zone=m(Q);pendingTasks=m(Et);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(()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ch=(()=>{class e{applicationErrorHandler=m(Ve);appRef=m(Or);taskService=m(Et);ngZone=m(Q);zonelessEnabled=m(yr);tracing=m(Rr,{optional:!0});disableScheduling=m(za,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new V;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ti):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(Ga,{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 Mi||!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?Qd:Hp;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(Ti+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,Qd(()=>{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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rw(){return typeof $localize<"u"&&$localize.locale||Fr}var kr=new b("",{providedIn:"root",factory:()=>m(kr,{optional:!0,skipSelf:!0})||rw()});function bh(e){return Ol(e)}function ow(e,t){return eo(e,t?.equal)}var Mu=class{[J];constructor(t){this[J]=t}destroy(){this[J].destroy()}};function iw(e,t){let n=t?.injector??m(Re),r=t?.manualCleanup!==!0?n.get(Qe):null,o,i=n.get(bn,null,{optional:!0}),s=n.get(Ie);return i!==null?(o=cw(i.view,s,e),r instanceof nr&&r._lView===i.view&&(r=null)):o=uw(e,n.get(Dr),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Mu(o)}var _h=Z(H({},ot),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Zt,run(){if(this.dirty=!1,this.hasRun&&!on(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=it(this),n=Cn(!1);try{this.maybeCleanup(),this.fn(e)}finally{Cn(n),_t(this,t)}},maybeCleanup(){if(!this.cleanupFns?.length)return;let e=T(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],T(e)}}}),sw=Z(H({},_h),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Tt(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),aw=Z(H({},_h),{consumerMarkedDirty(){this.view[I]|=8192,vt(this.view),this.notifier.notify(13)},destroy(){Tt(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Ye]?.delete(this)}});function cw(e,t,n){let r=Object.create(aw);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[Ye]??=new Set,e[Ye].add(r),r.consumerMarkedDirty(r),r}function uw(e,t,n){let r=Object.create(sw);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}var xh=Symbol("InputSignalNode#UNSET"),mw=Z(H({},to),{transformFn:void 0,applyValueToInputSignal(e,t){an(e,t)}});function Ah(e,t){let n=Object.create(mw);n.value=e,n.transformFn=t?.transform;function r(){if(rn(n),n.value===xh){let o=null;throw new D(-950,o)}return n.value}return r[J]=n,r}var Th=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Bc(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},yw=new b("");yw.__NG_ELEMENT_ID__=e=>{let t=W();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new D(204,!1)};function Mh(e,t){return Ah(e,t)}function vw(e){return Ah(xh,e)}var _L=(Mh.required=vw,Mh);var Nu=new b(""),Dw=new b("");function Pr(e){return!e.moduleRef}function Ew(e){let t=Pr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Q);return n.run(()=>{Pr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ve),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Pr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Nu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Nu);s.add(i),e.moduleRef.onDestroy(()=>{Ir(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return ww(r,n,()=>{let i=t.get(Et),s=i.add(),a=t.get(mu);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(kr,Fr);if(rh(c||Fr),!t.get(Dw,!0))return Pr(e)?t.get(Or):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Pr(e)){let l=t.get(Or);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Iw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void i.remove(s))})})}var Iw;function ww(e,t,n){try{let r=n();return Gi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Wi=null;function Cw(e=[],t){return Re.create({name:t,providers:[{provide:pa,useValue:"platform"},{provide:Nu,useValue:new Set([()=>Wi=null])},...e]})}function bw(e=[]){if(Wi)return Wi;let t=Cw(e);return Wi=t,Zp(),_w(t),t}function _w(e){let t=e.get(Mf,null);mn(e,()=>{t?.forEach(n=>n())})}var Tw=(()=>{class e{static __NG_ELEMENT_ID__=Mw}return e})();function Mw(e){return Nw(W(),_(),(e&16)===16)}function Nw(e,t,n){if(mt(e)&&!n){let r=ve(e.index,t);return new It(r,r)}else if(e.type&175){let r=t[le];return new It(r,t)}return null}var Su=class{constructor(){}supports(t){return uu(t)}create(t){return new xu(t)}},Sw=(e,t)=>t,xu=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||Sw}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<Nh(r,o,i)?n:r,a=Nh(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 u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;l<=h&&h<u&&(i[p]=f+1)}let d=s.previousIndex;i[d]=l-u}}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=[]),!uu(t))throw new D(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,Cp(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 Au(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 qi),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 qi),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}},Au=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}},Ru=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}},qi=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Ru,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 Nh(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 Sh(){return new Ou([new Su])}var Ou=(()=>{class e{factories;static \u0275prov=x({token:e,providedIn:"root",factory:Sh});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||Sh()),deps:[[e,new rf,new nf]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new D(901,!1)}}return e})();function TL(e){R(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=bw(r),i=[_u({}),{provide:Ie,useExisting:Ch},bd,...n||[]],s=new Tr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Ew({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{R(9)}}function ML(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Fh=null;function Zi(){return Fh}function xw(e){Fh??=e}var ku=class{},Pu=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>m(kh),providedIn:"platform"})}return e})();var kh=(()=>{class e extends Pu{_location;_history;_doc=m(qt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zi().getBaseHref(this._doc)}onPopState(n){let r=Zi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Zi().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=x({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ph(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Rh(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ct(e){return e&&e[0]!=="?"?`?${e}`:e}var Yi=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>m(jh),providedIn:"root"})}return e})(),Lh=new b(""),jh=(()=>{class e extends Yi{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??m(qt).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 Ph(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ct(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ct(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ct(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(L(Pu),L(Lh,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vh=(()=>{class e{_subject=new ae;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Ow(Rh(Oh(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+Ct(r))}normalize(n){return e.stripTrailingSlash(Rw(this._basePath,Oh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ct(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ct(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Ct;static joinWithSlash=Ph;static stripTrailingSlash=Rh;static \u0275fac=function(r){return new(r||e)(L(Yi))};static \u0275prov=x({token:e,factory:()=>Aw(),providedIn:"root"})}return e})();function Aw(){return new Vh(L(Yi))}function Rw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Oh(e){return e.replace(/\/index.html$/,"")}function Ow(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var te=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(te||{}),O=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(O||{}),fe=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(fe||{}),tt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Uh(e){return he(e)[B.LocaleId]}function zh(e,t,n){let r=he(e),o=[r[B.DayPeriodsFormat],r[B.DayPeriodsStandalone]],i=De(o,t);return De(i,n)}function Gh(e,t,n){let r=he(e),o=[r[B.DaysFormat],r[B.DaysStandalone]],i=De(o,t);return De(i,n)}function Wh(e,t,n){let r=he(e),o=[r[B.MonthsFormat],r[B.MonthsStandalone]],i=De(o,t);return De(i,n)}function qh(e,t){let r=he(e)[B.Eras];return De(r,t)}function Lr(e,t){let n=he(e);return De(n[B.DateFormat],t)}function jr(e,t){let n=he(e);return De(n[B.TimeFormat],t)}function Vr(e,t){let r=he(e)[B.DateTimeFormat];return De(r,t)}function Br(e,t){let n=he(e),r=n[B.NumberSymbols][t];if(typeof r>"u"){if(t===tt.CurrencyDecimal)return n[B.NumberSymbols][tt.Decimal];if(t===tt.CurrencyGroup)return n[B.NumberSymbols][tt.Group]}return r}function Zh(e){if(!e[B.ExtraData])throw new D(2303,!1)}function Yh(e){let t=he(e);return Zh(t),(t[B.ExtraData][2]||[]).map(r=>typeof r=="string"?Lu(r):[Lu(r[0]),Lu(r[1])])}function Qh(e,t,n){let r=he(e);Zh(r);let o=[r[B.ExtraData][0],r[B.ExtraData][1]],i=De(o,t)||[];return De(i,n)||[]}function De(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new D(2304,!1)}function Lu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Fw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qi={},kw=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Kh(e,t,n,r){let o=zw(e);t=et(n,t)||t;let s=[],a;for(;t;)if(a=kw.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Xh(r,c),o=Uw(o,r));let u="";return s.forEach(l=>{let d=Hw(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ts(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function et(e,t){let n=Uh(e);if(Qi[n]??={},Qi[n][t])return Qi[n][t];let r="";switch(t){case"shortDate":r=Lr(e,fe.Short);break;case"mediumDate":r=Lr(e,fe.Medium);break;case"longDate":r=Lr(e,fe.Long);break;case"fullDate":r=Lr(e,fe.Full);break;case"shortTime":r=jr(e,fe.Short);break;case"mediumTime":r=jr(e,fe.Medium);break;case"longTime":r=jr(e,fe.Long);break;case"fullTime":r=jr(e,fe.Full);break;case"short":let o=et(e,"shortTime"),i=et(e,"shortDate");r=Ki(Vr(e,fe.Short),[o,i]);break;case"medium":let s=et(e,"mediumTime"),a=et(e,"mediumDate");r=Ki(Vr(e,fe.Medium),[s,a]);break;case"long":let c=et(e,"longTime"),u=et(e,"longDate");r=Ki(Vr(e,fe.Long),[c,u]);break;case"full":let l=et(e,"fullTime"),d=et(e,"fullDate");r=Ki(Vr(e,fe.Full),[l,d]);break}return r&&(Qi[n][t]=r),r}function Ki(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ne(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Pw(e,t){return Ne(e,3).substring(0,t)}function U(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Lw(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Pw(a,t);let c=Br(s,tt.MinusSign);return Ne(a,t,c,r,o)}}function Lw(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new D(2301,!1)}}function F(e,t,n=te.Format,r=!1){return function(o,i){return jw(o,i,e,t,n,r)}}function jw(e,t,n,r,o,i){switch(n){case 2:return Wh(t,o,r)[e.getMonth()];case 1:return Gh(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Yh(t),l=Qh(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,v=s>=f.hours&&a>=f.minutes,y=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(v&&y)return!0}else if(v||y)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return zh(t,o,r)[s<12?0:1];case 3:return qh(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new D(2302,!1)}}function Ji(e){return function(t,n,r){let o=-1*r,i=Br(n,tt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Ne(s,2,i)+Ne(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Ne(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Ne(s,2,i)+":"+Ne(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Ne(s,2,i)+":"+Ne(Math.abs(o%60),2,i);default:throw new D(2302,!1)}}}var Vw=0,es=4;function Bw(e){let t=ts(e,Vw,1).getDay();return ts(e,0,1+(t<=es?es:es+7)-t)}function Jh(e){let t=e.getDay(),n=t===0?-3:es-t;return ts(e.getFullYear(),e.getMonth(),e.getDate()+n)}function ju(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Jh(n),s=Bw(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ne(o,e,Br(r,tt.MinusSign))}}function Xi(e,t=!1){return function(n,r){let i=Jh(n).getFullYear();return Ne(i,e,Br(r,tt.MinusSign),t)}}var Vu={};function Hw(e){if(Vu[e])return Vu[e];let t;switch(e){case"G":case"GG":case"GGG":t=F(3,O.Abbreviated);break;case"GGGG":t=F(3,O.Wide);break;case"GGGGG":t=F(3,O.Narrow);break;case"y":t=U(0,1,0,!1,!0);break;case"yy":t=U(0,2,0,!0,!0);break;case"yyy":t=U(0,3,0,!1,!0);break;case"yyyy":t=U(0,4,0,!1,!0);break;case"Y":t=Xi(1);break;case"YY":t=Xi(2,!0);break;case"YYY":t=Xi(3);break;case"YYYY":t=Xi(4);break;case"M":case"L":t=U(1,1,1);break;case"MM":case"LL":t=U(1,2,1);break;case"MMM":t=F(2,O.Abbreviated);break;case"MMMM":t=F(2,O.Wide);break;case"MMMMM":t=F(2,O.Narrow);break;case"LLL":t=F(2,O.Abbreviated,te.Standalone);break;case"LLLL":t=F(2,O.Wide,te.Standalone);break;case"LLLLL":t=F(2,O.Narrow,te.Standalone);break;case"w":t=ju(1);break;case"ww":t=ju(2);break;case"W":t=ju(1,!0);break;case"d":t=U(2,1);break;case"dd":t=U(2,2);break;case"c":case"cc":t=U(7,1);break;case"ccc":t=F(1,O.Abbreviated,te.Standalone);break;case"cccc":t=F(1,O.Wide,te.Standalone);break;case"ccccc":t=F(1,O.Narrow,te.Standalone);break;case"cccccc":t=F(1,O.Short,te.Standalone);break;case"E":case"EE":case"EEE":t=F(1,O.Abbreviated);break;case"EEEE":t=F(1,O.Wide);break;case"EEEEE":t=F(1,O.Narrow);break;case"EEEEEE":t=F(1,O.Short);break;case"a":case"aa":case"aaa":t=F(0,O.Abbreviated);break;case"aaaa":t=F(0,O.Wide);break;case"aaaaa":t=F(0,O.Narrow);break;case"b":case"bb":case"bbb":t=F(0,O.Abbreviated,te.Standalone,!0);break;case"bbbb":t=F(0,O.Wide,te.Standalone,!0);break;case"bbbbb":t=F(0,O.Narrow,te.Standalone,!0);break;case"B":case"BB":case"BBB":t=F(0,O.Abbreviated,te.Format,!0);break;case"BBBB":t=F(0,O.Wide,te.Format,!0);break;case"BBBBB":t=F(0,O.Narrow,te.Format,!0);break;case"h":t=U(3,1,-12);break;case"hh":t=U(3,2,-12);break;case"H":t=U(3,1);break;case"HH":t=U(3,2);break;case"m":t=U(4,1);break;case"mm":t=U(4,2);break;case"s":t=U(5,1);break;case"ss":t=U(5,2);break;case"S":t=U(6,1);break;case"SS":t=U(6,2);break;case"SSS":t=U(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Ji(0);break;case"ZZZZZ":t=Ji(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ji(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ji(2);break;default:return null}return Vu[e]=t,t}function Xh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function $w(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Uw(e,t,n){let o=e.getTimezoneOffset(),i=Xh(t,o);return $w(e,-1*(i-o))}function zw(e){if(Bh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return ts(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Fw))return Gw(r)}let t=new Date(e);if(!Bh(t))throw new D(2302,!1);return t}function Gw(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Bh(e){return e instanceof Date&&!isNaN(e.valueOf())}var ns=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}},eg=(()=>{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 ns(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),Hh(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);Hh(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(de(en),de(wt),de(Ou))};static \u0275dir=$i({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Hh(e,t){e.context.$implicit=t.item}var Ww=(()=>{class e{_viewContainer;_context=new rs;_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){$h(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){$h(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)(de(en),de(wt))};static \u0275dir=$i({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),rs=class{$implicit=null;ngIf=null};function $h(e,t){if(e&&!e.createEmbeddedView)throw new D(2020,!1)}function tg(e,t){return new D(2100,!1)}var qw="mediumDate",ng=new b(""),rg=new b(""),Zw=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??qw,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Kh(n,s,i||this.locale,a)}catch(s){throw tg(e,s.message)}}static \u0275fac=function(r){return new(r||e)(de(kr,16),de(ng,24),de(rg,24))};static \u0275pipe=Ui({name:"date",type:e,pure:!0})}return e})();var Yw=(()=>{class e{transform(n,r,o){if(n==null)return null;if(!(typeof n=="string"||Array.isArray(n)))throw tg(e,n);return n.slice(r,o)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Ui({name:"slice",type:e,pure:!1})}return e})();var Qw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Hi({type:e});static \u0275inj=rr({})}return e})();function Bu(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 Hr=class{};var Kw="browser";function j1(e){return e===Kw}var jn=class{},Vn=class{},Ue=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 ss=class{encodeKey(t){return og(t)}encodeValue(t){return og(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Jw(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 Xw=/%(\d[a-f0-9])/gi,eC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function og(e){return encodeURIComponent(e).replace(Xw,(t,n)=>eC[n]??t)}function os(e){return`${e}`}var nt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ss,t.fromString){if(t.fromObject)throw new D(2805,!1);this.map=Jw(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(os):[os(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(os(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(os(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 as=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 tC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ig(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function sg(e){return typeof Blob<"u"&&e instanceof Blob}function ag(e){return typeof FormData<"u"&&e instanceof FormData}function nC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var $r="Content-Type",cs="Accept",Gu="X-Request-URL",ug="text/plain",lg="application/json",dg=`${lg}, ${ug}, */*`,Ln=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(tC(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 D(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 Ue,this.context??=new as,!this.params)this.params=new nt,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"||ig(this.body)||sg(this.body)||ag(this.body)||nC(this.body)?this.body:this.body instanceof nt?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||ag(this.body)?null:sg(this.body)?this.body.type||null:ig(this.body)?null:typeof this.body=="string"?ug:this.body instanceof nt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?lg:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer||this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,h=t.timeout??this.timeout,v=t.body!==void 0?t.body:this.body,y=t.withCredentials??this.withCredentials,g=t.reportProgress??this.reportProgress,z=t.headers||this.headers,Se=t.params||this.params,G=t.context??this.context;return t.setHeaders!==void 0&&(z=Object.keys(t.setHeaders).reduce((xe,ze)=>xe.set(ze,t.setHeaders[ze]),z)),t.setParams&&(Se=Object.keys(t.setParams).reduce((xe,ze)=>xe.set(ze,t.setParams[ze]),Se)),new e(n,r,v,{params:Se,headers:z,context:G,reportProgress:g,responseType:o,withCredentials:y,transferCache:f,keepalive:i,cache:a,priority:s,timeout:h,mode:c,redirect:u,credentials:l,referrer:d,integrity:p})}},rt=(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})(rt||{}),Bn=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Ue,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}},Ur=class e extends Bn{constructor(t={}){super(t)}type=rt.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})}},Hn=class e extends Bn{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=rt.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})}},$e=class extends Bn{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}},fg=200,rC=204;function Hu(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 pg=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Ln)i=n;else{let c;o.headers instanceof Ue?c=o.headers:c=new Ue(o.headers);let u;o.params&&(o.params instanceof nt?u=o.params:u=new nt({fromObject:o.params})),i=new Ln(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let s=Mo(i).pipe(Fs(c=>this.handler.handle(c)));if(n instanceof Ln||o.observe==="events")return s;let a=s.pipe(Ot(c=>c instanceof Hn));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ge(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new D(2806,!1);return c.body}));case"blob":return a.pipe(ge(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new D(2807,!1);return c.body}));case"text":return a.pipe(ge(c=>{if(c.body!==null&&typeof c.body!="string")throw new D(2808,!1);return c.body}));case"json":default:return a.pipe(ge(c=>c.body))}case"response":return a;default:throw new D(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 nt().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,Hu(o,r))}post(n,r,o={}){return this.request("POST",n,Hu(o,r))}put(n,r,o={}){return this.request("PUT",n,Hu(o,r))}static \u0275fac=function(r){return new(r||e)(L(jn))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),oC=/^\)\]\}',?\n/;function cg(e){if(e.url)return e.url;let t=Gu.toLocaleLowerCase();return e.headers.get(t)}var hg=new b(""),is=(()=>{class e{fetchImpl=m($u,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(Q);destroyRef=m(Qe);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(n){return new S(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(Uu,s=>r.error(new $e({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort()}})}doRequest(n,r,o){return tn(this,null,function*(){let i=this.createRequestInit(n),s;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,H({signal:r},i)));iC(h),o.next({type:rt.Sent}),s=yield h}catch(h){o.error(new $e({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let a=new Ue(s.headers),c=s.statusText,u=cg(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Ur({headers:a,status:l,statusText:c,url:u})),s.body){let h=s.headers.get("content-length"),v=[],y=s.body.getReader(),g=0,z,Se,G=typeof Zone<"u"&&Zone.current,xe=!1;if(yield this.ngZone.runOutsideAngular(()=>tn(this,null,function*(){for(;;){if(this.destroyed){yield y.cancel(),xe=!0;break}let{done:bt,value:ls}=yield y.read();if(bt)break;if(v.push(ls),g+=ls.length,n.reportProgress){Se=n.responseType==="text"?(Se??"")+(z??=new TextDecoder).decode(ls,{stream:!0}):void 0;let qu=()=>o.next({type:rt.DownloadProgress,total:h?+h:void 0,loaded:g,partialText:Se});G?G.run(qu):qu()}}})),xe){o.complete();return}let ze=this.concatChunks(v,g);try{let bt=s.headers.get($r)??"";d=this.parseBody(n,ze,bt,l)}catch(bt){o.error(new $e({error:bt,headers:new Ue(s.headers),status:s.status,statusText:s.statusText,url:cg(s)??n.urlWithParams}));return}}l===0&&(l=d?fg:0);let p=l>=200&&l<300,f=s.redirected;p?(o.next(new Hn({body:d,headers:a,status:l,statusText:c,url:u,redirected:f})),o.complete()):o.error(new $e({error:d,headers:a,status:l,statusText:c,url:u,redirected:f}))})}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(oC,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(cs)||(r[cs]=dg),!n.headers.has($r)){let i=n.detectContentTypeHeader();i!==null&&(r[$r]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),$u=class{};function Uu(){}function iC(e){e.then(Uu,Uu)}function sC(e,t){return t(e)}function aC(e,t,n){return(r,o)=>mn(n,()=>t(r,i=>e(i,o)))}var gg=new b(""),mg=new b(""),yg=new b("",{providedIn:"root",factory:()=>!0});var us=(()=>{class e extends jn{backend;injector;chain=null;pendingTasks=m(vr);contributeToStability=m(yg);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(gg),...this.injector.get(mg,[])]));this.chain=r.reduceRight((o,i)=>aC(o,i,this.injector),sC)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ps(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(L(Vn),L(ue))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();var cC=/^\)\]\}',?\n/,uC=RegExp(`^${Gu}:`,"m");function lC(e){return"responseURL"in e&&e.responseURL?e.responseURL:uC.test(e.getAllResponseHeaders())?e.getResponseHeader(Gu):null}var zu=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return Mo(null).pipe(Oo(()=>new S(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,g)=>s.setRequestHeader(y,g.join(","))),n.headers.has(cs)||s.setRequestHeader(cs,dg),!n.headers.has($r)){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader($r,y)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",g=new Ue(s.getAllResponseHeaders()),z=lC(s)||n.url;return c=new Ur({headers:g,status:s.status,statusText:y,url:z}),c},l=()=>{let{headers:y,status:g,statusText:z,url:Se}=u(),G=null;g!==rC&&(G=typeof s.response>"u"?s.responseText:s.response),g===0&&(g=G?fg:0);let xe=g>=200&&g<300;if(n.responseType==="json"&&typeof G=="string"){let ze=G;G=G.replace(cC,"");try{G=G!==""?JSON.parse(G):null}catch(bt){G=ze,xe&&(xe=!1,G={error:bt,text:G})}}xe?(i.next(new Hn({body:G,headers:y,status:g,statusText:z,url:Se||void 0})),i.complete()):i.error(new $e({error:G,headers:y,status:g,statusText:z,url:Se||void 0}))},d=y=>{let{url:g}=u(),z=new $e({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:g||void 0});i.error(z)},p=d;n.timeout&&(p=y=>{let{url:g}=u(),z=new $e({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:g||void 0});i.error(z)});let f=!1,h=y=>{f||(i.next(u()),f=!0);let g={type:rt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(g.total=y.total),n.responseType==="text"&&s.responseText&&(g.partialText=s.responseText),i.next(g)},v=y=>{let g={type:rt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(g.total=y.total),i.next(g)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",v)),s.send(a),i.next({type:rt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",v)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(L(Hr))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),vg=new b(""),dC="XSRF-TOKEN",fC=new b("",{providedIn:"root",factory:()=>dC}),pC="X-XSRF-TOKEN",hC=new b("",{providedIn:"root",factory:()=>pC}),zr=class{},gC=(()=>{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=Bu(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(L(qt),L(fC))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function mC(e,t){let n=e.url.toLowerCase();if(!m(vg)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=m(zr).getToken(),o=m(hC);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Wu=(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})(Wu||{});function yC(e,t){return{\u0275kind:e,\u0275providers:t}}function vC(...e){let t=[pg,zu,us,{provide:jn,useExisting:us},{provide:Vn,useFactory:()=>m(hg,{optional:!0})??m(zu)},{provide:gg,useValue:mC,multi:!0},{provide:vg,useValue:!0},{provide:zr,useClass:gC}];for(let n of e)t.push(...n.\u0275providers);return sr(t)}function DC(){return yC(Wu.Fetch,[is,{provide:hg,useExisting:is},{provide:Vn,useExisting:is}])}export{H as a,Z as b,EC as c,IC as d,V as e,Lg as f,S as g,Ns as h,Ss as i,ae as j,zn as k,Wn as l,Ug as m,zg as n,Qn as o,ut as p,Mo as q,Jg as r,Xg as s,At as t,ge as u,am as v,Rt as w,Rs as x,Ao as y,um as z,lm as A,Ot as B,dm as C,Os as D,Fs as E,fm as F,Kn as G,ks as H,pm as I,Ps as J,mm as K,Ls as L,ym as M,vm as N,Dm as O,Em as P,Im as Q,Oo as R,wm as S,Cm as T,D as U,Bo as V,x as W,rr as X,Tm as Y,b as Z,L as _,m as $,sr as aa,pa as ba,ue as ca,mn as da,sd as ea,ad as fa,Dd as ga,Ed as ha,Cd as ia,Re as ja,qt as ka,Qe as la,Ze as ma,Ve as na,Ha as oa,Et as pa,iy as qa,nf as ra,sf as sa,by as ta,Bc as ua,Fn as va,Ry as wa,Oy as xa,Mf as ya,ky as za,Py as Aa,Sn as Ba,kn as Ca,Oi as Da,Uy as Ea,zy as Fa,Gy as Ga,Wy as Ha,qy as Ia,zc as Ja,Vf as Ka,Sr as La,lv as Ma,fv as Na,yv as Oa,vv as Pa,Bv as Qa,Cr as Ra,wt as Sa,_r as Ta,Dp as Ua,de as Va,en as Wa,Op as Xa,Fp as Ya,EE as Za,Hi as _a,$i as $a,Ui as ab,Lp as bb,Vp as cb,Rr as db,Ke as eb,Q as fb,HE as gb,zE as hb,Gi as ib,qp as jb,Or as kb,Qp as lb,WE as mb,qE as nb,Kp as ob,yu as pb,vu as qb,Jp as rb,Du as sb,Eu as tb,Xp as ub,th as vb,nh as wb,QE as xb,oh as yb,tI as zb,rI as Ab,oI as Bb,sI as Cb,aI as Db,cI as Eb,uI as Fb,lI as Gb,ch as Hb,uh as Ib,II as Jb,RI as Kb,mh as Lb,Iu as Mb,yh as Nb,vh as Ob,Dh as Pb,PI as Qb,Eh as Rb,LI as Sb,$I as Tb,UI as Ub,qI as Vb,YI as Wb,QI as Xb,KI as Yb,JI as Zb,XI as _b,tw as $b,bh as ac,ow as bc,iw as cc,Th as dc,_L as ec,Tw as fc,Ou as gc,TL as hc,ML as ic,Zi as jc,xw as kc,ku as lc,Yi as mc,Vh as nc,eg as oc,Ww as pc,Zw as qc,Yw as rc,Qw as sc,Bu as tc,Hr as uc,Kw as vc,j1 as wc,nt as xc,pg as yc,vC as zc,DC as Ac};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as O}from"./chunk-PJETIVS4.js";import{a as V}from"./chunk-7VJNS7EY.js";import{c as z,e as L}from"./chunk-V6G3DEZ6.js";import{a as R}from"./chunk-GBKH4M7W.js";import{$ as p,Ib as v,Kb as l,Lb as m,Mb as _,Nb as T,Qa as i,Vb as y,Yb as M,Za as x,a as B,b as F,bc as D,cb as g,cc as N,ea as b,fa as h,oa as c,ob as s,oc as P,pb as o,pc as k,qb as r,rb as E,rc as H,sc as S,xb as C,yb as f,zb as d}from"./chunk-QH2BEUIU.js";function U(n,t){n&1&&(o(0,"div",3),l(1,"Loading blame\u2026"),r())}function q(n,t){if(n&1&&(o(0,"div",4),l(1),r()),n&2){let e=t.ngIf;i(),m(e)}}function J(n,t){n&1&&(o(0,"div",3),l(1," No blame data (file may be binary or freshly created). "),r())}function K(n,t){if(n&1){let e=C();o(0,"div",7)(1,"div",8)(2,"code",9),f("click",function(){let u=b(e).$implicit,I=d(2);return h(I.onSelectCommit(u.hash))}),l(3),r(),o(4,"span",10),l(5),r(),o(6,"span",11),l(7),r()(),o(8,"span",12),l(9),r(),o(10,"pre",13),l(11),r()()}if(n&2){let e=t.$implicit,a=d(2);i(),v("invisible",!e.isFirstOfBlock),i(2),m(e.hash.slice(0,7)),i(2),m(e.author),i(2),m(a.shortDate(e.date)),i(2),m(e.line),i(2),m(e.content)}}function Q(n,t){if(n&1&&(o(0,"div",5),g(1,K,12,7,"div",6),r()),n&2){let e=d();i(),s("ngForOf",e.rows())("ngForTrackBy",e.trackByLine)}}var w=class n{gitService=p(O);set file(t){this._file=t,t?this.load(t):this.lines.set([])}get file(){return this._file}_file=null;onCommitClick=null;lines=c([]);loading=c(!1);error=c(null);rows=D(()=>{let t=[],e="";for(let a of this.lines())t.push(F(B({},a),{isFirstOfBlock:a.hash!==e})),e=a.hash;return t});trackByLine(t,e){return e.line}shortDate(t){return(t||"").slice(0,10)}onSelectCommit(t){this.onCommitClick&&this.onCommitClick(t)}load(t){this.loading.set(!0),this.error.set(null),this.gitService.getBlame(t).subscribe({next:e=>{this.lines.set(e),this.loading.set(!1)},error:e=>{this.error.set(e?.error?.error??"Failed to load blame"),this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=x({type:n,selectors:[["app-blame"]],inputs:{file:"file",onCommitClick:"onCommitClick"},decls:4,vars:4,consts:[["class","empty",4,"ngIf"],["class","empty error",4,"ngIf"],["class","blame",4,"ngIf"],[1,"empty"],[1,"empty","error"],[1,"blame"],["class","row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row"],[1,"meta"],[1,"hash",3,"click"],[1,"author"],[1,"date"],[1,"line-no"],[1,"code"]],template:function(e,a){e&1&&g(0,U,2,0,"div",0)(1,q,2,1,"div",1)(2,J,2,0,"div",0)(3,Q,2,2,"div",2),e&2&&(s("ngIf",a.loading()),i(),s("ngIf",a.error()),i(),s("ngIf",!a.loading()&&!a.error()&&a.rows().length===0&&a.file),i(),s("ngIf",a.rows().length>0))},dependencies:[S,P,k],styles:["[_nghost-%COMP%]{display:block;font-family:var(--font-mono, monospace);font-size:12.5px}.empty[_ngcontent-%COMP%]{padding:1.5rem;color:var(--fg-muted);text-align:center}.empty.error[_ngcontent-%COMP%]{color:var(--danger)}.blame[_ngcontent-%COMP%]{display:block;background:var(--bg-surface);border:1px solid var(--border-soft);border-radius:var(--radius-md);overflow:auto;max-height:70vh}.row[_ngcontent-%COMP%]{display:grid;grid-template-columns:220px 50px 1fr;align-items:center;gap:.5rem;padding:0 .5rem;border-bottom:1px solid color-mix(in oklab,var(--border-soft) 50%,transparent)}.row[_ngcontent-%COMP%]:hover{background:var(--bg-elevated)}.meta[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;font-size:11px;color:var(--fg-muted);padding:.15rem 0;border-right:1px solid var(--border-soft)}.meta.invisible[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{visibility:hidden}.hash[_ngcontent-%COMP%]{color:var(--accent);cursor:pointer;text-decoration:none}.hash[_ngcontent-%COMP%]:hover{text-decoration:underline}.author[_ngcontent-%COMP%]{max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.date[_ngcontent-%COMP%]{color:var(--fg-subtle)}.line-no[_ngcontent-%COMP%]{color:var(--fg-subtle);text-align:right;font-variant-numeric:tabular-nums;font-size:11px}.code[_ngcontent-%COMP%]{margin:0;padding:.15rem 0;white-space:pre;overflow-x:auto;color:var(--fg-primary)}"],changeDetection:0})};function W(n,t){if(n&1&&(o(0,"div",9)(1,"span"),l(2),r(),o(3,"span"),l(4,"\xB7"),r(),o(5,"span"),l(6),r(),o(7,"span"),l(8,"\xB7"),r(),o(9,"span"),l(10),y(11,"slice"),r(),o(12,"span"),l(13,"\xB7"),r(),o(14,"span"),l(15),y(16,"slice"),r()()),n&2){let e=t.ngIf;i(2),_("",e.totalCommits," commits"),i(4),_("",e.contributors.length," contributors"),i(4),_("first: ",M(11,4,e.firstSeen,0,10)),i(5),_("last: ",M(16,8,e.lastTouched,0,10))}}function X(n,t){n&1&&(o(0,"div",15),l(1,"Loading commits\u2026"),r())}function Y(n,t){if(n&1&&(o(0,"div",16),l(1),r()),n&2){let e=t.ngIf;i(),m(e)}}function Z(n,t){if(n&1){let e=C();o(0,"li",17),f("click",function(){let u=b(e).$implicit,I=d(2);return h(I.onSelectCommit(u.hash))}),o(1,"code",18),l(2),r(),o(3,"div",19)(4,"span",20),l(5),r(),o(6,"span",21),l(7),y(8,"slice"),r()()()}if(n&2){let e=t.$implicit,a=d(2);v("selected",e.hash===a.state.selectedHash()),i(2),m(e.shortHash),i(3),m(e.subject),i(2),T("",e.author," \xB7 ",M(8,6,e.date,0,10))}}function ee(n,t){if(n&1&&(o(0,"section",10),g(1,X,2,0,"div",11)(2,Y,2,1,"div",12),o(3,"ul",13),g(4,Z,9,10,"li",14),r()()),n&2){let e=d();i(),s("ngIf",e.loading()),i(),s("ngIf",e.error()),i(2),s("ngForOf",e.commits())}}function te(n,t){if(n&1&&(o(0,"section",22),E(1,"app-blame",23),r()),n&2){let e=d();i(),s("file",e.filePath())("onCommitClick",e.onSelectCommit.bind(e))}}var j=class n{route=p(z);router=p(L);git=p(O);insightsApi=p(R);state=p(V);filePath=c("");stats=c(null);commits=c([]);loading=c(!1);error=c(null);tab=c("history");constructor(){N(()=>{let t=this.route.snapshot.paramMap.get("path")??"",e=decodeURIComponent(t);this.filePath.set(e),e&&this.load(e)})}onSelectCommit(t){this.state.selectHash(t),this.router.navigate(["/"],{queryParams:{commit:t}})}goBack(){this.router.navigate(["/"])}load(t){this.loading.set(!0),this.error.set(null),this.insightsApi.fileStats(t).subscribe({next:e=>this.stats.set(e),error:()=>this.stats.set(null)}),this.git.getCommits({file:t,page:1,pageSize:200}).subscribe({next:e=>{this.commits.set(e.commits),this.loading.set(!1)},error:e=>{this.error.set(e?.error?.error??"Failed to load file history"),this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=x({type:n,selectors:[["app-file-history"]],decls:15,vars:8,consts:[[1,"page"],[1,"head"],[1,"btn","btn-ghost",3,"click"],[1,"title-block"],["class","meta",4,"ngIf"],[1,"tabs"],[1,"tab",3,"click"],["class","history",4,"ngIf"],["class","blame-tab",4,"ngIf"],[1,"meta"],[1,"history"],["class","empty",4,"ngIf"],["class","empty error",4,"ngIf"],[1,"commits"],["class","commit",3,"selected","click",4,"ngFor","ngForOf"],[1,"empty"],[1,"empty","error"],[1,"commit",3,"click"],[1,"hash"],[1,"info"],[1,"subject"],[1,"byline"],[1,"blame-tab"],[3,"file","onCommitClick"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"header",1)(2,"button",2),f("click",function(){return a.goBack()}),l(3,"\u2190 Back"),r(),o(4,"div",3)(5,"h2"),l(6),r(),g(7,W,17,12,"div",4),r()(),o(8,"nav",5)(9,"button",6),f("click",function(){return a.tab.set("history")}),l(10," History "),r(),o(11,"button",6),f("click",function(){return a.tab.set("blame")}),l(12," Blame "),r()(),g(13,ee,5,3,"section",7)(14,te,2,2,"section",8),r()),e&2&&(i(6),m(a.filePath()),i(),s("ngIf",a.stats()),i(2),v("active",a.tab()==="history"),i(2),v("active",a.tab()==="blame"),i(2),s("ngIf",a.tab()==="history"),i(),s("ngIf",a.tab()==="blame"))},dependencies:[S,P,k,w,H],styles:["[_nghost-%COMP%]{display:block;flex:1;min-height:0;overflow-y:auto}.page[_ngcontent-%COMP%]{padding:1.1rem 1.25rem;max-width:1200px;margin:0 auto}.head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;padding:.9rem 1rem;background:var(--bg-panel);border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.head[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:16px;font-family:var(--font-mono, monospace);word-break:break-all}.meta[_ngcontent-%COMP%]{color:var(--fg-muted);font-size:12px;display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.25rem}.tabs[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.25rem;border:1px solid var(--border-soft);border-radius:999px;background:var(--bg-panel);margin-bottom:1rem;width:fit-content}.tab[_ngcontent-%COMP%]{background:transparent;border:0;padding:.5rem .75rem;cursor:pointer;color:var(--fg-muted);border-radius:999px;font-size:13px}.tab.active[_ngcontent-%COMP%]{color:var(--accent);background:var(--accent-soft);font-weight:600}.empty[_ngcontent-%COMP%]{padding:1.5rem;color:var(--fg-muted);text-align:center;font-size:13px}.empty.error[_ngcontent-%COMP%]{color:var(--danger)}.commits[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.35rem;background:var(--bg-panel);border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.commit[_ngcontent-%COMP%]{display:flex;gap:.75rem;align-items:flex-start;padding:.55rem .85rem;border-radius:var(--radius-md);cursor:pointer}.commit[_ngcontent-%COMP%]:hover{background:var(--bg-elevated)}.commit.selected[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--accent) 18%,transparent)}.commit[_ngcontent-%COMP%] .hash[_ngcontent-%COMP%]{font-family:var(--font-mono, monospace);font-size:11px;color:var(--fg-muted);padding-top:2px}.commit[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.commit[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.commit[_ngcontent-%COMP%] .byline[_ngcontent-%COMP%]{font-size:11px;color:var(--fg-muted);margin-top:2px}"],changeDetection:0})};export{j as FileHistoryComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Z}from"./chunk-WPYI663L.js";import{a as W,b as q,c as J,d as K,h as Q}from"./chunk-GJRIJIZY.js";import{a as X}from"./chunk-7VJNS7EY.js";import"./chunk-GBKH4M7W.js";import{$ as x,Gb as $,Hb as O,Ib as P,Jb as A,Kb as s,Lb as c,Mb as k,Nb as V,Qa as o,Sb as R,Vb as I,W as z,Xb as T,Za as j,Zb as B,bc as g,cb as f,cc as E,ea as b,fa as C,oa as u,ob as d,oc as H,pb as r,pc as L,qb as a,qc as U,rb as w,sc as Y,xb as M,xc as S,yb as v,yc as G,zb as p}from"./chunk-QH2BEUIU.js";var y=class i{http=x(G);base="/api";snapshot(t){let e=new S().set("at",t);return this.http.get(`${this.base}/snapshot`,{params:e})}rangeDiff(t,e){let n=new S().set("from",t).set("to",e);return this.http.get(`${this.base}/diff`,{params:n})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"})};function ie(i,t){if(i&1&&(r(0,"span",22),s(1,"|"),a()),i&2){let e=t.$implicit,n=t.index,l=p();P("active",n===l.tickIndex()),d("title",e.label)}}function ae(i,t){if(i&1&&(r(0,"span",29)(1,"span",30),s(2),a(),r(3,"span",31),s(4),a(),r(5,"span",32),s(6),a()()),i&2){let e=t.$implicit,n=p(3);o(2),c(n.initials(e.author)),o(2),c(e.author),o(2),c(e.count)}}function oe(i,t){if(i&1&&(r(0,"div",27),f(1,ae,7,3,"span",28),a()),i&2){let e=p(2);o(),d("ngForOf",e.authorBreakdown())}}function re(i,t){i&1&&(r(0,"p",33),s(1,"No loaded commits fall in this time window."),a())}function se(i,t){if(i&1&&(r(0,"section",23)(1,"div",24)(2,"span",25),s(3,"Selected moment"),a(),r(4,"h3"),s(5),a(),r(6,"p"),s(7),a()(),f(8,oe,2,1,"div",26)(9,re,2,0,"ng-template",null,0,B),a()),i&2){let e=t.ngIf,n=$(10),l=p();o(5),c(e.label),o(2),c(l.momentSummary()),o(),d("ngIf",l.authorBreakdown().length)("ngIfElse",n)}}function le(i,t){if(i&1){let e=M();r(0,"div",39)(1,"span",25),s(2,"Commit at this point"),a(),r(3,"button",40),v("click",function(){let l=b(e).ngIf,m=p(2);return C(m.selectCommit(l))}),r(4,"span",41),s(5),a(),r(6,"span",42)(7,"code"),s(8),a(),r(9,"span"),s(10),a(),r(11,"span"),s(12),I(13,"date"),a()()()()}if(i&2){let e=t.ngIf;o(5),c(e.subject),o(3),c(e.shortHash),o(2),c(e.author),o(2),c(T(13,4,e.date,"MMM d, y, h:mm a"))}}function ce(i,t){if(i&1&&(r(0,"li")(1,"span",46),s(2),a(),r(3,"code",47),s(4),a()()),i&2){let e=t.$implicit;o(2),c(e.name),o(2),c(e.hash.slice(0,7))}}function de(i,t){if(i&1&&(r(0,"div",43)(1,"span",25),s(2),a(),r(3,"ul",44),f(4,ce,5,2,"li",45),a()()),i&2){let e=p().ngIf,n=p();o(2),k("Branches (",n.branchEntries(e).length,")"),o(2),d("ngForOf",n.branchEntries(e).slice(0,8))}}function me(i,t){if(i&1&&(r(0,"li")(1,"span",46),s(2),a(),r(3,"code",47),s(4),a()()),i&2){let e=t.$implicit;o(2),c(e.name),o(2),c(e.hash.slice(0,7))}}function pe(i,t){if(i&1&&(r(0,"div",43)(1,"span",25),s(2),a(),r(3,"ul",44),f(4,me,5,2,"li",45),a()()),i&2){let e=p().ngIf,n=p();o(2),k("Tags (",n.tagEntries(e).length,")"),o(2),d("ngForOf",n.tagEntries(e).slice(0,8))}}function fe(i,t){if(i&1&&(r(0,"section",34)(1,"div",35)(2,"span",25),s(3,"HEAD at this moment"),a(),r(4,"code",36),s(5),a()(),f(6,le,14,7,"div",37)(7,de,5,2,"div",38)(8,pe,5,2,"div",38),a()),i&2){let e=t.ngIf,n=p();o(5),c(e.ref??"(no commits yet)"),o(),d("ngIf",n.headCommit()),o(),d("ngIf",n.branchEntries(e).length),o(),d("ngIf",n.tagEntries(e).length)}}function ge(i,t){if(i&1){let e=M();r(0,"button",51),v("click",function(){let l=b(e).$implicit,m=p(2);return C(m.selectCommit(l))}),w(1,"span",52),r(2,"span",53)(3,"span",54),s(4),a(),r(5,"span",55)(6,"code"),s(7),a(),r(8,"span"),s(9),a(),r(10,"span"),s(11),I(12,"date"),a()()()()}if(i&2){let e=t.$implicit;o(4),c(e.subject),o(3),c(e.shortHash),o(2),c(e.author),o(2),c(T(12,4,e.date,"MMM d, y, h:mm a"))}}function ue(i,t){if(i&1&&(r(0,"section",48)(1,"div",49)(2,"h3"),s(3,"Recent commits before this moment"),a(),r(4,"span"),s(5),a()(),f(6,ge,13,7,"button",50),a()),i&2){let e=p();o(5),k("",e.recentCommits().length," shown"),o(),d("ngForOf",e.recentCommits())}}function he(i,t){i&1&&(r(0,"span",56),s(1,"Computing diff\u2026"),a())}function xe(i,t){if(i&1&&(r(0,"span",56),s(1),a()),i&2){let e=t.ngIf;o(),c(e)}}function ve(i,t){i&1&&(r(0,"span",57),s(1," No differences (you're already at HEAD). "),a())}function _e(i,t){if(i&1){let e=M();r(0,"div",60),v("click",function(){let l=b(e).$implicit,m=p(2);return C(m.selectedFile.set(l))}),r(1,"span"),s(2),a(),r(3,"span",61),s(4),a(),r(5,"span",62),s(6),a()()}if(i&2){let e=t.$implicit,n=p(2);P("selected",e===n.selectedFile()),o(),A(R("status status-",e.status)),o(),c(n.statusLabel(e.status)),o(2),c(e.file),o(2),V("+",e.additions," \u2212",e.deletions)}}function be(i,t){if(i&1&&(r(0,"div",58),f(1,_e,7,9,"div",59),a()),i&2){let e=p();o(),d("ngForOf",e.diff())}}function Ce(i,t){if(i&1&&(r(0,"div",63),w(1,"app-diff-viewer",64),a()),i&2){let e=t.ngIf;o(),d("fileInput",e)}}var ee=class i{state=x(X);timelineApi=x(y);snapshot=u(null);diff=u(null);loadingDiff=u(!1);diffError=u(null);selectedFile=u(null);tickIndex=u(0);ticks=g(()=>we(this.state.commits()));selectedTick=g(()=>this.ticks()[this.tickIndex()]??null);headCommit=g(()=>{let t=this.snapshot()?.ref;return t?this.state.commits().find(e=>e.hash===t||e.hash.startsWith(t))??null:null});windowCommits=g(()=>{let t=this.selectedTick();if(!t)return[];let e=new Date(t.iso).getTime(),n=this.previousTickTime();return this.state.commits().filter(l=>{let m=new Date(l.date).getTime();return m<=e&&m>n}).sort((l,m)=>m.date.localeCompare(l.date))});recentCommits=g(()=>{let t=this.selectedTick();if(!t)return[];let e=new Date(t.iso).getTime();return this.state.commits().filter(n=>new Date(n.date).getTime()<=e).sort((n,l)=>l.date.localeCompare(n.date)).slice(0,6)});authorBreakdown=g(()=>{let t=new Map;for(let e of this.windowCommits())t.set(e.author,(t.get(e.author)??0)+1);return[...t.entries()].map(([e,n])=>({author:e,count:n})).sort((e,n)=>n.count-e.count||e.author.localeCompare(n.author)).slice(0,8)});atDisplay=g(()=>{let t=this.ticks()[this.tickIndex()];return t?t.label:""});firstTickLabel=g(()=>this.ticks()[0]?.label??"");lastTickLabel=g(()=>this.ticks()[this.ticks().length-1]?.label??"");tickPct=g(()=>{let t=Math.max(1,this.ticks().length-1);return Math.round(this.tickIndex()/t*100)});constructor(){E(()=>{let t=this.ticks();t.length!==0&&this.tickIndex()>=t.length&&this.tickIndex.set(t.length-1)}),E(()=>{let t=this.ticks()[this.tickIndex()];t&&this.timelineApi.snapshot(t.iso).subscribe({next:e=>{this.snapshot.set(e),this.loadDiff(e)},error:()=>this.snapshot.set(null)})})}onTickChange(t){this.tickIndex.set(Math.max(0,Math.min(this.ticks().length-1,Number(t))))}branchEntries(t){return Object.entries(t.branches).map(([e,n])=>({name:e,hash:n}))}tagEntries(t){return Object.entries(t.tags).map(([e,n])=>({name:e,hash:n}))}statusLabel(t){return t==="modified"?"mod":t.slice(0,3)}initials(t){let e=t.trim().split(/\s+/).filter(Boolean);if(!e.length)return"?";let n=e[0]?.[0]??"",l=e.length>1?e[e.length-1]?.[0]??"":e[0]?.[1]??"";return`${n}${l}`.toUpperCase()}momentSummary(){let t=this.windowCommits().length,e=this.authorBreakdown().length;return t===0?"No loaded commits landed in this interval.":`${t} commit${t===1?"":"s"} by ${e} author${e===1?"":"s"} in this interval.`}selectCommit(t){this.state.selectHash(t.hash)}loadDiff(t){if(!t.ref){this.diff.set([]),this.selectedFile.set(null);return}let e=this.state.commits()[0]?.hash;if(!e||e===t.ref){this.diff.set([]),this.selectedFile.set(null);return}this.loadingDiff.set(!0),this.diffError.set(null),this.timelineApi.rangeDiff(t.ref,e).subscribe({next:n=>{this.diff.set(n),this.selectedFile.set(n[0]??null),this.loadingDiff.set(!1)},error:n=>{this.diffError.set(n?.error?.error??"Failed to compute diff"),this.loadingDiff.set(!1)}})}previousTickTime(){let t=this.ticks()[this.tickIndex()-1];return t?new Date(t.iso).getTime():Number.NEGATIVE_INFINITY}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=j({type:i,selectors:[["app-timeline"]],decls:33,vars:18,consts:[["noAuthors",""],[1,"page"],[1,"head"],[1,"sub"],[1,"now"],[1,"slider-wrap"],[1,"rail"],[1,"rail-fill"],[1,"rail-knob"],["type","range","min","0",1,"slider",3,"ngModelChange","max","ngModel"],[1,"ticks"],["class","tick",3,"active","title",4,"ngFor","ngForOf"],[1,"tick-labels"],["class","moment",4,"ngIf"],["class","snapshot",4,"ngIf"],["class","recent-card",4,"ngIf"],[1,"diff-panel"],[1,"diff-head"],["class","diff-status",4,"ngIf"],["class","diff-status muted",4,"ngIf"],["class","files",4,"ngIf"],["class","diff-body",4,"ngIf"],[1,"tick",3,"title"],[1,"moment"],[1,"moment-copy"],[1,"snap-label"],["class","authors",4,"ngIf","ngIfElse"],[1,"authors"],["class","author-chip",4,"ngFor","ngForOf"],[1,"author-chip"],[1,"avatar"],[1,"author-name"],[1,"author-count"],[1,"no-authors"],[1,"snapshot"],[1,"snap-card"],[1,"snap-hash"],["class","snap-card head-commit",4,"ngIf"],["class","snap-card branches",4,"ngIf"],[1,"snap-card","head-commit"],[1,"commit-summary",3,"click"],[1,"commit-subject"],[1,"commit-meta"],[1,"snap-card","branches"],[1,"ref-list"],[4,"ngFor","ngForOf"],[1,"ref-name"],[1,"ref-hash"],[1,"recent-card"],[1,"recent-head"],["class","recent-row",3,"click",4,"ngFor","ngForOf"],[1,"recent-row",3,"click"],[1,"recent-dot"],[1,"recent-main"],[1,"recent-subject"],[1,"recent-meta"],[1,"diff-status"],[1,"diff-status","muted"],[1,"files"],["class","file",3,"selected","click",4,"ngFor","ngForOf"],[1,"file",3,"click"],[1,"path"],[1,"changes"],[1,"diff-body"],[3,"fileInput"]],template:function(e,n){if(e&1&&(r(0,"div",1)(1,"header",2)(2,"div")(3,"h2"),s(4,"Time travel"),a(),r(5,"p",3),s(6," Drag the slider to see repo state at any point. Diff is computed against current HEAD. "),a()(),r(7,"div",4),s(8),a()(),r(9,"div",5)(10,"div",6),w(11,"div",7)(12,"div",8),a(),r(13,"input",9),v("ngModelChange",function(m){return n.onTickChange(m)}),a(),r(14,"div",10),f(15,ie,2,3,"span",11),a(),r(16,"div",12)(17,"span"),s(18),a(),r(19,"span"),s(20),a()()(),f(21,se,11,4,"section",13)(22,fe,9,4,"section",14)(23,ue,7,2,"section",15),r(24,"section",16)(25,"div",17)(26,"h3"),s(27,"Diff vs HEAD"),a(),f(28,he,2,0,"span",18)(29,xe,2,1,"span",18)(30,ve,2,0,"span",19),a(),f(31,be,2,1,"div",20)(32,Ce,2,1,"div",21),a()()),e&2){let l,m;o(8),c(n.atDisplay()),o(3),O("width",n.tickPct(),"%"),o(),O("left",n.tickPct(),"%"),o(),d("max",n.ticks().length-1)("ngModel",n.tickIndex()),o(2),d("ngForOf",n.ticks()),o(3),c(n.firstTickLabel()),o(2),c(n.lastTickLabel()),o(),d("ngIf",n.selectedTick()),o(),d("ngIf",n.snapshot()),o(),d("ngIf",n.recentCommits().length),o(5),d("ngIf",n.loadingDiff()),o(),d("ngIf",n.diffError()),o(),d("ngIf",!n.loadingDiff()&&!n.diffError()&&((l=n.diff())==null?null:l.length)===0),o(),d("ngIf",(((m=n.diff())==null?null:m.length)??0)>0),o(),d("ngIf",n.selectedFile())}},dependencies:[Y,H,L,Q,W,K,q,J,Z,U],styles:["[_nghost-%COMP%]{display:block;flex:1;min-height:0;overflow-y:auto}.page[_ngcontent-%COMP%]{padding:1.1rem 1.25rem 1.4rem;max-width:1240px;margin:0 auto}.head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1rem}.head[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:clamp(20px,2vw,28px);letter-spacing:-.03em}.head[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{margin:.2rem 0 0;color:var(--fg-muted);font-size:13px}.now[_ngcontent-%COMP%]{font-family:var(--font-mono, monospace);font-size:13px;padding:.4rem .7rem;background:var(--bg-panel);border:1px solid var(--border-soft);border-radius:999px;box-shadow:var(--shadow-sm)}.slider-wrap[_ngcontent-%COMP%]{position:relative;background:radial-gradient(circle at 20% 0%,color-mix(in oklab,var(--accent) 14%,transparent),transparent 42%),var(--bg-panel);border:1px solid var(--border-soft);border-radius:var(--radius-lg);padding:1rem 1.25rem;margin-bottom:1rem;box-shadow:var(--shadow-sm)}.rail[_ngcontent-%COMP%]{position:relative;height:10px;margin:.25rem 0 .85rem;border-radius:999px;background:var(--bg-surface-2);overflow:visible}.rail-fill[_ngcontent-%COMP%]{height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),#06b6d4);transition:width .12s ease}.rail-knob[_ngcontent-%COMP%]{position:absolute;top:50%;width:18px;height:18px;border-radius:50%;background:var(--bg-surface);border:3px solid var(--accent);box-shadow:var(--shadow-md);transform:translate(-50%,-50%);pointer-events:none}.slider[_ngcontent-%COMP%]{width:100%;accent-color:var(--accent);opacity:.01;position:absolute;left:1.25rem;right:1.25rem;top:.95rem;width:calc(100% - 2.5rem);height:34px;cursor:ew-resize}.ticks[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:.4rem;color:var(--fg-subtle);font-size:10px}.tick.active[_ngcontent-%COMP%]{color:var(--accent);font-weight:700}.tick-labels[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:.5rem;font-size:11px;color:var(--fg-muted)}.moment[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:.9rem;align-items:center;margin-bottom:1rem;padding:.85rem 1rem;border:1px solid var(--border-soft);border-radius:var(--radius-lg);background:radial-gradient(circle at 92% 0%,color-mix(in oklab,var(--accent) 14%,transparent),transparent 36%),var(--bg-panel);box-shadow:var(--shadow-sm)}.moment-copy[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:18px;letter-spacing:-.03em}.moment-copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .no-authors[_ngcontent-%COMP%]{margin:.25rem 0 0;color:var(--fg-muted);font-size:12px;line-height:1.45}.authors[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.45rem}.author-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;min-width:0;max-width:230px;padding:.28rem .5rem .28rem .32rem;border:1px solid var(--border-soft);border-radius:999px;background:color-mix(in oklab,var(--bg-surface) 78%,transparent);color:var(--fg-secondary);font-size:11px}.avatar[_ngcontent-%COMP%]{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--accent);color:var(--accent-fg);font-size:10px;font-weight:800;flex:0 0 auto}.author-name[_ngcontent-%COMP%]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.author-count[_ngcontent-%COMP%]{color:var(--fg-muted);font-variant-numeric:tabular-nums}.snapshot[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;margin-bottom:1rem}.snap-card[_ngcontent-%COMP%]{background:linear-gradient(180deg,color-mix(in oklab,var(--bg-panel) 96%,white 4%),var(--bg-panel));border:1px solid var(--border-soft);border-radius:var(--radius-lg);padding:.75rem 1rem;box-shadow:var(--shadow-sm);transition:border-color .12s,box-shadow .12s,transform .12s}.snap-card[_ngcontent-%COMP%]:hover{border-color:color-mix(in oklab,var(--accent) 28%,var(--border-soft));box-shadow:var(--shadow-md);transform:translateY(-1px)}.snap-label[_ngcontent-%COMP%]{display:block;font-size:11px;color:var(--fg-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.4rem}.snap-hash[_ngcontent-%COMP%]{font-family:var(--font-mono, monospace);font-size:13px;color:var(--accent);word-break:break-all}.commit-summary[_ngcontent-%COMP%]{display:grid;gap:.35rem;width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left}.commit-summary[_ngcontent-%COMP%]:hover .commit-subject[_ngcontent-%COMP%]{color:var(--accent)}.commit-subject[_ngcontent-%COMP%]{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commit-meta[_ngcontent-%COMP%], .recent-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.45rem;color:var(--fg-muted);font-size:11px}.commit-meta[_ngcontent-%COMP%] code[_ngcontent-%COMP%], .recent-meta[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{color:var(--accent);font-family:var(--font-mono, monospace)}.ref-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;font-size:12px}.ref-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:2px 0;gap:1rem}.ref-name[_ngcontent-%COMP%]{color:var(--fg-secondary)}.ref-hash[_ngcontent-%COMP%]{font-family:var(--font-mono, monospace);color:var(--fg-muted);font-size:11px}.recent-card[_ngcontent-%COMP%]{margin-bottom:1rem;border:1px solid var(--border-soft);border-radius:var(--radius-lg);background:var(--bg-panel);box-shadow:var(--shadow-sm);overflow:hidden}.recent-head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.7rem .9rem;border-bottom:1px solid var(--border-soft);background:color-mix(in oklab,var(--bg-surface) 82%,transparent)}.recent-head[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:14px}.recent-head[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--fg-muted);font-size:11px}.recent-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:12px minmax(0,1fr);gap:.65rem;width:100%;padding:.55rem .9rem;border:0;border-bottom:1px solid color-mix(in oklab,var(--border-soft) 58%,transparent);background:transparent;color:inherit;cursor:pointer;text-align:left}.recent-row[_ngcontent-%COMP%]:last-child{border-bottom:0}.recent-row[_ngcontent-%COMP%]:hover{background:color-mix(in oklab,var(--bg-hover) 68%,transparent)}.recent-dot[_ngcontent-%COMP%]{width:9px;height:9px;margin-top:.25rem;border-radius:999px;background:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}.recent-main[_ngcontent-%COMP%]{min-width:0;display:grid;gap:.25rem}.recent-subject[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.diff-panel[_ngcontent-%COMP%]{background:var(--bg-panel);border:1px solid var(--border-soft);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm)}.diff-head[_ngcontent-%COMP%]{padding:.75rem 1rem;border-bottom:1px solid var(--border-soft);display:flex;align-items:baseline;gap:1rem}.diff-head[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:14px}.diff-status[_ngcontent-%COMP%]{font-size:12px;color:var(--fg-muted)}.diff-status.muted[_ngcontent-%COMP%]{font-style:italic}.files[_ngcontent-%COMP%]{display:flex;gap:.4rem;padding:.65rem;max-height:170px;overflow:auto;flex-wrap:wrap;background:color-mix(in oklab,var(--bg-surface-2) 56%,transparent)}.file[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem;padding:.38rem .65rem;cursor:pointer;font-size:12px;border:1px solid var(--border-soft);border-radius:999px;background:var(--bg-surface);max-width:100%}.file[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.file.selected[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--accent) 18%,transparent);border-color:color-mix(in oklab,var(--accent) 40%,var(--border-soft))}.status[_ngcontent-%COMP%]{font-size:10px;padding:1px 6px;border-radius:999px;background:var(--bg-surface-2);color:var(--fg-muted);text-transform:uppercase}.status-added[_ngcontent-%COMP%]{background:#10b9812e;color:#10b981}.status-deleted[_ngcontent-%COMP%]{background:#ef44442e;color:#ef4444}.status-modified[_ngcontent-%COMP%]{background:#6366f12e;color:var(--accent)}.path[_ngcontent-%COMP%]{flex:1;font-family:var(--font-mono, monospace);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.changes[_ngcontent-%COMP%]{font-size:11px;color:var(--fg-muted)}.diff-body[_ngcontent-%COMP%]{border-top:1px solid var(--border-soft);padding:.5rem 0}@media (max-width: 760px){.moment[_ngcontent-%COMP%]{grid-template-columns:1fr}.authors[_ngcontent-%COMP%]{justify-content:flex-start}}"],changeDetection:0})};function we(i){if(i.length===0)return[];let t=[...i].sort((h,_)=>h.date.localeCompare(_.date)),e=t[0].date,n=t[t.length-1].date,l=new Date(e),D=new Date(n).getTime()-l.getTime(),F=Math.max(12,Math.min(24,Math.floor(D/(1e3*60*60*24*7))+1)),te=D/Math.max(1,F-1),N=[];for(let h=0;h<F;h++){let _=new Date(l.getTime()+h*te);N.push({iso:_.toISOString(),label:_.toISOString().slice(0,10)})}return N}export{ee as TimelineComponent};
|