guito 0.5.2 → 0.5.3
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 +13 -0
- package/bin/guito-server.js +114 -89
- package/bin/ui/browser/index.html +1 -1
- package/bin/ui/browser/main-A5ZTTMFS.js +5 -0
- package/package.json +2 -1
- package/bin/ui/browser/main-24WBYIHU.js +0 -5
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var uh=Object.defineProperty,dh=Object.defineProperties;var fh=Object.getOwnPropertyDescriptors;var yl=Object.getOwnPropertySymbols;var ph=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable;var vl=(e,t,n)=>t in e?uh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t)=>{for(var n in t||={})ph.call(t,n)&&vl(e,n,t[n]);if(yl)for(var n of yl(t))hh.call(t,n)&&vl(e,n,t[n]);return e},re=(e,t)=>dh(e,fh(t));var Mn=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var Ds;function co(){return Ds}function nt(e){let t=Ds;return Ds=e,t}var Dl=Symbol("NotFound");function xn(e){return e===Dl||e?.name==="\u0275NotFound"}var ve=null,lo=!1,Es=1,gh=null,ge=Symbol("SIGNAL");function T(e){let t=ve;return ve=e,t}function ho(){return ve}var Vt={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 Sn(e){if(lo)throw new Error("");if(ve===null)return;ve.consumerOnSignalRead(e);let t=ve.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ve.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ve.producers,n!==void 0&&n.producer===e)){ve.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ve&&(!r||yh(o,ve)))return;let i=Rn(ve),s={producer:e,consumer:ve,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};ve.producersTail=s,t!==void 0?t.nextProducer=s:ve.producers=s,i&&_l(e,s)}function El(){Es++}function go(e){if(!(Rn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Es)){if(!e.producerMustRecompute(e)&&!An(e)){po(e);return}e.producerRecomputeValue(e),po(e)}}function bs(e){if(e.consumers===void 0)return;let t=lo;lo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||mh(r)}}finally{lo=t}}function Cs(){return ve?.consumerAllowSignalWrites!==!1}function mh(e){e.dirty=!0,bs(e),e.consumerMarkedDirty?.(e)}function po(e){e.dirty=!1,e.lastCleanEpoch=Es}function Ht(e){return e&&bl(e),T(e)}function bl(e){e.producersTail=void 0,e.recomputing=!0}function Nn(e,t){T(t),e&&Cl(e)}function Cl(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Rn(e))do n=_s(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function An(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(go(n),r!==n.version))return!0}return!1}function $t(e){if(Rn(e)){let t=e.producers;for(;t!==void 0;)t=_s(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function _l(e,t){let n=e.consumersTail,r=Rn(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)_l(o.producer,o)}function _s(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,!Rn(t)){let i=t.producers;for(;i!==void 0;)i=_s(i)}return n}function Rn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function mo(e){gh?.(e)}function yh(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 yo(e,t){return Object.is(e,t)}function sr(e,t){let n=Object.create(vh);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(go(n),Sn(n),n.value===ir)throw n.error;return n.value};return r[ge]=n,mo(n),r}var uo=Symbol("UNSET"),fo=Symbol("COMPUTING"),ir=Symbol("ERRORED"),vh=re(Z({},Vt),{value:uo,dirty:!0,error:null,equal:yo,kind:"computed",producerMustRecompute(e){return e.value===uo||e.value===fo},producerRecomputeValue(e){if(e.value===fo)throw new Error("");let t=e.value;e.value=fo;let n=Ht(e),r,o=!1;try{r=e.computation(),T(null),o=t!==uo&&t!==ir&&r!==ir&&e.equal(t,r)}catch(i){r=ir,e.error=i}finally{Nn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Dh(){throw new Error}var wl=Dh;function Il(e){wl(e)}function ws(e){wl=e}var Eh=null;function Is(e,t){let n=Object.create(vo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Tl(n);return r[ge]=n,mo(n),[r,s=>kn(n,s),s=>Ts(n,s)]}function Tl(e){return Sn(e),e.value}function kn(e,t){Cs()||Il(e),e.equal(e.value,t)||(e.value=t,bh(e))}function Ts(e,t){Cs()||Il(e),kn(e,t(e.value))}var vo=re(Z({},Vt),{equal:yo,value:void 0,kind:"signal"});function bh(e){e.version++,El(),bs(e),Eh?.(e)}function O(e){return typeof e=="function"}function On(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 Do=On(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 ar(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var we=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(O(r))try{r()}catch(i){t=i instanceof Do?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ml(i)}catch(s){t=t??[],s instanceof Do?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Do(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ml(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)&&ar(n,t)}remove(t){let{_finalizers:n}=this;n&&ar(n,t),t instanceof e&&t._removeParent(this)}};we.EMPTY=(()=>{let e=new we;return e.closed=!0,e})();var Ms=we.EMPTY;function Eo(e){return e instanceof we||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function Ml(e){O(e)?e():e.unsubscribe()}var qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Pn={setTimeout(e,t,...n){let{delegate:r}=Pn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Pn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function bo(e){Pn.setTimeout(()=>{let{onUnhandledError:t}=qe;if(t)t(e);else throw e})}function xs(){}var xl=Ss("C",void 0,void 0);function Sl(e){return Ss("E",void 0,e)}function Nl(e){return Ss("N",e,void 0)}function Ss(e,t,n){return{kind:e,value:t,error:n}}var Ut=null;function Fn(e){if(qe.useDeprecatedSynchronousErrorHandling){let t=!Ut;if(t&&(Ut={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ut;if(Ut=null,n)throw r}}else e()}function Al(e){qe.useDeprecatedSynchronousErrorHandling&&Ut&&(Ut.errorThrown=!0,Ut.error=e)}var Gt=class extends we{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Eo(t)&&t.add(this)):this.destination=wh}static create(t,n,r){return new Tt(t,n,r)}next(t){this.isStopped?As(Nl(t),this):this._next(t)}error(t){this.isStopped?As(Sl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?As(xl,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()}}},Ch=Function.prototype.bind;function Ns(e,t){return Ch.call(e,t)}var Rs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Co(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Co(r)}else Co(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Co(n)}}},Tt=class extends Gt{constructor(t,n,r){super();let o;if(O(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&qe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ns(t.next,i),error:t.error&&Ns(t.error,i),complete:t.complete&&Ns(t.complete,i)}):o=t}this.destination=new Rs(o)}};function Co(e){qe.useDeprecatedSynchronousErrorHandling?Al(e):bo(e)}function _h(e){throw e}function As(e,t){let{onStoppedNotification:n}=qe;n&&Pn.setTimeout(()=>n(e,t))}var wh={closed:!0,next:xs,error:_h,complete:xs};var Ln=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Rl(e){return e}function kl(e){return e.length===0?Rl:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var K=(()=>{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=Th(n)?n:new Tt(n,r,o);return Fn(()=>{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=Ol(r),new r((o,i)=>{let s=new Tt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ln](){return this}pipe(...n){return kl(n)(this)}toPromise(n){return n=Ol(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 Ol(e){var t;return(t=e??qe.Promise)!==null&&t!==void 0?t:Promise}function Ih(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}function Th(e){return e&&e instanceof Gt||Ih(e)&&Eo(e)}function Mh(e){return O(e?.lift)}function De(e){return t=>{if(Mh(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 Ee(e,t,n,r,o){return new ks(e,t,n,r,o)}var ks=class extends Gt{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))}}};var Pl=On(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Mt=(()=>{class e extends K{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new _o(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Pl}next(n){Fn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Fn(()=>{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(){Fn(()=>{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?Ms:(this.currentObservers=null,i.push(n),new we(()=>{this.currentObservers=null,ar(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new K;return n.source=this,n}}return e.create=(t,n)=>new _o(t,n),e})(),_o=class extends Mt{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:Ms}};var cr=class extends Mt{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)}};function Fl(e){return e&&O(e.schedule)}function Ll(e){return e[e.length-1]}function jl(e){return O(Ll(e))?e.pop():void 0}function Bl(e){return Fl(Ll(e))?e.pop():void 0}function Hl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Vl(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 zt(e){return this instanceof zt?(this.v=e,this):new zt(e)}function $l(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(y){return Promise.resolve(y).then(f,d)}}function a(f,y){r[f]&&(o[f]=function(_){return new Promise(function(w,C){i.push([f,_,w,C])>1||c(f,_)})},y&&(o[f]=y(o[f])))}function c(f,y){try{l(r[f](y))}catch(_){p(i[0][3],_)}}function l(f){f.value instanceof zt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,y){f(y),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ul(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 Vl=="function"?Vl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var wo=e=>e&&typeof e.length=="number"&&typeof e!="function";function Io(e){return O(e?.then)}function To(e){return O(e[Ln])}function Mo(e){return Symbol.asyncIterator&&O(e?.[Symbol.asyncIterator])}function xo(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 xh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var So=xh();function No(e){return O(e?.[So])}function Ao(e){return $l(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield zt(n.read());if(o)return yield zt(void 0);yield yield zt(r)}}finally{n.releaseLock()}})}function Ro(e){return O(e?.getReader)}function be(e){if(e instanceof K)return e;if(e!=null){if(To(e))return Sh(e);if(wo(e))return Nh(e);if(Io(e))return Ah(e);if(Mo(e))return Gl(e);if(No(e))return Rh(e);if(Ro(e))return kh(e)}throw xo(e)}function Sh(e){return new K(t=>{let n=e[Ln]();if(O(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Nh(e){return new K(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Ah(e){return new K(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,bo)})}function Rh(e){return new K(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Gl(e){return new K(t=>{Oh(e,t).catch(n=>t.error(n))})}function kh(e){return Gl(Ao(e))}function Oh(e,t){var n,r,o,i;return Hl(this,void 0,void 0,function*(){try{for(n=Ul(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 je(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 ko(e,t=0){return De((n,r)=>{n.subscribe(Ee(r,o=>je(r,e,()=>r.next(o),t),()=>je(r,e,()=>r.complete(),t),o=>je(r,e,()=>r.error(o),t)))})}function Oo(e,t=0){return De((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function zl(e,t){return be(e).pipe(Oo(t),ko(t))}function Wl(e,t){return be(e).pipe(Oo(t),ko(t))}function ql(e,t){return new K(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Zl(e,t){return new K(n=>{let r;return je(n,t,()=>{r=e[So](),je(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)}),()=>O(r?.return)&&r.return()})}function Po(e,t){if(!e)throw new Error("Iterable cannot be null");return new K(n=>{je(n,t,()=>{let r=e[Symbol.asyncIterator]();je(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Yl(e,t){return Po(Ao(e),t)}function Ql(e,t){if(e!=null){if(To(e))return zl(e,t);if(wo(e))return ql(e,t);if(Io(e))return Wl(e,t);if(Mo(e))return Po(e,t);if(No(e))return Zl(e,t);if(Ro(e))return Yl(e,t)}throw xo(e)}function Kl(e,t){return t?Ql(e,t):be(e)}function jn(...e){let t=Bl(e);return Kl(e,t)}var Xl=On(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Fo(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Tt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Xl)}});e.subscribe(i)})}function Be(e,t){return De((n,r)=>{let o=0;n.subscribe(Ee(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Ph}=Array;function Fh(e,t){return Ph(t)?e(...t):e(t)}function Jl(e){return Be(t=>Fh(e,t))}var{isArray:Lh}=Array,{getPrototypeOf:jh,prototype:Bh,keys:Vh}=Object;function eu(e){if(e.length===1){let t=e[0];if(Lh(t))return{args:t,keys:null};if(Hh(t)){let n=Vh(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Hh(e){return e&&typeof e=="object"&&jh(e)===Bh}function tu(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function nu(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=_=>l<r?y(_):c.push(_),y=_=>{i&&t.next(_),l++;let w=!1;be(n(_,u++)).subscribe(Ee(t,C=>{o?.(C),i?f(C):t.next(C)},()=>{w=!0},void 0,()=>{if(w)try{for(l--;c.length&&l<r;){let C=c.shift();s?je(t,s,()=>y(C)):y(C)}p()}catch(C){t.error(C)}}))};return e.subscribe(Ee(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Lo(e,t,n=1/0){return O(t)?Lo((r,o)=>Be((i,s)=>t(r,i,o,s))(be(e(r,o))),n):(typeof t=="number"&&(n=t),De((r,o)=>nu(r,o,e,n)))}function Os(...e){let t=jl(e),{args:n,keys:r}=eu(e),o=new K(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;be(n[u]).subscribe(Ee(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?tu(r,a):a),i.complete())}))}});return t?o.pipe(Jl(t)):o}function Ps(e,t){return De((n,r)=>{let o=0;n.subscribe(Ee(r,i=>e.call(t,i,o++)&&r.next(i)))})}function jo(e){return De((t,n)=>{let r=null,o=!1,i;r=t.subscribe(Ee(n,void 0,void 0,s=>{i=be(e(s,jo(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Fs(e,t){return O(t)?Lo(e,t,1):Lo(e,1)}function Ls(e){return De((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function js(e,t){return De((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Ee(r,c=>{o?.unsubscribe();let l=0,u=i++;be(e(c,u)).subscribe(o=Ee(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var ru=re(Z({},Vt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function ou(e){if(e.dirty=!1,e.version>0&&!An(e))return;e.version++;let t=Ht(e);try{e.cleanup(),e.fn()}finally{Nn(e,t)}}var Qs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",b=class extends Error{code;constructor(t,n){super(Qt(t,n)),this.code=t}};function $h(e){return`NG0${Math.abs(e)}`}function Qt(e,t){return`${$h(e)}${t?": "+t:""}`}var Kt=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("")}function xt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(xt).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 Uo(e,t){return e?t?`${e} ${t}`:e:t||""}var Uh=$({__forward_ref__:$});function Go(e){return e.__forward_ref__=Go,e.toString=function(){return xt(this())},e}function Re(e){return au(e)?e():e}function au(e){return typeof e=="function"&&e.hasOwnProperty(Uh)&&e.__forward_ref__===Go}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function zo(e){return Gh(e,Wo)}function Gh(e,t){return e.hasOwnProperty(t)&&e[t]||null}function zh(e){let t=e?.[Wo]??null;return t||null}function Vs(e){return e&&e.hasOwnProperty(Vo)?e[Vo]:null}var Wo=$({\u0275prov:$}),Vo=$({\u0275inj:$}),x=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=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ks(e){return e&&!!e.\u0275providers}var Xs=$({\u0275cmp:$}),Js=$({\u0275dir:$}),ea=$({\u0275pipe:$});var Hs=$({\u0275fac:$}),Xt=$({__NG_ELEMENT_ID__:$}),iu=$({__NG_ENV_ID__:$});function qo(e){return typeof e=="string"?e:e==null?"":String(e)}function cu(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():qo(e)}var lu=$({ngErrorCode:$}),Wh=$({ngErrorMessage:$}),qh=$({ngTokenPath:$});function ta(e,t){return uu("",-200,t)}function Zo(e,t){throw new b(-201,!1)}function uu(e,t,n){let r=new b(t,e);return r[lu]=t,r[Wh]=e,n&&(r[qh]=n),r}function Zh(e){return e[lu]}var $s;function du(){return $s}function Ie(e){let t=$s;return $s=e,t}function na(e,t,n){let r=zo(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;Zo(e,"Injector")}var Yh={},Wt=Yh,Qh="__NG_DI_FLAG__",Us=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=qt(n)||0;try{return this.injector.get(t,r&8?null:Wt,r)}catch(o){if(xn(o))return o;throw o}}};function Kh(e,t=0){let n=co();if(n===void 0)throw new b(-203,!1);if(n===null)return na(e,void 0,t);{let r=Xh(t),o=n.retrieve(e,r);if(xn(o)){if(r.optional)return null;throw o}return o}}function P(e,t=0){return(du()||Kh)(Re(e),t)}function E(e,t){return P(e,qt(t))}function qt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Xh(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Gs(e){let t=[];for(let n=0;n<e.length;n++){let r=Re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new b(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Jh(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(P(o,i))}else t.push(P(r))}return t}function Jh(e){return e[Qh]}function Zt(e,t){let n=e.hasOwnProperty(Hs);return n?e[Hs]:null}function fu(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 pu(e){return e.flat(Number.POSITIVE_INFINITY)}function Yo(e,t){e.forEach(n=>Array.isArray(n)?Yo(n,t):t(n))}function ra(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function hu(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 Qo(e,t,n){let r=Vn(e,t);return r>=0?e[r|1]=n:(r=~r,hu(e,r,t,n)),r}function Ko(e,t){let n=Vn(e,t);if(n>=0)return e[n|1]}function Vn(e,t){return eg(e,t,1)}function eg(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 Jt={},Ze=[],en=new x(""),oa=new x("",-1),ia=new x(""),ur=class{get(t,n=Wt){if(n===Wt){let o=uu("",-201);throw o.name="\u0275NotFound",o}return n}};function tn(e){return e[Xs]||null}function sa(e){return e[Js]||null}function gu(e){return e[ea]||null}function pr(e){return{\u0275providers:e}}function mu(...e){return{\u0275providers:aa(!0,e),\u0275fromNgModule:!0}}function aa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Yo(t,s=>{let a=s;Ho(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&yu(o,i),n}function yu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ca(o,i=>{t(i,r)})}}function Ho(e,t,n,r){if(e=Re(e),!e)return!1;let o=null,i=Vs(e),s=!i&&tn(e);if(!i&&!s){let c=e.ngModule;if(i=Vs(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Ho(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Yo(i.imports,u=>{Ho(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&yu(l,t)}if(!a){let l=Zt(o)||(()=>new o);t({provide:o,useFactory:l,deps:Ze},o),t({provide:ia,useValue:o,multi:!0},o),t({provide:en,useValue:()=>P(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;ca(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function ca(e,t){for(let n of e)Ks(n)&&(n=n.\u0275providers),Array.isArray(n)?ca(n,t):t(n)}var tg=$({provide:String,useValue:$});function vu(e){return e!==null&&typeof e=="object"&&tg in e}function ng(e){return!!(e&&e.useExisting)}function rg(e){return!!(e&&e.useFactory)}function $o(e){return typeof e=="function"}var hr=new x(""),Bo={},su={},Bs;function gr(){return Bs===void 0&&(Bs=new ur),Bs}var Me=class{},Yt=class extends Me{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(oa,Bn(void 0,this)),o.has("environment")&&this.records.set(Me,Bn(void 0,this));let i=this.records.get(hr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ia,Ze,{self:!0}))}retrieve(t,n){let r=qt(n)||0;try{return this.get(t,Wt,r)}catch(o){if(xn(o))return o;throw o}}destroy(){lr(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 lr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){lr(this);let n=nt(this),r=Ie(void 0),o;try{return t()}finally{nt(n),Ie(r)}}get(t,n=Wt,r){if(lr(this),t.hasOwnProperty(iu))return t[iu](this);let o=qt(r),i,s=nt(this),a=Ie(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=cg(t)&&zo(t);u&&this.injectableDefInScope(u)?l=Bn(zs(t),Bo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?gr():this.parent;return n=o&8&&n===Wt?null:n,c.get(t,n)}catch(c){let l=Zh(c);throw l===-200||l===-201?new b(l,null):c}finally{Ie(a),nt(s)}}resolveInjectorInitializers(){let t=T(null),n=nt(this),r=Ie(void 0),o;try{let i=this.get(en,Ze,{self:!0});for(let s of i)s()}finally{nt(n),Ie(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(xt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Re(t);let n=$o(t)?t:Re(t&&t.provide),r=ig(t);if(!$o(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Bn(void 0,Bo,!0),o.factory=()=>Gs(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===su)throw ta(xt(t));return n.value===Bo&&(n.value=su,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&ag(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function zs(e){let t=zo(e),n=t!==null?t.factory:Zt(e);if(n!==null)return n;if(e instanceof x)throw new b(204,!1);if(e instanceof Function)return og(e);throw new b(204,!1)}function og(e){if(e.length>0)throw new b(204,!1);let n=zh(e);return n!==null?()=>n.factory(e):()=>new e}function ig(e){if(vu(e))return Bn(void 0,e.useValue);{let t=Du(e);return Bn(t,Bo)}}function Du(e,t,n){let r;if($o(e)){let o=Re(e);return Zt(o)||zs(o)}else if(vu(e))r=()=>Re(e.useValue);else if(rg(e))r=()=>e.useFactory(...Gs(e.deps||[]));else if(ng(e))r=(o,i)=>P(Re(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Re(e&&(e.useClass||e.provide));if(sg(e))r=()=>new o(...Gs(e.deps));else return Zt(o)||zs(o)}return r}function lr(e){if(e.destroyed)throw new b(205,!1)}function Bn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sg(e){return!!e.deps}function ag(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function cg(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&&Ks(n)?Ws(n.\u0275providers,t):t(n)}function Hn(e,t){let n;e instanceof Yt?(lr(e),n=e):n=new Us(e);let r,o=nt(n),i=Ie(void 0);try{return t()}finally{nt(o),Ie(i)}}function Eu(){return du()!==void 0||co()!=null}var Ye=0,I=1,M=2,le=3,He=4,$e=5,$n=6,Un=7,oe=8,gt=9,mt=10,X=11,Gn=12,la=13,nn=14,Ue=15,Nt=16,rn=17,ot=18,mr=19,ua=20,pt=21,Xo=22,yt=23,ke=24,Jo=25,on=26,ue=27,bu=1,da=6,At=7,yr=8,sn=9,ee=10;function vt(e){return Array.isArray(e)&&typeof e[bu]=="object"}function Qe(e){return Array.isArray(e)&&e[bu]===!0}function fa(e){return(e.flags&4)!==0}function an(e){return e.componentOffset>-1}function ei(e){return(e.flags&1)===1}function cn(e){return!!e.template}function zn(e){return(e[M]&512)!==0}function ln(e){return(e[M]&256)===256}var pa="svg",Cu="math";function Ge(e){for(;Array.isArray(e);)e=e[Ye];return e}function ha(e,t){return Ge(t[e])}function Ke(e,t){return Ge(t[e.index])}function vr(e,t){return e.data[t]}function _u(e,t){return e[t]}function ga(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function it(e,t){let n=t[e];return vt(n)?n:n[Ye]}function ti(e){return(e[M]&128)===128}function wu(e){return Qe(e[le])}function st(e,t){return t==null?null:e[t]}function ma(e){e[rn]=0}function ya(e){e[M]&1024||(e[M]|=1024,ti(e)&&un(e))}function Iu(e,t){for(;e>0;)t=t[nn],e--;return t}function Dr(e){return!!(e[M]&9216||e[ke]?.dirty)}function ni(e){e[mt].changeDetectionScheduler?.notify(8),e[M]&64&&(e[M]|=1024),Dr(e)&&un(e)}function un(e){e[mt].changeDetectionScheduler?.notify(0);let t=St(e);for(;t!==null&&!(t[M]&8192||(t[M]|=8192,!ti(t)));)t=St(t)}function va(e,t){if(ln(e))throw new b(911,!1);e[pt]===null&&(e[pt]=[]),e[pt].push(t)}function Tu(e,t){if(e[pt]===null)return;let n=e[pt].indexOf(t);n!==-1&&e[pt].splice(n,1)}function St(e){let t=e[le];return Qe(t)?t[le]:t}function Da(e){return e[Un]??=[]}function Ea(e){return e.cleanup??=[]}function Mu(e,t,n,r){let o=Da(t);o.push(n),e.firstCreatePass&&Ea(e).push(r,o.length-1)}var S={lFrame:$u(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var qs=!1;function xu(){return S.lFrame.elementDepthCount}function Su(){S.lFrame.elementDepthCount++}function ba(){S.lFrame.elementDepthCount--}function Nu(){return S.bindingsEnabled}function Au(){return S.skipHydrationRootTNode!==null}function Ca(e){return S.skipHydrationRootTNode===e}function _a(){S.skipHydrationRootTNode=null}function j(){return S.lFrame.lView}function Ce(){return S.lFrame.tView}function V(e){return S.lFrame.contextLView=e,e[oe]}function H(e){return S.lFrame.contextLView=null,e}function Oe(){let e=wa();for(;e!==null&&e.type===64;)e=e.parent;return e}function wa(){return S.lFrame.currentTNode}function Ru(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Wn(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Ia(){return S.lFrame.isParent}function ku(){S.lFrame.isParent=!1}function Ta(){return qs}function qn(e){let t=qs;return qs=e,t}function Ou(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Pu(e){return S.lFrame.bindingIndex=e}function dn(){return S.lFrame.bindingIndex++}function Ma(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Fu(){return S.lFrame.inI18n}function Lu(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,ri(t)}function ju(){return S.lFrame.currentDirectiveIndex}function ri(e){S.lFrame.currentDirectiveIndex=e}function Bu(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Vu(){return S.lFrame.currentQueryIndex}function oi(e){S.lFrame.currentQueryIndex=e}function lg(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[$e]:null}function xa(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=lg(i),o===null||(i=i[nn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=Hu();return r.currentTNode=t,r.lView=e,!0}function ii(e){let t=Hu(),n=e[I];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Hu(){let e=S.lFrame,t=e===null?null:e.child;return t===null?$u(e):t}function $u(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 Uu(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Sa=Uu;function si(){let e=Uu();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 Gu(e){return(S.lFrame.contextLView=Iu(e,S.lFrame.contextLView))[oe]}function Dt(){return S.lFrame.selectedIndex}function Rt(e){S.lFrame.selectedIndex=e}function ai(){let e=S.lFrame;return vr(e.tView,e.selectedIndex)}function z(){S.lFrame.currentNamespace=pa}function me(){ug()}function ug(){S.lFrame.currentNamespace=null}function Na(){return S.lFrame.currentNamespace}var zu=!0;function ci(){return zu}function li(e){zu=e}function Zs(e,t=null,n=null,r){let o=Wu(e,t,n,r);return o.resolveInjectorInitializers(),o}function Wu(e,t=null,n=null,r,o=new Set){let i=[n||Ze,mu(e)];return r=r||(typeof e=="object"?void 0:xt(e)),new Yt(i,t||gr(),r||null,o)}var ht=class e{static THROW_IF_NOT_FOUND=Wt;static NULL=new ur;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=B({token:e,providedIn:"any",factory:()=>P(oa)});static __NG_ELEMENT_ID__=-1},Pe=new x(""),kt=(()=>{class e{static __NG_ELEMENT_ID__=dg;static __NG_ENV_ID__=n=>n}return e})(),dr=class extends kt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return ln(this._lView)}onDestroy(t){let n=this._lView;return va(n,t),()=>Tu(n,t)}};function dg(){return new dr(j())}var Ve=class{_console=console;handleError(t){this._console.error("ERROR",t)}},at=new x("",{providedIn:"root",factory:()=>{let e=E(Me),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ve),t.handleError(n))}}}),qu={provide:en,useValue:()=>{E(Ve)},multi:!0};function F(e,t){let[n,r,o]=Is(e,t?.equal),i=n,s=i[ge];return i.set=r,i.update=o,i.asReadonly=Aa.bind(i),i}function Aa(){let e=this[ge];if(e.readonlyFn===void 0){let t=()=>this();t[ge]=e,e.readonlyFn=t}return e.readonlyFn}var Er=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=fg}return e})();function fg(){return new Er(j(),Oe())}var rt=class{},br=new x("",{providedIn:"root",factory:()=>!1});var Ra=new x(""),ka=new x(""),Ot=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new cr(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new K(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=B({token:e,providedIn:"root",factory:()=>new e})}return e})(),Cr=(()=>{class e{internalPendingTasks=E(Ot);scheduler=E(rt);errorHandler=E(at);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=B({token:e,providedIn:"root",factory:()=>new e})}return e})();function fn(...e){}var _r=(()=>{class e{static \u0275prov=B({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 Cd(e){return{toString:e}.toString()}function Cg(e){return typeof e=="function"}var yi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function _d(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function _g(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ig),wg}function wg(){let e=Id(this),t=e?.current;if(t){let n=e.previous;if(n===Jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ig(e,t,n,r,o){let i=this.declaredInputs[r],s=Id(e)||Tg(e,{previous:Jt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new yi(l&&l.currentValue,n,c===Jt),_d(e,t,o,n)}var wd="__ngSimpleChanges__";function Id(e){return e[wd]||null}function Tg(e,t){return e[wd]=t}var Zu=[];var W=function(e,t=null,n){for(let r=0;r<Zu.length;r++){let o=Zu[r];o(e,t,n)}};function Mg(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=_g(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 xg(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function fi(e,t,n){Td(e,t,3,n)}function pi(e,t,n,r){(e[M]&3)===n&&Td(e,t,n,r)}function Oa(e,t){let n=e[M];(n&3)===t&&(n&=16383,n+=1,e[M]=n)}function Td(e,t,n,r){let o=r!==void 0?e[rn]&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[rn]+=65536),(a<i||i==-1)&&(Sg(e,n,t,c),e[rn]=(e[rn]&4294901760)+c+2),c++}function Yu(e,t){W(4,e,t);let n=T(null);try{t.call(e)}finally{T(n),W(5,e,t)}}function Sg(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[M]>>14<e[rn]>>16&&(e[M]&3)===t&&(e[M]+=16384,Yu(a,i)):Yu(a,i)}var Yn=-1,Tr=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 Ng(e){return(e.flags&8)!==0}function Ag(e){return(e.flags&16)!==0}function Rg(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];Og(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function kg(e){return e===3||e===4||e===6}function Og(e){return e.charCodeAt(0)===64}function ki(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?Qu(e,n,o,null,t[++r]):Qu(e,n,o,null,null))}}return e}function Qu(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 Md(e){return e!==Yn}function vi(e){return e&32767}function Pg(e){return e>>16}function Di(e,t){let n=Pg(e),r=t;for(;n>0;)r=r[nn],n--;return r}var $a=!0;function Ei(e){let t=$a;return $a=e,t}var Fg=256,xd=Fg-1,Sd=5,Lg=0,ct={};function jg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xt)&&(r=n[Xt]),r==null&&(r=n[Xt]=Lg++);let o=r&xd,i=1<<o;t.data[e+(o>>Sd)]|=i}function Nd(e,t){let n=Ad(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Pa(r.data,e),Pa(t,null),Pa(r.blueprint,null));let o=vc(e,t),i=e.injectorIndex;if(Md(o)){let s=vi(o),a=Di(o,t),c=a[I].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Pa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ad(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=Fd(o),r===null)return Yn;if(n++,o=o[nn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Yn}function Bg(e,t,n){jg(e,t,n)}function Rd(e,t,n){if(n&8||e!==void 0)return e;Zo(t,"NodeInjector")}function kd(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[gt],i=Ie(void 0);try{return o?o.get(t,r,n&8):na(t,r,n&8)}finally{Ie(i)}}return Rd(r,t,n)}function Od(e,t,n,r=0,o){if(e!==null){if(t[M]&2048&&!(r&2)){let s=Ug(e,t,n,r,ct);if(s!==ct)return s}let i=Pd(e,t,n,r,ct);if(i!==ct)return i}return kd(t,n,r,o)}function Pd(e,t,n,r,o){let i=Hg(n);if(typeof i=="function"){if(!xa(t,e,r))return r&1?Rd(o,n,r):kd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Zo(n);else return s}finally{Sa()}}else if(typeof i=="number"){let s=null,a=Ad(e,t),c=Yn,l=r&1?t[Ue][$e]:null;for((a===-1||r&4)&&(c=a===-1?vc(e,t):t[a+8],c===Yn||!Xu(r,!1)?a=-1:(s=t[I],a=vi(c),t=Di(c,t)));a!==-1;){let u=t[I];if(Ku(i,a,u.data)){let d=Vg(a,t,n,s,r,l);if(d!==ct)return d}c=t[a+8],c!==Yn&&Xu(r,t[I].data[a+8]===l)&&Ku(i,a,t)?(s=u,a=vi(c),t=Di(c,t)):a=-1}}return o}function Vg(e,t,n,r,o,i){let s=t[I],a=s.data[e+8],c=r==null?an(a)&&$a:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=hi(a,s,n,c,l);return u!==null?bi(t,s,u,a,o):ct}function hi(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let y=s[f];if(f<c&&n===y||f>=c&&y.type===n)return f}if(o){let f=s[c];if(f&&cn(f)&&f.type===n)return c}return null}function bi(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Tr){let a=i;if(a.resolving){let f=cu(s[n]);throw ta(f)}let c=Ei(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?Ie(a.injectImpl):null,p=xa(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Mg(n,s[n],t)}finally{d!==null&&Ie(d),Ei(c),a.resolving=!1,Sa()}}return i}function Hg(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Xt)?e[Xt]:void 0;return typeof t=="number"?t>=0?t&xd:$g:t}function Ku(e,t,n){let r=1<<e;return!!(n[t+(e>>Sd)]&r)}function Xu(e,t){return!(e&2)&&!(e&1&&t)}var pn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Od(this._tNode,this._lView,t,qt(r),n)}};function $g(){return new pn(Oe(),j())}function Ug(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[M]&2048&&!zn(s);){let a=Pd(i,s,n,r|2,ct);if(a!==ct)return a;let c=i.parent;if(!c){let l=s[ua];if(l){let u=l.get(n,ct,r);if(u!==ct)return u}c=Fd(s),s=s[nn]}i=c}return o}function Fd(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[$e]:null}function Gg(){return er(Oe(),j())}function er(e,t){return new tr(Ke(e,t))}var tr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Gg}return e})();function zg(e){return e instanceof tr?e.nativeElement:e}function Wg(){return this._results[Symbol.iterator]()}var Ci=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 Mt}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=pu(t);(this._changesDetected=!fu(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]=Wg};function Ld(e){return(e.flags&128)===128}var Dc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Dc||{}),jd=new Map,qg=0;function Zg(){return qg++}function Yg(e){jd.set(e[mr],e)}function Ua(e){jd.delete(e[mr])}var Ju="__ngContext__";function Qn(e,t){vt(t)?(e[Ju]=t[mr],Yg(t)):e[Ju]=t}function Bd(e){return Hd(e[Gn])}function Vd(e){return Hd(e[He])}function Hd(e){for(;e!==null&&!Qe(e);)e=e[He];return e}var Ga;function Ec(e){Ga=e}function $d(){if(Ga!==void 0)return Ga;if(typeof document<"u")return document;throw new b(210,!1)}var Oi=new x("",{providedIn:"root",factory:()=>Qg}),Qg="ng",Pi=new x(""),Or=new x("",{providedIn:"platform",factory:()=>"unknown"});var Fi=new x("",{providedIn:"root",factory:()=>$d().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Kg="h",Xg="b";var Ud="r";var Gd="di";var zd=!1,Wd=new x("",{providedIn:"root",factory:()=>zd});var Jg=(e,t,n,r)=>{};function em(e,t,n,r){Jg(e,t,n,r)}function bc(e){return(e.flags&32)===32}var tm=()=>null;function qd(e,t,n=!1){return tm(e,t,n)}function Zd(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];oi(i),a.contentQueries(2,t[s],s)}}}finally{T(r)}}}function za(e,t,n){oi(0);let r=T(null);try{t(e,n)}finally{T(r)}}function Yd(e,t,n){if(fa(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 bt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(bt||{});var Wa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Qs})`}};function Cc(e){return e instanceof Wa?e.changingThisBreaksApplicationSecurity:e}function nm(e,t){return e.createText(t)}function rm(e,t,n){e.setValue(t,n)}function Qd(e,t,n){return e.createElement(t,n)}function _i(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Kd(e,t,n){e.appendChild(t,n)}function ed(e,t,n,r,o){r!==null?_i(e,t,n,r,o):Kd(e,t,n)}function Xd(e,t,n,r){e.removeChild(null,t,n,r)}function om(e,t,n){e.setAttribute(t,"style",n)}function im(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Jd(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Rg(e,t,r),o!==null&&im(e,t,o),i!==null&&om(e,t,i)}function dt(e){return e.ownerDocument}function sm(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 ef="ng-template";function am(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&sm(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(_c(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 _c(e){return e.type===4&&e.value!==ef}function cm(e,t,n){let r=e.type===4&&!n?ef:e.value;return t===r}function lm(e,t,n){let r=4,o=e.attrs,i=o!==null?fm(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Xe(r)&&!Xe(c))return!1;if(s&&Xe(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!cm(e,c,n)||c===""&&t.length===1){if(Xe(r))return!1;s=!0}}else if(r&8){if(o===null||!am(e,o,c,n)){if(Xe(r))return!1;s=!0}}else{let l=t[++a],u=um(c,o,_c(e),n);if(u===-1){if(Xe(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Xe(r))return!1;s=!0}}}}return Xe(r)||s}function Xe(e){return(e&1)===0}function um(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 pm(t,e)}function dm(e,t,n=!1){for(let r=0;r<t.length;r++)if(lm(e,t[r],n))return!0;return!1}function fm(e){for(let t=0;t<e.length;t++){let n=e[t];if(kg(n))return t}return e.length}function pm(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 td(e,t){return e?":not("+t.trim()+")":t}function hm(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!==""&&!Xe(s)&&(t+=td(i,o),o=""),r=s,i=i||!Xe(r);n++}return o!==""&&(t+=td(i,o)),t}function gm(e){return e.map(hm).join(",")}function mm(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(!Xe(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ze={};function wc(e,t,n,r,o,i,s,a,c,l,u){let d=ue+r,p=d+o,f=ym(d,p),y=typeof l=="function"?l():l;return f[I]={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:y,incompleteFirstPass:!1,ssrId:u}}function ym(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ze);return n}function vm(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=wc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ic(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Ye]=o,d[M]=r|4|128|8|64|1024,(l!==null||e&&e[M]&2048)&&(d[M]|=2048),ma(d),d[le]=d[nn]=e,d[oe]=n,d[mt]=s||e&&e[mt],d[X]=a||e&&e[X],d[gt]=c||e&&e[gt]||null,d[$e]=i,d[mr]=Zg(),d[$n]=u,d[ua]=l,d[Ue]=t.type==2?e[Ue]:d,d}function Dm(e,t,n){let r=Ke(t,e),o=vm(n),i=e[mt].rendererFactory,s=Tc(e,Ic(e,o,null,tf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function tf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function nf(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 Tc(e,t){return e[Gn]?e[la][He]=t:e[Gn]=t,e[la]=t,t}function h(e=1){rf(Ce(),j(),Dt()+e,!1)}function rf(e,t,n,r){if(!r)if((t[M]&3)===3){let i=e.preOrderCheckHooks;i!==null&&fi(t,i,n)}else{let i=e.preOrderHooks;i!==null&&pi(t,i,0,n)}Rt(n)}var Li=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Li||{});function qa(e,t,n,r){let o=T(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Li.SignalBased)!==0&&(c=t[i][ge]),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):_d(t,c,i,r)}finally{T(o)}}var lt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(lt||{}),Em;function Mc(e,t){return Em(e,t)}var hn=new Set,xc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(xc||{}),Pr=new x(""),nd=new Set;function yn(e){nd.has(e)||(nd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var of=!1,Za=class extends Mt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Eu()&&(this.destroyRef=E(kt,{optional:!0})??void 0,this.pendingTasks=E(Ot,{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 we&&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)}})}}},Et=Za;function sf(e){let t,n;function r(){e=fn;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 rd(e){return queueMicrotask(()=>e()),()=>{e=fn}}var Sc="isAngularZone",wi=Sc+"_ID",bm=0,de=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Et(!1);onMicrotaskEmpty=new Et(!1);onStable=new Et(!1);onError=new Et(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=of}=t;if(typeof Zone>"u")throw new b(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,wm(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Sc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(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,Cm,fn,fn);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)}},Cm={};function Nc(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 _m(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){sf(()=>{e.callbackScheduled=!1,Ya(e),e.isCheckStableRunning=!0,Nc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ya(e)}function wm(e){let t=()=>{_m(e)},n=bm++;e._inner=e._inner.fork({name:"angular",properties:{[Sc]:!0,[wi]:n,[wi+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Im(c))return r.invokeTask(i,s,a,c);try{return od(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),id(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return od(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Tm(c)&&t(),id(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ya(e),Nc(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 Ya(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function od(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function id(e){e._nesting--,Nc(e)}var Ii=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Et;onMicrotaskEmpty=new Et;onStable=new Et;onError=new Et;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 Im(e){return af(e,"__ignore_ng_zone__")}function Tm(e){return af(e,"__scheduler_tick__")}function af(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var cf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();var lf=new x("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function uf(e,t,n){let r=e.get(lf);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Mm(e,t){let n=e.get(lf);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function xm(e,t){for(let[n,r]of t)uf(e,r.animateFns)}function sd(e,t,n,r){let o=e?.[on]?.enter;t!==null&&o&&o.has(n.index)&&xm(r,o)}function Zn(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;Qe(o)?c=o:vt(o)&&(l=!0,o=o[Ye]);let u=Ge(o);e===0&&r!==null?(sd(a,r,i,n),s==null?Kd(t,r,u):_i(t,r,u,s||null,!0)):e===1&&r!==null?(sd(a,r,i,n),_i(t,r,u,s||null,!0)):e===2?ad(a,i,n,d=>{Xd(t,u,l,d)}):e===3&&ad(a,i,n,()=>{t.destroyNode(u)}),c!=null&&Hm(t,e,n,c,i,r,s)}}function Sm(e,t){df(e,t),t[Ye]=null,t[$e]=null}function Nm(e,t,n,r,o,i){r[Ye]=o,r[$e]=t,Bi(e,r,n,1,o,i)}function df(e,t){t[mt].changeDetectionScheduler?.notify(9),Bi(e,t,t[X],2,null,null)}function Am(e){let t=e[Gn];if(!t)return Fa(e[I],e);for(;t;){let n=null;if(vt(t))n=t[Gn];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[He]&&t!==e;)vt(t)&&Fa(t[I],t),t=t[le];t===null&&(t=e),vt(t)&&Fa(t[I],t),n=t&&t[He]}t=n}}function Ac(e,t){let n=e[sn],r=n.indexOf(t);n.splice(r,1)}function ji(e,t){if(ln(t))return;let n=t[X];n.destroyNode&&Bi(e,t,n,3,null,null),Am(t)}function Fa(e,t){if(ln(t))return;let n=T(null);try{t[M]&=-129,t[M]|=256,t[ke]&&$t(t[ke]),Om(e,t),km(e,t),t[I].type===1&&t[X].destroy();let r=t[Nt];if(r!==null&&Qe(t[le])){r!==t[le]&&Ac(r,t);let o=t[ot];o!==null&&o.detachView(e)}Ua(t)}finally{T(n)}}function ad(e,t,n,r){let o=e?.[on];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&hn.add(e),uf(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let l=s.animateFns[c],{promise:u}=l();a.push(u)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),Rm(e,r)}else e&&hn.delete(e),r(!1)},o)}function Rm(e,t){let n=e[on]?.running;if(n){n.then(()=>{e[on].running=void 0,hn.delete(e),t(!0)});return}t(!1)}function km(e,t){let n=e.cleanup,r=t[Un];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[Un]=null);let o=t[pt];if(o!==null){t[pt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[yt];if(i!==null){t[yt]=null;for(let s of i)s.destroy()}}function Om(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 Tr)){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];W(4,a,c);try{c.call(a)}finally{W(5,a,c)}}else{W(4,o,i);try{i.call(o)}finally{W(5,o,i)}}}}}function Pm(e,t,n){return Fm(e,t.parent,n)}function Fm(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ye];if(an(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===bt.None||o===bt.Emulated)return null}return Ke(r,n)}function Lm(e,t,n){return Bm(e,t,n)}function jm(e,t,n){return e.type&40?Ke(e,n):null}var Bm=jm,cd;function Rc(e,t,n,r){let o=Pm(e,r,t),i=t[X],s=r.parent||t[$e],a=Lm(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)ed(i,o,n[c],a,!1);else ed(i,o,n,a,!1);cd!==void 0&&cd(i,r,t,n,o)}function wr(e,t){if(t!==null){let n=t.type;if(n&3)return Ke(t,e);if(n&4)return Qa(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return wr(e,r);{let o=e[t.index];return Qe(o)?Qa(-1,o):Ge(o)}}else{if(n&128)return wr(e,t.next);if(n&32)return Mc(t,e)()||Ge(e[t.index]);{let r=ff(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=St(e[Ue]);return wr(o,r)}else return wr(e,t.next)}}}return null}function ff(e,t){if(t!==null){let r=e[Ue][$e],o=t.projection;return r.projection[o]}return null}function Qa(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],o=r[I].firstChild;if(o!==null)return wr(r,o)}return t[At]}function kc(e,t,n,r,o,i,s){for(;n!=null;){let a=r[gt];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&Qn(Ge(c),r),n.flags|=2),!bc(n))if(l&8)kc(e,t,n.child,r,o,i,!1),Zn(t,e,a,o,c,n,i,r);else if(l&32){let u=Mc(n,r),d;for(;d=u();)Zn(t,e,a,o,d,n,i,r);Zn(t,e,a,o,c,n,i,r)}else l&16?Vm(e,t,r,n,o,i):Zn(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Bi(e,t,n,r,o,i){kc(n,r,e.firstChild,t,o,i,!1)}function Vm(e,t,n,r,o,i){let s=n[Ue],c=s[$e].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Zn(t,e,n[gt],o,u,r,i,n)}else{let l=c,u=s[le];Ld(r)&&(l.flags|=128),kc(e,t,l,u,o,i,!0)}}function Hm(e,t,n,r,o,i,s){let a=r[At],c=Ge(r);a!==c&&Zn(t,e,n,i,a,o,s);for(let l=ee;l<r.length;l++){let u=r[l];Bi(u[I],u,e,t,i,a)}}function $m(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:lt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=lt.Important),e.setStyle(n,r,o,i))}}function pf(e,t,n,r,o){let i=Dt(),s=r&2;try{Rt(-1),s&&t.length>ue&&rf(e,t,ue,!1),W(s?2:0,o,n),n(r,o)}finally{Rt(i),W(s?3:1,o,n)}}function hf(e,t,n){Ym(e,t,n),(n.flags&64)===64&&Qm(e,t,n)}function Oc(e,t,n=Ke){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 Um(e,t,n,r){let i=r.get(Wd,zd)||n===bt.ShadowDom,s=e.selectRootElement(t,i);return Gm(s),s}function Gm(e){zm(e)}var zm=()=>null;function Wm(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function qm(e,t,n,r,o,i){let s=t[I];if(Pc(e,s,t,n,r)){an(e)&&Zm(t,e.index);return}e.type&3&&(n=Wm(n)),gf(e,t,n,r,o,i)}function gf(e,t,n,r,o,i){if(e.type&3){let s=Ke(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function Zm(e,t){let n=it(t,e);n[M]&16||(n[M]|=64)}function Ym(e,t,n){let r=n.directiveStart,o=n.directiveEnd;an(n)&&Dm(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Nd(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=bi(t,e,s,n);if(Qn(c,t),i!==null&&ty(t,s-r,c,a,n,i),cn(a)){let l=it(n.index,t);l[oe]=bi(t,e,s,n)}}}function Qm(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=ju();try{Rt(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ri(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Km(c,l)}}finally{Rt(-1),ri(s)}}function Km(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Xm(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];dm(t,i.selectors,!1)&&(r??=[],cn(i)?r.unshift(i):r.push(i))}return r}function Jm(e,t,n,r,o,i){let s=Ke(e,t);ey(t[X],s,i,e.value,n,r,o)}function ey(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?qo(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function ty(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];qa(r,n,c,l)}}function mf(e,t,n,r,o){let i=ue+n,s=t[I],a=o(s,t,e,r,n);t[i]=a,Wn(e,!0);let c=e.type===2;return c?(Jd(t[X],a,e),(xu()===0||ei(e))&&Qn(a,t),Su()):Qn(a,t),ci()&&(!c||!bc(e))&&Rc(s,t,a,e),e}function yf(e){let t=e;return Ia()?ku():(t=t.parent,Wn(t,!1)),t}function ny(e,t){let n=e[gt];if(!n)return;let r;try{r=n.get(at,null)}catch{r=null}r?.(t)}function Pc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];qa(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];qa(u,l,r,o),a=!0}return a}function ry(e,t){let n=it(t,e),r=n[I];oy(r,n);let o=n[Ye];o!==null&&n[$n]===null&&(n[$n]=qd(o,n[gt])),W(18),Fc(r,n,n[oe]),W(19,n[oe])}function oy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Fc(e,t,n){ii(t);try{let r=e.viewQuery;r!==null&&za(1,r,n);let o=e.template;o!==null&&pf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[ot]?.finishViewCreation(e),e.staticContentQueries&&Zd(e,t),e.staticViewQueries&&za(2,e.viewQuery,n);let i=e.components;i!==null&&iy(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[M]&=-5,si()}}function iy(e,t){for(let n=0;n<t.length;n++)ry(e,t[n])}function Vi(e,t,n,r){let o=T(null);try{let i=t.tView,a=e[M]&4096?4096:16,c=Ic(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Nt]=l;let u=e[ot];return u!==null&&(c[ot]=u.createEmbeddedView(i)),Fc(i,c,n),c}finally{T(o)}}function Mr(e,t){return!t||t.firstChild===null||Ld(e)}function xr(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(Ge(i)),Qe(i)&&vf(i,r);let s=n.type;if(s&8)xr(e,t,n.child,r);else if(s&32){let a=Mc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ff(t,n);if(Array.isArray(a))r.push(...a);else{let c=St(t[Ue]);xr(c[I],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function vf(e,t){for(let n=ee;n<e.length;n++){let r=e[n],o=r[I].firstChild;o!==null&&xr(r[I],r,o,t)}e[At]!==e[Ye]&&t.push(e[At])}function Df(e){if(e[Jo]!==null){for(let t of e[Jo])t.impl.addSequence(t);e[Jo].length=0}}var Ef=[];function sy(e){return e[ke]??ay(e)}function ay(e){let t=Ef.pop()??Object.create(ly);return t.lView=e,t}function cy(e){e.lView[ke]!==e&&(e.lView=null,Ef.push(e))}var ly=re(Z({},Vt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{un(e.lView)},consumerOnSignalRead(){this.lView[ke]=this}});function uy(e){let t=e[ke]??Object.create(dy);return t.lView=e,t}var dy=re(Z({},Vt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=St(e.lView);for(;t&&!bf(t[I]);)t=St(t);t&&ya(t)},consumerOnSignalRead(){this.lView[ke]=this}});function bf(e){return e.type!==2}function Cf(e){if(e[yt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[yt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[M]&8192)}}var fy=100;function _f(e,t=0){let r=e[mt].rendererFactory,o=!1;o||r.begin?.();try{py(e,t)}finally{o||r.end?.()}}function py(e,t){let n=Ta();try{qn(!0),Ka(e,t);let r=0;for(;Dr(e);){if(r===fy)throw new b(103,!1);r++,Ka(e,1)}}finally{qn(n)}}function hy(e,t,n,r){if(ln(t))return;let o=t[M],i=!1,s=!1;ii(t);let a=!0,c=null,l=null;i||(bf(e)?(l=sy(t),c=Ht(l)):ho()===null?(a=!1,l=uy(t),c=Ht(l)):t[ke]&&($t(t[ke]),t[ke]=null));try{ma(t),Pu(e.bindingStartIndex),n!==null&&pf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&fi(t,f,null)}else{let f=e.preOrderHooks;f!==null&&pi(t,f,0,null),Oa(t,0)}if(s||gy(t),Cf(t),wf(t,0),e.contentQueries!==null&&Zd(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&fi(t,f)}else{let f=e.contentHooks;f!==null&&pi(t,f,1),Oa(t,1)}yy(e,t);let d=e.components;d!==null&&Tf(t,d,0);let p=e.viewQuery;if(p!==null&&za(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&fi(t,f)}else{let f=e.viewHooks;f!==null&&pi(t,f,2),Oa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Xo]){for(let f of t[Xo])f();t[Xo]=null}i||(Df(t),t[M]&=-73)}catch(u){throw i||un(t),u}finally{l!==null&&(Nn(l,c),a&&cy(l)),si()}}function wf(e,t){for(let n=Bd(e);n!==null;n=Vd(n))for(let r=ee;r<n.length;r++){let o=n[r];If(o,t)}}function gy(e){for(let t=Bd(e);t!==null;t=Vd(t)){if(!(t[M]&2))continue;let n=t[sn];for(let r=0;r<n.length;r++){let o=n[r];ya(o)}}}function my(e,t,n){W(18);let r=it(t,e);If(r,n),W(19,r[oe])}function If(e,t){ti(e)&&Ka(e,t)}function Ka(e,t){let r=e[I],o=e[M],i=e[ke],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&An(i)),s||=!1,i&&(i.dirty=!1),e[M]&=-9217,s)hy(r,e,r.template,e[oe]);else if(o&8192){let a=T(null);try{Cf(e),wf(e,1);let c=r.components;c!==null&&Tf(e,c,1),Df(e)}finally{T(a)}}}function Tf(e,t,n){for(let r=0;r<t.length;r++)my(e,t[r],n)}function yy(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)Rt(~o);else{let i=o,s=n[++r],a=n[++r];Lu(s,i);let c=t[i];W(24,c),a(2,c),W(25,c)}}}finally{Rt(-1)}}function Lc(e,t){let n=Ta()?64:1088;for(e[mt].changeDetectionScheduler?.notify(t);e;){e[M]|=n;let r=St(e);if(zn(e)&&!r)return e;e=r}return null}function Mf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function xf(e,t){let n=ee+t;if(n<e.length)return e[n]}function Hi(e,t,n,r=!0){let o=t[I];if(vy(o,t,e,n),r){let s=Qa(n,e),a=t[X],c=a.parentNode(e[At]);c!==null&&Nm(o,e[$e],a,t,c,s)}let i=t[$n];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Sf(e,t){let n=Sr(e,t);return n!==void 0&&ji(n[I],n),n}function Sr(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let o=r[Nt];o!==null&&o!==e&&Ac(o,r),t>0&&(e[n-1][He]=r[He]);let i=fr(e,ee+t);Sm(r[I],r);let s=i[ot];s!==null&&s.detachView(i[I]),r[le]=null,r[He]=null,r[M]&=-129}return r}function vy(e,t,n,r){let o=ee+r,i=n.length;r>0&&(n[o-1][He]=t),r<i-ee?(t[He]=n[o],ra(n,ee+r,t)):(n.push(t),t[He]=null),t[le]=n;let s=t[Nt];s!==null&&n!==s&&Nf(s,t);let a=t[ot];a!==null&&a.insertView(e),ni(t),t[M]|=128}function Nf(e,t){let n=e[sn],r=t[le];if(vt(r))e[M]|=2;else{let o=r[le][Ue];t[Ue]!==o&&(e[M]|=2)}n===null?e[sn]=[t]:n.push(t)}var Kn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[I];return xr(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[oe]}set context(t){this._lView[oe]=t}get destroyed(){return ln(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[le];if(Qe(t)){let n=t[yr],r=n?n.indexOf(this):-1;r>-1&&(Sr(t,r),fr(n,r))}this._attachedToViewContainer=!1}ji(this._lView[I],this._lView)}onDestroy(t){va(this._lView,t)}markForCheck(){Lc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){ni(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,_f(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=zn(this._lView),n=this._lView[Nt];n!==null&&!t&&Ac(n,this._lView),df(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t;let n=zn(this._lView),r=this._lView[Nt];r!==null&&!n&&Nf(r,this._lView),ni(this._lView)}};var Xn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Dy;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=Vi(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Kn(i)}}return e})();function Dy(){return jc(Oe(),j())}function jc(e,t){return e.type&4?new Xn(t,e,er(e,t)):null}function $i(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ey(e,t,n,r,o),Fu()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Ru();i.injectorIndex=s===null?-1:s.injectorIndex}return Wn(i,!0),i}function Ey(e,t,n,r,o){let i=wa(),s=Ia(),a=s?i:i&&i.parent,c=e.data[t]=Cy(e,a,n,t,r,o);return by(e,c,i,s),c}function by(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 Cy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Au()&&(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,namespace:Na(),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 MT=new RegExp(`^(\\d+)*(${Xg}|${Kg})*(.*)`);function _y(e){let t=e[da]??[],r=e[le][X],o=[];for(let i of t)i.data[Gd]!==void 0?o.push(i):wy(i,r);e[da]=o}function wy(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Ud];for(;n<o;){let i=r.nextSibling;Xd(t,r,!1),r=i,n++}}}var Iy=()=>null,Ty=()=>null;function Xa(e,t){return Iy(e,t)}function Af(e,t,n){return Ty(e,t,n)}var Rf=class{},Ui=class{},Ja=class{resolveComponentFactory(t){throw new b(917,!1)}},Gi=class{static NULL=new Ja},gn=class{};var kf=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>null})}return e})();var gi={},ec=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,gi,r);return o!==gi||n===gi?o:this.parentInjector.get(t,n,r)}};function Ti(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=Uo(o,a);else if(i==2){let c=a,l=t[++s];r=Uo(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function vn(e,t=0){let n=j();if(n===null)return P(e,t);let r=Oe();return Od(r,n,Re(e),t)}function My(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}Ny(e,t,n,a,i,c,l)}i!==null&&r!==null&&xy(n,r,i)}function xy(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 b(-301,!1);r.push(t[o],i)}}function Sy(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Ny(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&&cn(f)&&(c=!0,Sy(e,n,p)),Bg(Nd(n,t),e,f.type)}Fy(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=nf(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=ki(n.mergedAttrs,f.hostAttrs),Ry(e,n,t,d,f),Py(d,f,o),s!==null&&s.has(f)){let[_,w]=s.get(f);n.directiveToIndex.set(f.type,[d,_+n.directiveStart,w+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 y=f.type.prototype;!l&&(y.ngOnChanges||y.ngOnInit||y.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(y.ngOnChanges||y.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}Ay(e,n,i)}function Ay(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ld(0,t,o,r),ld(1,t,o,r),dd(t,r,!1);else{let i=n.get(o);ud(0,t,i,r),ud(1,t,i,r),dd(t,r,!0)}}}function ld(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),Of(t,i)}}function ud(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),Of(t,s)}}function Of(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function dd(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||_c(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Ry(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Zt(o.type,!0)),s=new Tr(i,cn(o),vn,null);e.blueprint[r]=s,n[r]=s,ky(e,t,r,nf(e,n,o.hostVars,ze),o)}function ky(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Oy(s)!=a&&s.push(a),s.push(n,r,i)}}function Oy(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Py(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;cn(t)&&(n[""]=e)}}function Fy(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Pf(e,t,n,r,o,i,s,a){let c=t[I],l=c.consts,u=st(l,s),d=$i(c,e,n,r,u);return i&&My(c,t,d,st(l,a),o),d.mergedAttrs=ki(d.mergedAttrs,d.attrs),d.attrs!==null&&Ti(d,d.attrs,!1),d.mergedAttrs!==null&&Ti(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Ff(e,t){xg(e,t),fa(t)&&e.queries.elementEnd(t)}function Ly(e,t,n,r,o,i){let s=t.consts,a=st(s,o),c=$i(t,e,n,r,a);if(c.mergedAttrs=ki(c.mergedAttrs,c.attrs),i!=null){let l=st(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Ti(c,c.attrs,!1),c.mergedAttrs!==null&&Ti(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function jy(e,t,n){return e[t]=n}function ut(e,t,n){if(n===ze)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function By(e,t,n,r){let o=ut(e,t,n);return ut(e,t+1,r)||o}function mi(e,t,n){return function r(o){let i=an(e)?it(e.index,t):t;Lc(i,5);let s=t[oe],a=fd(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=fd(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function fd(e,t,n,r){let o=T(null);try{return W(6,t,n),n(r)!==!1}catch(i){return ny(e,i),!1}finally{W(7,t,n),T(o)}}function Lf(e,t,n,r,o,i,s,a){let c=ei(e),l=!1,u=null;if(!r&&c&&(u=Hy(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=Ke(e,n),p=r?r(d):d;em(n,p,i,a);let f=o.listen(p,i,a);if(!Vy(i)){let y=r?_=>r(Ge(_[e.index])):e.index;jf(y,t,n,i,a,f,!1)}}return l}function Vy(e){return e.startsWith("animation")||e.startsWith("transition")}function Hy(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[Un],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function jf(e,t,n,r,o,i,s){let a=t.firstCreatePass?Ea(t):null,c=Da(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function pd(e,t,n,r,o,i){let s=t[n],a=t[I],l=a.data[n].outputs[r],d=s[l].subscribe(i);jf(e.index,a,t,o,i,d,!0)}var tc=Symbol("BINDING");var nc=class extends Gi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=tn(t);return new Nr(n,this.ngModule)}};function $y(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Li.SignalBased)!==0};return o&&(i.transform=o),i})}function Uy(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Gy(e,t,n){let r=t instanceof Me?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ec(n,r):n}function zy(e){let t=e.get(gn,null);if(t===null)throw new b(407,!1);let n=e.get(kf,null),r=e.get(rt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function Wy(e,t){let n=Bf(e);return Qd(t,n,n==="svg"?pa:n==="math"?Cu:null)}function qy(e){if(e?.toLowerCase()==="script")throw new b(905,!1)}function Bf(e){return(e.selectors[0][0]||"div").toLowerCase()}var Nr=class extends Ui{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=$y(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Uy(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=gm(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){W(22);let a=T(null);try{let c=this.componentDef,l=Zy(r,c,s,i),u=Gy(c,o||this.ngModule,t),d=zy(u),p=d.rendererFactory.createRenderer(null,c),f=r?Um(p,r,c.encapsulation,u):Wy(c,p);qy(f?.tagName);let y=s?.some(hd)||i?.some(C=>typeof C!="function"&&C.bindings.some(hd)),_=Ic(null,l,null,512|tf(c),null,null,d,p,u,null,qd(f,u,!0));_[ue]=f,ii(_);let w=null;try{let C=Pf(ue,_,2,"#host",()=>l.directiveRegistry,!0,0);Jd(p,f,C),Qn(f,_),hf(l,_,C),Yd(l,C,_),Ff(l,C),n!==void 0&&Qy(C,this.ngContentSelectors,n),w=it(C.index,_),_[oe]=w[oe],Fc(l,_,null)}catch(C){throw w!==null&&Ua(w),Ua(_),C}finally{W(23),si()}return new Mi(this.componentType,_,!!y)}finally{T(a)}}};function Zy(e,t,n,r){let o=e?["ng-version","20.3.29"]:mm(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[tc].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[tc].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=sa(d);c.push(p)}return wc(0,null,Yy(i,s),1,a,c,null,null,null,[o],null)}function Yy(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 hd(e){let t=e[tc].kind;return t==="input"||t==="twoWay"}var Mi=class extends Rf{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vr(n[I],ue),this.location=er(this._tNode,n),this.instance=it(this._tNode.index,n)[oe],this.hostView=this.changeDetectorRef=new Kn(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=Pc(r,o[I],o,t,n);this.previousInputValues.set(t,n);let s=it(r.index,o);Lc(s,1)}get injector(){return new pn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Qy(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 Fr=(()=>{class e{static __NG_ELEMENT_ID__=Ky}return e})();function Ky(){let e=Oe();return Hf(e,j())}var Xy=Fr,Vf=class extends Xy{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return er(this._hostTNode,this._hostLView)}get injector(){return new pn(this._hostTNode,this._hostLView)}get parentInjector(){let t=vc(this._hostTNode,this._hostLView);if(Md(t)){let n=Di(t,this._hostLView),r=vi(t),o=n[I].data[r+8];return new pn(o,n)}else return new pn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=gd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ee}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Xa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mr(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Cg(t),l;if(c)l=n;else{let w=n||{};l=w.index,r=w.injector,o=w.projectableNodes,i=w.environmentInjector||w.ngModuleRef,s=w.directives,a=w.bindings}let u=c?t:new Nr(tn(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let C=(c?d:this.parentInjector).get(Me,null);C&&(i=C)}let p=tn(u.componentType??{}),f=Xa(this._lContainer,p?.id??null),y=f?.firstChild??null,_=u.create(d,o,y,i,s,a);return this.insertImpl(_.hostView,l,Mr(this._hostTNode,f)),_}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(wu(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[le],l=new Vf(c,c[$e],c[le]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Hi(s,o,i,r),t.attachToViewContainerRef(),ra(La(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=gd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Sr(this._lContainer,n);r&&(fr(La(this._lContainer),n),ji(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=Sr(this._lContainer,n);return r&&fr(La(this._lContainer),n)!=null?new Kn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function gd(e){return e[yr]}function La(e){return e[yr]||(e[yr]=[])}function Hf(e,t){let n,r=t[e.index];return Qe(r)?n=r:(n=Mf(r,t,null,e),t[e.index]=n,Tc(t,n)),ev(n,t,e,r),new Vf(n,e,t)}function Jy(e,t){let n=e[X],r=n.createComment(""),o=Ke(t,e),i=n.parentNode(o);return _i(n,i,r,n.nextSibling(o),!1),r}var ev=rv,tv=()=>!1;function nv(e,t,n){return tv(e,t,n)}function rv(e,t,n,r){if(e[At])return;let o;n.type&8?o=Ge(r):o=Jy(t,n),e[At]=o}var rc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},oc=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++)Gf(t,n).matches!==null&&this.queries[n].setDirty()}},ic=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=uv(t):this.predicate=t}},sc=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)}},ac=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,ov(n,i)),this.matchTNodeWithReadOption(t,n,hi(n,t,i,!1,!1))}else r===Xn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,hi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===tr||o===Fr||o===Xn&&n.type&4)this.addMatch(n.index,-2);else{let i=hi(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 ov(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 iv(e,t){return e.type&11?er(e,t):e.type&4?jc(e,t):null}function sv(e,t,n,r){return n===-1?iv(t,e):n===-2?av(e,t,r):bi(e,e[I],n,t)}function av(e,t,n){if(n===tr)return er(t,e);if(n===Xn)return jc(t,e);if(n===Fr)return Hf(t,e)}function $f(e,t,n,r){let o=t[ot].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(sv(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function cc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=$f(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=ee;d<u.length;d++){let p=u[d];p[Nt]===p[le]&&cc(p[I],p,l,r)}if(u[sn]!==null){let d=u[sn];for(let p=0;p<d.length;p++){let f=d[p];cc(f[I],f,l,r)}}}}}return r}function Uf(e,t){return e[ot].queries[t].queryList}function cv(e,t,n){let r=new Ci((n&4)===4);return Mu(e,t,r,r.destroy),(t[ot]??=new oc).queries.push(new rc(r))-1}function lv(e,t,n){let r=Ce();return r.firstCreatePass&&(dv(r,new ic(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),cv(r,j(),t)}function uv(e){return e.split(",").map(t=>t.trim())}function dv(e,t,n){e.queries===null&&(e.queries=new sc),e.queries.track(new ac(t,n))}function Gf(e,t){return e.queries.getByIndex(t)}function fv(e,t){let n=e[I],r=Gf(n,t);return r.crossesNgTemplate?cc(n,e,t,[]):$f(n,e,r,t)}function zf(e,t,n){let r,o=sr(()=>{r._dirtyCounter();let i=hv(r,e);if(t&&i===void 0)throw new b(-951,!1);return i});return r=o[ge],r._dirtyCounter=F(0),r._flatValue=void 0,o}function Wf(e){return zf(!0,!1,e)}function qf(e){return zf(!0,!0,e)}function pv(e,t){let n=e[ge];n._lView=j(),n._queryIndex=t,n._queryList=Uf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function hv(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[M]&4)return t?void 0:Ze;let o=Uf(n,r),i=fv(n,r);return o.reset(i,zg),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var Ar=class{};var Rr=class extends Ar{injector;componentFactoryResolver=new nc(this);instance=null;constructor(t){super();let n=new Yt([...t.providers,{provide:Ar,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],t.parent||gr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Zf(e,t,n=null){return new Rr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var gv=(()=>{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=aa(!1,n.type),o=r.length>0?Zf([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=B({token:e,providedIn:"environment",factory:()=>new e(P(Me))})}return e})();function Te(e){return Cd(()=>{let t=Dv(e),n=re(Z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Dc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(gv).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||bt.Emulated,styles:e.styles||Ze,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&yn("NgStandalone"),Ev(n);let r=e.dependencies;return n.directiveDefs=md(r,mv),n.pipeDefs=md(r,gu),n.id=bv(n),n})}function mv(e){return tn(e)||sa(e)}function yv(e,t){if(e==null)return Jt;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=Li.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function vv(e){if(e==null)return Jt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Bc(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 Dv(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||Jt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ze,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:yv(e.inputs,t),outputs:vv(e.outputs),debugInfo:null}}function Ev(e){e.features?.forEach(t=>t(e))}function md(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 bv(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 Cv(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ki(e.mergedAttrs,e.attrs);let u=e.tView=wc(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Wn(e,!1);let c=_v(n,t,e,r);ci()&&Rc(n,t,c,e),Qn(c,t);let l=Mf(c,t,c,e);t[r+ue]=l,Tc(t,l),nv(l,e,t)}function xi(e,t,n,r,o,i,s,a,c,l,u){let d=n+ue,p;if(t.firstCreatePass){if(p=$i(t,d,4,s||null,a||null),l!=null){let f=st(t.consts,l);p.localNames=[];for(let y=0;y<f.length;y+=2)p.localNames.push(f[y],-1)}}else p=t.data[d];return Cv(p,e,t,n,r,o,i,c),l!=null&&Oc(e,p,u),p}var _v=wv;function wv(e,t,n,r){return li(!0),t[X].createComment("")}var Vc=new x("");function zi(e){return!!e&&typeof e.then=="function"}function Hc(e){return!!e&&typeof e.subscribe=="function"}var Yf=new x("");var $c=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=E(Yf,{optional:!0})??[];injector=E(ht);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Hn(this.injector,o);if(zi(i))n.push(i);else if(Hc(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=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qf=new x("");function Kf(){ws(()=>{let e="";throw new b(600,e)})}function Xf(e){return e.isBoundToModule}var Iv=10;var Lr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=E(at);afterRenderManager=E(cf);zonelessEnabled=E(br);rootEffectScheduler=E(_r);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Mt;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=E(Ot);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Be(n=>!n))}constructor(){E(Pr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=E(Me);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ht.NULL){return this._injector.get(de).run(()=>{W(10);let s=n instanceof Ui;if(!this._injector.get($c).done){let y="";throw new b(405,y)}let c;s?c=n:c=this._injector.get(Gi).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Xf(c)?void 0:this._injector.get(Ar),u=r||c.selector,d=c.create(o,[],u,l),p=d.location.nativeElement,f=d.injector.get(Vc,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),Ir(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),W(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){W(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(xc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new b(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(),W(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(gn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Iv;)W(14),this.synchronizeOnce(),W(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;_f(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(Qf,[]).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 b(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=B({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 xe(e,t,n,r){let o=j(),i=dn();if(ut(o,i,t)){let s=Ce(),a=ai();Jm(a,o,e,t,n,r)}return xe}var kT=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var lc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ja(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Tv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=ja(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=t[c],y=ja(s,p,c,f,n);if(y!==0){y<0&&e.updateValue(s,f),s--,c--;continue}let _=n(i,l),w=n(s,p),C=n(i,u);if(Object.is(C,w)){let he=n(c,f);Object.is(he,_)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new Si,o??=vd(e,i,s,n),uc(e,r,i,C))e.updateValue(i,u),i++,s++;else if(o.has(C))r.set(_,e.detach(i)),s--;else{let he=e.create(i,t[i]);e.attach(i,he),i++,s++}}for(;i<=c;)yd(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,p=ja(i,u,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new Si,o??=vd(e,i,s,n);let f=n(i,d);if(uc(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let y=n(i,u);r.set(y,e.detach(i)),s--}}}for(;!l.done;)yd(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function uc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function yd(e,t,n,r,o){if(uc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function vd(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Si=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function N(e,t,n,r,o,i,s,a){yn("NgControlFlow");let c=j(),l=Ce(),u=st(l.consts,i);return xi(c,l,e,t,n,r,o,u,256,s,a),Uc}function Uc(e,t,n,r,o,i,s,a){yn("NgControlFlow");let c=j(),l=Ce(),u=st(l.consts,i);return xi(c,l,e,t,n,r,o,u,512,s,a),Uc}function A(e,t){yn("NgControlFlow");let n=j(),r=dn(),o=n[r]!==ze?n[r]:-1,i=o!==-1?Ni(n,ue+o):void 0,s=0;if(ut(n,r,e)){let a=T(null);try{if(i!==void 0&&Sf(i,s),e!==-1){let c=ue+e,l=Ni(n,c),u=hc(n[I],c),d=Af(l,u,n),p=Vi(n,u,t,{dehydratedView:d});Hi(l,p,s,Mr(u,d))}}finally{T(a)}}else if(i!==void 0){let a=xf(i,s);a!==void 0&&(a[oe]=t)}}var dc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ee}};function Dn(e){return e}var fc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Se(e,t,n,r,o,i,s,a,c,l,u,d,p){yn("NgControlFlow");let f=j(),y=Ce(),_=c!==void 0,w=j(),C=a?s.bind(w[Ue][oe]):s,he=new fc(_,C);w[ue+e]=he,xi(f,y,e+1,t,n,r,o,st(y.consts,i),256),_&&xi(f,y,e+2,c,l,u,d,st(y.consts,p),512)}var pc=class extends lc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ee}at(t){return this.getLView(t)[oe].$implicit}attach(t,n){let r=n[$n];this.needsIndexUpdate||=t!==this.length,Hi(this.lContainer,n,t,Mr(this.templateTNode,r)),Mv(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,xv(this.lContainer,t),Sv(this.lContainer,t)}create(t,n){let r=Xa(this.lContainer,this.templateTNode.tView.ssrId),o=Vi(this.hostLView,this.templateTNode,new dc(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){ji(t[I],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[oe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[oe].$index=t}getLView(t){return Nv(this.lContainer,t)}};function Ne(e){let t=T(null),n=Dt();try{let r=j(),o=r[I],i=r[n],s=n+1,a=Ni(r,s);if(i.liveCollection===void 0){let l=hc(o,s);i.liveCollection=new pc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(Tv(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=dn(),u=c.length===0;if(ut(r,l,u)){let d=n+2,p=Ni(r,d);if(u){let f=hc(o,d),y=Af(p,f,r),_=Vi(r,f,void 0,{dehydratedView:y});Hi(p,_,0,Mr(f,y))}else o.firstUpdatePass&&_y(p),Sf(p,0)}}}finally{T(t)}}function Ni(e,t){return e[t]}function Mv(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n],o=r?r[on]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[gt];Mm(i,o),hn.delete(r),o.detachedLeaveAnimationFns=void 0}}function xv(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n],o=r?r[on]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Sv(e,t){return Sr(e,t)}function Nv(e,t){return xf(e,t)}function hc(e,t){return vr(e,t)}function et(e,t,n){let r=j(),o=dn();if(ut(r,o,t)){let i=Ce(),s=ai();qm(s,r,e,t,r[X],n)}return et}function gc(e,t,n,r,o){Pc(t,e,n,o?"class":"style",r)}function k(e,t,n,r){let o=j(),i=o[I],s=e+ue,a=i.firstCreatePass?Pf(s,o,2,t,Xm,Nu(),n,r):i.data[s];if(mf(a,o,e,t,Jf),ei(a)){let c=o[I];hf(c,o,a),Yd(c,a,o)}return r!=null&&Oc(o,a),k}function R(){let e=Ce(),t=Oe(),n=yf(t);return e.firstCreatePass&&Ff(e,n),Ca(n)&&_a(),ba(),n.classesWithoutHost!=null&&Ng(n)&&gc(e,n,j(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Ag(n)&&gc(e,n,j(),n.stylesWithoutHost,!1),R}function Pt(e,t,n,r){return k(e,t,n,r),R(),Pt}function g(e,t,n,r){let o=j(),i=o[I],s=e+ue,a=i.firstCreatePass?Ly(s,i,2,t,n,r):i.data[s];return mf(a,o,e,t,Jf),r!=null&&Oc(o,a),g}function m(){let e=Oe(),t=yf(e);return Ca(t)&&_a(),ba(),m}function Y(e,t,n,r){return g(e,t,n,r),m(),Y}var Jf=(e,t,n,r,o)=>(li(!0),Qd(t[X],r,Na()));function te(){return j()}function se(e,t,n){let r=j(),o=dn();if(ut(r,o,t)){let i=Ce(),s=ai();gf(s,r,e,t,r[X],n)}return se}var ui=void 0;function Av(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Rv=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],ui,[["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"]],ui,[["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}",ui,"{1} 'at' {0}",ui],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Av],Ba={};function Fe(e){let t=kv(e),n=Dd(t);if(n)return n;let r=t.split("-")[0];if(n=Dd(r),n)return n;if(r==="en")return Rv;throw new b(701,!1)}function Dd(e){if(!(e in Ba)){let t=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[e];return t!==void 0&&(Ba[e]=t),t}return Ba[e]}var ie=(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})(ie||{});function kv(e){return e.toLowerCase().replace(/_/g,"-")}var jr="en-US";var Ov=jr;function ep(e){typeof e=="string"&&(Ov=e.toLowerCase().replace(/_/g,"-"))}function ae(e,t,n){let r=j(),o=Ce(),i=Oe();return Pv(o,r,r[X],i,e,t,n),ae}function L(e,t,n){let r=j(),o=Ce(),i=Oe();return(i.type&3||n)&&Lf(i,o,r,n,r[X],e,t,mi(i,r,t)),L}function Pv(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=mi(r,t,i),Lf(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=mi(r,t,i),pd(r,t,p,f,o,c)}if(l&&l.length)for(let d of l)c??=mi(r,t,i),pd(r,t,d,o,o,c)}}function D(e=1){return Gu(e)}function Br(e,t,n,r){pv(e,lv(t,n,r))}function Vr(e=1){oi(Vu()+e)}function di(e,t){return e<<17|t<<2}function mn(e){return e>>17&32767}function Fv(e){return(e&2)==2}function Lv(e,t){return e&131071|t<<17}function mc(e){return e|2}function Jn(e){return(e&131068)>>2}function Va(e,t){return e&-131069|t<<2}function jv(e){return(e&1)===1}function yc(e){return e|1}function Bv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=mn(s),c=Jn(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Vn(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=mn(e[a+1]);e[r+1]=di(p,a),p!==0&&(e[p+1]=Va(e[p+1],r)),e[a+1]=Lv(e[a+1],r)}else e[r+1]=di(a,0),a!==0&&(e[a+1]=Va(e[a+1],r)),a=r;else e[r+1]=di(c,0),a===0?a=r:e[c+1]=Va(e[c+1],r),c=r;l&&(e[r+1]=mc(e[r+1])),Ed(e,u,r,!0),Ed(e,u,r,!1),Vv(t,u,e,r,i),s=di(a,c),i?t.classBindings=s:t.styleBindings=s}function Vv(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Vn(i,t)>=0&&(n[r+1]=yc(n[r+1]))}function Ed(e,t,n,r){let o=e[n+1],i=t===null,s=r?mn(o):Jn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Hv(c,t)&&(a=!0,e[s+1]=r?yc(l):mc(l)),s=r?mn(l):Jn(l)}a&&(e[n+1]=r?mc(o):yc(o))}function Hv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Vn(e,t)>=0:!1}var Je={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $v(e){return e.substring(Je.key,Je.keyEnd)}function Uv(e){return Gv(e),tp(e,np(e,0,Je.textEnd))}function tp(e,t){let n=Je.textEnd;return n===t?-1:(t=Je.keyEnd=zv(e,Je.key=t,n),np(e,t,n))}function Gv(e){Je.key=0,Je.keyEnd=0,Je.value=0,Je.valueEnd=0,Je.textEnd=e.length}function np(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function zv(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function fe(e,t,n){return rp(e,t,n,!1),fe}function ft(e,t){return rp(e,t,null,!0),ft}function En(e){qv(Jv,Wv,e,!0)}function Wv(e,t){for(let n=Uv(t);n>=0;n=tp(t,n))Qo(e,$v(t),!0)}function rp(e,t,n,r){let o=j(),i=Ce(),s=Ma(2);if(i.firstUpdatePass&&ip(i,e,s,r),t!==ze&&ut(o,s,t)){let a=i.data[Dt()];sp(i,a,o,o[X],e,o[s+1]=tD(t,n),r,s)}}function qv(e,t,n,r){let o=Ce(),i=Ma(2);o.firstUpdatePass&&ip(o,null,i,r);let s=j();if(n!==ze&&ut(s,i,n)){let a=o.data[Dt()];if(ap(a,r)&&!op(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Uo(c,n||"")),gc(o,a,s,n,r)}else eD(o,a,s,s[X],s[i+1],s[i+1]=Xv(e,t,n),r,i)}}function op(e,t){return t>=e.expandoStartIndex}function ip(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Dt()],s=op(e,n);ap(i,r)&&t===null&&!s&&(t=!1),t=Zv(o,i,t,r),Bv(o,i,t,n,s,r)}}function Zv(e,t,n,r){let o=Bu(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ha(null,e,t,n,r),n=kr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ha(o,e,t,n,r),i===null){let c=Yv(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ha(null,e,t,c[1],r),c=kr(c,t.attrs,r),Qv(e,t,r,c))}else i=Kv(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Yv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Jn(r)!==0)return e[mn(r)]}function Qv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[mn(o)]=r}function Kv(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=kr(r,s,n)}return kr(r,t.attrs,n)}function Ha(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=kr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function kr(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]),Qo(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Xv(e,t,n){if(n==null||n==="")return Ze;let r=[],o=Cc(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 Jv(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Qo(e,r,n)}function eD(e,t,n,r,o,i,s,a){o===ze&&(o=Ze);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,y=null,_;u===d?(c+=2,l+=2,p!==f&&(y=d,_=f)):d===null||u!==null&&u<d?(c+=2,y=u):(l+=2,y=d,_=f),y!==null&&sp(e,t,n,r,y,_,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function sp(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=jv(l)?bd(c,t,n,o,Jn(l),s):void 0;if(!Ai(u)){Ai(i)||Fv(l)&&(i=bd(c,null,n,o,a,s));let d=ha(Dt(),n);$m(r,s,d,o,i)}}function bd(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===ze&&(p=d?Ze:void 0);let f=d?Ko(p,r):u===r?p:void 0;if(l&&!Ai(f)&&(f=Ko(c,r)),Ai(f)&&(a=f,s))return a;let y=e[o+1];o=s?mn(y):Jn(y)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ko(c,r))}return a}function Ai(e){return e!==void 0}function tD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=xt(Cc(e)))),e}function ap(e,t){return(e.flags&(t?8:16))!==0}function v(e,t=""){let n=j(),r=Ce(),o=e+ue,i=r.firstCreatePass?$i(r,o,1,t,null):r.data[o],s=nD(r,n,i,t,e);n[o]=s,ci()&&Rc(r,n,s,i),Wn(i,!1)}var nD=(e,t,n,r,o)=>(li(!0),nm(t[X],r));function rD(e,t,n,r=""){return ut(e,dn(),n)?t+qo(n)+r:ze}function U(e){return ne("",e),U}function ne(e,t,n){let r=j(),o=rD(r,e,t,n);return o!==ze&&oD(r,Dt(),o),ne}function oD(e,t,n){let r=ha(t,e);rm(e[X],r,n)}function iD(e,t){let n=e[t];return n===ze?void 0:n}function sD(e,t,n,r,o,i,s){let a=t+n;return By(e,a,o,i)?jy(e,a+2,s?r.call(s,o,i):r(o,i)):iD(e,a+2)}function Hr(e,t){let n=Ce(),r,o=e+ue;n.firstCreatePass?(r=aD(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=Zt(r.type,!0)),s,a=Ie(vn);try{let c=Ei(!1),l=i();return Ei(c),ga(n,j(),o,l),l}finally{Ie(a)}}function aD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function $r(e,t,n,r){let o=e+ue,i=j(),s=_u(i,o);return cD(i,o)?sD(i,Ou(),t,s.transform,n,r,s):s.transform(n,r)}function cD(e,t){return e[I].data[t].pure}var lD=(()=>{class e{zone=E(de);changeDetectionScheduler=E(rt);applicationRef=E(Lr);applicationErrorHandler=E(at);_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=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cp=new x("",{factory:()=>!1});function Gc({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new de(re(Z({},Wc()),{scheduleInRootZone:n})),[{provide:de,useFactory:e},{provide:en,multi:!0,useFactory:()=>{let r=E(lD,{optional:!0});return()=>r.initialize()}},{provide:en,multi:!0,useFactory:()=>{let r=E(uD);return()=>{r.initialize()}}},t===!0?{provide:Ra,useValue:!0}:[],{provide:ka,useValue:n??of},{provide:at,useFactory:()=>{let r=E(de),o=E(Me),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Ve),i.handleError(s))})}}}]}function zc(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Gc({ngZoneFactory:()=>{let o=Wc(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&yn("NgZone_CoalesceEvent"),new de(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return pr([{provide:cp,useValue:!0},{provide:br,useValue:!1},r])}function Wc(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var uD=(()=>{class e{subscription=new we;initialized=!1;zone=E(de);pendingTasks=E(Ot);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(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var lp=(()=>{class e{applicationErrorHandler=E(at);appRef=E(Lr);taskService=E(Ot);ngZone=E(de);zonelessEnabled=E(br);tracing=E(Pr,{optional:!0});disableScheduling=E(Ra,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new we;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(wi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(E(ka,{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 Ii||!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}default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?rd:sf;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(wi+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,rd(()=>{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=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dD(){return typeof $localize<"u"&&$localize.locale||jr}var Ur=new x("",{providedIn:"root",factory:()=>E(Ur,{optional:!0,skipSelf:!0})||dD()});var Wi=class{destroyed=!1;listeners=null;errorHandler=E(Ve,{optional:!0});destroyRef=E(kt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new b(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(Qt(953,!1));return}if(this.listeners===null)return;let n=T(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{T(n)}}};function Q(e,t){return sr(e,t?.equal)}var qc=class{[ge];constructor(t){this[ge]=t}destroy(){this[ge].destroy()}};function Gr(e,t){let n=t?.injector??E(ht),r=t?.manualCleanup!==!0?n.get(kt):null,o,i=n.get(Er,null,{optional:!0}),s=n.get(rt);return i!==null?(o=hD(i.view,s,e),r instanceof dr&&r._lView===i.view&&(r=null)):o=gD(e,n.get(_r),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new qc(o)}var up=re(Z({},ru),{cleanupFns:void 0,zone:null,onDestroyFn:fn,run(){let e=qn(!1);try{ou(this)}finally{qn(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=T(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],T(e)}}}),fD=re(Z({},up),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){$t(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),pD=re(Z({},up),{consumerMarkedDirty(){this.view[M]|=8192,un(this.view),this.notifier.notify(13)},destroy(){$t(this),this.onDestroyFn(),this.cleanup(),this.view[yt]?.delete(this)}});function hD(e,t,n){let r=Object.create(pD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=dp(r,n),e[yt]??=new Set,e[yt].add(r),r.consumerMarkedDirty(r),r}function gD(e,t,n){let r=Object.create(fD);return r.fn=dp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function dp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}var hp=Symbol("InputSignalNode#UNSET"),ND=re(Z({},vo),{transformFn:void 0,applyValueToInputSignal(e,t){kn(e,t)}});function gp(e,t){let n=Object.create(ND);n.value=e,n.transformFn=t?.transform;function r(){if(Sn(n),n.value===hp){let o=null;throw new b(-950,o)}return n.value}return r[ge]=n,r}var AD=new x("");AD.__NG_ELEMENT_ID__=e=>{let t=Oe();if(t===null)throw new b(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new b(204,!1)};function pe(e){return new Wi}function fp(e,t){return gp(e,t)}function RD(e){return gp(hp,e)}var J=(fp.required=RD,fp);function pp(e,t){return Wf(t)}function kD(e,t){return qf(t)}var Zi=(pp.required=kD,pp);var Zc=new x(""),OD=new x("");function zr(e){return!e.moduleRef}function PD(e){let t=zr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(de);return n.run(()=>{zr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(at),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),zr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Zc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Zc);s.add(i),e.moduleRef.onDestroy(()=>{Ir(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return LD(r,n,()=>{let i=t.get(Ot),s=i.add(),a=t.get($c);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Ur,jr);if(ep(c||jr),!t.get(OD,!0))return zr(e)?t.get(Lr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(zr(e)){let u=t.get(Lr);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return FD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var FD;function LD(e,t,n){try{let r=n();return zi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var qi=null;function jD(e=[],t){return ht.create({name:t,providers:[{provide:hr,useValue:"platform"},{provide:Zc,useValue:new Set([()=>qi=null])},...e]})}function BD(e=[]){if(qi)return qi;let t=jD(e);return qi=t,Kf(),VD(t),t}function VD(e){let t=e.get(Pi,null);Hn(e,()=>{t?.forEach(n=>n())})}function mp(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;W(8);try{let i=o?.injector??BD(r),s=[Gc({}),{provide:rt,useExisting:lp},qu,...n||[]],a=new Rr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return PD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{W(9)}}var yp=null;function qr(){return yp}function Qc(e){yp??=e}var Wr=class{};var _e=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(_e||{}),G=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(G||{}),Ae=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ae||{}),_t={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 Dp(e){return Fe(e)[ie.LocaleId]}function Ep(e,t,n){let r=Fe(e),o=[r[ie.DayPeriodsFormat],r[ie.DayPeriodsStandalone]],i=We(o,t);return We(i,n)}function bp(e,t,n){let r=Fe(e),o=[r[ie.DaysFormat],r[ie.DaysStandalone]],i=We(o,t);return We(i,n)}function Cp(e,t,n){let r=Fe(e),o=[r[ie.MonthsFormat],r[ie.MonthsStandalone]],i=We(o,t);return We(i,n)}function _p(e,t){let r=Fe(e)[ie.Eras];return We(r,t)}function Zr(e,t){let n=Fe(e);return We(n[ie.DateFormat],t)}function Yr(e,t){let n=Fe(e);return We(n[ie.TimeFormat],t)}function Qr(e,t){let r=Fe(e)[ie.DateTimeFormat];return We(r,t)}function Kr(e,t){let n=Fe(e),r=n[ie.NumberSymbols][t];if(typeof r>"u"){if(t===_t.CurrencyDecimal)return n[ie.NumberSymbols][_t.Decimal];if(t===_t.CurrencyGroup)return n[ie.NumberSymbols][_t.Group]}return r}function wp(e){if(!e[ie.ExtraData])throw new b(2303,!1)}function Ip(e){let t=Fe(e);return wp(t),(t[ie.ExtraData][2]||[]).map(r=>typeof r=="string"?Kc(r):[Kc(r[0]),Kc(r[1])])}function Tp(e,t,n){let r=Fe(e);wp(r);let o=[r[ie.ExtraData][0],r[ie.ExtraData][1]],i=We(o,t)||[];return We(i,n)||[]}function We(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new b(2304,!1)}function Kc(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var HD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Yi={},$D=/((?:[^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]*)/,UD=256;function Mp(e,t,n,r){let o=JD(e);GD(t),t=Ct(n,t)||t;let s=[],a;for(;t;)if(a=$D.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Sp(r,c),o=XD(o,r));let l="";return s.forEach(u=>{let d=QD(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function GD(e){if(e.length>UD)throw new b(2300,!1)}function es(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Ct(e,t){let n=Dp(e);if(Yi[n]??={},Yi[n][t])return Yi[n][t];let r="";switch(t){case"shortDate":r=Zr(e,Ae.Short);break;case"mediumDate":r=Zr(e,Ae.Medium);break;case"longDate":r=Zr(e,Ae.Long);break;case"fullDate":r=Zr(e,Ae.Full);break;case"shortTime":r=Yr(e,Ae.Short);break;case"mediumTime":r=Yr(e,Ae.Medium);break;case"longTime":r=Yr(e,Ae.Long);break;case"fullTime":r=Yr(e,Ae.Full);break;case"short":let o=Ct(e,"shortTime"),i=Ct(e,"shortDate");r=Qi(Qr(e,Ae.Short),[o,i]);break;case"medium":let s=Ct(e,"mediumTime"),a=Ct(e,"mediumDate");r=Qi(Qr(e,Ae.Medium),[s,a]);break;case"long":let c=Ct(e,"longTime"),l=Ct(e,"longDate");r=Qi(Qr(e,Ae.Long),[c,l]);break;case"full":let u=Ct(e,"fullTime"),d=Ct(e,"fullDate");r=Qi(Qr(e,Ae.Full),[u,d]);break}return r&&(Yi[n][t]=r),r}function Qi(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function tt(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 zD(e,t){return tt(e,3).substring(0,t)}function ce(e,t,n=0,r=!1,o=!1){return function(i,s){let a=WD(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return zD(a,t);let c=Kr(s,_t.MinusSign);return tt(a,t,c,r,o)}}function WD(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 b(2301,!1)}}function q(e,t,n=_e.Format,r=!1){return function(o,i){return qD(o,i,e,t,n,r)}}function qD(e,t,n,r,o,i){switch(n){case 2:return Cp(t,o,r)[e.getMonth()];case 1:return bp(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Ip(t),u=Tp(t,o,r),d=l.findIndex(p=>{if(Array.isArray(p)){let[f,y]=p,_=s>=f.hours&&a>=f.minutes,w=s<y.hours||s===y.hours&&a<y.minutes;if(f.hours<y.hours){if(_&&w)return!0}else if(_||w)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return Ep(t,o,r)[s<12?0:1];case 3:return _p(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new b(2302,!1)}}function Ki(e){return function(t,n,r){let o=-1*r,i=Kr(n,_t.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+tt(s,2,i)+tt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+tt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+tt(s,2,i)+":"+tt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+tt(s,2,i)+":"+tt(Math.abs(o%60),2,i);default:throw new b(2310,!1)}}}var ZD=0,Ji=4;function YD(e){let t=es(e,ZD,1).getDay();return es(e,0,1+(t<=Ji?Ji:Ji+7)-t)}function xp(e){let t=e.getDay(),n=t===0?-3:Ji-t;return es(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Xc(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=xp(n),s=YD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return tt(o,e,Kr(r,_t.MinusSign))}}function Xi(e,t=!1){return function(n,r){let i=xp(n).getFullYear();return tt(i,e,Kr(r,_t.MinusSign),t)}}var Jc={};function QD(e){if(Jc[e])return Jc[e];let t;switch(e){case"G":case"GG":case"GGG":t=q(3,G.Abbreviated);break;case"GGGG":t=q(3,G.Wide);break;case"GGGGG":t=q(3,G.Narrow);break;case"y":t=ce(0,1,0,!1,!0);break;case"yy":t=ce(0,2,0,!0,!0);break;case"yyy":t=ce(0,3,0,!1,!0);break;case"yyyy":t=ce(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=ce(1,1,1);break;case"MM":case"LL":t=ce(1,2,1);break;case"MMM":t=q(2,G.Abbreviated);break;case"MMMM":t=q(2,G.Wide);break;case"MMMMM":t=q(2,G.Narrow);break;case"LLL":t=q(2,G.Abbreviated,_e.Standalone);break;case"LLLL":t=q(2,G.Wide,_e.Standalone);break;case"LLLLL":t=q(2,G.Narrow,_e.Standalone);break;case"w":t=Xc(1);break;case"ww":t=Xc(2);break;case"W":t=Xc(1,!0);break;case"d":t=ce(2,1);break;case"dd":t=ce(2,2);break;case"c":case"cc":t=ce(7,1);break;case"ccc":t=q(1,G.Abbreviated,_e.Standalone);break;case"cccc":t=q(1,G.Wide,_e.Standalone);break;case"ccccc":t=q(1,G.Narrow,_e.Standalone);break;case"cccccc":t=q(1,G.Short,_e.Standalone);break;case"E":case"EE":case"EEE":t=q(1,G.Abbreviated);break;case"EEEE":t=q(1,G.Wide);break;case"EEEEE":t=q(1,G.Narrow);break;case"EEEEEE":t=q(1,G.Short);break;case"a":case"aa":case"aaa":t=q(0,G.Abbreviated);break;case"aaaa":t=q(0,G.Wide);break;case"aaaaa":t=q(0,G.Narrow);break;case"b":case"bb":case"bbb":t=q(0,G.Abbreviated,_e.Standalone,!0);break;case"bbbb":t=q(0,G.Wide,_e.Standalone,!0);break;case"bbbbb":t=q(0,G.Narrow,_e.Standalone,!0);break;case"B":case"BB":case"BBB":t=q(0,G.Abbreviated,_e.Format,!0);break;case"BBBB":t=q(0,G.Wide,_e.Format,!0);break;case"BBBBB":t=q(0,G.Narrow,_e.Format,!0);break;case"h":t=ce(3,1,-12);break;case"hh":t=ce(3,2,-12);break;case"H":t=ce(3,1);break;case"HH":t=ce(3,2);break;case"m":t=ce(4,1);break;case"mm":t=ce(4,2);break;case"s":t=ce(5,1);break;case"ss":t=ce(5,2);break;case"S":t=ce(6,1);break;case"SS":t=ce(6,2);break;case"SSS":t=ce(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Ki(0);break;case"ZZZZZ":t=Ki(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ki(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ki(2);break;default:return null}return Jc[e]=t,t}function Sp(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function KD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function XD(e,t,n){let o=e.getTimezoneOffset(),i=Sp(t,o);return KD(e,-1*(i-o))}function JD(e){if(vp(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 es(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(HD))return eE(r)}let t=new Date(e);if(!vp(t))throw new b(2311,!1);return t}function eE(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),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function vp(e){return e instanceof Date&&!isNaN(e.valueOf())}function tE(e,t){return new b(2100,!1)}var nE="mediumDate",Np=new x(""),Ap=new x(""),Xr=(()=>{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??nE,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Mp(n,s,i||this.locale,a)}catch(s){throw tE(e,s.message)}}static \u0275fac=function(r){return new(r||e)(vn(Ur,16),vn(Np,24),vn(Ap,24))};static \u0275pipe=Bc({name:"date",type:e,pure:!0})}return e})();function Jr(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 Cn=class{};var Rp="browser";var eo=class{_doc;constructor(t){this._doc=t}manager},ts=(()=>{class e extends eo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(P(Pe))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),rs=new x(""),ol=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof ts));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof ts);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(P(rs),P(de))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),el="ng-app-id";function kp(e){for(let t of e)t.remove()}function Op(e,t){let n=t.createElement("style");return n.textContent=e,n}function iE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${el}="${t}"],link[${el}="${t}"]`);if(o)for(let i of o)i.removeAttribute(el),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function nl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var il=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,iE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Op);r?.forEach(o=>this.addUsage(o,this.external,nl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(kp(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])kp(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Op(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,nl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(P(Pe),P(Oi),P(Fi,8),P(Or))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),tl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},sl=/%COMP%/g;var Fp="%COMP%",sE=`_nghost-${Fp}`,aE=`_ngcontent-${Fp}`,cE=!0,lE=new x("",{providedIn:"root",factory:()=>cE});function uE(e){return aE.replace(sl,e)}function dE(e){return sE.replace(sl,e)}function Lp(e,t){return t.map(n=>n.replace(sl,e))}var al=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.platformIsServer=!1,this.defaultRenderer=new to(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof ns?o.applyToHost(n):o instanceof no&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case bt.Emulated:i=new ns(c,l,r,this.appId,u,s,a,d,p);break;case bt.ShadowDom:return new rl(c,l,n,r,s,a,this.nonce,d,p);default:i=new no(c,l,r,u,s,a,d,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(P(ol),P(il),P(Oi),P(lE),P(Pe),P(de),P(Fi),P(Pr,8))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),to=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(tl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Pp(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Pp(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new b(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=tl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=tl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(lt.DashCase|lt.Important)?t.style.setProperty(n,r,o<.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r<.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=qr().getGlobalEventTarget(this.doc,t),!t))throw new b(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Pp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var rl=class extends to{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=Lp(o.id,u);for(let p of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=p,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let p of d){let f=nl(p,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},no=class extends to{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?Lp(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&hn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ns=class extends no{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=uE(u),this.hostAttr=dE(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var os=class e extends Wr{supportsDOMEvents=!0;static makeCurrent(){Qc(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=fE();return n==null?null:pE(n)}resetBaseElement(){ro=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Jr(document.cookie,t)}},ro=null;function fE(){return ro=ro||document.head.querySelector("base"),ro?ro.getAttribute("href"):null}function pE(e){return new URL(e,document.baseURI).pathname}var hE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),jp=["alt","control","meta","shift"],gE={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},mE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bp=(()=>{class e extends eo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qr().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),jp.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=gE[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),jp.forEach(s=>{if(s!==o){let a=mE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(P(Pe))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function cl(e,t,n){let r=Z({rootComponent:e,platformRef:n?.platformRef},yE(t));return mp(r)}function yE(e){return{appProviders:[...CE,...e?.providers??[]],platformProviders:bE}}function vE(){os.makeCurrent()}function DE(){return new Ve}function EE(){return Ec(document),document}var bE=[{provide:Or,useValue:Rp},{provide:Pi,useValue:vE,multi:!0},{provide:Pe,useFactory:EE}];var CE=[{provide:hr,useValue:"root"},{provide:Ve,useFactory:DE},{provide:rs,useClass:ts,multi:!0,deps:[Pe]},{provide:rs,useClass:Bp,multi:!0,deps:[Pe]},al,il,ol,{provide:gn,useExisting:al},{provide:Cn,useClass:hE},[]];var wn=class{},oo=class{},Ft=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();for(let[n,r]of t.headers.entries())this.headers.set(n,r),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)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}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 Vp(t)}encodeValue(t){return Vp(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function _E(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 wE=/%(\d[a-f0-9])/gi,IE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vp(e){return encodeURIComponent(e).replace(wE,(t,n)=>IE[n]??t)}function is(e){return`${e}`}var wt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ss,t.fromString){if(t.fromObject)throw new b(2805,!1);this.map=_E(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(is):[is(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(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(is(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(is(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 TE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Hp(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function $p(e){return typeof Blob<"u"&&e instanceof Blob}function Up(e){return typeof FormData<"u"&&e instanceof FormData}function ME(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Gp="Content-Type",zp="Accept",Wp="X-Request-URL",qp="text/plain",Zp="application/json",xE=`${Zp}, ${qp}, */*`,nr=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(TE(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 b(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!==void 0&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new Ft,this.context??=new as,!this.params)this.params=new wt,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"||Hp(this.body)||$p(this.body)||Up(this.body)||ME(this.body)?this.body:this.body instanceof wt?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||Up(this.body)?null:$p(this.body)?this.body.type||null:Hp(this.body)?null:typeof this.body=="string"?qp:this.body instanceof wt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Zp:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,y=t.timeout??this.timeout,_=t.body!==void 0?t.body:this.body,w=t.withCredentials??this.withCredentials,C=t.reportProgress??this.reportProgress,he=t.headers||this.headers,Tn=t.params||this.params,ye=t.context??this.context;return t.setHeaders!==void 0&&(he=Object.keys(t.setHeaders).reduce((jt,Bt)=>jt.set(Bt,t.setHeaders[Bt]),he)),t.setParams&&(Tn=Object.keys(t.setParams).reduce((jt,Bt)=>jt.set(Bt,t.setParams[Bt]),Tn)),new e(n,r,_,{params:Tn,headers:he,context:ye,reportProgress:C,responseType:o,withCredentials:w,transferCache:f,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:l,credentials:u,referrer:d,integrity:p})}},_n=(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})(_n||{}),or=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Ft,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}},cs=class e extends or{constructor(t={}){super(t)}type=_n.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})}},io=class e extends or{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=_n.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})}},rr=class extends or{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}},SE=200,NE=204;function ll(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 us=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof nr)i=n;else{let c;o.headers instanceof Ft?c=o.headers:c=new Ft(o.headers);let l;o.params&&(o.params instanceof wt?l=o.params:l=new wt({fromObject:o.params})),i=new nr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let s=jn(i).pipe(Fs(c=>this.handler.handle(c)));if(n instanceof nr||o.observe==="events")return s;let a=s.pipe(Ps(c=>c instanceof io));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new b(2806,!1);return c.body}));case"blob":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new b(2807,!1);return c.body}));case"text":return a.pipe(Be(c=>{if(c.body!==null&&typeof c.body!="string")throw new b(2808,!1);return c.body}));default:return a.pipe(Be(c=>c.body))}case"response":return a;default:throw new b(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 wt().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,ll(o,r))}post(n,r,o={}){return this.request("POST",n,ll(o,r))}put(n,r,o={}){return this.request("PUT",n,ll(o,r))}static \u0275fac=function(r){return new(r||e)(P(wn))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var AE=new x("");function RE(e,t){return t(e)}function kE(e,t,n){return(r,o)=>Hn(n,()=>t(r,i=>e(i,o)))}var dl=new x(""),Yp=new x(""),Qp=new x("",{providedIn:"root",factory:()=>!0});var ls=(()=>{class e extends wn{backend;injector;chain=null;pendingTasks=E(Cr);contributeToStability=E(Qp);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=this.injector.get(wn,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get(Yp,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(dl),...i]));this.chain=s.reduceRight((a,c)=>kE(a,c,this.injector),RE)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ls(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(P(oo),P(Me))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var OE=/^\)\]\}',?\n/,PE=RegExp(`^${Wp}:`,"m");function FE(e){return"responseURL"in e&&e.responseURL?e.responseURL:PE.test(e.getAllResponseHeaders())?e.getResponseHeader(Wp):null}var ul=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return jn(null).pipe(js(()=>new K(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((w,C)=>s.setRequestHeader(w,C.join(","))),n.headers.has(zp)||s.setRequestHeader(zp,xE),!n.headers.has(Gp)){let w=n.detectContentTypeHeader();w!==null&&s.setRequestHeader(Gp,w)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let w=n.responseType.toLowerCase();s.responseType=w!=="json"?w:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=s.statusText||"OK",C=new Ft(s.getAllResponseHeaders()),he=FE(s)||n.url;return c=new cs({headers:C,status:s.status,statusText:w,url:he}),c},u=()=>{let{headers:w,status:C,statusText:he,url:Tn}=l(),ye=null;C!==NE&&(ye=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=ye?SE:0);let jt=C>=200&&C<300;if(n.responseType==="json"&&typeof ye=="string"){let Bt=ye;ye=ye.replace(OE,"");try{ye=ye!==""?JSON.parse(ye):null}catch(lh){ye=Bt,jt&&(jt=!1,ye={error:lh,text:ye})}}jt?(i.next(new io({body:ye,headers:w,status:C,statusText:he,url:Tn||void 0})),i.complete()):i.error(new rr({error:ye,headers:w,status:C,statusText:he,url:Tn||void 0}))},d=w=>{let{url:C}=l(),he=new rr({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(he)},p=d;n.timeout&&(p=w=>{let{url:C}=l(),he=new rr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(he)});let f=!1,y=w=>{f||(i.next(l()),f=!0);let C={type:_n.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(C.total=w.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)},_=w=>{let C={type:_n.UploadProgress,loaded:w.loaded};w.lengthComputable&&(C.total=w.total),i.next(C)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",y),a!==null&&s.upload&&s.upload.addEventListener("progress",_)),s.send(a),i.next({type:_n.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",y),a!==null&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(P(Cn))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),Kp=new x(""),LE="XSRF-TOKEN",jE=new x("",{providedIn:"root",factory:()=>LE}),BE="X-XSRF-TOKEN",VE=new x("",{providedIn:"root",factory:()=>BE}),so=class{},HE=(()=>{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=Jr(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(P(Pe),P(jE))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),$E=/^(?:https?:)?\/\//i;function UE(e,t){if(!E(Kp)||e.method==="GET"||e.method==="HEAD"||$E.test(e.url))return t(e);let n=E(so).getToken(),r=E(VE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var fl=(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})(fl||{});function GE(e,t){return{\u0275kind:e,\u0275providers:t}}function pl(...e){let t=[us,ul,ls,{provide:wn,useExisting:ls},{provide:oo,useFactory:()=>E(AE,{optional:!0})??E(ul)},{provide:dl,useValue:UE,multi:!0},{provide:Kp,useValue:!0},{provide:so,useClass:HE}];for(let n of e)t.push(...n.\u0275providers);return pr(t)}function hl(e){return GE(fl.Interceptors,e.map(t=>({provide:dl,useValue:t,multi:!0})))}var Xp="guitoToken";function Jp(){return new URLSearchParams(window.location.search).get(Xp)??""}var eh=(e,t)=>{let n=Jp();return!n||!e.url.startsWith("/api")?t(e):t(e.clone({setHeaders:{"X-Guito-Token":n}}))};function th(e){let t=new URL(e,window.location.origin),n=Jp();return n&&t.searchParams.set(Xp,n),t.toString()}var nh={providers:[zc({eventCoalescing:!0}),pl(hl([eh]))]};var It="__working__";var Lt=class e{http=E(us);base="/api";getRepoInfo(){return this.http.get(`${this.base}/repo`)}getCommits(){return this.http.get(`${this.base}/commits`)}getAllBranches(){return this.http.get(`${this.base}/branches/all`)}getCommitDiff(t){return this.http.post(`${this.base}/commit/diff`,{hash:t})}getWorkingChanges(){return this.http.get(`${this.base}/working-changes`)}getFileContent(t,n){return this.http.post(`${this.base}/file-content`,{path:t,ref:n})}fetch(){return this.http.get(`${this.base}/fetch`)}pull(t=!1){return this.http.post(`${this.base}/pull`,{rebase:t})}push(){return this.http.post(`${this.base}/push`,{})}sync(){return this.http.post(`${this.base}/sync`,{})}checkout(t){return this.http.post(`${this.base}/checkout`,{ref:t})}revert(t){return this.http.post(`${this.base}/revert`,{commit:t})}cherryPick(t){return this.http.post(`${this.base}/cherry-pick`,{commit:t})}dropCommit(t){return this.http.post(`${this.base}/commit/drop`,{commit:t})}resetToCommit(t){return this.http.post(`${this.base}/reset-commit`,{commit:t})}commit(t,n){return this.http.post(`${this.base}/commit`,{message:t,description:n})}stage(t){return this.http.post(`${this.base}/stage`,{files:t})}unstage(t){return this.http.post(`${this.base}/unstage`,{files:t})}discard(t){return this.http.post(`${this.base}/discard`,{files:t})}resetWorking(){return this.http.post(`${this.base}/reset`,{})}cleanUntracked(){return this.http.post(`${this.base}/clean`,{})}stashSave(t){return this.http.post(`${this.base}/stash/save`,{message:t})}createBranch(t,n){return this.http.post(`${this.base}/branch/create`,{name:t,startPoint:n})}deleteBranch(t,n=!1){return this.http.post(`${this.base}/branch/delete`,{name:t,force:n})}deleteRemoteBranch(t,n){return this.http.post(`${this.base}/branch/delete-remote`,{remote:t,branch:n})}renameBranch(t,n){return this.http.post(`${this.base}/branch/rename`,{oldName:t,newName:n})}merge(t){return this.http.post(`${this.base}/merge`,{branch:t})}rebase(t){return this.http.post(`${this.base}/rebase`,{branch:t})}createTag(t,n){return this.http.post(`${this.base}/tag/create`,{name:t,commit:n})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})};function oh(e){let t=[],n=[],r=o=>{let i=t.indexOf(o);return i===-1&&(i=t.indexOf(null),i===-1&&(t.push(null),i=t.length-1),t[i]=o),i};for(let o of e){let i=o.parents??[],s=t.map((c,l)=>c===o.hash?l:-1).filter(c=>c!==-1),a;if(s.length>0){a=s[0];for(let c=1;c<s.length;c++)t[s[c]]=null}else a=r(o.hash);t[a]=i[0]??null;for(let c=1;c<i.length;c++)r(i[c]);n.push({commit:o,lane:a,parents:i})}return n}var rh=["#3794ff","#4ec9b0","#d7ba7d","#c586c0","#89d185","#ce9178","#d16969","#569cd6","#b5cea8","#dcdcaa"];function ao(e){return rh[Math.abs(e)%rh.length]}function ih(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}var ds=class e{loading=null;load(){return this.loading||(this.loading=new Promise((t,n)=>{let r=window;if(r.monaco){t(r.monaco);return}let o=document.createElement("script");o.src="vs/loader.js",o.async=!0,o.onload=()=>{let i=r.require;if(!i){n(new Error("Monaco AMD loader not found."));return}i.config({paths:{vs:"vs"}}),i(["vs/editor/editor.main"],()=>{this.applyTheme(r.monaco),t(r.monaco)})},o.onerror=()=>{this.loading=null,n(new Error("Failed to load the Monaco editor."))},document.head.appendChild(o)})),this.loading}applyTheme(t){t.editor.defineTheme("guito",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#1e1e1e","editor.foreground":"#cccccc","editorGutter.background":"#1e1e1e","editorLineNumber.foreground":"#5a5a5a","editorLineNumber.activeForeground":"#cccccc","diffEditor.insertedTextBackground":"#89d18526","diffEditor.removedTextBackground":"#f4877126","diffEditor.insertedLineBackground":"#89d1851a","diffEditor.removedLineBackground":"#f487711a","scrollbarSlider.background":"#4a4a4a80","scrollbarSlider.hoverBackground":"#5a5a5a99","editorWidget.background":"#232323","editorWidget.border":"#3c3c3c","editorSuggestWidget.background":"#232323"}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})};var zE=["host"];function WE(e,t){if(e&1&&(g(0,"span",6),v(1),m()),e&2){let n=D();h(),ne("+",n.file().additions)}}function qE(e,t){if(e&1&&(g(0,"span",7),v(1),m()),e&2){let n=D();h(),ne("\u2212",n.file().deletions)}}function ZE(e,t){e&1&&(z(),Y(0,"line",11))}function YE(e,t){e&1&&(z(),Y(0,"line",12))}function QE(e,t){e&1&&(g(0,"div",18),v(1,"Loading diff\u2026"),m())}function KE(e,t){if(e&1&&(g(0,"div",19),v(1),m()),e&2){let n=D();h(),U(n.error())}}function XE(e,t){e&1&&(g(0,"div",18),v(1,"Binary file not shown."),m())}var JE=0,fs=class e{git=E(Lt);monacoService=E(ds);file=J.required();originalRef=J.required();modifiedRef=J.required();closed=pe();host=Zi.required("host");loading=F(!0);error=F("");binary=F(!1);sideBySide=F(!0);editor=null;models=[];onEscape(){this.closed.emit()}ngAfterViewInit(){return Mn(this,null,function*(){this.loading.set(!0),this.error.set(""),this.binary.set(!1);try{let t=yield this.monacoService.load(),n=this.file(),r=n.status==="added"&&!n.oldPath?"EMPTY":this.originalRef(),[o,i]=yield Promise.all([Fo(this.git.getFileContent(n.oldPath||n.path,r)),Fo(this.git.getFileContent(n.path,this.modifiedRef()))]);if(o.binary||i.binary){this.binary.set(!0),this.loading.set(!1);return}let s=++JE,a=t.editor.createModel(o.content,void 0,t.Uri.parse(`inmemory://diff/${s}/original/${n.oldPath||n.path}`)),c=t.editor.createModel(i.content,void 0,t.Uri.parse(`inmemory://diff/${s}/modified/${n.path}`));this.models=[a,c],this.editor=t.editor.createDiffEditor(this.host().nativeElement,{theme:"guito",readOnly:!0,originalEditable:!1,renderSideBySide:this.sideBySide(),ignoreTrimWhitespace:!1,automaticLayout:!0,fontSize:12,fontFamily:"ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace",minimap:{enabled:!1},scrollBeyondLastLine:!1,renderOverviewRuler:!1,hideUnchangedRegions:{enabled:!0,contextLineCount:3},scrollbar:{verticalScrollbarSize:10,horizontalScrollbarSize:10},padding:{top:8}}),this.editor.setModel({original:a,modified:c}),this.loading.set(!1)}catch{this.error.set("Failed to load the diff."),this.loading.set(!1)}})}ngOnDestroy(){this.editor?.dispose(),this.editor=null;for(let t of this.models)t.dispose();this.models=[]}toggleLayout(){this.sideBySide.update(t=>!t),this.editor?.updateOptions({renderSideBySide:this.sideBySide()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-diff-dialog"]],viewQuery:function(n,r){n&1&&Br(r.host,zE,5),n&2&&Vr()},hostBindings:function(n,r){n&1&&ae("keydown.escape",function(){return r.onEscape()},dt)},inputs:{file:[1,"file"],originalRef:[1,"originalRef"],modifiedRef:[1,"modifiedRef"]},outputs:{closed:"closed"},decls:25,vars:10,consts:[["host",""],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"dialog"],[1,"dialog-head"],[1,"path",3,"title"],[1,"counts"],[1,"additions"],[1,"deletions"],["type","button","title","Toggle diff layout",1,"icon-btn",3,"click"],["viewBox","0 0 24 24","aria-hidden","true"],["x","3","y","4","width","18","height","16","rx","2"],["x1","12","y1","4","x2","12","y2","20"],["x1","3","y1","12","x2","21","y2","12"],["type","button","title","Close","aria-label","Close diff",1,"icon-btn",3,"click"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"dialog-body"],[1,"editor-host"],[1,"state"],[1,"state","state-error"]],template:function(n,r){if(n&1){let o=te();g(0,"div",1),L("click",function(){return V(o),H(r.closed.emit())}),m(),g(1,"div",2)(2,"header",3)(3,"span"),v(4),m(),g(5,"span",4),v(6),m(),g(7,"span",5),N(8,WE,2,1,"span",6),N(9,qE,2,1,"span",7),m(),g(10,"button",8),L("click",function(){return V(o),H(r.toggleLayout())}),z(),g(11,"svg",9),Y(12,"rect",10),N(13,ZE,1,0,":svg:line",11)(14,YE,1,0,":svg:line",12),m()(),me(),g(15,"button",13),L("click",function(){return V(o),H(r.closed.emit())}),z(),g(16,"svg",9),Y(17,"line",14)(18,"line",15),m()()(),me(),g(19,"div",16),Y(20,"div",17,0),N(22,QE,2,0,"div",18)(23,KE,2,1,"div",19)(24,XE,2,0,"div",18),m()()}n&2&&(h(3),En("status status-"+r.file().status),h(),U(r.file().status),h(),se("title",r.file().path),h(),U(r.file().path),h(2),A(r.file().additions>0?8:-1),h(),A(r.file().deletions>0?9:-1),h(),xe("aria-label",r.sideBySide()?"Switch to inline view":"Switch to side-by-side view"),h(3),A(r.sideBySide()?13:14),h(9),A(r.loading()?22:r.error()?23:r.binary()?24:-1))},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0000008c;z-index:200}.dialog[_ngcontent-%COMP%]{position:fixed;top:4vh;left:4vw;right:4vw;bottom:4vh;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 12px 48px #0009;overflow:hidden;z-index:201}.dialog-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex:none;height:42px;padding:0 10px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.status[_ngcontent-%COMP%]{flex:none;padding:1px 7px;border-radius:3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.status-added[_ngcontent-%COMP%]{background:#89d18526;color:#89d185}.status-deleted[_ngcontent-%COMP%]{background:#f4877126;color:#f48771}.status-modified[_ngcontent-%COMP%]{background:#3794ff26;color:#4fc1ff}.status-renamed[_ngcontent-%COMP%]{background:#c586c026;color:#c586c0}.status-binary[_ngcontent-%COMP%]{background:#ffffff14;color:#9d9d9d}.path[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:12px;color:var(--text)}.counts[_ngcontent-%COMP%]{flex:none;display:flex;gap:6px;font-family:var(--mono);font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%]{color:#f48771}.icon-btn[_ngcontent-%COMP%]{flex:none;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer}.icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dialog-body[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0}.editor-host[_ngcontent-%COMP%]{position:absolute;inset:0}.state[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--text-dim);font-size:13px}.state-error[_ngcontent-%COMP%]{color:var(--red)}"],changeDetection:0})};var eb=(e,t)=>t.path;function tb(e,t){if(e&1&&(k(0,"span",15),v(1,"\u2022"),R(),k(2,"span"),v(3),Hr(4,"date"),R(),k(5,"span",15),v(6,"\u2022"),R(),k(7,"code",16),v(8),R()),e&2){let n=D();h(3),U($r(4,2,n.commit().date,"d MMM y HH:mm")),h(5),U(n.commit().hash.slice(0,8))}}function nb(e,t){if(e&1&&(k(0,"pre",10),v(1),R()),e&2){let n=D();h(),U(n.commit().body)}}function rb(e,t){e&1&&(k(0,"div",12),v(1,"Loading changes\u2026"),R())}function ob(e,t){if(e&1&&(k(0,"div",13),v(1),R()),e&2){let n=D();h(),U(n.error())}}function ib(e,t){e&1&&(k(0,"div",12),v(1,"No changes."),R())}function sb(e,t){if(e&1&&(k(0,"span",22),v(1),R()),e&2){let n=D().$implicit;h(),ne("+",n.additions)}}function ab(e,t){if(e&1&&(k(0,"span",23),v(1),R()),e&2){let n=D().$implicit;h(),ne("\u2212",n.deletions)}}function cb(e,t){if(e&1){let n=te();k(0,"button",19),ae("click",function(){let o=V(n).$implicit,i=D(3);return H(i.openFile(o))}),k(1,"span"),v(2),R(),k(3,"span",20),v(4),R(),k(5,"span",21),N(6,sb,2,1,"span",22),N(7,ab,2,1,"span",23),R(),z(),k(8,"svg",24),Pt(9,"polyline",25),R()()}if(e&2){let n=t.$implicit;h(),En("file-status status-"+n.status),h(),U(n.status),h(),et("title",n.path),h(),U(n.path),h(2),A(n.additions>0?6:-1),h(),A(n.deletions>0?7:-1)}}function lb(e,t){if(e&1&&(k(0,"div",17),Se(1,cb,10,7,"button",18,eb),R()),e&2){let n=D();h(),Ne(n.files)}}function ub(e,t){e&1&&N(0,ib,2,0,"div",12)(1,lb,3,0,"div",17),e&2&&A(t.files.length===0?0:1)}function db(e,t){if(e&1){let n=te();k(0,"app-diff-dialog",26),ae("closed",function(){V(n);let o=D();return H(o.dialogFile.set(null))}),R()}if(e&2){let n=D();et("file",t)("originalRef",n.originalRef())("modifiedRef",n.modifiedRef())}}var ps=class e{git=E(Lt);commit=J.required();closed=pe();diff=F(null);loading=F(!1);error=F("");dialogFile=F(null);workingHash=It;isWorking=Q(()=>this.commit().hash===this.workingHash);originalRef=Q(()=>this.isWorking()?"HEAD":`${this.commit().hash}^`);modifiedRef=Q(()=>this.isWorking()?"WORKING":this.commit().hash);initials=Q(()=>{let t=this.commit().author_name.trim();if(!t)return"?";let n=t.split(/\s+/),r=n[0].charAt(0),o=n.length>1?n[n.length-1].charAt(0):"";return(r+o).toUpperCase()});avatarColor=Q(()=>ao(ih(this.commit().author_name)));constructor(){Gr(()=>{this.loadDiff(this.commit().hash)})}openFile(t){this.dialogFile.set(t)}loadDiff(t){if(this.loading.set(!0),this.error.set(""),this.diff.set(null),this.dialogFile.set(null),t===It){this.git.getWorkingChanges().subscribe({next:n=>{this.loading.set(!1),this.diff.set({hash:It,files:n.files})},error:()=>{this.loading.set(!1),this.error.set("Failed to load the working changes.")}});return}this.git.getCommitDiff(t).subscribe({next:n=>{this.loading.set(!1),this.diff.set(n)},error:()=>{this.loading.set(!1),this.error.set("Failed to load the commit diff.")}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-commit-detail"]],inputs:{commit:[1,"commit"]},outputs:{closed:"closed"},decls:20,vars:9,consts:[[1,"detail"],[1,"detail-head"],["title","Close",1,"close-btn",3,"click"],["viewBox","0 0 24 24","aria-hidden","true"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"subject"],[1,"meta"],[1,"avatar"],[1,"author"],[1,"body"],[1,"detail-body"],[1,"state"],[1,"state","state-error"],[3,"file","originalRef","modifiedRef"],[1,"separator"],[1,"hash"],[1,"file-list"],["type","button",1,"file-row"],["type","button",1,"file-row",3,"click"],[1,"file-path",3,"title"],[1,"file-counts"],[1,"additions"],[1,"deletions"],["viewBox","0 0 24 24","aria-hidden","true",1,"chevron"],["points","9 18 15 12 9 6"],[3,"closed","file","originalRef","modifiedRef"]],template:function(n,r){if(n&1&&(k(0,"aside",0)(1,"header",1)(2,"button",2),ae("click",function(){return r.closed.emit()}),z(),k(3,"svg",3),Pt(4,"line",4)(5,"line",5),R()(),me(),k(6,"h2",6),v(7),R(),k(8,"div",7)(9,"span",8),v(10),R(),k(11,"span",9),v(12),R(),N(13,tb,9,5),R(),N(14,nb,2,1,"pre",10),R(),k(15,"div",11),N(16,rb,2,0,"div",12)(17,ob,2,1,"div",13)(18,ub,2,1),R()(),N(19,db,1,3,"app-diff-dialog",14)),n&2){let o,i;h(7),U(r.commit().message),h(2),fe("background",r.avatarColor()),h(),U(r.initials()),h(2),U(r.commit().author_name),h(),A(r.isWorking()?-1:13),h(),A(r.commit().body.trim()?14:-1),h(2),A(r.loading()?16:r.error()?17:(o=r.diff())?18:-1,o),h(3),A((i=r.dialogFile())?19:-1,i)}},dependencies:[fs,Xr],styles:["[_nghost-%COMP%]{display:flex;flex:none;flex-direction:column;width:480px;min-height:0}.detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;flex:1;min-height:0;background:var(--bg-alt);border-left:1px solid var(--border)}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;padding:6px;gap:2px;overflow-y:auto}.file-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;text-align:left;cursor:pointer}.file-row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.chevron[_ngcontent-%COMP%]{flex:none;width:13px;height:13px;fill:none;stroke:var(--text-dim);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.file-row[_ngcontent-%COMP%]:hover .chevron[_ngcontent-%COMP%]{stroke:var(--accent)}.detail-head[_ngcontent-%COMP%]{flex:none;padding:14px 16px 12px;border-bottom:1px solid var(--border);position:relative}.close-btn[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer}.close-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.subject[_ngcontent-%COMP%]{margin:0 30px 10px 0;font-size:14px;font-weight:600;color:var(--text-bright);word-break:break-word}.meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--text-dim);font-size:12px}.avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;color:#1e1e1e;font-size:10px;font-weight:700}.author[_ngcontent-%COMP%]{color:var(--text)}.hash[_ngcontent-%COMP%]{font-family:var(--mono);color:var(--accent);background:#3794ff1a;padding:1px 6px;border-radius:3px}.body[_ngcontent-%COMP%]{margin:10px 0 0;padding:8px 10px;background:#ffffff0a;border-radius:4px;font-size:12px;font-family:inherit;color:var(--text);white-space:pre-wrap;word-break:break-word;max-height:160px;overflow-y:auto}.detail-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.state[_ngcontent-%COMP%]{padding:24px;text-align:center;color:var(--text-dim)}.state-error[_ngcontent-%COMP%]{color:var(--red)}.file-status[_ngcontent-%COMP%]{flex:none;padding:0 6px;border-radius:3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.status-added[_ngcontent-%COMP%]{background:#89d18526;color:#89d185}.status-deleted[_ngcontent-%COMP%]{background:#f4877126;color:#f48771}.status-modified[_ngcontent-%COMP%]{background:#3794ff26;color:#4fc1ff}.status-renamed[_ngcontent-%COMP%]{background:#c586c026;color:#c586c0}.status-binary[_ngcontent-%COMP%]{background:#ffffff14;color:#9d9d9d}.file-path[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:12px;color:var(--text)}.file-counts[_ngcontent-%COMP%]{flex:none;font-family:var(--mono);font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%]{color:#f48771}.binary[_ngcontent-%COMP%]{padding:12px;color:var(--text-dim);font-size:12px}"],changeDetection:0})};function sh(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith("HEAD -> ")?{type:"head",name:t.slice(8)}:t==="HEAD"?{type:"head",name:"HEAD"}:t.startsWith("tag: ")?{type:"tag",name:t.slice(5)}:t.includes("/")?{type:"remote",name:t}:{type:"local",name:t}):[]}function gl(e){let t=e.refs;return t?t==="HEAD"||t.startsWith("HEAD,")||t.startsWith("HEAD ->"):!1}var fb=(e,t)=>t.hash,pb=(e,t)=>t.commit.hash,hb=(e,t)=>t.name;function gb(e,t){if(e&1&&(g(0,"span",29),v(1),m()),e&2){let n=D();h(),ne("",n.staged.length," staged")}}function mb(e,t){if(e&1&&(g(0,"span",30),v(1),m()),e&2){let n=D();h(),ne("",n.unstaged.length," unstaged")}}function yb(e,t){if(e&1&&(g(0,"span",31),v(1),m()),e&2){let n=D();h(),ne("",n.untracked.length," untracked")}}function vb(e,t){if(e&1&&(N(0,gb,2,1,"span",29),N(1,mb,2,1,"span",30),N(2,yb,2,1,"span",31)),e&2){let n=t;A(n.staged.length>0?0:-1),h(),A(n.unstaged.length>0?1:-1),h(),A(n.untracked.length>0?2:-1)}}function Db(e,t){if(e&1){let n=te();g(0,"div",12),L("click",function(){V(n);let o=D();return H(o.commitClick.emit(o.workingCommit()))})("contextmenu",function(o){V(n);let i=D();return H(i.onWorkingContextMenu(o))}),g(1,"div",13),z(),g(2,"svg",14),Y(3,"path",15)(4,"path",16),m()(),me(),g(5,"div",17)(6,"span",18),z(),g(7,"svg",19),Y(8,"circle",20)(9,"path",21)(10,"path",22)(11,"path",23)(12,"path",24),m(),me(),g(13,"span",25),v(14,"Uncommitted changes"),m()(),N(15,vb,3,3),m(),g(16,"div",26),v(17,"\u2014"),m(),g(18,"div",27),v(19,"You"),m(),g(20,"div",28),v(21,"\u2014"),m()()}if(e&2){let n,r=D();ft("selected",r.selectedHash()===r.workingHash),h(),fe("width",r.graphColumnWidth(),"px"),h(14),A((n=r.workingChanges())?15:-1,n),h(),fe("width",r.columnWidths().date,"px"),h(2),fe("width",r.columnWidths().author,"px"),h(2),fe("width",r.columnWidths().commit,"px")}}function Eb(e,t){e&1&&(g(0,"div",11),v(1,"No commits to show"),m())}function bb(e,t){if(e&1&&(z(),Y(0,"path",33)),e&2){let n=t.$implicit;xe("d",n.d)("stroke",n.color)}}function Cb(e,t){if(e&1&&(z(),Y(0,"circle",36)),e&2){let n=D().$implicit;xe("cx",n.x)("cy",n.y)("stroke",n.color)}}function _b(e,t){if(e&1&&(z(),Y(0,"circle",37)),e&2){let n=D().$implicit;xe("cx",n.x)("cy",n.y)("fill",n.color)}}function wb(e,t){if(e&1&&N(0,Cb,1,3,":svg:circle",36)(1,_b,1,3,":svg:circle",37),e&2){let n=t.$implicit;A(n.isHead?0:1)}}function Ib(e,t){e&1&&(z(),g(0,"svg",19),Y(1,"line",44)(2,"circle",45)(3,"circle",46)(4,"path",47),m())}function Tb(e,t){e&1&&(z(),g(0,"svg",19),Y(1,"path",48)(2,"line",49),m())}function Mb(e,t){if(e&1){let n=te();g(0,"span",43),L("contextmenu",function(o){let i=V(n).$implicit,s=D().$implicit,a=D(2);return H(a.onBranchContextMenu(o,s.commit,i))}),N(1,Ib,5,0,":svg:svg",19)(2,Tb,3,0,":svg:svg",19),g(3,"span",25),v(4),m()()}if(e&2){let n=t.$implicit;En("badge badge-"+n.type),h(),A(n.type==="head"||n.type==="local"?1:n.type==="tag"?2:-1),h(3),U(n.name)}}function xb(e,t){if(e&1&&(g(0,"mark",50),v(1),m()),e&2){let n=D().$implicit;h(),U(n.text)}}function Sb(e,t){if(e&1&&v(0),e&2){let n=D().$implicit;ne(" ",n.text," ")}}function Nb(e,t){if(e&1&&N(0,xb,2,1,"mark",50)(1,Sb,1,1),e&2){let n=t.$implicit;A(n.match?0:1)}}function Ab(e,t){if(e&1&&(g(0,"mark",50),v(1),m()),e&2){let n=D().$implicit;h(),U(n.text)}}function Rb(e,t){if(e&1&&v(0),e&2){let n=D().$implicit;ne(" ",n.text," ")}}function kb(e,t){if(e&1&&N(0,Ab,2,1,"mark",50)(1,Rb,1,1),e&2){let n=t.$implicit;A(n.match?0:1)}}function Ob(e,t){if(e&1){let n=te();g(0,"div",38),L("click",function(){let o=V(n).$implicit,i=D(2);return H(i.commitClick.emit(o.commit))})("contextmenu",function(o){let i=V(n).$implicit,s=D(2);return H(s.onRowContextMenu(o,i.commit))}),Y(1,"div",13),g(2,"div",17),Se(3,Mb,5,4,"span",39,hb),g(5,"span",40),Se(6,Nb,2,1,null,null,Dn),m()(),g(8,"div",26),v(9),Hr(10,"date"),m(),g(11,"div",41),Se(12,kb,2,1,null,null,Dn),m(),g(14,"div",42),v(15),m()()}if(e&2){let n=t.$implicit,r=D(2);ft("selected",n.commit.hash===r.selectedHash()),h(),fe("width",r.graphColumnWidth(),"px"),h(2),Ne(r.badges(n.commit)),h(2),ft("head",r.isHead(n.commit)),h(),Ne(r.highlight(n.commit.message)),h(2),fe("width",r.columnWidths().date,"px"),h(),ne(" ",$r(10,16,n.commit.date,"d MMM y HH:mm")," "),h(2),fe("width",r.columnWidths().author,"px"),se("title",n.commit.author_name),h(),Ne(r.highlight(n.commit.author_name)),h(2),fe("width",r.columnWidths().commit,"px"),se("title",n.commit.hash),h(),ne(" ",n.commit.hash.slice(0,8)," ")}}function Pb(e,t){if(e&1){let n=te();g(0,"button",51),L("click",function(){V(n);let o=D(2);return H(o.loadMore())}),v(1),m()}if(e&2){let n=D(2);h(),ne("Load ",n.remaining()," more commits")}}function Fb(e,t){if(e&1&&(z(),g(0,"svg",32),Se(1,bb,1,2,":svg:path",33,Dn),Se(3,wb,2,1,null,null,fb),m(),Se(5,Ob,16,19,"div",34,pb),N(7,Pb,2,1,"button",35)),e&2){let n=D();xe("width",n.graphWidth())("height",n.graphHeight()),h(),Ne(n.edges()),h(2),Ne(n.nodes()),h(2),Ne(n.graphCommits()),h(2),A(n.remaining()>0?7:-1)}}var In=34,ml=14,ah=10,Lb=72,ch=500,hs=class e{commits=J.required();selectedHash=J.required();search=J("");selectedBranch=J("");showRemote=J(!0);workingChanges=J(null);commitClick=pe();contextMenu=pe();limit=F(ch);columnWidths=F({graph:0,date:132,author:150,commit:84});displayed=Q(()=>this.commits().slice(0,this.limit()));graphCommits=Q(()=>oh(this.displayed()));graphWidth=Q(()=>{let t=this.graphCommits().reduce((n,r)=>Math.max(n,r.lane),0)+1;return Math.max(Lb,ah*2+t*ml)});graphColumnWidth=Q(()=>Math.max(this.graphWidth(),this.columnWidths().graph));graphHeight=Q(()=>this.graphCommits().length*In);nodes=Q(()=>this.graphCommits().map((t,n)=>({hash:t.commit.hash,x:this.laneX(t.lane),y:n*In+In/2,color:ao(t.lane),isHead:gl(t.commit)})));edges=Q(()=>{let t=this.graphCommits(),n=new Map(t.map((s,a)=>[s.commit.hash,a])),r=new Map(t.map(s=>[s.commit.hash,s.lane])),o=this.graphHeight(),i=[];return t.forEach((s,a)=>{let c=ao(s.lane),l=this.laneX(s.lane),u=a*In+In/2;for(let d of s.parents){let p=n.get(d);if(p===void 0){i.push({d:`M ${l} ${u} L ${l} ${o}`,color:c});continue}let f=this.laneX(r.get(d)??s.lane),y=p*In+In/2;if(l===f)i.push({d:`M ${l} ${u} L ${f} ${y}`,color:c});else{let _=(u+y)/2;i.push({d:`M ${l} ${u} C ${l} ${_} ${f} ${_} ${f} ${y}`,color:c})}}}),i});remaining=Q(()=>this.commits().length-this.displayed().length);hasWorkingChanges=Q(()=>(this.workingChanges()?.files.length??0)>0);workingHash=It;workingCommit=Q(()=>({hash:It,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]}));resizeState=null;startResize(t,n){n.preventDefault(),n.stopPropagation();let r=t==="graph"?this.graphColumnWidth():this.columnWidths()[t];this.resizeState={column:t,startX:n.clientX,startWidth:r},document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd)}onResizeMove=t=>{let n=this.resizeState;if(!n)return;let r=t.clientX-n.startX,o=n.column==="graph"?this.graphWidth():48,i=Math.max(o,n.startWidth+r);this.columnWidths.update(s=>re(Z({},s),{[n.column]:i}))};onResizeEnd=()=>{this.resizeState=null,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)};ngOnDestroy(){this.onResizeEnd()}onRowContextMenu(t,n){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"commit",commit:n}})}onBranchContextMenu(t,n,r){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"branch",commit:n,branch:r}})}onWorkingContextMenu(t){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"working"}})}highlight(t){let n=this.search().trim().toLowerCase();if(!n||!t)return[{text:t,match:!1}];let r=[],o=t.toLowerCase(),i=0,s=o.indexOf(n);for(;s!==-1;)s>i&&r.push({text:t.slice(i,s),match:!1}),r.push({text:t.slice(s,s+n.length),match:!0}),i=s+n.length,s=o.indexOf(n,i);return i<t.length&&r.push({text:t.slice(i),match:!1}),r.length>0?r:[{text:t,match:!1}]}loadMore(){this.limit.set(this.limit()+ch)}badges(t){let n=this.selectedBranch(),r=this.showRemote();return sh(t.refs).filter(o=>o.type==="remote"&&!r?!1:!n||o.type==="tag"?!0:o.name===n)}isHead(t){return gl(t)}laneX(t){return ah+ml/2+t*ml}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-commit-table"]],inputs:{commits:[1,"commits"],selectedHash:[1,"selectedHash"],search:[1,"search"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],workingChanges:[1,"workingChanges"]},outputs:{commitClick:"commitClick",contextMenu:"contextMenu"},decls:25,vars:10,consts:[[1,"table"],[1,"table-head"],[1,"head-cell","cell-graph"],[1,"head-label"],[1,"resizer",3,"mousedown"],[1,"head-cell","cell-desc"],[1,"head-cell","cell-date"],[1,"head-cell","cell-author"],[1,"head-cell","cell-commit"],[1,"row","working-row",3,"selected"],[1,"table-body"],[1,"empty"],[1,"row","working-row",3,"click","contextmenu"],[1,"cell","cell-graph"],["viewBox","0 0 24 24","aria-hidden","true",1,"working-icon"],["d","M12 20h9"],["d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"],[1,"cell","cell-desc"],[1,"badge","badge-working"],["viewBox","0 0 24 24","aria-hidden","true",1,"badge-icon"],["cx","12","cy","12","r","3"],["d","M12 2v3"],["d","M12 19v3"],["d","M2 12h3"],["d","M19 12h3"],[1,"badge-name"],[1,"cell","cell-date"],[1,"cell","cell-author"],[1,"cell","cell-commit"],[1,"count-badge","count-staged"],[1,"count-badge","count-unstaged"],[1,"count-badge","count-untracked"],["aria-hidden","true",1,"graph"],["fill","none","stroke-width","2"],[1,"row",3,"selected"],[1,"load-more"],["r","5.5","fill","#1e1e1e","stroke-width","2"],["r","4"],[1,"row",3,"click","contextmenu"],[3,"class"],[1,"message"],[1,"cell","cell-author",3,"title"],[1,"cell","cell-commit",3,"title"],[3,"contextmenu"],["x1","6","y1","3","x2","6","y2","15"],["cx","18","cy","6","r","3"],["cx","6","cy","18","r","3"],["d","M18 9a9 9 0 0 1-9 9"],["d","M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.83z"],["x1","7","y1","7","x2","7.01","y2","7"],[1,"hl"],[1,"load-more",3,"click"]],template:function(n,r){n&1&&(g(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),v(4,"Graph"),m(),g(5,"div",4),L("mousedown",function(i){return r.startResize("graph",i)}),m()(),g(6,"div",5)(7,"span",3),v(8,"Description"),m()(),g(9,"div",6)(10,"span",3),v(11,"Date"),m(),g(12,"div",4),L("mousedown",function(i){return r.startResize("date",i)}),m()(),g(13,"div",7)(14,"span",3),v(15,"Author"),m(),g(16,"div",4),L("mousedown",function(i){return r.startResize("author",i)}),m()(),g(17,"div",8)(18,"span",3),v(19,"Commit"),m(),g(20,"div",4),L("mousedown",function(i){return r.startResize("commit",i)}),m()()(),N(21,Db,22,11,"div",9),g(22,"div",10),N(23,Eb,2,0,"div",11)(24,Fb,8,3),m()()),n&2&&(h(2),fe("width",r.graphColumnWidth(),"px"),h(7),fe("width",r.columnWidths().date,"px"),h(4),fe("width",r.columnWidths().author,"px"),h(4),fe("width",r.columnWidths().commit,"px"),h(4),A(r.hasWorkingChanges()?21:-1),h(2),A(r.graphCommits().length===0?23:24))},dependencies:[Xr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.table[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;width:100%;min-width:0;min-height:0}.table-head[_ngcontent-%COMP%]{display:flex;align-items:center;height:30px;flex:none;border-bottom:1px solid var(--border);background:var(--bg-alt);font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none}.head-cell[_ngcontent-%COMP%]{position:relative;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none}.head-cell.cell-desc[_ngcontent-%COMP%]{flex:1;min-width:0}.resizer[_ngcontent-%COMP%]{position:absolute;top:0;right:-3px;width:6px;height:100%;cursor:col-resize;z-index:1}.resizer[_ngcontent-%COMP%]:hover, .resizer.active[_ngcontent-%COMP%]{background:var(--accent)}.table-body[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0;overflow-y:auto}.graph[_ngcontent-%COMP%]{position:absolute;top:0;left:0;pointer-events:none}.row[_ngcontent-%COMP%]{display:flex;align-items:center;height:34px;cursor:pointer;-webkit-user-select:none;user-select:none}.row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.row.selected[_ngcontent-%COMP%]{background:#04395e}.cell[_ngcontent-%COMP%]{padding:0 10px;overflow:hidden;white-space:nowrap;color:var(--text);min-width:0}.cell-graph[_ngcontent-%COMP%]{flex:none}.cell-desc[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;gap:6px}.cell-date[_ngcontent-%COMP%]{flex:none;text-align:right;color:var(--text-dim)}.cell-author[_ngcontent-%COMP%]{flex:none;text-align:right;text-overflow:ellipsis}.cell-commit[_ngcontent-%COMP%]{flex:none;text-align:right;font-family:var(--mono);color:var(--text-dim)}.working-row[_ngcontent-%COMP%]{flex:none;border-bottom:1px solid var(--border);background:#d7ba7d0a}.working-row[_ngcontent-%COMP%]:hover{background:#d7ba7d14}.working-row.selected[_ngcontent-%COMP%]{background:#4d3a12}.working-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-left:4px;fill:none;stroke:#d7ba7d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.badge-working[_ngcontent-%COMP%]{background:#d7ba7d24;color:#d7ba7d;border-color:#d7ba7d66}.count-badge[_ngcontent-%COMP%]{flex:none;padding:1px 7px;border-radius:10px;font-size:11px;line-height:16px;white-space:nowrap}.count-staged[_ngcontent-%COMP%]{background:#89d18524;color:#89d185}.count-unstaged[_ngcontent-%COMP%]{background:#f4877124;color:#f48771}.count-untracked[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff}.hl[_ngcontent-%COMP%]{background:#613214;color:#f5c04a;border-radius:2px;padding:0 1px}.message[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-weight:400}.message.head[_ngcontent-%COMP%]{font-weight:600;color:var(--text-bright)}.badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 7px;border-radius:10px;border:1px solid transparent;font-size:11px;line-height:16px;white-space:nowrap}.badge-head[_ngcontent-%COMP%]{background:#0078d4;color:#fff}.badge-local[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff;border-color:#3794ff66}.badge-remote[_ngcontent-%COMP%]{background:#ffffff0f;color:#b8b8b8;border-color:#4a4a4a}.badge-tag[_ngcontent-%COMP%]{background:#d7ba7d1f;color:#d7ba7d;border-color:#d7ba7d66}.badge-icon[_ngcontent-%COMP%]{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.badge-name[_ngcontent-%COMP%]{max-width:160px;overflow:hidden;text-overflow:ellipsis}.empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:240px;color:var(--text-dim)}.load-more[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:transparent;border:none;border-top:1px solid var(--border);color:var(--accent);cursor:pointer;font-size:12px;font-family:inherit}.load-more[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}"],changeDetection:0})};function jb(e,t){e&1&&Y(0,"div",2)}function Bb(e,t){if(e&1){let n=te();g(0,"button",4),L("click",function(){V(n);let o=D().$implicit,i=D(2);return H(i.onSelect(o))}),v(1),m()}if(e&2){let n=D().$implicit;ft("danger",n.danger),se("disabled",n.disabled),h(),ne(" ",n.label," ")}}function Vb(e,t){if(e&1&&N(0,jb,1,0,"div",2)(1,Bb,2,4,"button",3),e&2){let n=t.$implicit;A(n.separator?0:1)}}function Hb(e,t){if(e&1){let n=te();g(0,"div",0),L("click",function(){V(n);let o=D();return H(o.closed.emit())})("contextmenu",function(o){V(n);let i=D();return o.preventDefault(),H(i.closed.emit())}),m(),g(1,"div",1),Se(2,Vb,2,1,null,null,Dn),m()}if(e&2){let n=D();h(),fe("left",n.left(),"px")("top",n.top(),"px"),h(),Ne(t.items)}}var gs=class e{menu=J.required();select=pe();closed=pe();left=Q(()=>{let t=this.menu();return t?Math.max(4,Math.min(t.x,window.innerWidth-250)):0});top=Q(()=>{let t=this.menu();if(!t)return 0;let n=t.items.length*30+12;return Math.max(4,Math.min(t.y,window.innerHeight-n-8))});onEscape(){this.menu()&&this.closed.emit()}onSelect(t){t.disabled||!t.action||(this.select.emit(t.action),this.closed.emit())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-context-menu"]],hostBindings:function(n,r){n&1&&ae("keydown.escape",function(){return r.onEscape()},dt)},inputs:{menu:[1,"menu"]},outputs:{select:"select",closed:"closed"},decls:1,vars:1,consts:[[1,"backdrop",3,"click","contextmenu"],["role","menu",1,"menu"],[1,"separator"],["role","menuitem",1,"item",3,"danger","disabled"],["role","menuitem",1,"item",3,"click","disabled"]],template:function(n,r){if(n&1&&N(0,Hb,4,4),n&2){let o;A((o=r.menu())?0:-1,o)}},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:300}.menu[_ngcontent-%COMP%]{position:fixed;min-width:210px;max-width:300px;padding:4px;display:flex;flex-direction:column;background:var(--bg-alt);border:1px solid var(--border);border-radius:6px;box-shadow:0 6px 24px #0000008c;z-index:301}.item[_ngcontent-%COMP%]{display:block;width:100%;padding:6px 10px;border:none;border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.item[_ngcontent-%COMP%]:disabled{color:var(--text-dim);opacity:.55;cursor:default}.item.danger[_ngcontent-%COMP%]{color:var(--red)}.item.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#f487711f;color:#f48771}.separator[_ngcontent-%COMP%]{height:1px;margin:4px 6px;background:var(--border);flex:none}"],changeDetection:0})};var $b=["inputEl"];function Ub(e,t){if(e&1&&(g(0,"p",4),v(1),m()),e&2){let n=D();h(),U(n.label)}}function Gb(e,t){if(e&1){let n=te();g(0,"label",8),v(1),m(),g(2,"input",9,0),L("input",function(o){V(n);let i=D(2);return H(i.onInput(o))})("keydown.enter",function(){V(n);let o=D(2);return H(o.confirm())}),m()}if(e&2){let n=D(),r=D();h(),U(n.label||n.title),h(),se("value",r.value()),xe("placeholder",n.placeholder||" ")("aria-label",n.label||n.title)}}function zb(e,t){if(e&1){let n=te();g(0,"div",1),L("click",function(){V(n);let o=D();return H(o.cancelled.emit())}),m(),g(1,"div",2)(2,"h3",3),v(3),m(),N(4,Ub,2,1,"p",4),N(5,Gb,4,4),g(6,"div",5)(7,"button",6),L("click",function(){V(n);let o=D();return H(o.cancelled.emit())}),v(8,"Cancel"),m(),g(9,"button",7),L("click",function(){V(n);let o=D();return H(o.confirm())}),v(10),m()()()}if(e&2){let n=t,r=D();h(3),U(n.title),h(),A(n.label?4:-1),h(),A(n.confirmOnly?-1:5),h(4),ft("btn-danger",n.danger),se("disabled",!n.confirmOnly&&!n.allowEmpty&&!r.value().trim()),h(),ne(" ",n.okLabel||"OK"," ")}}var ms=class e{state=J.required();confirmed=pe();cancelled=pe();value=F("");inputEl=Zi("inputEl");constructor(){Gr(()=>{let t=this.state();t&&this.value.set(t.value??"");let n=this.inputEl();t&&n&&(n.nativeElement.focus(),n.nativeElement.select())})}onEscape(){this.state()&&this.cancelled.emit()}onInput(t){this.value.set(t.target.value)}confirm(){let t=this.state();t&&(!t.confirmOnly&&!t.allowEmpty&&!this.value().trim()||this.confirmed.emit(t.confirmOnly?"":this.value().trim()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-prompt-dialog"]],viewQuery:function(n,r){n&1&&Br(r.inputEl,$b,5),n&2&&Vr()},hostBindings:function(n,r){n&1&&ae("keydown.escape",function(){return r.onEscape()},dt)},inputs:{state:[1,"state"]},outputs:{confirmed:"confirmed",cancelled:"cancelled"},decls:1,vars:1,consts:[["inputEl",""],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"dialog"],[1,"title"],[1,"label"],[1,"actions"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["for","prompt-input",1,"sr-only"],["id","prompt-input","type","text","placeholder"," ","title","Enter a value",1,"input",3,"input","keydown.enter","value"]],template:function(n,r){if(n&1&&N(0,zb,11,7),n&2){let o;A((o=r.state())?0:-1,o)}},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;z-index:400}.dialog[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 48px));padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 36px #0009;z-index:401}.title[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:600;color:var(--text-bright)}.label[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--text-dim)}.input[_ngcontent-%COMP%]{padding:7px 10px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:13px;font-family:inherit;outline:none}.input[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.btn[_ngcontent-%COMP%]{padding:6px 14px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;cursor:pointer}.btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.btn-primary[_ngcontent-%COMP%]{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#2b7cd3}.btn-danger[_ngcontent-%COMP%]{background:#a1260d;border-color:#a1260d;color:#fff}.btn-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#c42b1c}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:0})};var Wb=(e,t)=>t.name;function qb(e,t){if(e&1&&(g(0,"option",5),v(1),m()),e&2){let n=t.$implicit;se("value",n.name),h(),U(n.name)}}function Zb(e,t){if(e&1){let n=te();g(0,"div",20)(1,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("pull"))}),v(2,"Pull"),m(),g(3,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("pull-rebase"))}),v(4,"Pull (rebase)"),m()()}}function Yb(e,t){if(e&1){let n=te();g(0,"div",20)(1,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("push"))}),v(2,"Push"),m(),g(3,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("sync"))}),v(4,"Sync"),m()()}}var ys=class e{branches=J.required();selectedBranch=J.required();showRemote=J.required();search=J.required();busy=J.required();branchChange=pe();remoteToggle=pe();searchChange=pe();refresh=pe();remoteAction=pe();openMenu=F(null);visibleBranches=Q(()=>this.branches());onBranchChange(t){this.branchChange.emit(t.target.value)}onRemoteToggle(t){this.remoteToggle.emit(t.target.checked)}onSearch(t){this.searchChange.emit(t.target.value)}toggleMenu(t,n){n.stopPropagation(),this.openMenu.update(r=>r===t?null:t)}chooseRemoteAction(t){this.openMenu.set(null),this.remoteAction.emit(t)}closeMenu(){this.openMenu.set(null)}closeMenuOnEscape(){this.openMenu.set(null)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-toolbar"]],hostBindings:function(n,r){n&1&&ae("click",function(){return r.closeMenu()},dt)("keydown.escape",function(){return r.closeMenuOnEscape()},dt)},inputs:{branches:[1,"branches"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],search:[1,"search"],busy:[1,"busy"]},outputs:{branchChange:"branchChange",remoteToggle:"remoteToggle",searchChange:"searchChange",refresh:"refresh",remoteAction:"remoteAction"},decls:41,vars:10,consts:[[1,"toolbar"],[1,"group"],["for","branch-select",1,"label"],["id","branch-select",1,"select",3,"change","value"],["value",""],[3,"value"],[1,"checkbox"],["type","checkbox",3,"change","checked"],[1,"search"],["viewBox","0 0 24 24","aria-hidden","true"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],["type","text","placeholder","Search commits",3,"input","value"],["title","Fetch",1,"icon-btn",3,"click","disabled"],["d","M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"],[1,"action-menu"],["title","Pull",1,"icon-btn",3,"click","disabled"],["cx","12","cy","12","r","10"],["points","8 12 12 16 16 12"],["x1","12","y1","8","x2","12","y2","16"],["role","menu",1,"remote-menu"],["title","Push",1,"icon-btn",3,"click","disabled"],["points","16 12 12 8 8 12"],["x1","12","y1","16","x2","12","y2","8"],["title","Refresh",1,"icon-btn",3,"click"],["points","23 4 23 10 17 10"],["points","1 20 1 14 7 14"],["d","M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"],["type","button","role","menuitem",3,"click"]],template:function(n,r){n&1&&(g(0,"div",0)(1,"div",1)(2,"label",2),v(3,"Branches:"),m(),g(4,"select",3),L("change",function(i){return r.onBranchChange(i)}),g(5,"option",4),v(6,"Show All"),m(),Se(7,qb,2,2,"option",5,Wb),m(),g(9,"label",6)(10,"input",7),L("change",function(i){return r.onRemoteToggle(i)}),m(),g(11,"span"),v(12,"Show Remote Branches"),m()()(),g(13,"div",1)(14,"div",8),z(),g(15,"svg",9),Y(16,"circle",10)(17,"line",11),m(),me(),g(18,"input",12),L("input",function(i){return r.onSearch(i)}),m()(),g(19,"button",13),L("click",function(){return r.remoteAction.emit("fetch")}),z(),g(20,"svg",9),Y(21,"path",14),m()(),me(),g(22,"div",15)(23,"button",16),L("click",function(i){return r.toggleMenu("pull",i)}),z(),g(24,"svg",9),Y(25,"circle",17)(26,"polyline",18)(27,"line",19),m()(),N(28,Zb,5,0,"div",20),m(),me(),g(29,"div",15)(30,"button",21),L("click",function(i){return r.toggleMenu("push",i)}),z(),g(31,"svg",9),Y(32,"circle",17)(33,"polyline",22)(34,"line",23),m()(),N(35,Yb,5,0,"div",20),m(),me(),g(36,"button",24),L("click",function(){return r.refresh.emit()}),z(),g(37,"svg",9),Y(38,"polyline",25)(39,"polyline",26)(40,"path",27),m()()()()),n&2&&(h(4),se("value",r.selectedBranch()),h(3),Ne(r.visibleBranches()),h(3),se("checked",r.showRemote()),h(8),se("value",r.search()),h(),se("disabled",r.busy()),h(4),se("disabled",r.busy()),xe("aria-expanded",r.openMenu()==="pull"),h(5),A(r.openMenu()==="pull"?28:-1),h(2),se("disabled",r.busy()),xe("aria-expanded",r.openMenu()==="push"),h(5),A(r.openMenu()==="push"?35:-1))},styles:[`.toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;height:42px;padding:0 12px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}.label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;white-space:nowrap}.select[_ngcontent-%COMP%]{appearance:none;height:26px;padding:0 26px 0 10px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23cccccc' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--text);font-size:12px;cursor:pointer;outline:none;max-width:260px;text-overflow:ellipsis}.select[_ngcontent-%COMP%]:hover{border-color:#555}.select[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;cursor:pointer;white-space:nowrap}.checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{accent-color:var(--accent);cursor:pointer}.search[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d;color:var(--text-dim)}.search[_ngcontent-%COMP%]:focus-within{border-color:var(--accent)}.search[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;border:none;outline:none;background:transparent;color:var(--text);font-size:12px}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#777}.icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer;flex:none}.action-menu[_ngcontent-%COMP%]{position:relative;display:inline-flex}.remote-menu[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;z-index:20;min-width:132px;padding:4px;background:var(--bg-alt);border:1px solid var(--border);border-radius:4px;box-shadow:0 6px 18px #00000073}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:100%;padding:6px 10px;border:none;border-radius:3px;background:transparent;color:var(--text);font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}`],changeDetection:0})};function Qb(e,t){if(e&1&&(k(0,"div",12),v(1),R()),e&2){let n=D();h(),U(n.error())}}function Kb(e,t){if(e&1){let n=te();k(0,"app-commit-detail",19),ae("closed",function(){V(n);let o=D();return H(o.selectedCommit.set(null))}),R()}e&2&&et("commit",t)}function Xb(e,t){e&1&&(k(0,"div",18),Pt(1,"div",20),R())}var vs=class e{git=E(Lt);commits=F([]);branches=F([]);selectedBranch=F("");showRemote=F(!0);search=F("");selectedCommit=F(null);loading=F(!1);busy=F(!1);error=F("");repoName=F("");workingChanges=F(null);contextMenuState=F(null);contextMenuTarget=F(null);promptState=F(null);filteredCommits=Q(()=>{let t=this.commits(),n=this.selectedBranch(),r=this.branches().filter(s=>this.showRemote()||!s.remote),o=n?r.filter(s=>s.name===n):r;if(o.length>0){let s=new Set;for(let a of o)for(let c of this.ancestorsOf(a.commit,t))s.add(c);t=t.filter(a=>s.has(a.hash))}else t=[];let i=this.search().trim().toLowerCase();return i&&(t=t.filter(s=>s.message.toLowerCase().includes(i)||s.author_name.toLowerCase().includes(i)||s.hash.toLowerCase().startsWith(i))),t});constructor(){this.refresh()}refresh(){this.loading.set(!0),this.error.set(""),Os({commits:this.git.getCommits(),branches:this.git.getAllBranches(),repo:this.git.getRepoInfo(),working:this.git.getWorkingChanges().pipe(jo(()=>jn({files:[],staged:[],unstaged:[],untracked:[]})))}).subscribe({next:({commits:t,branches:n,repo:r,working:o})=>{this.commits.set(t),this.branches.set(n),this.repoName.set(r.name),this.workingChanges.set(o),this.loading.set(!1)},error:t=>{this.error.set(this.errorMessage(t)),this.loading.set(!1)}})}onRemoteToggle(t){this.showRemote.set(t)}runRemoteAction(t){this.busy.set(!0),this.error.set(""),(t==="fetch"?this.git.fetch():t==="pull"?this.git.pull():t==="pull-rebase"?this.git.pull(!0):t==="push"?this.git.push():this.git.sync()).subscribe({next:()=>{this.busy.set(!1),this.refresh()},error:r=>{this.busy.set(!1),this.error.set(this.errorMessage(r))}})}onContextMenu(t){let n=[];t.target.kind==="commit"?(n.push({label:"Add Tag...",action:"add-tag"}),n.push({label:"Create Branch...",action:"create-branch"}),n.push({separator:!0}),n.push({label:"Checkout...",action:"checkout-commit"}),n.push({label:"Cherry Pick...",action:"cherry-pick"}),n.push({label:"Revert...",action:"revert-commit",danger:!0}),n.push({label:"Drop...",action:"drop-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Merge into current branch...",action:"merge-commit"}),n.push({label:"Rebase current branch on this Commit...",action:"rebase-commit"}),n.push({label:"Reset current branch to this Commit...",action:"reset-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Copy Commit Hash to Clipboard",action:"copy-hash"}),n.push({label:"Copy Commit Subject to Clipboard",action:"copy-subject"})):t.target.kind==="branch"?(n.push({label:"Checkout Branch...",action:"checkout-branch"}),n.push({label:"Delete Remote Branch...",action:"delete-remote-branch",danger:!0}),n.push({label:"Merge into current branch...",action:"merge-branch"}),n.push({label:"Pull into current branch...",action:"pull-branch"}),n.push({separator:!0}),n.push({label:"Create Archive",action:"create-archive"}),n.push({label:"Unselect in Branches Dropdown",action:"unselect-branch"}),n.push({separator:!0}),n.push({label:"Copy Branch Name to Clipboard",action:"copy-branch-name"})):(n.push({label:"Stash uncommitted changes...",action:"stash-working"}),n.push({label:"Reset uncommitted changes...",action:"reset-working",danger:!0}),n.push({label:"Clean untracked files...",action:"clean-untracked",danger:!0}),n.push({separator:!0}),n.push({label:"Open Source Control View",action:"open-source-control"})),this.contextMenuTarget.set(t.target),this.contextMenuState.set({x:t.x,y:t.y,items:n})}onContextAction(t){let n=this.contextMenuTarget()?.commit??this.selectedCommit();switch(t){case"add-tag":this.promptState.set({title:"Add Tag",label:"Tag name",placeholder:"v1.0.0",okLabel:"Add Tag"});break;case"create-branch":this.promptState.set({title:"Create Branch",label:"Branch name",placeholder:"feature/my-branch",okLabel:"Create Branch"});break;case"checkout-commit":n&&this.git.checkout(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"cherry-pick":n&&this.git.cherryPick(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"open-commit":this.selectedCommit()===null&&this.selectedCommit.set(this.commits()[0]??null);break;case"copy-hash":n&&navigator.clipboard?.writeText(n.hash);break;case"copy-subject":n&&navigator.clipboard?.writeText(n.message);break;case"view-commit-diff":n&&this.selectedCommit.set(n);break;case"revert-commit":n&&this.git.revert(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"drop-commit":this.promptState.set({title:"Drop commit?",label:"This will reset the current branch to the commit before it.",confirmOnly:!0,okLabel:"Drop",danger:!0});break;case"merge-commit":n&&this.git.merge(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"rebase-commit":n&&this.git.rebase(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"reset-commit":this.promptState.set({title:"Reset current branch to this commit?",label:"All commits after this commit will be removed from the current branch.",confirmOnly:!0,okLabel:"Reset",danger:!0});break;case"checkout-branch":this.contextMenuTarget()?.branch?.name&&this.git.checkout(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"delete-remote-branch":{let r=this.contextMenuTarget()?.branch?.name??"",o=r.indexOf("/");o>0&&this.git.deleteRemoteBranch(r.slice(0,o),r.slice(o+1)).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});break}case"merge-branch":this.contextMenuTarget()?.branch?.name&&this.git.merge(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"pull-branch":this.git.pull().subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"create-archive":this.contextMenuTarget()?.commit?.hash&&window.open(th(`/api/archive?ref=${encodeURIComponent(this.contextMenuTarget().commit.hash)}`),"_blank");break;case"unselect-branch":this.selectedBranch.set("");break;case"copy-branch-name":this.contextMenuTarget()?.branch?.name&&navigator.clipboard?.writeText(this.contextMenuTarget().branch.name);break;case"rename-branch":this.promptState.set({title:"Rename branch",label:"New branch name",placeholder:"feature/my-branch",okLabel:"Rename"});break;case"delete-branch":this.promptState.set({title:"Delete branch?",label:"This will delete the local branch.",confirmOnly:!0,okLabel:"Delete",danger:!0});break;case"open-working":this.selectedCommit.set({hash:It,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]});break;case"stash-working":this.promptState.set({title:"Stash uncommitted changes",label:"Stash message (optional)",placeholder:"WIP",allowEmpty:!0,okLabel:"Stash"});break;case"reset-working":this.promptState.set({title:"Reset uncommitted changes?",label:"Tracked changes will be discarded. Untracked files will remain.",confirmOnly:!0,okLabel:"Reset",danger:!0});break;case"clean-untracked":this.promptState.set({title:"Clean untracked files?",label:"Untracked files will be permanently deleted.",confirmOnly:!0,okLabel:"Clean",danger:!0});break;case"discard-working":this.git.getWorkingChanges().subscribe({next:r=>{let o=[...r.files.map(i=>i.path),...r.untracked];o.length>0&&this.git.discard(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))})},error:r=>this.error.set(this.errorMessage(r))});break;case"refresh-status":this.refresh();break;case"open-source-control":window.open("vscode://command/workbench.view.scm","_blank");break;default:break}this.contextMenuState.set(null)}onPromptConfirm(t){let n=this.promptState();if(!n)return;this.promptState.set(null);let r=this.contextMenuTarget()?.commit;if(n.title==="Add Tag"&&r){this.git.createTag(t,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Create Branch"&&r){this.git.createBranch(t,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Drop commit?"&&r){this.git.dropCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset current branch to this commit?"&&r){this.git.resetToCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Stash uncommitted changes"){this.git.stashSave(t||void 0).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset uncommitted changes?"){this.git.resetWorking().subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Clean untracked files?"){this.git.cleanUntracked().subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Rename branch"){this.error.set("Branch rename is not available from the current menu flow.");return}if(n.title==="Delete branch?"){this.error.set("Branch deletion is not available from the current menu flow.");return}}ancestorsOf(t,n){let r=new Map(n.map(s=>[s.hash,s])),o=new Set,i=[t];for(;i.length;){let s=i.pop();if(o.has(s))continue;o.add(s);let a=r.get(s);a&&i.push(...a.parents)}return o}errorMessage(t){let n=t;return n?.status===400&&n.error?.error?n.error.error:"Failed to communicate with the Guito server."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-root"]],decls:20,vars:16,consts:[[1,"app"],[1,"titlebar"],["aria-label","Repository logo",1,"brand"],["viewBox","0 0 16 16","aria-hidden","true",1,"logo"],["d","M4.5 2.5v11","stroke","#3794ff","stroke-width","1.6","fill","none"],["d","M4.5 11.5c4.5 0 4.5-7 7.5-7","stroke","#4ec9b0","stroke-width","1.6","fill","none"],["cx","4.5","cy","3.5","r","1.7","fill","#3794ff"],["cx","4.5","cy","8","r","1.7","fill","#3794ff"],["cx","4.5","cy","12.5","r","1.7","fill","#3794ff"],["cx","12","cy","4.5","r","1.7","fill","#4ec9b0"],[1,"title"],[3,"branchChange","remoteToggle","searchChange","refresh","remoteAction","branches","selectedBranch","showRemote","search","busy"],[1,"error-banner"],[1,"content"],[3,"commitClick","contextMenu","commits","selectedHash","search","selectedBranch","showRemote","workingChanges"],[3,"commit"],[3,"select","closed","menu"],[3,"confirmed","cancelled","state"],[1,"loading-overlay"],[3,"closed","commit"],[1,"spinner"]],template:function(n,r){if(n&1&&(k(0,"div",0)(1,"header",1)(2,"div",2),z(),k(3,"svg",3),Pt(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9),R(),me(),k(10,"span",10),v(11,"Guito"),R()()(),k(12,"app-toolbar",11),ae("branchChange",function(i){return r.selectedBranch.set(i)})("remoteToggle",function(i){return r.onRemoteToggle(i)})("searchChange",function(i){return r.search.set(i)})("refresh",function(){return r.refresh()})("remoteAction",function(i){return r.runRemoteAction(i)}),R(),N(13,Qb,2,1,"div",12),k(14,"main",13)(15,"app-commit-table",14),ae("commitClick",function(i){return r.selectedCommit.set(i)})("contextMenu",function(i){return r.onContextMenu(i)}),R(),N(16,Kb,1,1,"app-commit-detail",15),R(),k(17,"app-context-menu",16),ae("select",function(i){return r.onContextAction(i)})("closed",function(){return r.contextMenuState.set(null)}),R(),k(18,"app-prompt-dialog",17),ae("confirmed",function(i){return r.onPromptConfirm(i)})("cancelled",function(){return r.promptState.set(null)}),R(),N(19,Xb,2,0,"div",18),R()),n&2){let o,i;h(12),et("branches",r.branches())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("search",r.search())("busy",r.busy()),h(),A(r.error()?13:-1),h(2),et("commits",r.filteredCommits())("selectedHash",((o=r.selectedCommit())==null?null:o.hash)??"")("search",r.search())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("workingChanges",r.workingChanges()),h(),A((i=r.selectedCommit())?16:-1,i),h(),et("menu",r.contextMenuState()),h(),et("state",r.promptState()),h(),A(r.loading()?19:-1)}},dependencies:[ys,hs,ps,gs,ms],styles:[".app[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;overflow:hidden}.titlebar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex:none;height:38px;padding:0 14px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.logo[_ngcontent-%COMP%]{width:18px;height:18px}.title[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--text-bright);letter-spacing:.2px}.repo[_ngcontent-%COMP%]{font-size:12px;color:var(--text-dim)}.error-banner[_ngcontent-%COMP%]{flex:none;padding:8px 14px;background:#5a1d1d;color:#f48771;border-bottom:1px solid #7a2d2d;font-size:12px}.content[_ngcontent-%COMP%]{display:flex;flex:1;min-height:0}.loading-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#1e1e1e8c;z-index:100}.spinner[_ngcontent-%COMP%]{width:28px;height:28px;border:3px solid rgba(255,255,255,.15);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"],changeDetection:0})};cl(vs,nh).catch(e=>console.error(e));
|