guito 0.5.3 → 0.6.0

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.
@@ -0,0 +1,6 @@
1
+ var Ym=Object.defineProperty,Qm=Object.defineProperties;var Km=Object.getOwnPropertyDescriptors;var md=Object.getOwnPropertySymbols;var Xm=Object.prototype.hasOwnProperty,Jm=Object.prototype.propertyIsEnumerable;var yd=(t,e,n)=>e in t?Ym(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q=(t,e)=>{for(var n in e||={})Xm.call(e,n)&&yd(t,n,e[n]);if(md)for(var n of md(e))Jm.call(e,n)&&yd(t,n,e[n]);return t},ae=(t,e)=>Qm(t,Km(e));var nr=(t,e,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(t,e)).next())});var Ra;function oi(){return Ra}function bt(t){let e=Ra;return Ra=t,e}var vd=Symbol("NotFound");function rr(t){return t===vd||t?.name==="\u0275NotFound"}var Ae=null,ii=!1,ka=1,ey=null,Te=Symbol("SIGNAL");function O(t){let e=Ae;return Ae=t,e}function li(){return Ae}var dn={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 fn(t){if(ii)throw new Error("");if(Ae===null)return;Ae.consumerOnSignalRead(t);let e=Ae.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=Ae.recomputing;if(r&&(n=e!==void 0?e.nextProducer:Ae.producers,n!==void 0&&n.producer===t)){Ae.producersTail=n,n.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===Ae&&(!r||ny(o,Ae)))return;let i=or(Ae),s={producer:t,consumer:Ae,nextProducer:n,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};Ae.producersTail=s,e!==void 0?e.nextProducer=s:Ae.producers=s,i&&Cd(t,s)}function bd(){ka++}function ui(t){if(!(or(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===ka)){if(!t.producerMustRecompute(t)&&!hn(t)){ci(t);return}t.producerRecomputeValue(t),ci(t)}}function Aa(t){if(t.consumers===void 0)return;let e=ii;ii=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||ty(r)}}finally{ii=e}}function Oa(){return Ae?.consumerAllowSignalWrites!==!1}function ty(t){t.dirty=!0,Aa(t),t.consumerMarkedDirty?.(t)}function ci(t){t.dirty=!1,t.lastCleanEpoch=ka}function Ht(t){return t&&_d(t),O(t)}function _d(t){t.producersTail=void 0,t.recomputing=!0}function pn(t,e){O(e),t&&Dd(t)}function Dd(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(or(t))do n=Pa(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function hn(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(ui(n),r!==n.version))return!0}return!1}function $t(t){if(or(t)){let e=t.producers;for(;e!==void 0;)e=Pa(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Cd(t,e){let n=t.consumersTail,r=or(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)Cd(o.producer,o)}function Pa(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:e.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(e.consumers=r,!or(e)){let i=e.producers;for(;i!==void 0;)i=Pa(i)}return n}function or(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function di(t){ey?.(t)}function ny(t,e){let n=e.producersTail;if(n!==void 0){let r=e.producers;do{if(r===t)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function fi(t,e){return Object.is(t,e)}function $r(t,e){let n=Object.create(ry);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(ui(n),fn(n),n.value===Hr)throw n.error;return n.value};return r[Te]=n,di(n),r}var si=Symbol("UNSET"),ai=Symbol("COMPUTING"),Hr=Symbol("ERRORED"),ry=ae(Q({},dn),{value:si,dirty:!0,error:null,equal:fi,kind:"computed",producerMustRecompute(t){return t.value===si||t.value===ai},producerRecomputeValue(t){if(t.value===ai)throw new Error("");let e=t.value;t.value=ai;let n=Ht(t),r,o=!1;try{r=t.computation(),O(null),o=e!==si&&e!==Hr&&r!==Hr&&t.equal(e,r)}catch(i){r=Hr,t.error=i}finally{pn(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function oy(){throw new Error}var Ed=oy;function wd(t){Ed(t)}function Fa(t){Ed=t}var iy=null;function La(t,e){let n=Object.create(Ur);n.value=t,e!==void 0&&(n.equal=e);let r=()=>xd(n);return r[Te]=n,di(n),[r,s=>ir(n,s),s=>ja(n,s)]}function xd(t){return fn(t),t.value}function ir(t,e){Oa()||wd(t),t.equal(t.value,e)||(t.value=e,sy(t))}function ja(t,e){Oa()||wd(t),ir(t,e(t.value))}var Ur=ae(Q({},dn),{equal:fi,value:void 0,kind:"signal"});function sy(t){t.version++,bd(),Aa(t),iy?.(t)}function V(t){return typeof t=="function"}function sr(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var pi=sr(t=>function(n){t(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 gn(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ue=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(V(r))try{r()}catch(i){e=i instanceof pi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Id(i)}catch(s){e=e??[],s instanceof pi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new pi(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Id(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&gn(n,e)}remove(e){let{_finalizers:n}=this;n&&gn(n,e),e instanceof t&&e._removeParent(this)}};ue.EMPTY=(()=>{let t=new ue;return t.closed=!0,t})();var Va=ue.EMPTY;function hi(t){return t instanceof ue||t&&"closed"in t&&V(t.remove)&&V(t.add)&&V(t.unsubscribe)}function Id(t){V(t)?t():t.unsubscribe()}var ct={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ar={setTimeout(t,e,...n){let{delegate:r}=ar;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=ar;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function gi(t){ar.setTimeout(()=>{let{onUnhandledError:e}=ct;if(e)e(t);else throw t})}function zr(){}var Td=Ba("C",void 0,void 0);function Md(t){return Ba("E",void 0,t)}function Sd(t){return Ba("N",t,void 0)}function Ba(t,e,n){return{kind:t,value:e,error:n}}var mn=null;function cr(t){if(ct.useDeprecatedSynchronousErrorHandling){let e=!mn;if(e&&(mn={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=mn;if(mn=null,n)throw r}}else t()}function Nd(t){ct.useDeprecatedSynchronousErrorHandling&&mn&&(mn.errorThrown=!0,mn.error=t)}var yn=class extends ue{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,hi(e)&&e.add(this)):this.destination=ly}static create(e,n,r){return new lt(e,n,r)}next(e){this.isStopped?$a(Sd(e),this):this._next(e)}error(e){this.isStopped?$a(Md(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?$a(Td,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},ay=Function.prototype.bind;function Ha(t,e){return ay.call(t,e)}var Ua=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){mi(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){mi(r)}else mi(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){mi(n)}}},lt=class extends yn{constructor(e,n,r){super();let o;if(V(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ct.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Ha(e.next,i),error:e.error&&Ha(e.error,i),complete:e.complete&&Ha(e.complete,i)}):o=e}this.destination=new Ua(o)}};function mi(t){ct.useDeprecatedSynchronousErrorHandling?Nd(t):gi(t)}function cy(t){throw t}function $a(t,e){let{onStoppedNotification:n}=ct;n&&ar.setTimeout(()=>n(t,e))}var ly={closed:!0,next:zr,error:cy,complete:zr};var lr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ur(t){return t}function Rd(t){return t.length===0?ur:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var H=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=dy(n)?n:new lt(n,r,o);return cr(()=>{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=kd(r),new r((o,i)=>{let s=new lt({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)}[lr](){return this}pipe(...n){return Rd(n)(this)}toPromise(n){return n=kd(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function kd(t){var e;return(e=t??ct.Promise)!==null&&e!==void 0?e:Promise}function uy(t){return t&&V(t.next)&&V(t.error)&&V(t.complete)}function dy(t){return t&&t instanceof yn||uy(t)&&hi(t)}function za(t){return V(t?.lift)}function Z(t){return e=>{if(za(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function K(t,e,n,r,o){return new Ga(t,e,n,r,o)}var Ga=class extends yn{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Ad(){return Z((t,e)=>{let n=null;t._refCount++;let r=K(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var Gr=class extends H{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,za(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ue;let n=this.getSubject();e.add(this.source.subscribe(K(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ue.EMPTY)}return e}refCount(){return Ad()(this)}};var dr={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=dr;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new ue(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=dr;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=dr;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Od=sr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var fe=(()=>{class t extends H{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new yi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Od}next(n){cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){cr(()=>{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(){cr(()=>{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?Va:(this.currentObservers=null,i.push(n),new ue(()=>{this.currentObservers=null,gn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new H;return n.source=this,n}}return t.create=(e,n)=>new yi(e,n),t})(),yi=class extends fe{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Va}};var Wr=class extends fe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var qr={now(){return(qr.delegate||Date).now()},delegate:void 0};var vn=class extends fe{constructor(e=1/0,n=1/0,r=qr){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var vi=class extends ue{constructor(e,n){super()}schedule(e,n=0){return this}};var Zr={setInterval(t,e,...n){let{delegate:r}=Zr;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=Zr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Ut=class extends vi{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return Zr.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Zr.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,o;try{this.work(e)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,gn(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var fy=1,Wa,qa={};function Pd(t){return t in qa?(delete qa[t],!0):!1}var Fd={setImmediate(t){let e=fy++;return qa[e]=!0,Wa||(Wa=Promise.resolve()),Wa.then(()=>Pd(e)&&t()),e},clearImmediate(t){Pd(t)}};var{setImmediate:py,clearImmediate:hy}=Fd,Yr={setImmediate(...t){let{delegate:e}=Yr;return(e?.setImmediate||py)(...t)},clearImmediate(t){let{delegate:e}=Yr;return(e?.clearImmediate||hy)(t)},delegate:void 0};var bi=class extends Ut{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Yr.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Yr.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var fr=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};fr.now=qr.now;var zt=class extends fr{constructor(e,n=fr.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var _i=class extends zt{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var Za=new _i(bi);var Qr=new zt(Ut),Ld=Qr;var Di=class extends Ut{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=dr.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(dr.cancelAnimationFrame(n),e._scheduled=void 0)}};var Ci=class extends zt{flush(e){this._active=!0;let n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var Ya=new Ci(Di);function Ei(t){return t&&V(t.schedule)}function jd(t){return t[t.length-1]}function Vd(t){return V(jd(t))?t.pop():void 0}function pr(t){return Ei(jd(t))?t.pop():void 0}function Hd(t,e,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(t,e||[])).next())})}function Bd(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function bn(t){return this instanceof bn?(this.v=t,this):new bn(t)}function $d(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),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(_){return Promise.resolve(_).then(f,d)}}function a(f,_){r[f]&&(o[f]=function(I){return new Promise(function(M,C){i.push([f,I,M,C])>1||c(f,I)})},_&&(o[f]=_(o[f])))}function c(f,_){try{l(r[f](_))}catch(I){h(i[0][3],I)}}function l(f){f.value instanceof bn?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,_){f(_),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ud(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Bd=="function"?Bd(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[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 wi=t=>t&&typeof t.length=="number"&&typeof t!="function";function xi(t){return V(t?.then)}function Ii(t){return V(t[lr])}function Ti(t){return Symbol.asyncIterator&&V(t?.[Symbol.asyncIterator])}function Mi(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function gy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si=gy();function Ni(t){return V(t?.[Si])}function Ri(t){return $d(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield bn(n.read());if(o)return yield bn(void 0);yield yield bn(r)}}finally{n.releaseLock()}})}function ki(t){return V(t?.getReader)}function ce(t){if(t instanceof H)return t;if(t!=null){if(Ii(t))return my(t);if(wi(t))return yy(t);if(xi(t))return vy(t);if(Ti(t))return zd(t);if(Ni(t))return by(t);if(ki(t))return _y(t)}throw Mi(t)}function my(t){return new H(e=>{let n=t[lr]();if(V(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function yy(t){return new H(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function vy(t){return new H(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,gi)})}function by(t){return new H(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function zd(t){return new H(e=>{Dy(t,e).catch(n=>e.error(n))})}function _y(t){return zd(Ri(t))}function Dy(t,e){var n,r,o,i;return Hd(this,void 0,void 0,function*(){try{for(n=Ud(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.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}}e.complete()})}function Ke(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Ai(t,e=0){return Z((n,r)=>{n.subscribe(K(r,o=>Ke(r,t,()=>r.next(o),e),()=>Ke(r,t,()=>r.complete(),e),o=>Ke(r,t,()=>r.error(o),e)))})}function Oi(t,e=0){return Z((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Gd(t,e){return ce(t).pipe(Oi(e),Ai(e))}function Wd(t,e){return ce(t).pipe(Oi(e),Ai(e))}function qd(t,e){return new H(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Zd(t,e){return new H(n=>{let r;return Ke(n,e,()=>{r=t[Si](),Ke(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>V(r?.return)&&r.return()})}function Pi(t,e){if(!t)throw new Error("Iterable cannot be null");return new H(n=>{Ke(n,e,()=>{let r=t[Symbol.asyncIterator]();Ke(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Yd(t,e){return Pi(Ri(t),e)}function Qd(t,e){if(t!=null){if(Ii(t))return Gd(t,e);if(wi(t))return qd(t,e);if(xi(t))return Wd(t,e);if(Ti(t))return Pi(t,e);if(Ni(t))return Zd(t,e);if(ki(t))return Yd(t,e)}throw Mi(t)}function Fi(t,e){return e?Qd(t,e):ce(t)}function qe(...t){let e=pr(t);return Fi(t,e)}function Qa(t,e){let n=V(t)?t:()=>t,r=o=>o.error(n());return new H(e?o=>e.schedule(r,0,o):r)}function Kr(t){return!!t&&(t instanceof H||V(t.lift)&&V(t.subscribe))}var Kd=sr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Li(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=new lt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(e.defaultValue):o(new Kd)}});t.subscribe(i)})}function Xd(t){return t instanceof Date&&!isNaN(t)}function Xe(t,e){return Z((n,r)=>{let o=0;n.subscribe(K(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:Cy}=Array;function Ey(t,e){return Cy(e)?t(...e):t(e)}function Jd(t){return Xe(e=>Ey(t,e))}var{isArray:wy}=Array,{getPrototypeOf:xy,prototype:Iy,keys:Ty}=Object;function ef(t){if(t.length===1){let e=t[0];if(wy(e))return{args:e,keys:null};if(My(e)){let n=Ty(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function My(t){return t&&typeof t=="object"&&xy(t)===Iy}function tf(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function nf(t,e,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&e.complete()},f=I=>l<r?_(I):c.push(I),_=I=>{i&&e.next(I),l++;let M=!1;ce(n(I,u++)).subscribe(K(e,C=>{o?.(C),i?f(C):e.next(C)},()=>{M=!0},void 0,()=>{if(M)try{for(l--;c.length&&l<r;){let C=c.shift();s?Ke(e,s,()=>_(C)):_(C)}h()}catch(C){e.error(C)}}))};return t.subscribe(K(e,f,()=>{d=!0,h()})),()=>{a?.()}}function hr(t,e,n=1/0){return V(e)?hr((r,o)=>Xe((i,s)=>e(r,i,o,s))(ce(t(r,o))),n):(typeof e=="number"&&(n=e),Z((r,o)=>nf(r,o,t,n)))}function rf(t=1/0){return hr(ur,t)}function of(){return rf(1)}function Ka(...t){return of()(Fi(t,pr(t)))}function Xa(t){return new H(e=>{ce(t()).subscribe(e)})}function Ja(...t){let e=Vd(t),{args:n,keys:r}=ef(t),o=new H(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;ce(n[u]).subscribe(K(i,h=>{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?tf(r,a):a),i.complete())}))}});return e?o.pipe(Jd(e)):o}function sf(t=0,e,n=Ld){let r=-1;return e!=null&&(Ei(e)?n=e:r=e),new H(o=>{let i=Xd(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Xr(t,e){return Z((n,r)=>{let o=0;n.subscribe(K(r,i=>t.call(e,i,o++)&&r.next(i)))})}function af(t){return Z((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};e.subscribe(K(n,l=>{r=!0,o=l,i||ce(t(l)).subscribe(i=K(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Jr(t,e=Qr){return af(()=>sf(t,e))}function ji(t){return Z((e,n)=>{let r=null,o=!1,i;r=e.subscribe(K(n,void 0,void 0,s=>{i=ce(t(s,ji(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function ec(t,e){return V(e)?hr(t,e,1):hr(t,1)}function tc(t,e=Qr){return Z((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(K(r,l=>{i=l,s=e.now(),o||(o=e.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function eo(t,e=ur){return t=t??Sy,Z((n,r)=>{let o,i=!0;n.subscribe(K(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function Sy(t,e){return t===e}function gr(t){return Z((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function nc(){return Z((t,e)=>{let n,r=!1;t.subscribe(K(e,o=>{let i=n;n=o,r&&e.next([i,o]),r=!0}))})}function cf(t={}){let{connector:e=()=>new fe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,u=d=!1},_=()=>{let I=s;f(),I?.unsubscribe()};return Z((I,M)=>{l++,!d&&!u&&h();let C=c=c??e();M.add(()=>{l--,l===0&&!d&&!u&&(a=rc(_,o))}),C.subscribe(M),!s&&l>0&&(s=new lt({next:de=>C.next(de),error:de=>{d=!0,h(),a=rc(f,n,de),C.error(de)},complete:()=>{u=!0,h(),a=rc(f,r),C.complete()}}),ce(I).subscribe(s))})(i)}}function rc(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new lt({next:()=>{r.unsubscribe(),t()}});return ce(e(...n)).subscribe(r)}function oc(t,e,n){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:n}=t:r=t??1/0,cf({connector:()=>new vn(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Vi(...t){let e=pr(t);return Z((n,r)=>{(e?Ka(t,n,e):Ka(t,n)).subscribe(r)})}function to(t,e){return Z((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(K(r,c=>{o?.unsubscribe();let l=0,u=i++;ce(t(c,u)).subscribe(o=K(r,d=>r.next(e?e(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function _n(t){return Z((e,n)=>{ce(t).subscribe(K(n,()=>n.complete(),zr)),!n.closed&&e.subscribe(n)})}function lf(t){let e=O(null);try{return t()}finally{O(e)}}var uf=ae(Q({},dn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function df(t){if(t.dirty=!1,t.version>0&&!hn(t))return;t.version++;let e=Ht(t);try{t.cleanup(),t.fn()}finally{pn(t,e)}}var yc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",T=class extends Error{code;constructor(e,n){super(In(e,n)),this.code=e}};function Ny(t){return`NG0${Math.abs(t)}`}function In(t,e){return`${Ny(t)}${e?": "+e:""}`}var Tn=globalThis;function ne(t){for(let e in t)if(t[e]===ne)return e;throw Error("")}function hf(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Gt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Gt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Ui(t,e){return t?e?`${t} ${e}`:t:e||""}var Ry=ne({__forward_ref__:ne});function yr(t){return t.__forward_ref__=yr,t.toString=function(){return Gt(this())},t}function Oe(t){return gf(t)?t():t}function gf(t){return typeof t=="function"&&t.hasOwnProperty(Ry)&&t.__forward_ref__===yr}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function zi(t){return ky(t,Gi)}function ky(t,e){return t.hasOwnProperty(e)&&t[e]||null}function Ay(t){let e=t?.[Gi]??null;return e||null}function sc(t){return t&&t.hasOwnProperty(Hi)?t[Hi]:null}var Gi=ne({\u0275prov:ne}),Hi=ne({\u0275inj:ne}),k=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function vc(t){return t&&!!t.\u0275providers}var bc=ne({\u0275cmp:ne}),_c=ne({\u0275dir:ne}),Dc=ne({\u0275pipe:ne});var ac=ne({\u0275fac:ne}),Mn=ne({__NG_ELEMENT_ID__:ne}),ff=ne({__NG_ENV_ID__:ne});function vr(t){return typeof t=="string"?t:t==null?"":String(t)}function mf(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():vr(t)}var yf=ne({ngErrorCode:ne}),Oy=ne({ngErrorMessage:ne}),Py=ne({ngTokenPath:ne});function Cc(t,e){return vf("",-200,e)}function Wi(t,e){throw new T(-201,!1)}function vf(t,e,n){let r=new T(e,t);return r[yf]=e,r[Oy]=t,n&&(r[Py]=n),r}function Fy(t){return t[yf]}var cc;function bf(){return cc}function Le(t){let e=cc;return cc=t,e}function Ec(t,e,n){let r=zi(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;Wi(t,"Injector")}var Ly={},Dn=Ly,lc="__NG_DI_FLAG__",uc=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=Cn(n)||0;try{return this.injector.get(e,r&8?null:Dn,r)}catch(o){if(rr(o))return o;throw o}}};function jy(t,e=0){let n=oi();if(n===void 0)throw new T(-203,!1);if(n===null)return Ec(t,void 0,e);{let r=Vy(e),o=n.retrieve(t,r);if(rr(o)){if(r.optional)return null;throw o}return o}}function z(t,e=0){return(bf()||jy)(Oe(t),e)}function v(t,e){return z(t,Cn(e))}function Cn(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Vy(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function dc(t){let e=[];for(let n=0;n<t.length;n++){let r=Oe(t[n]);if(Array.isArray(r)){if(r.length===0)throw new T(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=By(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(z(o,i))}else e.push(z(r))}return e}function wc(t,e){return t[lc]=e,t.prototype[lc]=e,t}function By(t){return t[lc]}function En(t,e){let n=t.hasOwnProperty(ac);return n?t[ac]:null}function _f(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Df(t){return t.flat(Number.POSITIVE_INFINITY)}function qi(t,e){t.forEach(n=>Array.isArray(n)?qi(n,e):e(n))}function xc(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function io(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Cf(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Ef(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=n,t[e+1]=r}}function Zi(t,e,n){let r=br(t,e);return r>=0?t[r|1]=n:(r=~r,Ef(t,r,e,n)),r}function Yi(t,e){let n=br(t,e);if(n>=0)return t[n|1]}function br(t,e){return Hy(t,e,1)}function Hy(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}var qt={},Je=[],Sn=new k(""),Ic=new k("",-1),Tc=new k(""),ro=class{get(e,n=Dn){if(n===Dn){let o=vf("",-201);throw o.name="\u0275NotFound",o}return n}};function Nn(t){return t[bc]||null}function Mc(t){return t[_c]||null}function wf(t){return t[Dc]||null}function so(t){return{\u0275providers:t}}function xf(...t){return{\u0275providers:Sc(!0,t),\u0275fromNgModule:!0}}function Sc(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return qi(e,s=>{let a=s;$i(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&If(o,i),n}function If(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];Nc(o,i=>{e(i,r)})}}function $i(t,e,n,r){if(t=Oe(t),!t)return!1;let o=null,i=sc(t),s=!i&&Nn(t);if(!i&&!s){let c=t.ngModule;if(i=sc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}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)$i(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;qi(i.imports,u=>{$i(u,e,n,r)&&(l||=[],l.push(u))}),l!==void 0&&If(l,e)}if(!a){let l=En(o)||(()=>new o);e({provide:o,useFactory:l,deps:Je},o),e({provide:Tc,useValue:o,multi:!0},o),e({provide:Sn,useValue:()=>z(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;Nc(c,u=>{e(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function Nc(t,e){for(let n of t)vc(n)&&(n=n.\u0275providers),Array.isArray(n)?Nc(n,e):e(n)}var $y=ne({provide:String,useValue:ne});function Tf(t){return t!==null&&typeof t=="object"&&$y in t}function Uy(t){return!!(t&&t.useExisting)}function zy(t){return!!(t&&t.useFactory)}function wn(t){return typeof t=="function"}function Mf(t){return!!t.useClass}var ao=new k(""),Bi={},pf={},ic;function co(){return ic===void 0&&(ic=new ro),ic}var ze=class{},xn=class extends ze{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,pc(e,s=>this.processProvider(s)),this.records.set(Ic,mr(void 0,this)),o.has("environment")&&this.records.set(ze,mr(void 0,this));let i=this.records.get(ao);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Tc,Je,{self:!0}))}retrieve(e,n){let r=Cn(n)||0;try{return this.get(e,Dn,r)}catch(o){if(rr(o))return o;throw o}}destroy(){no(this),this._destroyed=!0;let e=O(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),O(e)}}onDestroy(e){return no(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){no(this);let n=bt(this),r=Le(void 0),o;try{return e()}finally{bt(n),Le(r)}}get(e,n=Dn,r){if(no(this),e.hasOwnProperty(ff))return e[ff](this);let o=Cn(r),i,s=bt(this),a=Le(void 0);try{if(!(o&4)){let l=this.records.get(e);if(l===void 0){let u=Yy(e)&&zi(e);u&&this.injectableDefInScope(u)?l=mr(fc(e),Bi):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,o)}let c=o&2?co():this.parent;return n=o&8&&n===Dn?null:n,c.get(e,n)}catch(c){let l=Fy(c);throw l===-200||l===-201?new T(l,null):c}finally{Le(a),bt(s)}}resolveInjectorInitializers(){let e=O(null),n=bt(this),r=Le(void 0),o;try{let i=this.get(Sn,Je,{self:!0});for(let s of i)s()}finally{bt(n),Le(r),O(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(Gt(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=Oe(e);let n=wn(e)?e:Oe(e&&e.provide),r=Wy(e);if(!wn(e)&&e.multi===!0){let o=this.records.get(n);o||(o=mr(void 0,Bi,!0),o.factory=()=>dc(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=O(null);try{if(n.value===pf)throw Cc(Gt(e));return n.value===Bi&&(n.value=pf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Zy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(o)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Oe(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function fc(t){let e=zi(t),n=e!==null?e.factory:En(t);if(n!==null)return n;if(t instanceof k)throw new T(204,!1);if(t instanceof Function)return Gy(t);throw new T(204,!1)}function Gy(t){if(t.length>0)throw new T(204,!1);let n=Ay(t);return n!==null?()=>n.factory(t):()=>new t}function Wy(t){if(Tf(t))return mr(void 0,t.useValue);{let e=Rc(t);return mr(e,Bi)}}function Rc(t,e,n){let r;if(wn(t)){let o=Oe(t);return En(o)||fc(o)}else if(Tf(t))r=()=>Oe(t.useValue);else if(zy(t))r=()=>t.useFactory(...dc(t.deps||[]));else if(Uy(t))r=(o,i)=>z(Oe(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Oe(t&&(t.useClass||t.provide));if(qy(t))r=()=>new o(...dc(t.deps));else return En(o)||fc(o)}return r}function no(t){if(t.destroyed)throw new T(205,!1)}function mr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function qy(t){return!!t.deps}function Zy(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Yy(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function pc(t,e){for(let n of t)Array.isArray(n)?pc(n,e):n&&vc(n)?pc(n.\u0275providers,e):e(n)}function _r(t,e){let n;t instanceof xn?(no(t),n=t):n=new uc(t);let r,o=bt(n),i=Le(void 0);try{return e()}finally{bt(o),Le(i)}}function Sf(){return bf()!==void 0||oi()!=null}var ut=0,A=1,F=2,Ce=3,tt=4,Ve=5,Rn=6,Dr=7,ye=8,kt=9,At=10,le=11,Cr=12,kc=13,kn=14,Be=15,Zt=16,An=17,_t=18,lo=19,Ac=20,Rt=21,Qi=22,Ot=23,Ye=24,On=25,Pn=26,he=27,Nf=1,Oc=6,Yt=7,uo=8,Fn=9,ge=10;function Dt(t){return Array.isArray(t)&&typeof t[Nf]=="object"}function dt(t){return Array.isArray(t)&&t[Nf]===!0}function Pc(t){return(t.flags&4)!==0}function Qt(t){return t.componentOffset>-1}function fo(t){return(t.flags&1)===1}function Ct(t){return!!t.template}function Er(t){return(t[F]&512)!==0}function Ln(t){return(t[F]&256)===256}var Fc="svg",Rf="math";function nt(t){for(;Array.isArray(t);)t=t[ut];return t}function Lc(t,e){return nt(e[t])}function ft(t,e){return nt(e[t.index])}function po(t,e){return t.data[e]}function kf(t,e){return t[e]}function jc(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function rt(t,e){let n=e[t];return Dt(n)?n:n[ut]}function Af(t){return(t[F]&4)===4}function Ki(t){return(t[F]&128)===128}function Of(t){return dt(t[Ce])}function ot(t,e){return e==null?null:t[e]}function Vc(t){t[An]=0}function Bc(t){t[F]&1024||(t[F]|=1024,Ki(t)&&Kt(t))}function Pf(t,e){for(;t>0;)e=e[kn],t--;return e}function ho(t){return!!(t[F]&9216||t[Ye]?.dirty)}function Xi(t){t[At].changeDetectionScheduler?.notify(8),t[F]&64&&(t[F]|=1024),ho(t)&&Kt(t)}function Kt(t){t[At].changeDetectionScheduler?.notify(0);let e=Wt(t);for(;e!==null&&!(e[F]&8192||(e[F]|=8192,!Ki(e)));)e=Wt(e)}function Hc(t,e){if(Ln(t))throw new T(911,!1);t[Rt]===null&&(t[Rt]=[]),t[Rt].push(e)}function Ff(t,e){if(t[Rt]===null)return;let n=t[Rt].indexOf(e);n!==-1&&t[Rt].splice(n,1)}function Wt(t){let e=t[Ce];return dt(e)?e[Ce]:e}function $c(t){return t[Dr]??=[]}function Uc(t){return t.cleanup??=[]}function Lf(t,e,n,r){let o=$c(e);o.push(n),t.firstCreatePass&&Uc(t).push(r,o.length-1)}var B={lFrame:Yf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var hc=!1;function jf(){return B.lFrame.elementDepthCount}function Vf(){B.lFrame.elementDepthCount++}function zc(){B.lFrame.elementDepthCount--}function Gc(){return B.bindingsEnabled}function Wc(){return B.skipHydrationRootTNode!==null}function qc(t){return B.skipHydrationRootTNode===t}function Zc(){B.skipHydrationRootTNode=null}function j(){return B.lFrame.lView}function ve(){return B.lFrame.tView}function E(t){return B.lFrame.contextLView=t,t[ye]}function w(t){return B.lFrame.contextLView=null,t}function Pe(){let t=Yc();for(;t!==null&&t.type===64;)t=t.parent;return t}function Yc(){return B.lFrame.currentTNode}function Bf(){let t=B.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function wr(t,e){let n=B.lFrame;n.currentTNode=t,n.isParent=e}function Qc(){return B.lFrame.isParent}function Kc(){B.lFrame.isParent=!1}function Xc(){return hc}function xr(t){let e=hc;return hc=t,e}function Hf(){let t=B.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function $f(){return B.lFrame.bindingIndex}function Uf(t){return B.lFrame.bindingIndex=t}function jn(){return B.lFrame.bindingIndex++}function Ji(t){let e=B.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function zf(){return B.lFrame.inI18n}function Gf(t,e){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=t,es(e)}function Wf(){return B.lFrame.currentDirectiveIndex}function es(t){B.lFrame.currentDirectiveIndex=t}function qf(t){let e=B.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function ts(){return B.lFrame.currentQueryIndex}function go(t){B.lFrame.currentQueryIndex=t}function Qy(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[Ve]:null}function Jc(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=Qy(i),o===null||(i=i[kn],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=B.lFrame=Zf();return r.currentTNode=e,r.lView=t,!0}function ns(t){let e=Zf(),n=t[A];B.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Zf(){let t=B.lFrame,e=t===null?null:t.child;return e===null?Yf(t):e}function Yf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Qf(){let t=B.lFrame;return B.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var el=Qf;function rs(){let t=Qf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Kf(t){return(B.lFrame.contextLView=Pf(t,B.lFrame.contextLView))[ye]}function Et(){return B.lFrame.selectedIndex}function Xt(t){B.lFrame.selectedIndex=t}function os(){let t=B.lFrame;return po(t.tView,t.selectedIndex)}function J(){B.lFrame.currentNamespace=Fc}function Ee(){Ky()}function Ky(){B.lFrame.currentNamespace=null}function tl(){return B.lFrame.currentNamespace}var Xf=!0;function is(){return Xf}function ss(t){Xf=t}function gc(t,e=null,n=null,r){let o=Jf(t,e,n,r);return o.resolveInjectorInitializers(),o}function Jf(t,e=null,n=null,r,o=new Set){let i=[n||Je,xf(t)];return r=r||(typeof t=="object"?void 0:Gt(t)),new xn(i,e||co(),r||null,o)}var je=class t{static THROW_IF_NOT_FOUND=Dn;static NULL=new ro;static create(e,n){if(Array.isArray(e))return gc({name:""},n,e,"");{let r=e.name??"";return gc({name:r},e.parent,e.providers,r)}}static \u0275prov=L({token:t,providedIn:"any",factory:()=>z(Ic)});static __NG_ELEMENT_ID__=-1},Re=new k(""),He=(()=>{class t{static __NG_ELEMENT_ID__=Xy;static __NG_ENV_ID__=n=>n}return t})(),oo=class extends He{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Ln(this._lView)}onDestroy(e){let n=this._lView;return Hc(n,e),()=>Ff(n,e)}};function Xy(){return new oo(j())}var Ze=class{_console=console;handleError(e){this._console.error("ERROR",e)}},wt=new k("",{providedIn:"root",factory:()=>{let t=v(ze),e;return n=>{t.destroyed&&!e?setTimeout(()=>{throw n}):(e??=t.get(Ze),e.handleError(n))}}}),ep={provide:Sn,useValue:()=>{v(Ze)},multi:!0};function D(t,e){let[n,r,o]=La(t,e?.equal),i=n,s=i[Te];return i.set=r,i.update=o,i.asReadonly=nl.bind(i),i}function nl(){let t=this[Te];if(t.readonlyFn===void 0){let e=()=>this();e[Te]=t,t.readonlyFn=e}return t.readonlyFn}var Vn=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Jy}return t})();function Jy(){return new Vn(j(),Pe())}var et=class{},mo=new k("",{providedIn:"root",factory:()=>!1});var rl=new k(""),ol=new k(""),Jt=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Wr(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new H(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=L({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ir=(()=>{class t{internalPendingTasks=v(Jt);scheduler=v(et);errorHandler=v(wt);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=L({token:t,providedIn:"root",factory:()=>new t})}return t})();function Bn(...t){}var yo=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>new mc})}return t})(),mc=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Ns(t){return{toString:t}.toString()}var as="__parameters__";function lv(t){return function(...n){if(t){let r=t(...n);for(let o in r)this[o]=r[o]}}}function Sp(t,e,n){return Ns(()=>{let r=lv(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(as)?c[as]:Object.defineProperty(c,as,{value:[]})[as];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var Zl=wc(Sp("Inject",t=>({token:t})),-1),Yl=wc(Sp("Optional"),8);function uv(t){return typeof t=="function"}var gs=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Np(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var Rs=(()=>{let t=()=>Rp;return t.ngInherit=!0,t})();function Rp(t){return t.type.prototype.ngOnChanges&&(t.setInput=fv),dv}function dv(){let t=Ap(this),e=t?.current;if(e){let n=t.previous;if(n===qt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function fv(t,e,n,r,o){let i=this.declaredInputs[r],s=Ap(t)||pv(t,{previous:qt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new gs(l&&l.currentValue,n,c===qt),Np(t,e,o,n)}var kp="__ngSimpleChanges__";function Ap(t){return t[kp]||null}function pv(t,e){return t[kp]=e}var tp=[];var te=function(t,e=null,n){for(let r=0;r<tp.length;r++){let o=tp[r];o(t,e,n)}};function hv(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=Rp(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function Op(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),c&&(t.viewHooks??=[]).push(-n,c),l&&((t.viewHooks??=[]).push(n,l),(t.viewCheckHooks??=[]).push(n,l)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function us(t,e,n){Pp(t,e,3,n)}function ds(t,e,n,r){(t[F]&3)===n&&Pp(t,e,n,r)}function il(t,e){let n=t[F];(n&3)===e&&(n&=16383,n+=1,t[F]=n)}function Pp(t,e,n,r){let o=r!==void 0?t[An]&65535:0,i=r??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],r!=null&&a>=r)break}else e[c]<0&&(t[An]+=65536),(a<i||i==-1)&&(gv(t,n,e,c),t[An]=(t[An]&4294901760)+c+2),c++}function np(t,e){te(4,t,e);let n=O(null);try{e.call(t)}finally{O(n),te(5,t,e)}}function gv(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[F]>>14<t[An]>>16&&(t[F]&3)===e&&(t[F]+=16384,np(a,i)):np(a,i)}var Mr=-1,$n=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,o){this.factory=e,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function mv(t){return(t.flags&8)!==0}function yv(t){return(t.flags&16)!==0}function vv(t,e,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++];t.setAttribute(e,s,a,i)}else{let i=o,s=n[++r];_v(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function bv(t){return t===3||t===4||t===6}function _v(t){return t.charCodeAt(0)===64}function Sr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?rp(t,n,o,null,e[++r]):rp(t,n,o,null,null))}}return t}function rp(t,e,n,r,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=i-1;break}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===n){o!==null&&(t[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),o!==null&&t.splice(i++,0,o)}function Fp(t){return t!==Mr}function ms(t){return t&32767}function Dv(t){return t>>16}function ys(t,e){let n=Dv(t),r=e;for(;n>0;)r=r[kn],n--;return r}var ml=!0;function vs(t){let e=ml;return ml=t,e}var Cv=256,Lp=Cv-1,jp=5,Ev=0,xt={};function wv(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Mn)&&(r=n[Mn]),r==null&&(r=n[Mn]=Ev++);let o=r&Lp,i=1<<o;e.data[t+(o>>jp)]|=i}function bs(t,e){let n=Vp(t,e);if(n!==-1)return n;let r=e[A];r.firstCreatePass&&(t.injectorIndex=e.length,sl(r.data,t),sl(e,null),sl(r.blueprint,null));let o=Ql(t,e),i=t.injectorIndex;if(Fp(o)){let s=ms(o),a=ys(o,e),c=a[A].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function sl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Vp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ql(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=zp(o),r===null)return Mr;if(n++,o=o[kn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Mr}function yl(t,e,n){wv(t,e,n)}function Bp(t,e,n){if(n&8||t!==void 0)return t;Wi(e,"NodeInjector")}function Hp(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[kt],i=Le(void 0);try{return o?o.get(e,r,n&8):Ec(e,r,n&8)}finally{Le(i)}}return Bp(r,e,n)}function $p(t,e,n,r=0,o){if(t!==null){if(e[F]&2048&&!(r&2)){let s=Mv(t,e,n,r,xt);if(s!==xt)return s}let i=Up(t,e,n,r,xt);if(i!==xt)return i}return Hp(e,n,r,o)}function Up(t,e,n,r,o){let i=Iv(n);if(typeof i=="function"){if(!Jc(e,t,r))return r&1?Bp(o,n,r):Hp(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Wi(n);else return s}finally{el()}}else if(typeof i=="number"){let s=null,a=Vp(t,e),c=Mr,l=r&1?e[Be][Ve]:null;for((a===-1||r&4)&&(c=a===-1?Ql(t,e):e[a+8],c===Mr||!ip(r,!1)?a=-1:(s=e[A],a=ms(c),e=ys(c,e)));a!==-1;){let u=e[A];if(op(i,a,u.data)){let d=xv(a,e,n,s,r,l);if(d!==xt)return d}c=e[a+8],c!==Mr&&ip(r,e[A].data[a+8]===l)&&op(i,a,e)?(s=u,a=ms(c),e=ys(c,e)):a=-1}}return o}function xv(t,e,n,r,o,i){let s=e[A],a=s.data[t+8],c=r==null?Qt(a)&&ml:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=fs(a,s,n,c,l);return u!==null?_o(e,s,u,a,o):xt}function fs(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,l=t.directiveEnd,u=i>>20,d=r?a:a+u,h=o?a+u:l;for(let f=d;f<h;f++){let _=s[f];if(f<c&&n===_||f>=c&&_.type===n)return f}if(o){let f=s[c];if(f&&Ct(f)&&f.type===n)return c}return null}function _o(t,e,n,r,o){let i=t[n],s=e.data;if(i instanceof $n){let a=i;if(a.resolving){let f=mf(s[n]);throw Cc(f)}let c=vs(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?Le(a.injectImpl):null,h=Jc(t,r,0);try{i=t[n]=a.factory(void 0,o,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&hv(n,s[n],e)}finally{d!==null&&Le(d),vs(c),a.resolving=!1,el()}}return i}function Iv(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Mn)?t[Mn]:void 0;return typeof e=="number"?e>=0?e&Lp:Tv:e}function op(t,e,n){let r=1<<t;return!!(n[e+(t>>jp)]&r)}function ip(t,e){return!(t&2)&&!(t&1&&e)}var Hn=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return $p(this._tNode,this._lView,e,Cn(r),n)}};function Tv(){return new Hn(Pe(),j())}function Mv(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[F]&2048&&!Er(s);){let a=Up(i,s,n,r|2,xt);if(a!==xt)return a;let c=i.parent;if(!c){let l=s[Ac];if(l){let u=l.get(n,xt,r);if(u!==xt)return u}c=zp(s),s=s[kn]}i=c}return o}function zp(t){let e=t[A],n=e.type;return n===2?e.declTNode:n===1?t[Ve]:null}function Sv(){return Ar(Pe(),j())}function Ar(t,e){return new mt(ft(t,e))}var mt=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Sv}return t})();function Gp(t){return t instanceof mt?t.nativeElement:t}function Nv(){return this._results[Symbol.iterator]()}var _s=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 fe}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=Df(e);(this._changesDetected=!_f(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(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Nv};function Wp(t){return(t.flags&128)===128}var Kl=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(Kl||{}),qp=new Map,Rv=0;function kv(){return Rv++}function Av(t){qp.set(t[lo],t)}function vl(t){qp.delete(t[lo])}var sp="__ngContext__";function Nr(t,e){Dt(e)?(t[sp]=e[lo],Av(e)):t[sp]=e}function Zp(t){return Qp(t[Cr])}function Yp(t){return Qp(t[tt])}function Qp(t){for(;t!==null&&!dt(t);)t=t[tt];return t}var bl;function Xl(t){bl=t}function Kp(){if(bl!==void 0)return bl;if(typeof document<"u")return document;throw new T(210,!1)}var ks=new k("",{providedIn:"root",factory:()=>Ov}),Ov="ng",As=new k(""),Gn=new k("",{providedIn:"platform",factory:()=>"unknown"});var Os=new k("",{providedIn:"root",factory:()=>Kp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Pv="h",Fv="b";var Xp="r";var Jp="di";var eh=!1,th=new k("",{providedIn:"root",factory:()=>eh});var Lv=(t,e,n,r)=>{};function jv(t,e,n,r){Lv(t,e,n,r)}function Ps(t){return(t.flags&32)===32}var Vv=()=>null;function nh(t,e,n=!1){return Vv(t,e,n)}function rh(t,e){let n=t.contentQueries;if(n!==null){let r=O(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=t.data[s];go(i),a.contentQueries(2,e[s],s)}}}finally{O(r)}}}function _l(t,e,n){go(0);let r=O(null);try{e(t,n)}finally{O(r)}}function oh(t,e,n){if(Pc(e)){let r=O(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{O(r)}}}var Pt=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t})(Pt||{});var Dl=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${yc})`}};function Jl(t){return t instanceof Dl?t.changingThisBreaksApplicationSecurity:t}function Bv(t,e){return t.createText(e)}function Hv(t,e,n){t.setValue(e,n)}function ih(t,e,n){return t.createElement(e,n)}function Ds(t,e,n,r,o){t.insertBefore(e,n,r,o)}function sh(t,e,n){t.appendChild(e,n)}function ap(t,e,n,r,o){r!==null?Ds(t,e,n,r,o):sh(t,e,n)}function ah(t,e,n,r){t.removeChild(null,e,n,r)}function $v(t,e,n){t.setAttribute(e,"style",n)}function Uv(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function ch(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&vv(t,e,r),o!==null&&Uv(t,e,o),i!==null&&$v(t,e,i)}function St(t){return t.ownerDocument}function zv(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}var lh="ng-template";function Gv(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&zv(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(eu(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function eu(t){return t.type===4&&t.value!==lh}function Wv(t,e,n){let r=t.type===4&&!n?lh:t.value;return e===r}function qv(t,e,n){let r=4,o=t.attrs,i=o!==null?Qv(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!pt(r)&&!pt(c))return!1;if(s&&pt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Wv(t,c,n)||c===""&&e.length===1){if(pt(r))return!1;s=!0}}else if(r&8){if(o===null||!Gv(t,o,c,n)){if(pt(r))return!1;s=!0}}else{let l=e[++a],u=Zv(c,o,eu(t),n);if(u===-1){if(pt(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(pt(r))return!1;s=!0}}}}return pt(r)||s}function pt(t){return(t&1)===0}function Zv(t,e,n,r){if(e===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Kv(e,t)}function uh(t,e,n=!1){for(let r=0;r<e.length;r++)if(qv(t,e[r],n))return!0;return!1}function Yv(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function Qv(t){for(let e=0;e<t.length;e++){let n=t[e];if(bv(n))return e}return t.length}function Kv(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function Xv(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let o=0;o<t.length;o++)if(t[o]!==r[o])continue e;return!0}}return!1}function cp(t,e){return t?":not("+e.trim()+")":e}function Jv(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!pt(s)&&(e+=cp(i,o),o=""),r=s,i=i||!pt(r);n++}return o!==""&&(e+=cp(i,o)),e}function eb(t){return t.map(Jv).join(",")}function tb(t){let e=[],n=[],r=1,o=2;for(;r<t.length;){let i=t[r];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++r]):o===8&&n.push(i);else{if(!pt(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var Ge={};function tu(t,e,n,r,o,i,s,a,c,l,u){let d=he+r,h=d+o,f=nb(d,h),_=typeof l=="function"?l():l;return f[A]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:_,incompleteFirstPass:!1,ssrId:u}}function nb(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Ge);return n}function rb(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=tu(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function nu(t,e,n,r,o,i,s,a,c,l,u){let d=e.blueprint.slice();return d[ut]=o,d[F]=r|4|128|8|64|1024,(l!==null||t&&t[F]&2048)&&(d[F]|=2048),Vc(d),d[Ce]=d[kn]=t,d[ye]=n,d[At]=s||t&&t[At],d[le]=a||t&&t[le],d[kt]=c||t&&t[kt]||null,d[Ve]=i,d[lo]=kv(),d[Rn]=u,d[Ac]=l,d[Be]=e.type==2?t[Be]:d,d}function ob(t,e,n){let r=ft(e,t),o=rb(n),i=t[At].rendererFactory,s=ru(t,nu(t,o,null,dh(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function dh(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function fh(t,e,n,r){if(n===0)return-1;let o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function ru(t,e){return t[Cr]?t[kc][tt]=e:t[Cr]=e,t[kc]=e,e}function p(t=1){ph(ve(),j(),Et()+t,!1)}function ph(t,e,n,r){if(!r)if((e[F]&3)===3){let i=t.preOrderCheckHooks;i!==null&&us(e,i,n)}else{let i=t.preOrderHooks;i!==null&&ds(e,i,0,n)}Xt(n)}var Fs=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(Fs||{});function Cl(t,e,n,r){let o=O(null);try{let[i,s,a]=t.inputs[n],c=null;(s&Fs.SignalBased)!==0&&(c=e[i][Te]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,c,r,n,i):Np(e,c,i,r)}finally{O(o)}}var It=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(It||{}),ib;function ou(t,e){return ib(t,e)}var Un=new Set,Ls=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Ls||{}),nn=new k(""),lp=new Set;function rn(t){lp.has(t)||(lp.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var hh=!1,El=class extends fe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Sf()&&(this.destroyRef=v(He,{optional:!0})??void 0,this.pendingTasks=v(Jt,{optional:!0})??void 0)}emit(e){let n=O(null);try{super.next(e)}finally{O(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;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 e instanceof ue&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},gt=El;function gh(t){let e,n;function r(){t=Bn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function up(t){return queueMicrotask(()=>t()),()=>{t=Bn}}var iu="isAngularZone",Cs=iu+"_ID",sb=0,oe=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new gt(!1);onMicrotaskEmpty=new gt(!1);onStable=new gt(!1);onError=new gt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=hh}=e;if(typeof Zone>"u")throw new T(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,lb(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(iu)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new T(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new T(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,ab,Bn,Bn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},ab={};function su(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function cb(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){gh(()=>{t.callbackScheduled=!1,wl(t),t.isCheckStableRunning=!0,su(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),wl(t)}function lb(t){let e=()=>{cb(t)},n=sb++;t._inner=t._inner.fork({name:"angular",properties:{[iu]:!0,[Cs]:n,[Cs+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(ub(c))return r.invokeTask(i,s,a,c);try{return dp(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),fp(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return dp(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!db(c)&&e(),fp(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,wl(t),su(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function wl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function dp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function fp(t){t._nesting--,su(t)}var Es=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new gt;onMicrotaskEmpty=new gt;onStable=new gt;onError=new gt;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function ub(t){return mh(t,"__ignore_ng_zone__")}function db(t){return mh(t,"__scheduler_tick__")}function mh(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var js=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=L({token:t,providedIn:"root",factory:()=>new t})}return t})(),au=[0,1,2,3],cu=(()=>{class t{ngZone=v(oe);scheduler=v(et);errorHandler=v(Ze,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){v(nn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&te(16),this.executing=!0;for(let r of au)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&te(17)}register(n){let{view:r}=n;r!==void 0?((r[On]??=[]).push(n),Kt(r),r[F]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Ls.AFTER_NEXT_RENDER,n):n()}static \u0275prov=L({token:t,providedIn:"root",factory:()=>new t})}return t})(),Do=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,o,i,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[On];e&&(this.view[On]=e.filter(n=>n!==this))}};function lu(t,e){let n=e?.injector??v(je);return rn("NgAfterNextRender"),pb(t,n,e,!0)}function fb(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function pb(t,e,n,r){let o=e.get(js);o.impl??=e.get(cu);let i=e.get(nn,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(He):null,a=e.get(Vn,null,{optional:!0}),c=new Do(o.impl,fb(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var yh=new k("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function vh(t,e,n){let r=t.get(yh);if(Array.isArray(e))for(let o of e)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function hb(t,e){let n=t.get(yh);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function gb(t,e){for(let[n,r]of e)vh(t,r.animateFns)}function pp(t,e,n,r){let o=t?.[Pn]?.enter;e!==null&&o&&o.has(n.index)&&gb(r,o)}function Tr(t,e,n,r,o,i,s,a){if(o!=null){let c,l=!1;dt(o)?c=o:Dt(o)&&(l=!0,o=o[ut]);let u=nt(o);t===0&&r!==null?(pp(a,r,i,n),s==null?sh(e,r,u):Ds(e,r,u,s||null,!0)):t===1&&r!==null?(pp(a,r,i,n),Ds(e,r,u,s||null,!0)):t===2?hp(a,i,n,d=>{ah(e,u,l,d)}):t===3&&hp(a,i,n,()=>{e.destroyNode(u)}),c!=null&&Ib(e,t,n,c,i,r,s)}}function mb(t,e){bh(t,e),e[ut]=null,e[Ve]=null}function yb(t,e,n,r,o,i){r[ut]=o,r[Ve]=e,Bs(t,r,n,1,o,i)}function bh(t,e){e[At].changeDetectionScheduler?.notify(9),Bs(t,e,e[le],2,null,null)}function vb(t){let e=t[Cr];if(!e)return al(t[A],t);for(;e;){let n=null;if(Dt(e))n=e[Cr];else{let r=e[ge];r&&(n=r)}if(!n){for(;e&&!e[tt]&&e!==t;)Dt(e)&&al(e[A],e),e=e[Ce];e===null&&(e=t),Dt(e)&&al(e[A],e),n=e&&e[tt]}e=n}}function uu(t,e){let n=t[Fn],r=n.indexOf(e);n.splice(r,1)}function Vs(t,e){if(Ln(e))return;let n=e[le];n.destroyNode&&Bs(t,e,n,3,null,null),vb(e)}function al(t,e){if(Ln(e))return;let n=O(null);try{e[F]&=-129,e[F]|=256,e[Ye]&&$t(e[Ye]),Db(t,e),_b(t,e),e[A].type===1&&e[le].destroy();let r=e[Zt];if(r!==null&&dt(e[Ce])){r!==e[Ce]&&uu(r,e);let o=e[_t];o!==null&&o.detachView(t)}vl(e)}finally{O(n)}}function hp(t,e,n,r){let o=t?.[Pn];if(o==null||o.leave==null||!o.leave.has(e.index))return r(!1);t&&Un.add(t),vh(n,()=>{if(o.leave&&o.leave.has(e.index)){let s=o.leave.get(e.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),bb(t,r)}else t&&Un.delete(t),r(!1)},o)}function bb(t,e){let n=t[Pn]?.running;if(n){n.then(()=>{t[Pn].running=void 0,Un.delete(t),e(!0)});return}e(!1)}function _b(t,e){let n=t.cleanup,r=e[Dr];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&&(e[Dr]=null);let o=e[Rt];if(o!==null){e[Rt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[Ot];if(i!==null){e[Ot]=null;for(let s of i)s.destroy()}}function Db(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=e[n[r]];if(!(o instanceof $n)){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];te(4,a,c);try{c.call(a)}finally{te(5,a,c)}}else{te(4,o,i);try{i.call(o)}finally{te(5,o,i)}}}}}function _h(t,e,n){return Cb(t,e.parent,n)}function Cb(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[ut];if(Qt(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===Pt.None||o===Pt.Emulated)return null}return ft(r,n)}function Dh(t,e,n){return wb(t,e,n)}function Eb(t,e,n){return t.type&40?ft(t,n):null}var wb=Eb,gp;function du(t,e,n,r){let o=_h(t,r,e),i=e[le],s=r.parent||e[Ve],a=Dh(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)ap(i,o,n[c],a,!1);else ap(i,o,n,a,!1);gp!==void 0&&gp(i,r,e,n,o)}function vo(t,e){if(e!==null){let n=e.type;if(n&3)return ft(e,t);if(n&4)return xl(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return vo(t,r);{let o=t[e.index];return dt(o)?xl(-1,o):nt(o)}}else{if(n&128)return vo(t,e.next);if(n&32)return ou(e,t)()||nt(t[e.index]);{let r=Ch(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=Wt(t[Be]);return vo(o,r)}else return vo(t,e.next)}}}return null}function Ch(t,e){if(e!==null){let r=t[Be][Ve],o=e.projection;return r.projection[o]}return null}function xl(t,e){let n=ge+t+1;if(n<e.length){let r=e[n],o=r[A].firstChild;if(o!==null)return vo(r,o)}return e[Yt]}function fu(t,e,n,r,o,i,s){for(;n!=null;){let a=r[kt];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&e===0&&(c&&Nr(nt(c),r),n.flags|=2),!Ps(n))if(l&8)fu(t,e,n.child,r,o,i,!1),Tr(e,t,a,o,c,n,i,r);else if(l&32){let u=ou(n,r),d;for(;d=u();)Tr(e,t,a,o,d,n,i,r);Tr(e,t,a,o,c,n,i,r)}else l&16?Eh(t,e,r,n,o,i):Tr(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Bs(t,e,n,r,o,i){fu(n,r,t.firstChild,e,o,i,!1)}function xb(t,e,n){let r=e[le],o=_h(t,n,e),i=n.parent||e[Ve],s=Dh(i,n,e);Eh(r,0,e,n,o,s)}function Eh(t,e,n,r,o,i){let s=n[Be],c=s[Ve].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Tr(e,t,n[kt],o,u,r,i,n)}else{let l=c,u=s[Ce];Wp(r)&&(l.flags|=128),fu(t,e,l,u,o,i,!0)}}function Ib(t,e,n,r,o,i,s){let a=r[Yt],c=nt(r);a!==c&&Tr(e,t,n,i,a,o,s);for(let l=ge;l<r.length;l++){let u=r[l];Bs(u[A],u,t,e,i,a)}}function Tb(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:It.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=It.Important),t.setStyle(n,r,o,i))}}function wh(t,e,n,r,o){let i=Et(),s=r&2;try{Xt(-1),s&&e.length>he&&ph(t,e,he,!1),te(s?2:0,o,n),n(r,o)}finally{Xt(i),te(s?3:1,o,n)}}function pu(t,e,n){Ob(t,e,n),(n.flags&64)===64&&Pb(t,e,n)}function Hs(t,e,n=ft){let r=e.localNames;if(r!==null){let o=e.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(e,t):t[s];t[o++]=a}}}function Mb(t,e,n,r){let i=r.get(th,eh)||n===Pt.ShadowDom,s=t.selectRootElement(e,i);return Sb(s),s}function Sb(t){Nb(t)}var Nb=()=>null;function Rb(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function kb(t,e,n,r,o,i){let s=e[A];if(hu(t,s,e,n,r)){Qt(t)&&Ab(e,t.index);return}t.type&3&&(n=Rb(n)),xh(t,e,n,r,o,i)}function xh(t,e,n,r,o,i){if(t.type&3){let s=ft(t,e);r=i!=null?i(r,t.value||"",n):r,o.setProperty(s,n,r)}else t.type&12}function Ab(t,e){let n=rt(e,t);n[F]&16||(n[F]|=64)}function Ob(t,e,n){let r=n.directiveStart,o=n.directiveEnd;Qt(n)&&ob(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||bs(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],c=_o(e,t,s,n);if(Nr(c,e),i!==null&&Vb(e,s-r,c,a,n,i),Ct(a)){let l=rt(n.index,e);l[ye]=_o(e,t,s,n)}}}function Pb(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Wf();try{Xt(i);for(let a=r;a<o;a++){let c=t.data[a],l=e[a];es(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Fb(c,l)}}finally{Xt(-1),es(s)}}function Fb(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function Ih(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];uh(e,i.selectors,!1)&&(r??=[],Ct(i)?r.unshift(i):r.push(i))}return r}function Lb(t,e,n,r,o,i){let s=ft(t,e);jb(e[le],s,i,t.value,n,r,o)}function jb(t,e,n,r,o,i,s){if(i==null)t.removeAttribute(e,o,n);else{let a=s==null?vr(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function Vb(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Cl(r,n,c,l)}}function Th(t,e,n,r,o){let i=he+n,s=e[A],a=o(s,e,t,r,n);e[i]=a,wr(t,!0);let c=t.type===2;return c?(ch(e[le],a,t),(jf()===0||fo(t))&&Nr(a,e),Vf()):Nr(a,e),is()&&(!c||!Ps(t))&&du(s,e,a,t),t}function Mh(t){let e=t;return Qc()?Kc():(e=e.parent,wr(e,!1)),e}function Bb(t,e){let n=t[kt];if(!n)return;let r;try{r=n.get(wt,null)}catch{r=null}r?.(e)}function hu(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=e.data[l];Cl(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=e.data[c];Cl(u,l,r,o),a=!0}return a}function Hb(t,e){let n=rt(e,t),r=n[A];$b(r,n);let o=n[ut];o!==null&&n[Rn]===null&&(n[Rn]=nh(o,n[kt])),te(18),gu(r,n,n[ye]),te(19,n[ye])}function $b(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function gu(t,e,n){ns(e);try{let r=t.viewQuery;r!==null&&_l(1,r,n);let o=t.template;o!==null&&wh(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[_t]?.finishViewCreation(t),t.staticContentQueries&&rh(t,e),t.staticViewQueries&&_l(2,t.viewQuery,n);let i=t.components;i!==null&&Ub(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[F]&=-5,rs()}}function Ub(t,e){for(let n=0;n<e.length;n++)Hb(t,e[n])}function No(t,e,n,r){let o=O(null);try{let i=e.tView,a=t[F]&4096?4096:16,c=nu(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=t[e.index];c[Zt]=l;let u=t[_t];return u!==null&&(c[_t]=u.createEmbeddedView(i)),gu(i,c,n),c}finally{O(o)}}function Rr(t,e){return!e||e.firstChild===null||Wp(t)}function Co(t,e,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=e[n.index];i!==null&&r.push(nt(i)),dt(i)&&Sh(i,r);let s=n.type;if(s&8)Co(t,e,n.child,r);else if(s&32){let a=ou(n,e),c;for(;c=a();)r.push(c)}else if(s&16){let a=Ch(e,n);if(Array.isArray(a))r.push(...a);else{let c=Wt(e[Be]);Co(c[A],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Sh(t,e){for(let n=ge;n<t.length;n++){let r=t[n],o=r[A].firstChild;o!==null&&Co(r[A],r,o,e)}t[Yt]!==t[ut]&&e.push(t[Yt])}function Nh(t){if(t[On]!==null){for(let e of t[On])e.impl.addSequence(e);t[On].length=0}}var Rh=[];function zb(t){return t[Ye]??Gb(t)}function Gb(t){let e=Rh.pop()??Object.create(qb);return e.lView=t,e}function Wb(t){t.lView[Ye]!==t&&(t.lView=null,Rh.push(t))}var qb=ae(Q({},dn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Kt(t.lView)},consumerOnSignalRead(){this.lView[Ye]=this}});function Zb(t){let e=t[Ye]??Object.create(Yb);return e.lView=t,e}var Yb=ae(Q({},dn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=Wt(t.lView);for(;e&&!kh(e[A]);)e=Wt(e);e&&Bc(e)},consumerOnSignalRead(){this.lView[Ye]=this}});function kh(t){return t.type!==2}function Ah(t){if(t[Ot]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Ot])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[F]&8192)}}var Qb=100;function Oh(t,e=0){let r=t[At].rendererFactory,o=!1;o||r.begin?.();try{Kb(t,e)}finally{o||r.end?.()}}function Kb(t,e){let n=Xc();try{xr(!0),Il(t,e);let r=0;for(;ho(t);){if(r===Qb)throw new T(103,!1);r++,Il(t,1)}}finally{xr(n)}}function Xb(t,e,n,r){if(Ln(e))return;let o=e[F],i=!1,s=!1;ns(e);let a=!0,c=null,l=null;i||(kh(t)?(l=zb(e),c=Ht(l)):li()===null?(a=!1,l=Zb(e),c=Ht(l)):e[Ye]&&($t(e[Ye]),e[Ye]=null));try{Vc(e),Uf(t.bindingStartIndex),n!==null&&wh(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&us(e,f,null)}else{let f=t.preOrderHooks;f!==null&&ds(e,f,0,null),il(e,0)}if(s||Jb(e),Ah(e),Ph(e,0),t.contentQueries!==null&&rh(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&us(e,f)}else{let f=t.contentHooks;f!==null&&ds(e,f,1),il(e,1)}t_(t,e);let d=t.components;d!==null&&Lh(e,d,0);let h=t.viewQuery;if(h!==null&&_l(2,h,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&us(e,f)}else{let f=t.viewHooks;f!==null&&ds(e,f,2),il(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Qi]){for(let f of e[Qi])f();e[Qi]=null}i||(Nh(e),e[F]&=-73)}catch(u){throw i||Kt(e),u}finally{l!==null&&(pn(l,c),a&&Wb(l)),rs()}}function Ph(t,e){for(let n=Zp(t);n!==null;n=Yp(n))for(let r=ge;r<n.length;r++){let o=n[r];Fh(o,e)}}function Jb(t){for(let e=Zp(t);e!==null;e=Yp(e)){if(!(e[F]&2))continue;let n=e[Fn];for(let r=0;r<n.length;r++){let o=n[r];Bc(o)}}}function e_(t,e,n){te(18);let r=rt(e,t);Fh(r,n),te(19,r[ye])}function Fh(t,e){Ki(t)&&Il(t,e)}function Il(t,e){let r=t[A],o=t[F],i=t[Ye],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&hn(i)),s||=!1,i&&(i.dirty=!1),t[F]&=-9217,s)Xb(r,t,r.template,t[ye]);else if(o&8192){let a=O(null);try{Ah(t),Ph(t,1);let c=r.components;c!==null&&Lh(t,c,1),Nh(t)}finally{O(a)}}}function Lh(t,e,n){for(let r=0;r<e.length;r++)e_(t,e[r],n)}function t_(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Xt(~o);else{let i=o,s=n[++r],a=n[++r];Gf(s,i);let c=e[i];te(24,c),a(2,c),te(25,c)}}}finally{Xt(-1)}}function mu(t,e){let n=Xc()?64:1088;for(t[At].changeDetectionScheduler?.notify(e);t;){t[F]|=n;let r=Wt(t);if(Er(t)&&!r)return t;t=r}return null}function jh(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Vh(t,e){let n=ge+e;if(n<t.length)return t[n]}function Ro(t,e,n,r=!0){let o=e[A];if(n_(o,e,t,n),r){let s=xl(n,t),a=e[le],c=a.parentNode(t[Yt]);c!==null&&yb(o,t[Ve],a,e,c,s)}let i=e[Rn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Bh(t,e){let n=Eo(t,e);return n!==void 0&&Vs(n[A],n),n}function Eo(t,e){if(t.length<=ge)return;let n=ge+e,r=t[n];if(r){let o=r[Zt];o!==null&&o!==t&&uu(o,r),e>0&&(t[n-1][tt]=r[tt]);let i=io(t,ge+e);mb(r[A],r);let s=i[_t];s!==null&&s.detachView(i[A]),r[Ce]=null,r[tt]=null,r[F]&=-129}return r}function n_(t,e,n,r){let o=ge+r,i=n.length;r>0&&(n[o-1][tt]=e),r<i-ge?(e[tt]=n[o],xc(n,ge+r,e)):(n.push(e),e[tt]=null),e[Ce]=n;let s=e[Zt];s!==null&&n!==s&&Hh(s,e);let a=e[_t];a!==null&&a.insertView(t),Xi(e),e[F]|=128}function Hh(t,e){let n=t[Fn],r=e[Ce];if(Dt(r))t[F]|=2;else{let o=r[Ce][Be];e[Be]!==o&&(t[F]|=2)}n===null?t[Fn]=[e]:n.push(e)}var en=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[A];return Co(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n}get context(){return this._lView[ye]}set context(e){this._lView[ye]=e}get destroyed(){return Ln(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Ce];if(dt(e)){let n=e[uo],r=n?n.indexOf(this):-1;r>-1&&(Eo(e,r),io(n,r))}this._attachedToViewContainer=!1}Vs(this._lView[A],this._lView)}onDestroy(e){Hc(this._lView,e)}markForCheck(){mu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){Xi(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,Oh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Er(this._lView),n=this._lView[Zt];n!==null&&!e&&uu(n,this._lView),bh(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new T(902,!1);this._appRef=e;let n=Er(this._lView),r=this._lView[Zt];r!==null&&!n&&Hh(r,this._lView),Xi(this._lView)}};var tn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=r_;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=No(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new en(i)}}return t})();function r_(){return yu(Pe(),j())}function yu(t,e){return t.type&4?new tn(e,t,Ar(t,e)):null}function Or(t,e,n,r,o){let i=t.data[e];if(i===null)i=o_(t,e,n,r,o),zf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Bf();i.injectorIndex=s===null?-1:s.injectorIndex}return wr(i,!0),i}function o_(t,e,n,r,o){let i=Yc(),s=Qc(),a=s?i:i&&i.parent,c=t.data[e]=s_(t,a,n,e,r,o);return i_(t,c,i,s),c}function i_(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function s_(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Wc()&&(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:tl(),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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var vR=new RegExp(`^(\\d+)*(${Fv}|${Pv})*(.*)`);function a_(t){let e=t[Oc]??[],r=t[Ce][le],o=[];for(let i of e)i.data[Jp]!==void 0?o.push(i):c_(i,r);t[Oc]=o}function c_(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[Xp];for(;n<o;){let i=r.nextSibling;ah(e,r,!1),r=i,n++}}}var l_=()=>null,u_=()=>null;function ws(t,e){return l_(t,e)}function $h(t,e,n){return u_(t,e,n)}var Uh=class{},$s=class{},Tl=class{resolveComponentFactory(e){throw new T(917,!1)}},Us=class{static NULL=new Tl},Tt=class{},zs=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>d_()}return t})();function d_(){let t=j(),e=Pe(),n=rt(e.index,t);return(Dt(n)?n:t)[le]}var zh=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>null})}return t})();var ps={},Ml=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let o=this.injector.get(e,ps,r);return o!==ps||n===ps?o:this.parentInjector.get(e,n,r)}};function xs(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=Ui(o,a);else if(i==2){let c=a,l=e[++s];r=Ui(r,c+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function Ft(t,e=0){let n=j();if(n===null)return z(t,e);let r=Pe();return $p(r,n,Oe(t),e)}function Gh(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,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}h_(t,e,n,a,i,c,l)}i!==null&&r!==null&&f_(n,r,i)}function f_(t,e,n){let r=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=n[e[o+1]];if(i==null)throw new T(-301,!1);r.push(e[o],i)}}function p_(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function h_(t,e,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let f=r[h];!c&&Ct(f)&&(c=!0,p_(t,n,h)),yl(bs(n,e),t,f.type)}__(n,t.data.length,a);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=fh(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=Sr(n.mergedAttrs,f.hostAttrs),m_(t,n,e,d,f),b_(d,f,o),s!==null&&s.has(f)){let[I,M]=s.get(f);n.directiveToIndex.set(f.type,[d,I+n.directiveStart,M+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 _=f.type.prototype;!l&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!u&&(_.ngOnChanges||_.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}g_(t,n,i)}function g_(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))mp(0,e,o,r),mp(1,e,o,r),vp(e,r,!1);else{let i=n.get(o);yp(0,e,i,r),yp(1,e,i,r),vp(e,r,!0)}}}function mp(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[i]??=[],s[i].push(r),Wh(e,i)}}function yp(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Wh(e,s)}}function Wh(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function vp(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||eu(t)){t.initialInputs??=[],t.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===e){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]===e){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function m_(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=En(o.type,!0)),s=new $n(i,Ct(o),Ft,null);t.blueprint[r]=s,n[r]=s,y_(t,e,r,fh(t,n,o.hostVars,Ge),o)}function y_(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;v_(s)!=a&&s.push(a),s.push(n,r,i)}}function v_(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function b_(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ct(e)&&(n[""]=t)}}function __(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function qh(t,e,n,r,o,i,s,a){let c=e[A],l=c.consts,u=ot(l,s),d=Or(c,t,n,r,u);return i&&Gh(c,e,d,ot(l,a),o),d.mergedAttrs=Sr(d.mergedAttrs,d.attrs),d.attrs!==null&&xs(d,d.attrs,!1),d.mergedAttrs!==null&&xs(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Zh(t,e){Op(t,e),Pc(e)&&t.queries.elementEnd(e)}function D_(t,e,n,r,o,i){let s=e.consts,a=ot(s,o),c=Or(e,t,n,r,a);if(c.mergedAttrs=Sr(c.mergedAttrs,c.attrs),i!=null){let l=ot(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&xs(c,c.attrs,!1),c.mergedAttrs!==null&&xs(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function vu(t){return Qh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function Yh(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function Qh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function C_(t,e,n){return t[e]=n}function Mt(t,e,n){if(n===Ge)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function Kh(t,e,n,r){let o=Mt(t,e,n);return Mt(t,e+1,r)||o}function hs(t,e,n){return function r(o){let i=Qt(t)?rt(t.index,e):e;mu(i,5);let s=e[ye],a=bp(e,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=bp(e,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function bp(t,e,n,r){let o=O(null);try{return te(6,e,n),n(r)!==!1}catch(i){return Bb(t,i),!1}finally{te(7,e,n),O(o)}}function Xh(t,e,n,r,o,i,s,a){let c=fo(t),l=!1,u=null;if(!r&&c&&(u=w_(e,n,i,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=ft(t,n),h=r?r(d):d;jv(n,h,i,a);let f=o.listen(h,i,a);if(!E_(i)){let _=r?I=>r(nt(I[t.index])):t.index;Jh(_,e,n,i,a,f,!1)}}return l}function E_(t){return t.startsWith("animation")||t.startsWith("transition")}function w_(t,e,n,r){let o=t.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=e[Dr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Jh(t,e,n,r,o,i,s){let a=e.firstCreatePass?Uc(e):null,c=$c(n),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function _p(t,e,n,r,o,i){let s=e[n],a=e[A],l=a.data[n].outputs[r],d=s[l].subscribe(i);Jh(t.index,a,e,o,i,d,!0)}var Sl=Symbol("BINDING");var Nl=class extends Us{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=Nn(e);return new wo(n,this.ngModule)}};function x_(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&Fs.SignalBased)!==0};return o&&(i.transform=o),i})}function I_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function T_(t,e,n){let r=e instanceof ze?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Ml(n,r):n}function M_(t){let e=t.get(Tt,null);if(e===null)throw new T(407,!1);let n=t.get(zh,null),r=t.get(et,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function S_(t,e){let n=eg(t);return ih(e,n,n==="svg"?Fc:n==="math"?Rf:null)}function N_(t){if(t?.toLowerCase()==="script")throw new T(905,!1)}function eg(t){return(t.selectors[0][0]||"div").toLowerCase()}var wo=class extends $s{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=x_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I_(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=eb(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o,i,s){te(22);let a=O(null);try{let c=this.componentDef,l=R_(r,c,s,i),u=T_(c,o||this.ngModule,e),d=M_(u),h=d.rendererFactory.createRenderer(null,c),f=r?Mb(h,r,c.encapsulation,u):S_(c,h);N_(f?.tagName);let _=s?.some(Dp)||i?.some(C=>typeof C!="function"&&C.bindings.some(Dp)),I=nu(null,l,null,512|dh(c),null,null,d,h,u,null,nh(f,u,!0));I[he]=f,ns(I);let M=null;try{let C=qh(he,I,2,"#host",()=>l.directiveRegistry,!0,0);ch(h,f,C),Nr(f,I),pu(l,I,C),oh(l,C,I),Zh(l,C),n!==void 0&&A_(C,this.ngContentSelectors,n),M=rt(C.index,I),I[ye]=M[ye],gu(l,I,null)}catch(C){throw M!==null&&vl(M),vl(I),C}finally{te(23),rs()}return new Is(this.componentType,I,!!_)}finally{O(a)}}};function R_(t,e,n,r){let o=t?["ng-version","20.3.29"]:tb(e.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Sl].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let h of d.bindings){a+=h[Sl].requiredVars;let f=u+1;h.create&&(h.targetIdx=f,(i??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}let c=[e];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,h=Mc(d);c.push(h)}return tu(0,null,k_(i,s),1,a,c,null,null,null,[o],null)}function k_(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();if(n&2&&e)for(let r of e)r.update()}}function Dp(t){let e=t[Sl].kind;return e==="input"||e==="twoWay"}var Is=class extends Uh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=po(n[A],he),this.location=Ar(this._tNode,n),this.instance=rt(this._tNode.index,n)[ye],this.hostView=this.changeDetectorRef=new en(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView,i=hu(r,o[A],o,e,n);this.previousInputValues.set(e,n);let s=rt(r.index,o);mu(s,1)}get injector(){return new Hn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function A_(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Wn=(()=>{class t{static __NG_ELEMENT_ID__=O_}return t})();function O_(){let t=Pe();return ng(t,j())}var P_=Wn,tg=class extends P_{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Ar(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Ql(this._hostTNode,this._hostLView);if(Fp(e)){let n=ys(e,this._hostLView),r=ms(e),o=n[A].data[r+8];return new Hn(o,n)}else return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Cp(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-ge}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ws(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Rr(this._hostTNode,s)),a}createComponent(e,n,r,o,i,s,a){let c=e&&!uv(e),l;if(c)l=n;else{let M=n||{};l=M.index,r=M.injector,o=M.projectableNodes,i=M.environmentInjector||M.ngModuleRef,s=M.directives,a=M.bindings}let u=c?e:new wo(Nn(e)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let C=(c?d:this.parentInjector).get(ze,null);C&&(i=C)}let h=Nn(u.componentType??{}),f=ws(this._lContainer,h?.id??null),_=f?.firstChild??null,I=u.create(d,o,_,i,s,a);return this.insertImpl(I.hostView,l,Rr(this._hostTNode,f)),I}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(Of(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[Ce],l=new tg(c,c[Ve],c[Ce]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return Ro(s,o,i,r),e.attachToViewContainerRef(),xc(cl(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Cp(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Eo(this._lContainer,n);r&&(io(cl(this._lContainer),n),Vs(r[A],r))}detach(e){let n=this._adjustIndex(e,-1),r=Eo(this._lContainer,n);return r&&io(cl(this._lContainer),n)!=null?new en(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Cp(t){return t[uo]}function cl(t){return t[uo]||(t[uo]=[])}function ng(t,e){let n,r=e[t.index];return dt(r)?n=r:(n=jh(r,e,null,t),e[t.index]=n,ru(e,n)),L_(n,e,t,r),new tg(n,t,e)}function F_(t,e){let n=t[le],r=n.createComment(""),o=ft(e,t),i=n.parentNode(o);return Ds(n,i,r,n.nextSibling(o),!1),r}var L_=B_,j_=()=>!1;function V_(t,e,n){return j_(t,e,n)}function B_(t,e,n,r){if(t[Yt])return;let o;n.type&8?o=nt(r):o=F_(e,n),t[Yt]=o}var Rl=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},kl=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.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 t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)_u(e,n).matches!==null&&this.queries[n].setDirty()}},Al=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=W_(e):this.predicate=e}},Ol=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Pl=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(e,n,H_(n,i)),this.matchTNodeWithReadOption(e,n,fs(n,e,i,!1,!1))}else r===tn?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,fs(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===mt||o===Wn||o===tn&&n.type&4)this.addMatch(n.index,-2);else{let i=fs(n,e,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function H_(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function $_(t,e){return t.type&11?Ar(t,e):t.type&4?yu(t,e):null}function U_(t,e,n,r){return n===-1?$_(e,t):n===-2?z_(t,e,r):_o(t,t[A],n,e)}function z_(t,e,n){if(n===mt)return Ar(e,t);if(n===tn)return yu(e,t);if(n===Wn)return ng(e,t)}function rg(t,e,n,r){let o=e[_t].queries[r];if(o.matches===null){let i=t.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(U_(e,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Fl(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=rg(t,e,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=e[-c];for(let d=ge;d<u.length;d++){let h=u[d];h[Zt]===h[Ce]&&Fl(h[A],h,l,r)}if(u[Fn]!==null){let d=u[Fn];for(let h=0;h<d.length;h++){let f=d[h];Fl(f[A],f,l,r)}}}}}return r}function bu(t,e){return t[_t].queries[e].queryList}function G_(t,e,n){let r=new _s((n&4)===4);return Lf(t,e,r,r.destroy),(e[_t]??=new kl).queries.push(new Rl(r))-1}function og(t,e,n){let r=ve();return r.firstCreatePass&&(q_(r,new Al(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),G_(r,j(),e)}function W_(t){return t.split(",").map(e=>e.trim())}function q_(t,e,n){t.queries===null&&(t.queries=new Ol),t.queries.track(new Pl(e,n))}function _u(t,e){return t.queries.getByIndex(e)}function ig(t,e){let n=t[A],r=_u(n,e);return r.crossesNgTemplate?Fl(n,t,e,[]):rg(n,t,r,e)}function sg(t,e,n){let r,o=$r(()=>{r._dirtyCounter();let i=Y_(r,t);if(e&&i===void 0)throw new T(-951,!1);return i});return r=o[Te],r._dirtyCounter=D(0),r._flatValue=void 0,o}function ag(t){return sg(!0,!1,t)}function cg(t){return sg(!0,!0,t)}function Z_(t,e){let n=t[Te];n._lView=j(),n._queryIndex=e,n._queryList=bu(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function Y_(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[F]&4)return e?void 0:Je;let o=bu(n,r),i=ig(n,r);return o.reset(i,Gp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var xo=class{};var Io=class extends xo{injector;componentFactoryResolver=new Nl(this);instance=null;constructor(e){super();let n=new xn([...e.providers,{provide:xo,useValue:this},{provide:Us,useValue:this.componentFactoryResolver}],e.parent||co(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function lg(t,e,n=null){return new Io({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var Q_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Sc(!1,n.type),o=r.length>0?lg([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=L({token:t,providedIn:"environment",factory:()=>new t(z(ze))})}return t})();function we(t){return Ns(()=>{let e=ug(t),n=ae(Q({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Kl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(Q_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Pt.Emulated,styles:t.styles||Je,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&rn("NgStandalone"),dg(n);let r=t.dependencies;return n.directiveDefs=Ep(r,K_),n.pipeDefs=Ep(r,wf),n.id=e0(n),n})}function K_(t){return Nn(t)||Mc(t)}function X_(t,e){if(t==null)return qt;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[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=Fs.None,c=null),n[i]=[r,a,c],e[i]=s}return n}function J_(t){if(t==null)return qt;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function qn(t){return Ns(()=>{let e=ug(t);return dg(e),e})}function Du(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function ug(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||qt,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Je,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:X_(t.inputs,e),outputs:J_(t.outputs),debugInfo:null}}function dg(t){t.features?.forEach(e=>e(t))}function Ep(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let o of n){let i=e(o);i!==null&&r.push(i)}return r}:null}function e0(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function t0(t){return Object.getPrototypeOf(t.prototype).constructor}function ko(t){let e=t0(t.type),n=!0,r=[t];for(;e;){let o;if(Ct(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new T(903,!1);o=e.\u0275dir}if(o){if(n){r.push(o);let s=t;s.inputs=ll(t.inputs),s.declaredInputs=ll(t.declaredInputs),s.outputs=ll(t.outputs);let a=o.hostBindings;a&&s0(t,a);let c=o.viewQuery,l=o.contentQueries;if(c&&o0(t,c),l&&i0(t,l),n0(t,o),hf(t.outputs,o.outputs),Ct(o)&&o.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(t),a===ko&&(n=!1)}}e=Object.getPrototypeOf(e)}r0(r)}function n0(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function r0(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Sr(o.hostAttrs,n=Sr(n,o.hostAttrs))}}function ll(t){return t===qt?{}:t===Je?[]:t}function o0(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function i0(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function s0(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function fg(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=Sr(t.mergedAttrs,t.attrs);let u=t.tView=tu(2,t,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),wr(t,!1);let c=c0(n,e,t,r);is()&&du(n,e,c,t),Nr(c,e);let l=jh(c,e,c,t);e[r+he]=l,ru(e,l),V_(l,t,e)}function a0(t,e,n,r,o,i,s,a,c,l,u){let d=n+he,h;return e.firstCreatePass?(h=Or(e,d,4,s||null,a||null),Gc()&&Gh(e,t,h,ot(e.consts,l),Ih),Op(e,h)):h=e.data[d],fg(h,t,e,n,r,o,i,c),fo(h)&&pu(e,t,h),l!=null&&Hs(t,h,u),h}function To(t,e,n,r,o,i,s,a,c,l,u){let d=n+he,h;if(e.firstCreatePass){if(h=Or(e,d,4,s||null,a||null),l!=null){let f=ot(e.consts,l);h.localNames=[];for(let _=0;_<f.length;_+=2)h.localNames.push(f[_],-1)}}else h=e.data[d];return fg(h,t,e,n,r,o,i,c),l!=null&&Hs(t,h,u),h}function Gs(t,e,n,r,o,i,s,a){let c=j(),l=ve(),u=ot(l.consts,i);return a0(c,l,t,e,n,r,o,u,void 0,s,a),Gs}var c0=l0;function l0(t,e,n,r){return ss(!0),e[le].createComment("")}var Cu=new k("");function Ws(t){return!!t&&typeof t.then=="function"}function Eu(t){return!!t&&typeof t.subscribe=="function"}var pg=new k("");var wu=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(pg,{optional:!0})??[];injector=v(je);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=_r(this.injector,o);if(Ws(i))n.push(i);else if(Eu(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||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hg=new k("");function gg(){Fa(()=>{let t="";throw new T(600,t)})}function mg(t){return t.isBoundToModule}var u0=10;var Zn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(wt);afterRenderManager=v(js);zonelessEnabled=v(mo);rootEffectScheduler=v(yo);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new fe;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(Jt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Xe(n=>!n))}constructor(){v(nn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(ze);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=je.NULL){return this._injector.get(oe).run(()=>{te(10);let s=n instanceof $s;if(!this._injector.get(wu).done){let _="";throw new T(405,_)}let c;s?c=n:c=this._injector.get(Us).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=mg(c)?void 0:this._injector.get(xo),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,f=d.injector.get(Cu,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),bo(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),te(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){te(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ls.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new T(101,!1);let n=O(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,O(n),this.afterTick.next(),te(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Tt,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<u0;)te(14),this.synchronizeOnce(),te(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&&!ho(o))continue;let i=r&&!this.zonelessEnabled?0:1;Oh(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})=>ho(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;bo(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(hg,[]).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),()=>bo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new T(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||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bo(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function me(t,e,n,r){let o=j(),i=jn();if(Mt(o,i,e)){let s=ve(),a=os();Lb(a,o,t,e,n,r)}return me}var wR=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Ll=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),o=Math.max(e,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(e,n){this.attach(n,this.detach(e))}};function ul(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function d0(t,e,n){let r,o,i=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;i<=s&&i<=c;){let l=t.at(i),u=e[i],d=ul(i,l,i,u,n);if(d!==0){d<0&&t.updateValue(i,u),i++;continue}let h=t.at(s),f=e[c],_=ul(s,h,c,f,n);if(_!==0){_<0&&t.updateValue(s,f),s--,c--;continue}let I=n(i,l),M=n(s,h),C=n(i,u);if(Object.is(C,M)){let de=n(c,f);Object.is(de,I)?(t.swap(i,s),t.updateValue(s,f),c--,s--):t.move(s,i),t.updateValue(i,u),i++;continue}if(r??=new Ts,o??=xp(t,i,s,n),jl(t,r,i,C))t.updateValue(i,u),i++,s++;else if(o.has(C))r.set(I,t.detach(i)),s--;else{let de=t.create(i,e[i]);t.attach(i,de),i++,s++}}for(;i<=c;)wp(t,r,n,i,e[i]),i++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=t.at(i),d=l.value,h=ul(i,u,i,d,n);if(h!==0)h<0&&t.updateValue(i,d),i++,l=c.next();else{r??=new Ts,o??=xp(t,i,s,n);let f=n(i,d);if(jl(t,r,i,f))t.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))t.attach(i,t.create(i,d)),i++,s++,l=c.next();else{let _=n(i,u);r.set(_,t.detach(i)),s--}}}for(;!l.done;)wp(t,r,n,t.length,l.value),l=c.next()}for(;i<=s;)t.destroy(t.detach(s--));r?.forEach(c=>{t.destroy(c)})}function jl(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function wp(t,e,n,r,o){if(jl(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function xp(t,e,n,r){let o=new Set;for(let i=e;i<=n;i++)o.add(r(i,t.at(i)));return o}var Ts=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);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(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),e(r,n)}}};function N(t,e,n,r,o,i,s,a){rn("NgControlFlow");let c=j(),l=ve(),u=ot(l.consts,i);return To(c,l,t,e,n,r,o,u,256,s,a),xu}function xu(t,e,n,r,o,i,s,a){rn("NgControlFlow");let c=j(),l=ve(),u=ot(l.consts,i);return To(c,l,t,e,n,r,o,u,512,s,a),xu}function R(t,e){rn("NgControlFlow");let n=j(),r=jn(),o=n[r]!==Ge?n[r]:-1,i=o!==-1?Ms(n,he+o):void 0,s=0;if(Mt(n,r,t)){let a=O(null);try{if(i!==void 0&&Bh(i,s),t!==-1){let c=he+t,l=Ms(n,c),u=$l(n[A],c),d=$h(l,u,n),h=No(n,u,e,{dehydratedView:d});Ro(l,h,s,Rr(u,d))}}finally{O(a)}}else if(i!==void 0){let a=Vh(i,s);a!==void 0&&(a[ye]=e)}}var Vl=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ge}};function Yn(t){return t}function Iu(t,e){return e}var Bl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function Me(t,e,n,r,o,i,s,a,c,l,u,d,h){rn("NgControlFlow");let f=j(),_=ve(),I=c!==void 0,M=j(),C=a?s.bind(M[Be][ye]):s,de=new Bl(I,C);M[he+t]=de,To(f,_,t+1,e,n,r,o,ot(_.consts,i),256),I&&To(f,_,t+2,c,l,u,d,ot(_.consts,h),512)}var Hl=class extends Ll{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ge}at(e){return this.getLView(e)[ye].$implicit}attach(e,n){let r=n[Rn];this.needsIndexUpdate||=e!==this.length,Ro(this.lContainer,n,e,Rr(this.templateTNode,r)),f0(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,p0(this.lContainer,e),h0(this.lContainer,e)}create(e,n){let r=ws(this.lContainer,this.templateTNode.tView.ssrId),o=No(this.hostLView,this.templateTNode,new Vl(this.lContainer,n,e),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(e){Vs(e[A],e),this.operationsCounter?.recordDestroy()}updateValue(e,n){this.getLView(e)[ye].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[ye].$index=e}getLView(e){return g0(this.lContainer,e)}};function Se(t){let e=O(null),n=Et();try{let r=j(),o=r[A],i=r[n],s=n+1,a=Ms(r,s);if(i.liveCollection===void 0){let l=$l(o,s);i.liveCollection=new Hl(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(d0(c,t,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=jn(),u=c.length===0;if(Mt(r,l,u)){let d=n+2,h=Ms(r,d);if(u){let f=$l(o,d),_=$h(h,f,r),I=No(r,f,void 0,{dehydratedView:_});Ro(h,I,0,Rr(f,_))}else o.firstUpdatePass&&a_(h),Bh(h,0)}}}finally{O(e)}}function Ms(t,e){return t[e]}function f0(t,e){if(t.length<=ge)return;let n=ge+e,r=t[n],o=r?r[Pn]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[kt];hb(i,o),Un.delete(r),o.detachedLeaveAnimationFns=void 0}}function p0(t,e){if(t.length<=ge)return;let n=ge+e,r=t[n],o=r?r[Pn]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function h0(t,e){return Eo(t,e)}function g0(t,e){return Vh(t,e)}function $l(t,e){return po(t,e)}function G(t,e,n){let r=j(),o=jn();if(Mt(r,o,e)){let i=ve(),s=os();kb(s,r,t,e,r[le],n)}return G}function Ul(t,e,n,r,o){hu(e,t,n,o?"class":"style",r)}function g(t,e,n,r){let o=j(),i=o[A],s=t+he,a=i.firstCreatePass?qh(s,o,2,e,Ih,Gc(),n,r):i.data[s];if(Th(a,o,t,e,yg),fo(a)){let c=o[A];pu(c,o,a),oh(c,a,o)}return r!=null&&Hs(o,a),g}function y(){let t=ve(),e=Pe(),n=Mh(e);return t.firstCreatePass&&Zh(t,n),qc(n)&&Zc(),zc(),n.classesWithoutHost!=null&&mv(n)&&Ul(t,n,j(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&yv(n)&&Ul(t,n,j(),n.stylesWithoutHost,!1),y}function xe(t,e,n,r){return g(t,e,n,r),y(),xe}function x(t,e,n,r){let o=j(),i=o[A],s=t+he,a=i.firstCreatePass?D_(s,i,2,e,n,r):i.data[s];return Th(a,o,t,e,yg),r!=null&&Hs(o,a),x}function S(){let t=Pe(),e=Mh(t);return qc(e)&&Zc(),zc(),S}function pe(t,e,n,r){return x(t,e,n,r),S(),pe}var yg=(t,e,n,r,o)=>(ss(!0),ih(e[le],r,tl()));function W(){return j()}function Ie(t,e,n){let r=j(),o=jn();if(Mt(r,o,e)){let i=ve(),s=os();xh(s,r,t,e,r[le],n)}return Ie}var cs=void 0;function m0(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var y0=["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"]],cs,[["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"]],cs,[["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}",cs,"{1} 'at' {0}",cs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",m0],dl={};function Qe(t){let e=v0(t),n=Ip(e);if(n)return n;let r=e.split("-")[0];if(n=Ip(r),n)return n;if(r==="en")return y0;throw new T(701,!1)}function Ip(t){if(!(t in dl)){let e=Tn.ng&&Tn.ng.common&&Tn.ng.common.locales&&Tn.ng.common.locales[t];return e!==void 0&&(dl[t]=e),e}return dl[t]}var be=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(be||{});function v0(t){return t.toLowerCase().replace(/_/g,"-")}var Ao="en-US";var b0=Ao;function vg(t){typeof t=="string"&&(b0=t.toLowerCase().replace(/_/g,"-"))}function P(t,e,n){let r=j(),o=ve(),i=Pe();return _0(o,r,r[le],i,t,e,n),P}function ee(t,e,n){let r=j(),o=ve(),i=Pe();return(i.type&3||n)&&Xh(i,o,r,n,r[le],t,e,hs(i,r,e)),ee}function _0(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=hs(r,e,i),Xh(r,t,e,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let h=u[d],f=u[d+1];c??=hs(r,e,i),_p(r,e,h,f,o,c)}if(l&&l.length)for(let d of l)c??=hs(r,e,i),_p(r,e,d,o,o,c)}}function m(t=1){return Kf(t)}function D0(t,e){let n=null,r=Yv(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?uh(t,i,!0):Xv(r,i))return o}return n}function Tu(t){let e=j()[Be][Ve];if(!e.projection){let n=t?t.length:1,r=e.projection=Cf(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?D0(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function Mu(t,e=0,n,r,o,i){let s=j(),a=ve(),c=r?t+1:null;c!==null&&To(s,a,c,r,o,i,null,n);let l=Or(a,he+t,16,null,n||null);l.projection===null&&(l.projection=e),Kc();let d=!s[Rn]||Wc();s[Be][Ve].projection[l.projection]===null&&c!==null?C0(s,a,c):d&&!Ps(l)&&xb(a,s,l)}function C0(t,e,n){let r=he+n,o=e.data[r],i=t[r],s=ws(i,o.tView.ssrId),a=No(t,o,void 0,{dehydratedView:s});Ro(i,a,0,Rr(o,s))}function Su(t,e,n){og(t,e,n)}function Nu(t){let e=j(),n=ve(),r=ts();go(r+1);let o=_u(n,r);if(t.dirty&&Af(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=ig(e,r);t.reset(i,Gp),t.notifyOnChanges()}return!0}return!1}function Ru(){return bu(j(),ts())}function Lt(t,e,n,r){Z_(t,og(e,n,r))}function jt(t=1){go(ts()+t)}function ls(t,e){return t<<17|e<<2}function zn(t){return t>>17&32767}function E0(t){return(t&2)==2}function w0(t,e){return t&131071|e<<17}function zl(t){return t|2}function kr(t){return(t&131068)>>2}function fl(t,e){return t&-131069|e<<2}function x0(t){return(t&1)===1}function Gl(t){return t|1}function I0(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=zn(s),c=kr(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||br(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=zn(t[a+1]);t[r+1]=ls(h,a),h!==0&&(t[h+1]=fl(t[h+1],r)),t[a+1]=w0(t[a+1],r)}else t[r+1]=ls(a,0),a!==0&&(t[a+1]=fl(t[a+1],r)),a=r;else t[r+1]=ls(c,0),a===0?a=r:t[c+1]=fl(t[c+1],r),c=r;l&&(t[r+1]=zl(t[r+1])),Tp(t,u,r,!0),Tp(t,u,r,!1),T0(e,u,t,r,i),s=ls(a,c),i?e.classBindings=s:e.styleBindings=s}function T0(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&br(i,e)>=0&&(n[r+1]=Gl(n[r+1]))}function Tp(t,e,n,r){let o=t[n+1],i=e===null,s=r?zn(o):kr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];M0(c,e)&&(a=!0,t[s+1]=r?Gl(l):zl(l)),s=r?zn(l):kr(l)}a&&(t[n+1]=r?zl(o):Gl(o))}function M0(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?br(t,e)>=0:!1}var ht={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S0(t){return t.substring(ht.key,ht.keyEnd)}function N0(t){return R0(t),bg(t,_g(t,0,ht.textEnd))}function bg(t,e){let n=ht.textEnd;return n===e?-1:(e=ht.keyEnd=k0(t,ht.key=e,n),_g(t,e,n))}function R0(t){ht.key=0,ht.keyEnd=0,ht.value=0,ht.valueEnd=0,ht.textEnd=t.length}function _g(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function k0(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function ie(t,e,n){return Dg(t,e,n,!1),ie}function $e(t,e){return Dg(t,e,null,!0),$e}function Qn(t){O0(B0,A0,t,!0)}function A0(t,e){for(let n=N0(e);n>=0;n=bg(e,n))Zi(t,S0(e),!0)}function Dg(t,e,n,r){let o=j(),i=ve(),s=Ji(2);if(i.firstUpdatePass&&Eg(i,t,s,r),e!==Ge&&Mt(o,s,e)){let a=i.data[Et()];wg(i,a,o,o[le],t,o[s+1]=$0(e,n),r,s)}}function O0(t,e,n,r){let o=ve(),i=Ji(2);o.firstUpdatePass&&Eg(o,null,i,r);let s=j();if(n!==Ge&&Mt(s,i,n)){let a=o.data[Et()];if(xg(a,r)&&!Cg(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Ui(c,n||"")),Ul(o,a,s,n,r)}else H0(o,a,s,s[le],s[i+1],s[i+1]=V0(t,e,n),r,i)}}function Cg(t,e){return e>=t.expandoStartIndex}function Eg(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Et()],s=Cg(t,n);xg(i,r)&&e===null&&!s&&(e=!1),e=P0(o,i,e,r),I0(o,i,e,n,s,r)}}function P0(t,e,n,r){let o=qf(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=pl(null,t,e,n,r),n=Mo(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=pl(o,t,e,n,r),i===null){let c=F0(t,e,r);c!==void 0&&Array.isArray(c)&&(c=pl(null,t,e,c[1],r),c=Mo(c,e.attrs,r),L0(t,e,r,c))}else i=j0(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function F0(t,e,n){let r=n?e.classBindings:e.styleBindings;if(kr(r)!==0)return t[zn(r)]}function L0(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[zn(o)]=r}function j0(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=Mo(r,s,n)}return Mo(r,e.attrs,n)}function pl(t,e,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=e[a],r=Mo(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function Mo(t,e,n){let r=n?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Zi(t,s,n?!0:e[++i]))}return t===void 0?null:t}function V0(t,e,n){if(n==null||n==="")return Je;let r=[],o=Jl(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function B0(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&Zi(t,r,n)}function H0(t,e,n,r,o,i,s,a){o===Ge&&(o=Je);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let h=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,_=null,I;u===d?(c+=2,l+=2,h!==f&&(_=d,I=f)):d===null||u!==null&&u<d?(c+=2,_=u):(l+=2,_=d,I=f),_!==null&&wg(t,e,n,r,_,I,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function wg(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=x0(l)?Mp(c,e,n,o,kr(l),s):void 0;if(!Ss(u)){Ss(i)||E0(l)&&(i=Mp(c,null,n,o,a,s));let d=Lc(Et(),n);Tb(r,s,d,o,i)}}function Mp(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[o+1];h===Ge&&(h=d?Je:void 0);let f=d?Yi(h,r):u===r?h:void 0;if(l&&!Ss(f)&&(f=Yi(c,r)),Ss(f)&&(a=f,s))return a;let _=t[o+1];o=s?zn(_):kr(_)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=Yi(c,r))}return a}function Ss(t){return t!==void 0}function $0(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Gt(Jl(t)))),t}function xg(t,e){return(t.flags&(e?8:16))!==0}function b(t,e=""){let n=j(),r=ve(),o=t+he,i=r.firstCreatePass?Or(r,o,1,e,null):r.data[o],s=U0(r,n,i,e,t);n[o]=s,is()&&du(r,n,s,i),wr(i,!1)}var U0=(t,e,n,r,o)=>(ss(!0),Bv(e[le],r));function z0(t,e,n,r=""){return Mt(t,jn(),n)?e+vr(n)+r:Ge}function G0(t,e,n,r,o,i=""){let s=$f(),a=Kh(t,s,n,o);return Ji(2),a?e+vr(n)+r+vr(o)+i:Ge}function U(t){return Y("",t),U}function Y(t,e,n){let r=j(),o=z0(r,t,e,n);return o!==Ge&&Ig(r,Et(),o),Y}function Pr(t,e,n,r,o){let i=j(),s=G0(i,t,e,n,r,o);return s!==Ge&&Ig(i,Et(),s),Pr}function Ig(t,e,n){let r=Lc(e,t);Hv(t[le],r,n)}function W0(t,e,n){let r=ve();if(r.firstCreatePass){let o=Ct(t);Wl(n,r.data,r.blueprint,o,!0),Wl(e,r.data,r.blueprint,o,!1)}}function Wl(t,e,n,r,o){if(t=Oe(t),Array.isArray(t))for(let i=0;i<t.length;i++)Wl(t[i],e,n,r,o);else{let i=ve(),s=j(),a=Pe(),c=wn(t)?t:Oe(t.provide),l=Rc(t),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(wn(t)||!t.multi){let f=new $n(l,o,Ft,null),_=gl(c,e,o?u:u+h,d);_===-1?(yl(bs(a,s),i,c),hl(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[_]=f,s[_]=f)}else{let f=gl(c,e,u+h,d),_=gl(c,e,u,u+h),I=f>=0&&n[f],M=_>=0&&n[_];if(o&&!M||!o&&!I){yl(bs(a,s),i,c);let C=Y0(o?Z0:q0,n.length,o,r,l,t);!o&&M&&(n[_].providerFactory=C),hl(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(C),s.push(C)}else{let C=Tg(n[o?_:f],l,!o&&r);hl(i,t,f>-1?f:_,C)}!o&&r&&M&&n[_].componentProviders++}}}function hl(t,e,n,r){let o=wn(e),i=Mf(e);if(o||i){let c=(i?Oe(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Tg(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function gl(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function q0(t,e,n,r,o){return ql(this.multi,[])}function Z0(t,e,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=_o(r,r[A],this.providerFactory.index,o);s=c.slice(0,a),ql(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],ql(i,s);return s}function ql(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function Y0(t,e,n,r,o,i){let s=new $n(t,n,Ft,null);return s.multi=[],s.index=e,s.componentProviders=0,Tg(s,o,r&&!n),s}function Oo(t,e=[]){return n=>{n.providersResolver=(r,o)=>W0(r,o?o(t):t,e)}}function Q0(t,e){let n=t[e];return n===Ge?void 0:n}function K0(t,e,n,r,o,i,s){let a=e+n;return Kh(t,a,o,i)?C_(t,a+2,s?r.call(s,o,i):r(o,i)):Q0(t,a+2)}function Po(t,e){let n=ve(),r,o=t+he;n.firstCreatePass?(r=X0(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=En(r.type,!0)),s,a=Le(Ft);try{let c=vs(!1),l=i();return vs(c),jc(n,j(),o,l),l}finally{Le(a)}}function X0(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function Fo(t,e,n,r){let o=t+he,i=j(),s=kf(i,o);return J0(i,o)?K0(i,Hf(),e,s.transform,n,r,s):s.transform(n,r)}function J0(t,e){return t[A].data[e].pure}var eD=(()=>{class t{zone=v(oe);changeDetectionScheduler=v(et);applicationRef=v(Zn);applicationErrorHandler=v(wt);_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||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mg=new k("",{factory:()=>!1});function ku({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new oe(ae(Q({},Ou()),{scheduleInRootZone:n})),[{provide:oe,useFactory:t},{provide:Sn,multi:!0,useFactory:()=>{let r=v(eD,{optional:!0});return()=>r.initialize()}},{provide:Sn,multi:!0,useFactory:()=>{let r=v(tD);return()=>{r.initialize()}}},e===!0?{provide:rl,useValue:!0}:[],{provide:ol,useValue:n??hh},{provide:wt,useFactory:()=>{let r=v(oe),o=v(ze),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Ze),i.handleError(s))})}}}]}function Au(t){let e=t?.ignoreChangesOutsideZone,n=t?.scheduleInRootZone,r=ku({ngZoneFactory:()=>{let o=Ou(t);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&rn("NgZone_CoalesceEvent"),new oe(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:n});return so([{provide:Mg,useValue:!0},{provide:mo,useValue:!1},r])}function Ou(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var tD=(()=>{class t{subscription=new ue;initialized=!1;zone=v(oe);pendingTasks=v(Jt);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(()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{oe.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Sg=(()=>{class t{applicationErrorHandler=v(wt);appRef=v(Zn);taskService=v(Jt);ngZone=v(oe);zonelessEnabled=v(mo);tracing=v(nn,{optional:!0});disableScheduling=v(rl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Cs):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(ol,{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 Es||!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?up:gh;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(Cs+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,up(()=>{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||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nD(){return typeof $localize<"u"&&$localize.locale||Ao}var Lo=new k("",{providedIn:"root",factory:()=>v(Lo,{optional:!0,skipSelf:!0})||nD()});var qs=class{destroyed=!1;listeners=null;errorHandler=v(Ze,{optional:!0});destroyRef=v(He);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new T(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let n=this.listeners?.indexOf(e);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(e){if(this.destroyed){console.warn(In(953,!1));return}if(this.listeners===null)return;let n=O(null);try{for(let r of this.listeners)try{r(e)}catch(o){this.errorHandler?.handleError(o)}}finally{O(n)}}};function Ue(t){return lf(t)}function $(t,e){return $r(t,e?.equal)}var Pu=class{[Te];constructor(e){this[Te]=e}destroy(){this[Te].destroy()}};function _e(t,e){let n=e?.injector??v(je),r=e?.manualCleanup!==!0?n.get(He):null,o,i=n.get(Vn,null,{optional:!0}),s=n.get(et);return i!==null?(o=iD(i.view,s,t),r instanceof oo&&r._lView===i.view&&(r=null)):o=sD(t,n.get(yo),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Pu(o)}var Ng=ae(Q({},uf),{cleanupFns:void 0,zone:null,onDestroyFn:Bn,run(){let t=xr(!1);try{df(this)}finally{xr(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=O(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],O(t)}}}),rD=ae(Q({},Ng),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){$t(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),oD=ae(Q({},Ng),{consumerMarkedDirty(){this.view[F]|=8192,Kt(this.view),this.notifier.notify(13)},destroy(){$t(this),this.onDestroyFn(),this.cleanup(),this.view[Ot]?.delete(this)}});function iD(t,e,n){let r=Object.create(oD);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=Rg(r,n),t[Ot]??=new Set,t[Ot].add(r),r.consumerMarkedDirty(r),r}function sD(t,e,n){let r=Object.create(rD);return r.fn=Rg(r,t),r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Rg(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n))}}var Fg=Symbol("InputSignalNode#UNSET"),_D=ae(Q({},Ur),{transformFn:void 0,applyValueToInputSignal(t,e){ir(t,e)}});function Lg(t,e){let n=Object.create(_D);n.value=t,n.transformFn=e?.transform;function r(){if(fn(n),n.value===Fg){let o=null;throw new T(-950,o)}return n.value}return r[Te]=n,r}var DD=new k("");DD.__NG_ELEMENT_ID__=t=>{let e=Pe();if(e===null)throw new T(204,!1);if(e.type&2)return e.value;if(t&8)return null;throw new T(204,!1)};function X(t){return new qs}function kg(t,e){return Lg(t,e)}function CD(t){return Lg(Fg,t)}var q=(kg.required=CD,kg);function Ag(t,e){return ag(e)}function ED(t,e){return cg(e)}var sn=(Ag.required=ED,Ag);var Lu=new k(""),wD=new k("");function jo(t){return!t.moduleRef}function xD(t){let e=jo(t)?t.r3Injector:t.moduleRef.injector,n=e.get(oe);return n.run(()=>{jo(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(wt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),jo(t)){let i=()=>e.destroy(),s=t.platformInjector.get(Lu);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Lu);s.add(i),t.moduleRef.onDestroy(()=>{bo(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return TD(r,n,()=>{let i=e.get(Jt),s=i.add(),a=e.get(wu);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(Lo,Ao);if(vg(c||Ao),!e.get(wD,!0))return jo(t)?e.get(Zn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(jo(t)){let u=e.get(Zn);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return ID?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var ID;function TD(t,e,n){try{let r=n();return Ws(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var Zs=null;function MD(t=[],e){return je.create({name:e,providers:[{provide:ao,useValue:"platform"},{provide:Lu,useValue:new Set([()=>Zs=null])},...t]})}function SD(t=[]){if(Zs)return Zs;let e=MD(t);return Zs=e,gg(),ND(e),e}function ND(t){let e=t.get(As,null);_r(t,()=>{e?.forEach(n=>n())})}var Uu=(()=>{class t{static __NG_ELEMENT_ID__=RD}return t})();function RD(t){return kD(Pe(),j(),(t&16)===16)}function kD(t,e,n){if(Qt(t)&&!n){let r=rt(t.index,e);return new en(r,r)}else if(t.type&175){let r=e[Be];return new en(r,e)}return null}var ju=class{constructor(){}supports(e){return vu(e)}create(e){return new Vu(e)}},AD=(t,e)=>e,Vu=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||AD}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<Og(r,o,i)?n:r,a=Og(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let h=0;h<l;h++){let f=h<i.length?i[h]:i[h]=0,_=f+h;u<=_&&_<l&&(i[h]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&e(s,a,c)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!vu(e))throw new T(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Yh(e,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new Bu(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ys),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ys),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Bu=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,n){this.item=e,this.trackById=n}},Hu=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Ys=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Hu,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Og(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Pg(){return new Ks([new ju])}var Ks=(()=>{class t{factories;static \u0275prov=L({token:t,providedIn:"root",factory:Pg});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:()=>{let r=v(t,{optional:!0,skipSelf:!0});return t.create(n,r||Pg())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new T(901,!1)}}return t})();function jg(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;te(8);try{let i=o?.injector??SD(r),s=[ku({}),{provide:et,useExisting:Sg},ep,...n||[]],a=new Io({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return xD({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{te(9)}}function Vg(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}var Fu=Symbol("NOT_SET"),Bg=new Set,OD=ae(Q({},Ur),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Fu,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==Fu&&!hn(this))return this.signal;try{for(let o of this.cleanup??Bg)o()}finally{this.cleanup?.clear()}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=Ht(this),r;try{r=this.userFn.apply(null,e)}finally{pn(this,n)}return(this.value===Fu||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),$u=class extends Do{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];constructor(e,n,r,o,i,s=null){super(e,[void 0,void 0,void 0,void 0],r,!1,i.get(He),s),this.scheduler=o;for(let a of au){let c=n[a];if(c===void 0)continue;let l=Object.create(OD);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(fn(l),l.value),l.signal[Te]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let e of this.nodes)if(e)try{for(let n of e.cleanup??Bg)n()}finally{$t(e)}}};function zu(t,e){let n=e?.injector??v(je),r=n.get(et),o=n.get(js),i=n.get(nn,null,{optional:!0});o.impl??=n.get(cu);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get(Vn,null,{optional:!0}),c=new $u(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}var Hg=null;function Bo(){return Hg}function Gu(t){Hg??=t}var Vo=class{};var Fe=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(Fe||{}),re=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(re||{}),We=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(We||{}),Bt={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 Ug(t){return Qe(t)[be.LocaleId]}function zg(t,e,n){let r=Qe(t),o=[r[be.DayPeriodsFormat],r[be.DayPeriodsStandalone]],i=it(o,e);return it(i,n)}function Gg(t,e,n){let r=Qe(t),o=[r[be.DaysFormat],r[be.DaysStandalone]],i=it(o,e);return it(i,n)}function Wg(t,e,n){let r=Qe(t),o=[r[be.MonthsFormat],r[be.MonthsStandalone]],i=it(o,e);return it(i,n)}function qg(t,e){let r=Qe(t)[be.Eras];return it(r,e)}function Ho(t,e){let n=Qe(t);return it(n[be.DateFormat],e)}function $o(t,e){let n=Qe(t);return it(n[be.TimeFormat],e)}function Uo(t,e){let r=Qe(t)[be.DateTimeFormat];return it(r,e)}function zo(t,e){let n=Qe(t),r=n[be.NumberSymbols][e];if(typeof r>"u"){if(e===Bt.CurrencyDecimal)return n[be.NumberSymbols][Bt.Decimal];if(e===Bt.CurrencyGroup)return n[be.NumberSymbols][Bt.Group]}return r}function Zg(t){if(!t[be.ExtraData])throw new T(2303,!1)}function Yg(t){let e=Qe(t);return Zg(e),(e[be.ExtraData][2]||[]).map(r=>typeof r=="string"?Wu(r):[Wu(r[0]),Wu(r[1])])}function Qg(t,e,n){let r=Qe(t);Zg(r);let o=[r[be.ExtraData][0],r[be.ExtraData][1]],i=it(o,e)||[];return it(i,n)||[]}function it(t,e){for(let n=e;n>-1;n--)if(typeof t[n]<"u")return t[n];throw new T(2304,!1)}function Wu(t){let[e,n]=t.split(":");return{hours:+e,minutes:+n}}var PD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Xs={},FD=/((?:[^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]*)/,LD=256;function Kg(t,e,n,r){let o=qD(t);jD(e),e=Vt(n,e)||e;let s=[],a;for(;e;)if(a=FD.exec(e),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;e=u}else{s.push(e);break}let c=o.getTimezoneOffset();r&&(c=Jg(r,c),o=WD(o,r));let l="";return s.forEach(u=>{let d=zD(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function jD(t){if(t.length>LD)throw new T(2300,!1)}function ra(t,e,n){let r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Vt(t,e){let n=Ug(t);if(Xs[n]??={},Xs[n][e])return Xs[n][e];let r="";switch(e){case"shortDate":r=Ho(t,We.Short);break;case"mediumDate":r=Ho(t,We.Medium);break;case"longDate":r=Ho(t,We.Long);break;case"fullDate":r=Ho(t,We.Full);break;case"shortTime":r=$o(t,We.Short);break;case"mediumTime":r=$o(t,We.Medium);break;case"longTime":r=$o(t,We.Long);break;case"fullTime":r=$o(t,We.Full);break;case"short":let o=Vt(t,"shortTime"),i=Vt(t,"shortDate");r=Js(Uo(t,We.Short),[o,i]);break;case"medium":let s=Vt(t,"mediumTime"),a=Vt(t,"mediumDate");r=Js(Uo(t,We.Medium),[s,a]);break;case"long":let c=Vt(t,"longTime"),l=Vt(t,"longDate");r=Js(Uo(t,We.Long),[c,l]);break;case"full":let u=Vt(t,"fullTime"),d=Vt(t,"fullDate");r=Js(Uo(t,We.Full),[u,d]);break}return r&&(Xs[n][e]=r),r}function Js(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return e!=null&&r in e?e[r]:n})),t}function yt(t,e,n="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.slice(s.length-e)),i+s}function VD(t,e){return yt(t,3).substring(0,e)}function De(t,e,n=0,r=!1,o=!1){return function(i,s){let a=BD(t,i);if((n>0||a>-n)&&(a+=n),t===3)a===0&&n===-12&&(a=12);else if(t===6)return VD(a,e);let c=zo(s,Bt.MinusSign);return yt(a,e,c,r,o)}}function BD(t,e){switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();case 3:return e.getHours();case 4:return e.getMinutes();case 5:return e.getSeconds();case 6:return e.getMilliseconds();case 7:return e.getDay();default:throw new T(2301,!1)}}function se(t,e,n=Fe.Format,r=!1){return function(o,i){return HD(o,i,t,e,n,r)}}function HD(t,e,n,r,o,i){switch(n){case 2:return Wg(e,o,r)[t.getMonth()];case 1:return Gg(e,o,r)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(i){let l=Yg(e),u=Qg(e,o,r),d=l.findIndex(h=>{if(Array.isArray(h)){let[f,_]=h,I=s>=f.hours&&a>=f.minutes,M=s<_.hours||s===_.hours&&a<_.minutes;if(f.hours<_.hours){if(I&&M)return!0}else if(I||M)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return zg(e,o,r)[s<12?0:1];case 3:return qg(e,r)[t.getFullYear()<=0?0:1];default:let c=n;throw new T(2302,!1)}}function ea(t){return function(e,n,r){let o=-1*r,i=zo(n,Bt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+yt(s,2,i)+yt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+yt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+yt(s,2,i)+":"+yt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+yt(s,2,i)+":"+yt(Math.abs(o%60),2,i);default:throw new T(2310,!1)}}}var $D=0,na=4;function UD(t){let e=ra(t,$D,1).getDay();return ra(t,0,1+(e<=na?na:na+7)-e)}function Xg(t){let e=t.getDay(),n=e===0?-3:na-e;return ra(t.getFullYear(),t.getMonth(),t.getDate()+n)}function qu(t,e=!1){return function(n,r){let o;if(e){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Xg(n),s=UD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return yt(o,t,zo(r,Bt.MinusSign))}}function ta(t,e=!1){return function(n,r){let i=Xg(n).getFullYear();return yt(i,t,zo(r,Bt.MinusSign),e)}}var Zu={};function zD(t){if(Zu[t])return Zu[t];let e;switch(t){case"G":case"GG":case"GGG":e=se(3,re.Abbreviated);break;case"GGGG":e=se(3,re.Wide);break;case"GGGGG":e=se(3,re.Narrow);break;case"y":e=De(0,1,0,!1,!0);break;case"yy":e=De(0,2,0,!0,!0);break;case"yyy":e=De(0,3,0,!1,!0);break;case"yyyy":e=De(0,4,0,!1,!0);break;case"Y":e=ta(1);break;case"YY":e=ta(2,!0);break;case"YYY":e=ta(3);break;case"YYYY":e=ta(4);break;case"M":case"L":e=De(1,1,1);break;case"MM":case"LL":e=De(1,2,1);break;case"MMM":e=se(2,re.Abbreviated);break;case"MMMM":e=se(2,re.Wide);break;case"MMMMM":e=se(2,re.Narrow);break;case"LLL":e=se(2,re.Abbreviated,Fe.Standalone);break;case"LLLL":e=se(2,re.Wide,Fe.Standalone);break;case"LLLLL":e=se(2,re.Narrow,Fe.Standalone);break;case"w":e=qu(1);break;case"ww":e=qu(2);break;case"W":e=qu(1,!0);break;case"d":e=De(2,1);break;case"dd":e=De(2,2);break;case"c":case"cc":e=De(7,1);break;case"ccc":e=se(1,re.Abbreviated,Fe.Standalone);break;case"cccc":e=se(1,re.Wide,Fe.Standalone);break;case"ccccc":e=se(1,re.Narrow,Fe.Standalone);break;case"cccccc":e=se(1,re.Short,Fe.Standalone);break;case"E":case"EE":case"EEE":e=se(1,re.Abbreviated);break;case"EEEE":e=se(1,re.Wide);break;case"EEEEE":e=se(1,re.Narrow);break;case"EEEEEE":e=se(1,re.Short);break;case"a":case"aa":case"aaa":e=se(0,re.Abbreviated);break;case"aaaa":e=se(0,re.Wide);break;case"aaaaa":e=se(0,re.Narrow);break;case"b":case"bb":case"bbb":e=se(0,re.Abbreviated,Fe.Standalone,!0);break;case"bbbb":e=se(0,re.Wide,Fe.Standalone,!0);break;case"bbbbb":e=se(0,re.Narrow,Fe.Standalone,!0);break;case"B":case"BB":case"BBB":e=se(0,re.Abbreviated,Fe.Format,!0);break;case"BBBB":e=se(0,re.Wide,Fe.Format,!0);break;case"BBBBB":e=se(0,re.Narrow,Fe.Format,!0);break;case"h":e=De(3,1,-12);break;case"hh":e=De(3,2,-12);break;case"H":e=De(3,1);break;case"HH":e=De(3,2);break;case"m":e=De(4,1);break;case"mm":e=De(4,2);break;case"s":e=De(5,1);break;case"ss":e=De(5,2);break;case"S":e=De(6,1);break;case"SS":e=De(6,2);break;case"SSS":e=De(6,3);break;case"Z":case"ZZ":case"ZZZ":e=ea(0);break;case"ZZZZZ":e=ea(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ea(1);break;case"OOOO":case"ZZZZ":case"zzzz":e=ea(2);break;default:return null}return Zu[t]=e,e}function Jg(t,e){t=t.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function GD(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function WD(t,e,n){let o=t.getTimezoneOffset(),i=Jg(e,o);return GD(t,-1*(i-o))}function qD(t){if($g(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return ra(o,i-1,s)}let n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(PD))return ZD(r)}let e=new Date(t);if(!$g(e))throw new T(2311,!1);return e}function ZD(t){let e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,c,l),e}function $g(t){return t instanceof Date&&!isNaN(t.valueOf())}function YD(t,e){return new T(2100,!1)}var QD="mediumDate",em=new k(""),tm=new k(""),Go=(()=>{class t{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??QD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Kg(n,s,i||this.locale,a)}catch(s){throw YD(t,s.message)}}static \u0275fac=function(r){return new(r||t)(Ft(Lo,16),Ft(em,24),Ft(tm,24))};static \u0275pipe=Du({name:"date",type:t,pure:!0})}return t})();function Wo(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var Kn=class{};var Yu="browser";function nm(t){return t===Yu}var qo=class{_doc;constructor(e){this._doc=e}manager},oa=(()=>{class t extends qo{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||t)(z(Re))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),sa=new k(""),ed=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof oa));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof oa);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 T(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||t)(z(sa),z(oe))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),Qu="ng-app-id";function rm(t){for(let e of t)e.remove()}function om(t,e){let n=e.createElement("style");return n.textContent=t,n}function JD(t,e,n,r){let o=t.head?.querySelectorAll(`style[${Qu}="${e}"],link[${Qu}="${e}"]`);if(o)for(let i of o)i.removeAttribute(Qu),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 Xu(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var td=(()=>{class t{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,JD(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,om);r?.forEach(o=>this.addUsage(o,this.external,Xu))}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&&(rm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])rm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,om(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Xu(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||t)(z(Re),z(ks),z(Os,8),z(Gn))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),Ku={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"},nd=/%COMP%/g;var sm="%COMP%",eC=`_nghost-${sm}`,tC=`_ngcontent-${sm}`,nC=!0,rC=new k("",{providedIn:"root",factory:()=>nC});function oC(t){return tC.replace(nd,t)}function iC(t){return eC.replace(nd,t)}function am(t,e){return e.map(n=>n.replace(nd,t))}var rd=(()=>{class t{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 Zo(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 ia?o.applyToHost(n):o instanceof Yo&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Pt.Emulated:i=new ia(c,l,r,this.appId,u,s,a,d,h);break;case Pt.ShadowDom:return new Ju(c,l,n,r,s,a,this.nonce,d,h);default:i=new Yo(c,l,r,u,s,a,d,h);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||t)(z(ed),z(td),z(ks),z(rC),z(Re),z(oe),z(Os),z(nn,8))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),Zo=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,n,r,o,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,n){return n?this.doc.createElementNS(Ku[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(im(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(im(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new T(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;let i=Ku[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let o=Ku[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(It.DashCase|It.Important)?e.style.setProperty(n,r,o&It.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&It.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r,o){if(typeof e=="string"&&(e=Bo().getGlobalEventTarget(this.doc,e),!e))throw new T(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,n,i)),this.eventManager.addEventListener(e,n,i,o)}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;e(n)===!1&&n.preventDefault()}}};function im(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Ju=class extends Zo{sharedStylesHost;hostEl;shadowRoot;constructor(e,n,r,o,i,s,a,c,l){super(e,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=am(o.id,u);for(let h of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=h,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let h of d){let f=Xu(h,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yo=class extends Zo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,n,r,o,i,s,a,c,l){super(e,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?am(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Un.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ia=class extends Yo{contentAttr;hostAttr;constructor(e,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(e,n,r,i,s,a,c,l,u),this.contentAttr=oC(u),this.hostAttr=iC(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}};var aa=class t extends Vo{supportsDOMEvents=!0;static makeCurrent(){Gu(new t)}onAndCancel(e,n,r,o){return e.addEventListener(n,r,o),()=>{e.removeEventListener(n,r,o)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=sC();return n==null?null:aC(n)}resetBaseElement(){Qo=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wo(document.cookie,e)}},Qo=null;function sC(){return Qo=Qo||document.head.querySelector("base"),Qo?Qo.getAttribute("href"):null}function aC(t){return new URL(t,document.baseURI).pathname}var cC=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),cm=["alt","control","meta","shift"],lC={"\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"},uC={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},lm=(()=>{class t extends qo{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Bo().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=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),cm.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=lC[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"),cm.forEach(s=>{if(s!==o){let a=uC[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{t.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||t)(z(Re))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function od(t,e,n){let r=Q({rootComponent:t,platformRef:n?.platformRef},dC(e));return jg(r)}function dC(t){return{appProviders:[...mC,...t?.providers??[]],platformProviders:gC}}function fC(){aa.makeCurrent()}function pC(){return new Ze}function hC(){return Xl(document),document}var gC=[{provide:Gn,useValue:Yu},{provide:As,useValue:fC,multi:!0},{provide:Re,useFactory:hC}];var mC=[{provide:ao,useValue:"root"},{provide:Ze,useFactory:pC},{provide:sa,useClass:oa,multi:!0,deps:[Re]},{provide:sa,useClass:lm,multi:!0,deps:[Re]},rd,td,ed,{provide:Tt,useExisting:rd},{provide:Kn,useClass:cC},[]];var Jn=class{},Ko=class{},an=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.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"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init();for(let[n,r]of e.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,e.normalizedNames.get(n))}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let o=e.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=e.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(e,n){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var la=class{encodeKey(e){return um(e)}encodeValue(e){return um(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function yC(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var vC=/%(\d[a-f0-9])/gi,bC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function um(t){return encodeURIComponent(t).replace(vC,(e,n)=>bC[n]??e)}function ca(t){return`${t}`}var st=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new la,e.fromString){if(e.fromObject)throw new T(2805,!1);this.map=yC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],o=Array.isArray(r)?r.map(ca):[ca(r)];this.map.set(n,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let o=e[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(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[e,n]of this.cloneFrom.map.entries())this.map.set(e,n);this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=e.op==="a"?(this.map.get(e.param)||[]).slice():[];n.push(ca(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=(this.map.get(e.param)||[]).slice(),o=r.indexOf(ca(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null}}};var ua=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _C(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function dm(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function fm(t){return typeof Blob<"u"&&t instanceof Blob}function pm(t){return typeof FormData<"u"&&t instanceof FormData}function DC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var hm="Content-Type",gm="Accept",mm="X-Request-URL",ym="text/plain",vm="application/json",CC=`${vm}, ${ym}, */*`,Fr=class t{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(e,n,r,o){this.url=n,this.method=e.toUpperCase();let i;if(_C(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 T(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 an,this.context??=new ua,!this.params)this.params=new st,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"||dm(this.body)||fm(this.body)||pm(this.body)||DC(this.body)?this.body:this.body instanceof st?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||pm(this.body)?null:fm(this.body)?this.body.type||null:dm(this.body)?null:typeof this.body=="string"?ym:this.body instanceof st?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?vm:null}clone(e={}){let n=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,i=e.keepalive??this.keepalive,s=e.priority||this.priority,a=e.cache||this.cache,c=e.mode||this.mode,l=e.redirect||this.redirect,u=e.credentials||this.credentials,d=e.referrer??this.referrer,h=e.integrity||this.integrity,f=e.transferCache??this.transferCache,_=e.timeout??this.timeout,I=e.body!==void 0?e.body:this.body,M=e.withCredentials??this.withCredentials,C=e.reportProgress??this.reportProgress,de=e.headers||this.headers,tr=e.params||this.params,ke=e.context??this.context;return e.setHeaders!==void 0&&(de=Object.keys(e.setHeaders).reduce((ln,un)=>ln.set(un,e.setHeaders[un]),de)),e.setParams&&(tr=Object.keys(e.setParams).reduce((ln,un)=>ln.set(un,e.setParams[un]),tr)),new t(n,r,I,{params:tr,headers:de,context:ke,reportProgress:C,responseType:o,withCredentials:M,transferCache:f,keepalive:i,cache:a,priority:s,timeout:_,mode:c,redirect:l,credentials:u,referrer:d,integrity:h})}},Xn=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Xn||{}),jr=class{headers;status;statusText;url;ok;type;redirected;constructor(e,n=200,r="OK"){this.headers=e.headers||new an,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},da=class t extends jr{constructor(e={}){super(e)}type=Xn.ResponseHeader;clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Xo=class t extends jr{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=Xn.Response;clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0,redirected:e.redirected??this.redirected})}},Lr=class extends jr{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},EC=200,wC=204;function id(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var pa=(()=>{class t{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Fr)i=n;else{let c;o.headers instanceof an?c=o.headers:c=new an(o.headers);let l;o.params&&(o.params instanceof st?l=o.params:l=new st({fromObject:o.params})),i=new Fr(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=qe(i).pipe(ec(c=>this.handler.handle(c)));if(n instanceof Fr||o.observe==="events")return s;let a=s.pipe(Xr(c=>c instanceof Xo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Xe(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new T(2806,!1);return c.body}));case"blob":return a.pipe(Xe(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new T(2807,!1);return c.body}));case"text":return a.pipe(Xe(c=>{if(c.body!==null&&typeof c.body!="string")throw new T(2808,!1);return c.body}));default:return a.pipe(Xe(c=>c.body))}case"response":return a;default:throw new T(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 st().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,id(o,r))}post(n,r,o={}){return this.request("POST",n,id(o,r))}put(n,r,o={}){return this.request("PUT",n,id(o,r))}static \u0275fac=function(r){return new(r||t)(z(Jn))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var xC=new k("");function IC(t,e){return e(t)}function TC(t,e,n){return(r,o)=>_r(n,()=>e(r,i=>t(i,o)))}var ad=new k(""),bm=new k(""),_m=new k("",{providedIn:"root",factory:()=>!0});var fa=(()=>{class t extends Jn{backend;injector;chain=null;pendingTasks=v(Ir);contributeToStability=v(_m);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=this.injector.get(Jn,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get(bm,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(ad),...i]));this.chain=s.reduceRight((a,c)=>TC(a,c,this.injector),IC)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(gr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(z(Ko),z(ze))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var MC=/^\)\]\}',?\n/,SC=RegExp(`^${mm}:`,"m");function NC(t){return"responseURL"in t&&t.responseURL?t.responseURL:SC.test(t.getAllResponseHeaders())?t.getResponseHeader(mm):null}var sd=(()=>{class t{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new T(-2800,!1);let r=this.xhrFactory;return qe(null).pipe(to(()=>new H(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((M,C)=>s.setRequestHeader(M,C.join(","))),n.headers.has(gm)||s.setRequestHeader(gm,CC),!n.headers.has(hm)){let M=n.detectContentTypeHeader();M!==null&&s.setRequestHeader(hm,M)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let M=n.responseType.toLowerCase();s.responseType=M!=="json"?M:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let M=s.statusText||"OK",C=new an(s.getAllResponseHeaders()),de=NC(s)||n.url;return c=new da({headers:C,status:s.status,statusText:M,url:de}),c},u=()=>{let{headers:M,status:C,statusText:de,url:tr}=l(),ke=null;C!==wC&&(ke=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=ke?EC:0);let ln=C>=200&&C<300;if(n.responseType==="json"&&typeof ke=="string"){let un=ke;ke=ke.replace(MC,"");try{ke=ke!==""?JSON.parse(ke):null}catch(Zm){ke=un,ln&&(ln=!1,ke={error:Zm,text:ke})}}ln?(i.next(new Xo({body:ke,headers:M,status:C,statusText:de,url:tr||void 0})),i.complete()):i.error(new Lr({error:ke,headers:M,status:C,statusText:de,url:tr||void 0}))},d=M=>{let{url:C}=l(),de=new Lr({error:M,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(de)},h=d;n.timeout&&(h=M=>{let{url:C}=l(),de=new Lr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(de)});let f=!1,_=M=>{f||(i.next(l()),f=!0);let C={type:Xn.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(C.total=M.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)},I=M=>{let C={type:Xn.UploadProgress,loaded:M.loaded};M.lengthComputable&&(C.total=M.total),i.next(C)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",_),a!==null&&s.upload&&s.upload.addEventListener("progress",I)),s.send(a),i.next({type:Xn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",_),a!==null&&s.upload&&s.upload.removeEventListener("progress",I)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(z(Kn))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),Dm=new k(""),RC="XSRF-TOKEN",kC=new k("",{providedIn:"root",factory:()=>RC}),AC="X-XSRF-TOKEN",OC=new k("",{providedIn:"root",factory:()=>AC}),Jo=class{},PC=(()=>{class t{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=Wo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||t)(z(Re),z(kC))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),FC=/^(?:https?:)?\/\//i;function LC(t,e){if(!v(Dm)||t.method==="GET"||t.method==="HEAD"||FC.test(t.url))return e(t);let n=v(Jo).getToken(),r=v(OC);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var cd=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(cd||{});function jC(t,e){return{\u0275kind:t,\u0275providers:e}}function ld(...t){let e=[pa,sd,fa,{provide:Jn,useExisting:fa},{provide:Ko,useFactory:()=>v(xC,{optional:!0})??v(sd)},{provide:ad,useValue:LC,multi:!0},{provide:Dm,useValue:!0},{provide:Jo,useClass:PC}];for(let n of t)e.push(...n.\u0275providers);return so(e)}function ud(t){return jC(cd.Interceptors,t.map(e=>({provide:ad,useValue:e,multi:!0})))}var Cm="guitoToken";function Em(){return new URLSearchParams(window.location.search).get(Cm)??""}var wm=(t,e)=>{let n=Em();return!n||!t.url.startsWith("/api")?e(t):e(t.clone({setHeaders:{"X-Guito-Token":n}}))};function xm(t){let e=new URL(t,window.location.origin),n=Em();return n&&e.searchParams.set(Cm,n),e.toString()}var Im={providers:[Au({eventCoalescing:!0}),ld(ud([wm]))]};var Nt="__working__";var cn=class t{http=v(pa);base="/api";mutating=D(!1);mutate(e){return Xa(()=>this.mutating()?Qa(()=>({status:400,error:{error:"Another Git operation is in progress."}})):(this.mutating.set(!0),e().pipe(gr(()=>this.mutating.set(!1)))))}getRepoInfo(){return this.http.get(`${this.base}/repo`)}getCommits(e,n=0){let r=new st;return e!==void 0&&(r=r.set("limit",String(e))),n>0&&(r=r.set("skip",String(n))),this.http.get(`${this.base}/commits`,{params:r})}searchCommits(e){let n=new st().set("query",e);return this.http.get(`${this.base}/commits/search`,{params:n})}getCommitDetail(e){return this.http.post(`${this.base}/commit/detail`,{hash:e})}getAllBranches(){return this.http.get(`${this.base}/branches/all`)}getCommitDiff(e){return this.http.post(`${this.base}/commit/diff`,{hash:e})}getWorkingChanges(){return this.http.get(`${this.base}/working-changes`)}getFileContent(e,n){return this.http.post(`${this.base}/file-content`,{path:e,ref:n})}fetch(){return this.mutate(()=>this.http.get(`${this.base}/fetch`))}pull(e=!1){return this.mutate(()=>this.http.post(`${this.base}/pull`,{rebase:e}))}push(){return this.mutate(()=>this.http.post(`${this.base}/push`,{}))}sync(){return this.mutate(()=>this.http.post(`${this.base}/sync`,{}))}checkout(e){return this.mutate(()=>this.http.post(`${this.base}/checkout`,{ref:e}))}revert(e){return this.mutate(()=>this.http.post(`${this.base}/revert`,{commit:e}))}cherryPick(e){return this.mutate(()=>this.http.post(`${this.base}/cherry-pick`,{commit:e}))}dropCommit(e){return this.mutate(()=>this.http.post(`${this.base}/commit/drop`,{commit:e}))}resetToCommit(e,n="hard"){return this.mutate(()=>this.http.post(`${this.base}/reset-commit`,{commit:e,mode:n}))}commit(e,n){return this.mutate(()=>this.http.post(`${this.base}/commit`,{message:e,description:n}))}stage(e){return this.mutate(()=>this.http.post(`${this.base}/stage`,{files:e}))}unstage(e){return this.mutate(()=>this.http.post(`${this.base}/unstage`,{files:e}))}discard(e,n){return this.mutate(()=>this.http.post(`${this.base}/discard`,{files:e,mode:n}))}resetWorking(){return this.mutate(()=>this.http.post(`${this.base}/reset`,{}))}cleanUntracked(){return this.mutate(()=>this.http.post(`${this.base}/clean`,{}))}stashSave(e,n="all"){return this.mutate(()=>this.http.post(`${this.base}/stash/save`,{message:e,scope:n}))}createBranch(e,n){return this.mutate(()=>this.http.post(`${this.base}/branch/create`,{name:e,startPoint:n}))}deleteBranch(e,n=!1){return this.mutate(()=>this.http.post(`${this.base}/branch/delete`,{name:e,force:n}))}deleteRemoteBranch(e,n){return this.mutate(()=>this.http.post(`${this.base}/branch/delete-remote`,{remote:e,branch:n}))}renameBranch(e,n){return this.mutate(()=>this.http.post(`${this.base}/branch/rename`,{oldName:e,newName:n}))}merge(e){return this.mutate(()=>this.http.post(`${this.base}/merge`,{branch:e}))}rebase(e){return this.mutate(()=>this.http.post(`${this.base}/rebase`,{branch:e}))}createTag(e,n){return this.mutate(()=>this.http.post(`${this.base}/tag/create`,{name:e,commit:n}))}deleteTag(e){return this.mutate(()=>this.http.post(`${this.base}/tag/delete`,{name:e}))}pushTag(e,n="origin"){return this.mutate(()=>this.http.post(`${this.base}/tag/push`,{name:e,remote:n}))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function ha(t){let e=[],n=new Int32Array(t.length),r=o=>{let i=e.indexOf(o);return i===-1&&(i=e.indexOf(null),i===-1&&(e.push(null),i=e.length-1),e[i]=o),i};for(let o=0;o<t.length;o++){let{hash:i,parents:s}=t[o],a=e.map((l,u)=>l===i?u:-1).filter(l=>l!==-1),c;if(a.length>0){c=a[0];for(let l=1;l<a.length;l++)e[a[l]]=null}else c=r(i);e[c]=s[0]??null;for(let l=1;l<s.length;l++)r(s[l]);n[o]=c}return n}var Tm=["#3794ff","#4ec9b0","#d7ba7d","#c586c0","#89d185","#ce9178","#d16969","#569cd6","#b5cea8","#dcdcaa"];function ei(t){return Tm[Math.abs(t)%Tm.length]}function Mm(t){let e=0;for(let n=0;n<t.length;n++)e=e*31+t.charCodeAt(n)|0;return Math.abs(e)}var ga=class t{loading=null;load(){return this.loading||(this.loading=new Promise((e,n)=>{let r=window;if(r.monaco){e(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),e(r.monaco)})},o.onerror=()=>{this.loading=null,n(new Error("Failed to load the Monaco editor."))},document.head.appendChild(o)})),this.loading}applyTheme(e){e.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||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var VC=["host"];function BC(t,e){if(t&1&&(x(0,"span",6),b(1),S()),t&2){let n=m();p(),Y("+",n.file().additions)}}function HC(t,e){if(t&1&&(x(0,"span",7),b(1),S()),t&2){let n=m();p(),Y("\u2212",n.file().deletions)}}function $C(t,e){t&1&&(J(),pe(0,"line",11))}function UC(t,e){t&1&&(J(),pe(0,"line",12))}function zC(t,e){t&1&&(x(0,"div",18),b(1,"Loading diff\u2026"),S())}function GC(t,e){if(t&1&&(x(0,"div",19),b(1),S()),t&2){let n=m();p(),U(n.error())}}function WC(t,e){t&1&&(x(0,"div",18),b(1,"Binary file not shown."),S())}var qC=0,Vr=class t{git=v(cn);monacoService=v(ga);file=q.required();originalRef=q.required();modifiedRef=q.required();closed=X();host=sn.required("host");loading=D(!0);error=D("");binary=D(!1);sideBySide=D(!0);destroyed=!1;editor=null;models=[];onEscape(){this.closed.emit()}ngAfterViewInit(){return nr(this,null,function*(){this.loading.set(!0),this.error.set(""),this.binary.set(!1);try{let e=yield this.monacoService.load();if(this.destroyed)return;let n=this.file(),r=n.status==="added"&&!n.oldPath?"EMPTY":this.originalRef(),[o,i]=yield Promise.all([Li(this.git.getFileContent(n.oldPath||n.path,r)),Li(this.git.getFileContent(n.path,this.modifiedRef()))]);if(this.destroyed)return;if(o.binary||i.binary){this.binary.set(!0),this.loading.set(!1);return}let s=++qC,a=e.editor.createModel(o.content,void 0,e.Uri.parse(`inmemory://diff/${s}/original/${n.oldPath||n.path}`)),c=e.editor.createModel(i.content,void 0,e.Uri.parse(`inmemory://diff/${s}/modified/${n.path}`));this.models=[a,c],this.editor=e.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.destroyed=!0,this.editor?.dispose(),this.editor=null;for(let e of this.models)e.dispose();this.models=[]}toggleLayout(){this.sideBySide.update(e=>!e),this.editor?.updateOptions({renderSideBySide:this.sideBySide()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=we({type:t,selectors:[["app-diff-dialog"]],viewQuery:function(n,r){n&1&&Lt(r.host,VC,5),n&2&&jt()},hostBindings:function(n,r){n&1&&P("keydown.escape",function(){return r.onEscape()},St)},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=W();x(0,"div",1),ee("click",function(){return E(o),w(r.closed.emit())}),S(),x(1,"div",2)(2,"header",3)(3,"span"),b(4),S(),x(5,"span",4),b(6),S(),x(7,"span",5),N(8,BC,2,1,"span",6),N(9,HC,2,1,"span",7),S(),x(10,"button",8),ee("click",function(){return E(o),w(r.toggleLayout())}),J(),x(11,"svg",9),pe(12,"rect",10),N(13,$C,1,0,":svg:line",11)(14,UC,1,0,":svg:line",12),S()(),Ee(),x(15,"button",13),ee("click",function(){return E(o),w(r.closed.emit())}),J(),x(16,"svg",9),pe(17,"line",14)(18,"line",15),S()()(),Ee(),x(19,"div",16),pe(20,"div",17,0),N(22,zC,2,0,"div",18)(23,GC,2,1,"div",19)(24,WC,2,0,"div",18),S()()}n&2&&(p(3),Qn("status status-"+r.file().status),p(),U(r.file().status),p(),Ie("title",r.file().path),p(),U(r.file().path),p(2),R(r.file().additions>0?8:-1),p(),R(r.file().deletions>0?9:-1),p(),me("aria-label",r.sideBySide()?"Switch to inline view":"Switch to side-by-side view"),p(3),R(r.sideBySide()?13:14),p(9),R(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 ZC=(t,e)=>e.path;function YC(t,e){if(t&1&&(g(0,"span",15),b(1,"\u2022"),y(),g(2,"span"),b(3),Po(4,"date"),y(),g(5,"span",15),b(6,"\u2022"),y(),g(7,"code",16),b(8),y()),t&2){let n=m();p(3),U(Fo(4,2,n.commit().date,"d MMM y HH:mm")),p(5),U(n.commit().hash.slice(0,8))}}function QC(t,e){if(t&1&&(g(0,"pre",10),b(1),y()),t&2){let n=m();p(),U(n.body())}}function KC(t,e){t&1&&(g(0,"div",12),b(1,"Loading changes\u2026"),y())}function XC(t,e){if(t&1&&(g(0,"div",13),b(1),y()),t&2){let n=m();p(),U(n.error())}}function JC(t,e){t&1&&(g(0,"div",12),b(1,"No changes."),y())}function eE(t,e){if(t&1&&(g(0,"span",22),b(1),y()),t&2){let n=m().$implicit;p(),Y("+",n.additions)}}function tE(t,e){if(t&1&&(g(0,"span",23),b(1),y()),t&2){let n=m().$implicit;p(),Y("\u2212",n.deletions)}}function nE(t,e){if(t&1){let n=W();g(0,"button",19),P("click",function(){let o=E(n).$implicit,i=m(3);return w(i.openFile(o))}),g(1,"span"),b(2),y(),g(3,"span",20),b(4),y(),g(5,"span",21),N(6,eE,2,1,"span",22),N(7,tE,2,1,"span",23),y(),J(),g(8,"svg",24),xe(9,"polyline",25),y()()}if(t&2){let n=e.$implicit;p(),Qn("file-status status-"+n.status),p(),U(n.status),p(),G("title",n.path),p(),U(n.path),p(2),R(n.additions>0?6:-1),p(),R(n.deletions>0?7:-1)}}function rE(t,e){if(t&1&&(g(0,"div",17),Me(1,nE,10,7,"button",18,ZC),y()),t&2){let n=m();p(),Se(n.files)}}function oE(t,e){t&1&&N(0,JC,2,0,"div",12)(1,rE,3,0,"div",17),t&2&&R(e.files.length===0?0:1)}function iE(t,e){if(t&1){let n=W();g(0,"app-diff-dialog",26),P("closed",function(){E(n);let o=m();return w(o.dialogFile.set(null))}),y()}if(t&2){let n=m();G("file",e)("originalRef",n.originalRef())("modifiedRef",n.modifiedRef())}}var ma=class t{git=v(cn);commit=q.required();closed=X();diff=D(null);loading=D(!1);error=D("");dialogFile=D(null);body=D("");bodySub=null;workingHash=Nt;isWorking=$(()=>this.commit().hash===this.workingHash);originalRef=$(()=>this.isWorking()?"HEAD":`${this.commit().hash}^`);modifiedRef=$(()=>this.isWorking()?"WORKING":this.commit().hash);initials=$(()=>{let e=this.commit().author_name.trim();if(!e)return"?";let n=e.split(/\s+/),r=n[0].charAt(0),o=n.length>1?n[n.length-1].charAt(0):"";return(r+o).toUpperCase()});avatarColor=$(()=>ei(Mm(this.commit().author_name)));constructor(){_e(()=>{this.loadDiff(this.commit().hash),this.loadBody(this.commit())})}ngOnDestroy(){this.bodySub?.unsubscribe()}openFile(e){this.dialogFile.set(e)}loadBody(e){if(this.bodySub?.unsubscribe(),this.body.set(""),e.body!==void 0){this.body.set(e.body);return}this.bodySub=this.git.getCommitDetail(e.hash).subscribe({next:n=>this.body.set(n.body??""),error:()=>this.body.set("")})}loadDiff(e){if(this.loading.set(!0),this.error.set(""),this.diff.set(null),this.dialogFile.set(null),e===Nt){this.git.getWorkingChanges().subscribe({next:n=>{this.loading.set(!1),this.diff.set({hash:Nt,files:n.files})},error:()=>{this.loading.set(!1),this.error.set("Failed to load the working changes.")}});return}this.git.getCommitDiff(e).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||t)};static \u0275cmp=we({type:t,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&&(g(0,"aside",0)(1,"header",1)(2,"button",2),P("click",function(){return r.closed.emit()}),J(),g(3,"svg",3),xe(4,"line",4)(5,"line",5),y()(),Ee(),g(6,"h2",6),b(7),y(),g(8,"div",7)(9,"span",8),b(10),y(),g(11,"span",9),b(12),y(),N(13,YC,9,5),y(),N(14,QC,2,1,"pre",10),y(),g(15,"div",11),N(16,KC,2,0,"div",12)(17,XC,2,1,"div",13)(18,oE,2,1),y()(),N(19,iE,1,3,"app-diff-dialog",14)),n&2){let o,i;p(7),U(r.commit().message),p(2),ie("background",r.avatarColor()),p(),U(r.initials()),p(2),U(r.commit().author_name),p(),R(r.isWorking()?-1:13),p(),R(r.body().trim()?14:-1),p(2),R(r.loading()?16:r.error()?17:(o=r.diff())?18:-1,o),p(3),R((i=r.dialogFile())?19:-1,i)}},dependencies:[Vr,Go],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 ti(t,e=0){return sE(t)?Number(t):arguments.length===2?e:0}function sE(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Sm(t){return t instanceof mt?t.nativeElement:t}var dd;try{dd=typeof Intl<"u"&&Intl.v8BreakIterator}catch{dd=!1}var ya=(()=>{class t{_platformId=v(Gn);isBrowser=this._platformId?nm(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||dd)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var aE=new k("cdk-dir-doc",{providedIn:"root",factory:cE});function cE(){return v(Re)}var lE=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function uE(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?lE.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Nm=(()=>{class t{get value(){return this.valueSignal()}valueSignal=D("ltr");change=new gt;constructor(){let n=v(aE,{optional:!0});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(uE(r||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vt=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(vt||{}),va,er;function Rm(){if(er==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return er=!1,er;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)er=!0;else{let t=Element.prototype.scrollTo;t?er=!/\{\s*\[native code\]\s*\}/.test(t.toString()):er=!1}}return er}function Br(){if(typeof document!="object"||!document)return vt.NORMAL;if(va==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",t.appendChild(n),document.body.appendChild(t),va=vt.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,va=t.scrollLeft===0?vt.NEGATED:vt.INVERTED),t.remove()}return va}var ba=class{};function km(t){return t&&typeof t.connect=="function"&&!(t instanceof Gr)}var _a=class extends ba{_data;constructor(e){super(),this._data=e}connect(){return Kr(this._data)?this._data:qe(this._data)}disconnect(){}},ni=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(ni||{}),fd=new k("_ViewRepeater"),Da=class{viewCacheSize=20;_viewCache=[];applyChanges(e,n,r,o,i){e.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>r(s,a,c);l=this._insertView(d,c,n,o(s)),u=l?ni.INSERTED:ni.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=ni.REMOVED):(l=this._moveView(a,c,n,o(s)),u=ni.MOVED);i&&i({context:l?.context,operation:u,record:s})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,n,r,o){let i=this._insertViewFromCache(n,r);if(i){i.context.$implicit=o;return}let s=e();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(e,n){let r=n.detach(e);this._maybeCacheView(r,n)}_moveView(e,n,r,o){let i=r.get(e);return r.move(i,n),i.context.$implicit=o,i}_maybeCacheView(e,n){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(e);else{let r=n.indexOf(e);r===-1?e.destroy():n.remove(r)}}_insertViewFromCache(e,n){let r=this._viewCache.pop();return r&&n.insert(r,e),r||null}};var dE=["contentWrapper"],fE=["*"],Pm=new k("VIRTUAL_SCROLL_STRATEGY"),pd=class{_scrolledIndexChange=new fe;scrolledIndexChange=this._scrolledIndexChange.pipe(eo());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(e,n,r){this._itemSize=e,this._minBufferPx=n,this._maxBufferPx=r}attach(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(e,n,r){r<n,this._itemSize=e,this._minBufferPx=n,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(e,n){this._viewport&&this._viewport.scrollToOffset(e*this._itemSize,n)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;let e=this._viewport.getRenderedRange(),n={start:e.start,end:e.end},r=this._viewport.getViewportSize(),o=this._viewport.getDataLength(),i=this._viewport.measureScrollOffset(),s=this._itemSize>0?i/this._itemSize:0;if(n.end>o){let c=Math.ceil(r/this._itemSize),l=Math.max(0,Math.min(s,o-c));s!=l&&(s=l,i=l*this._itemSize,n.start=Math.floor(s)),n.end=Math.max(0,Math.min(o,n.start+c))}let a=i-n.start*this._itemSize;if(a<this._minBufferPx&&n.start!=0){let c=Math.ceil((this._maxBufferPx-a)/this._itemSize);n.start=Math.max(0,n.start-c),n.end=Math.min(o,Math.ceil(s+(r+this._minBufferPx)/this._itemSize))}else{let c=n.end*this._itemSize-(i+r);if(c<this._minBufferPx&&n.end!=o){let l=Math.ceil((this._maxBufferPx-c)/this._itemSize);l>0&&(n.end=Math.min(o,n.end+l),n.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*n.start)),this._scrolledIndexChange.next(Math.floor(s))}};function pE(t){return t._scrollStrategy}var Fm=(()=>{class t{get itemSize(){return this._itemSize}set itemSize(n){this._itemSize=ti(n)}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(n){this._minBufferPx=ti(n)}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(n){this._maxBufferPx=ti(n)}_maxBufferPx=200;_scrollStrategy=new pd(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=qn({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Oo([{provide:Pm,useFactory:pE,deps:[yr(()=>t)]}]),Rs]})}return t})(),hE=20,gE=(()=>{class t{_ngZone=v(oe);_platform=v(ya);_renderer=v(Tt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new fe;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=hE){return this._platform.isBrowser?new H(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=n>0?this._scrolled.pipe(Jr(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):qe()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Xr(i=>!i||o.indexOf(i)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((o,i)=>{this._scrollableContainsElement(i,n)&&r.push(i)}),r}_scrollableContainsElement(n,r){let o=Sm(r),i=n.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lm=(()=>{class t{elementRef=v(mt);scrollDispatcher=v(gE);ngZone=v(oe);dir=v(Nm,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new fe;_renderer=v(zs);_cleanupScroll;_elementScrolled=new fe;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",n=>this._elementScrolled.next(n))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(n){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=o?n.end:n.start),n.right==null&&(n.right=o?n.start:n.end),n.bottom!=null&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),o&&Br()!=vt.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),Br()==vt.INVERTED?n.left=n.right:Br()==vt.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let r=this.elementRef.nativeElement;Rm()?r.scrollTo(n):(n.top!=null&&(r.scrollTop=n.top),n.left!=null&&(r.scrollLeft=n.left))}measureScrollOffset(n){let r="left",o="right",i=this.elementRef.nativeElement;if(n=="top")return i.scrollTop;if(n=="bottom")return i.scrollHeight-i.clientHeight-i.scrollTop;let s=this.dir&&this.dir.value=="rtl";return n=="start"?n=s?o:r:n=="end"&&(n=s?r:o),s&&Br()==vt.INVERTED?n==r?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&Br()==vt.NEGATED?n==r?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:n==r?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}static \u0275fac=function(r){return new(r||t)};static \u0275dir=qn({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),mE=20,yE=(()=>{class t{_platform=v(ya);_listeners;_viewportSize;_change=new fe;_document=v(Re);constructor(){let n=v(oe),r=v(Tt).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen("window","resize",o),r.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),o=n.documentElement,i=o.getBoundingClientRect(),s=-i.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,a=-i.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:s,left:a}}change(n=mE){return n>0?this._change.pipe(Jr(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Am=new k("VIRTUAL_SCROLLABLE"),vE=(()=>{class t extends Lm{constructor(){super()}measureViewportSize(n){let r=this.elementRef.nativeElement;return n==="horizontal"?r.clientWidth:r.clientHeight}static \u0275fac=function(r){return new(r||t)};static \u0275dir=qn({type:t,features:[ko]})}return t})();function bE(t,e){return t.start==e.start&&t.end==e.end}var _E=typeof requestAnimationFrame<"u"?Ya:Za,ri=(()=>{class t extends vE{elementRef=v(mt);_changeDetectorRef=v(Uu);_scrollStrategy=v(Pm,{optional:!0});scrollable=v(Am,{optional:!0});_platform=v(ya);_detachedSubject=new fe;_renderedRangeSubject=new fe;get orientation(){return this._orientation}set orientation(n){this._orientation!==n&&(this._orientation=n,this._calculateSpacerSize())}_orientation="vertical";appendOnly=!1;scrolledIndexChange=new H(n=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>n.next(r)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;_totalContentSize=0;_totalContentWidth=D("");_totalContentHeight=D("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=!1;_changeDetectionNeeded=D(!1);_runAfterChangeDetection=[];_viewportChanges=ue.EMPTY;_injector=v(je);_isDestroyed=!1;constructor(){super();let n=v(yE);this._scrollStrategy,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let r=_e(()=>{this._changeDetectionNeeded()&&this._doChangeDetection()},{injector:v(Zn).injector});v(He).onDestroy(()=>{r.destroy()})}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Vi(null),Jr(0,_E),_n(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(n){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=n,this._forOf.dataStream.pipe(_n(this._detachedSubject)).subscribe(r=>{let o=r.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(n){return this.getElementRef().nativeElement.getBoundingClientRect()[n]}setTotalContentSize(n){this._totalContentSize!==n&&(this._totalContentSize=n,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(n){bE(this._renderedRange,n)||(this.appendOnly&&(n={start:0,end:Math.max(this._renderedRange.end,n.end)}),this._renderedRangeSubject.next(this._renderedRange=n),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(n,r="to-start"){n=this.appendOnly&&r==="to-start"?0:n;let o=this.dir&&this.dir.value=="rtl",i=this.orientation=="horizontal",s=i?"X":"Y",c=`translate${s}(${Number((i&&o?-1:1)*n)}px)`;this._renderedContentOffset=n,r==="to-end"&&(c+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(n,r="auto"){let o={behavior:r};this.orientation==="horizontal"?o.start=n:o.top=n,this.scrollable.scrollTo(o)}scrollToIndex(n,r="auto"){this._scrollStrategy.scrollToIndex(n,r)}measureScrollOffset(n){let r;return this.scrollable==this?r=o=>super.measureScrollOffset(o):r=o=>this.scrollable.measureScrollOffset(o),Math.max(0,r(n??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(n){let r,o="left",i="right",s=this.dir?.value=="rtl";n=="start"?r=s?i:o:n=="end"?r=s?o:i:n?r=n:r=this.orientation==="horizontal"?"left":"top";let a=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-a}measureRenderedContentSize(){let n=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?n.offsetWidth:n.offsetHeight}measureRangeSize(n){return this._forOf?this._forOf.measureRangeSize(n,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(n){n&&this._runAfterChangeDetection.push(n),!Ue(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(!0)})})})}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,lu(()=>{this._changeDetectionNeeded.set(!1);let n=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let r of n)r()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"")}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=we({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,o){if(r&1&&Su(dE,7),r&2){let i;Nu(i=Ru())&&(o._contentWrapper=i.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,o){r&2&&$e("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Vg]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Oo([{provide:Lm,useFactory:(n,r)=>n||r,deps:[[new Yl,new Zl(Am)],t]}]),ko],ngContentSelectors:fE,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,o){r&1&&(Tu(),x(0,"div",1,0),Mu(2),S(),pe(3,"div",2)),r&2&&(p(3),ie("width",o._totalContentWidth())("height",o._totalContentHeight()))},styles:[`cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}
6
+ `],encapsulation:2,changeDetection:0})}return t})();function Om(t,e,n){let r=n;if(!r.getBoundingClientRect)return 0;let o=r.getBoundingClientRect();return t==="horizontal"?e==="start"?o.left:o.right:e==="start"?o.top:o.bottom}var jm=(()=>{class t{_viewContainerRef=v(Wn);_template=v(tn);_differs=v(Ks);_viewRepeater=v(fd);_viewport=v(ri,{skipSelf:!0});viewChange=new fe;_dataSourceChanges=new fe;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(n){this._cdkVirtualForOf=n,km(n)?this._dataSourceChanges.next(n):this._dataSourceChanges.next(new _a(Kr(n)?n:Array.from(n||[])))}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(n){this._needsUpdate=!0,this._cdkVirtualForTrackBy=n?(r,o)=>n(r+(this._renderedRange?this._renderedRange.start:0),o):void 0}_cdkVirtualForTrackBy;set cdkVirtualForTemplate(n){n&&(this._needsUpdate=!0,this._template=n)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(n){this._viewRepeater.viewCacheSize=ti(n)}dataStream=this._dataSourceChanges.pipe(Vi(null),nc(),to(([n,r])=>this._changeDataSource(n,r)),oc(1));_differ=null;_data;_renderedItems;_renderedRange;_needsUpdate=!1;_destroyed=new fe;constructor(){let n=v(oe);this.dataStream.subscribe(r=>{this._data=r,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(_n(this._destroyed)).subscribe(r=>{this._renderedRange=r,this.viewChange.observers.length&&n.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(n,r){if(n.start>=n.end)return 0;n.start<this._renderedRange.start||n.end>this._renderedRange.end;let o=n.start-this._renderedRange.start,i=n.end-n.start,s,a;for(let c=0;c<i;c++){let l=this._viewContainerRef.get(c+o);if(l&&l.rootNodes.length){s=a=l.rootNodes[0];break}}for(let c=i-1;c>-1;c--){let l=this._viewContainerRef.get(c+o);if(l&&l.rootNodes.length){a=l.rootNodes[l.rootNodes.length-1];break}}return s&&a?Om(r,"end",a)-Om(r,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let n=this._differ.diff(this._renderedItems);n?this._applyChanges(n):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((n,r)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(n,r):r)),this._needsUpdate=!0)}_changeDataSource(n,r){return n&&n.disconnect(this),this._needsUpdate=!0,r?r.connect(this):qe()}_updateContext(){let n=this._data.length,r=this._viewContainerRef.length;for(;r--;){let o=this._viewContainerRef.get(r);o.context.index=this._renderedRange.start+r,o.context.count=n,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(n){this._viewRepeater.applyChanges(n,this._viewContainerRef,(i,s,a)=>this._getEmbeddedViewArgs(i,a),i=>i.item),n.forEachIdentityChange(i=>{let s=this._viewContainerRef.get(i.currentIndex);s.context.$implicit=i.item});let r=this._data.length,o=this._viewContainerRef.length;for(;o--;){let i=this._viewContainerRef.get(o);i.context.index=this._renderedRange.start+o,i.context.count=r,this._updateComputedContextProperties(i.context)}}_updateComputedContextProperties(n){n.first=n.index===0,n.last=n.index===n.count-1,n.even=n.index%2===0,n.odd=!n.even}_getEmbeddedViewArgs(n,r){return{templateRef:this._template,context:{$implicit:n.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:r}}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||t)};static \u0275dir=qn({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Oo([{provide:fd,useClass:Da}])]})}return t})();var DE=2e3,Ca=class t{worker=null;workerBroken=!1;nextId=0;pending=new Map;compute(e){return e.length<=DE?qe(ha(e)):new H(n=>{let r=this.ensureWorker();if(!r){n.next(ha(e)),n.complete();return}let o=++this.nextId;this.pending.set(o,{rows:e,subscriber:n});let i=setTimeout(()=>this.fallback(),15e3);try{r.postMessage({id:o,hashes:e.map(s=>s.hash),parents:e.map(s=>[...s.parents])})}catch{this.fallback()}return()=>{clearTimeout(i),this.pending.delete(o)}})}fallback(){this.workerBroken=!0,this.worker?.terminate(),this.worker=null;for(let[e,n]of this.pending)this.pending.delete(e),n.subscriber.next(ha(n.rows)),n.subscriber.complete()}ensureWorker(){if(this.worker)return this.worker;if(this.workerBroken||typeof Worker>"u")return null;try{return this.worker=new Worker(new URL("worker-O4G7QTZ6.js",import.meta.url),{type:"module"}),this.worker.onmessage=e=>{let n=this.pending.get(e.data.id);if(n){if(!(e.data.lanes instanceof Int32Array)||e.data.lanes.length!==n.rows.length){this.fallback();return}n.subscriber.next(e.data.lanes),n.subscriber.complete()}},this.worker.onerror=()=>this.fallback(),this.worker.onmessageerror=()=>this.fallback(),this.worker}catch{return this.fallback(),null}}ngOnDestroy(){this.worker?.terminate();for(let e of this.pending.values())e.subscriber.complete();this.pending.clear()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function Vm(t){return t?t.split(",").map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith("HEAD -> ")?{type:"head",name:e.slice(8)}:e==="HEAD"?{type:"head",name:"HEAD"}:e.startsWith("tag: ")?{type:"tag",name:e.slice(5)}:e.includes("/")?{type:"remote",name:e}:{type:"local",name:e}):[]}function hd(t){let e=t.refs;return e?e==="HEAD"||e.startsWith("HEAD,")||e.startsWith("HEAD ->"):!1}function Ea(t,e){if(typeof localStorage>"u")return e;try{let n=localStorage.getItem(t);return n===null?e:JSON.parse(n)}catch{return e}}function wa(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,JSON.stringify(e))}catch{}}var CE=(t,e)=>e.hash,EE=(t,e)=>e.name;function wE(t,e){if(t&1&&(g(0,"span",38),b(1),y()),t&2){let n=m();p(),Y("",n.staged.length," staged")}}function xE(t,e){if(t&1&&(g(0,"span",39),b(1),y()),t&2){let n=m();p(),Y("",n.unstaged.length," unstaged")}}function IE(t,e){if(t&1&&(g(0,"span",40),b(1),y()),t&2){let n=m();p(),Y("",n.untracked.length," untracked")}}function TE(t,e){if(t&1&&(N(0,wE,2,1,"span",38),N(1,xE,2,1,"span",39),N(2,IE,2,1,"span",40)),t&2){let n=e;R(n.staged.length>0?0:-1),p(),R(n.unstaged.length>0?1:-1),p(),R(n.untracked.length>0?2:-1)}}function ME(t,e){if(t&1){let n=W();g(0,"div",21),P("click",function(){E(n);let o=m();return w(o.commitClick.emit(o.workingCommit()))})("contextmenu",function(o){E(n);let i=m();return w(i.onWorkingContextMenu(o))}),g(1,"div",22),J(),g(2,"svg",23),xe(3,"path",24)(4,"path",25),y()(),Ee(),g(5,"div",26)(6,"span",27),J(),g(7,"svg",28),xe(8,"circle",29)(9,"path",30)(10,"path",31)(11,"path",32)(12,"path",33),y(),Ee(),g(13,"span",34),b(14,"Uncommitted changes"),y()(),N(15,TE,3,3),y(),g(16,"div",35),b(17,"\u2014"),y(),g(18,"div",36),b(19,"You"),y(),g(20,"div",37),b(21,"\u2014"),y()()}if(t&2){let n,r=m();ie("width",r.tableWidth(),"px")("transform",r.horizontalTransform()),$e("selected",r.selectedHash()===r.workingHash),p(),ie("width",r.graphColumnWidth(),"px"),p(14),R((n=r.workingChanges())?15:-1,n),p(),ie("width",r.columnWidths().date,"px"),p(2),ie("width",r.columnWidths().author,"px"),p(2),ie("width",r.columnWidths().commit,"px")}}function SE(t,e){if(t&1&&(g(0,"div",12),xe(1,"span",41),b(2),y()),t&2){let n=m();p(2),U(n.pendingLabel())}}function NE(t,e){if(t&1&&(J(),xe(0,"path",16)),t&2){let n=e.$implicit;me("d",n.d)("stroke",n.color)}}function RE(t,e){if(t&1&&(J(),xe(0,"circle",42)),t&2){let n=m().$implicit;me("cx",n.x)("cy",n.y)("stroke",n.color)}}function kE(t,e){if(t&1&&(J(),xe(0,"circle",43)),t&2){let n=m().$implicit;me("cx",n.x)("cy",n.y)("fill",n.color)}}function AE(t,e){if(t&1&&N(0,RE,1,3,":svg:circle",42)(1,kE,1,3,":svg:circle",43),t&2){let n=e.$implicit;R(n.isHead?0:1)}}function OE(t,e){t&1&&(J(),g(0,"svg",28),xe(1,"line",50)(2,"circle",51)(3,"circle",52)(4,"path",53),y())}function PE(t,e){t&1&&(J(),g(0,"svg",28),xe(1,"path",54)(2,"line",55),y())}function FE(t,e){if(t&1){let n=W();g(0,"span",49),P("contextmenu",function(o){let i=E(n).$implicit,s=m().$implicit,a=m();return w(a.onBadgeContextMenu(o,s.commit,i))}),N(1,OE,5,0,":svg:svg",28)(2,PE,3,0,":svg:svg",28),g(3,"span",34),b(4),y()()}if(t&2){let n=e.$implicit;Qn("badge badge-"+n.type),p(),R(n.type==="head"||n.type==="local"?1:n.type==="tag"?2:-1),p(3),U(n.name)}}function LE(t,e){if(t&1&&(g(0,"mark",56),b(1),y()),t&2){let n=m().$implicit;p(),U(n.text)}}function jE(t,e){if(t&1&&b(0),t&2){let n=m().$implicit;Y(" ",n.text," ")}}function VE(t,e){if(t&1&&N(0,LE,2,1,"mark",56)(1,jE,1,1),t&2){let n=e.$implicit;R(n.match?0:1)}}function BE(t,e){if(t&1&&(g(0,"mark",56),b(1),y()),t&2){let n=m().$implicit;p(),U(n.text)}}function HE(t,e){if(t&1&&b(0),t&2){let n=m().$implicit;Y(" ",n.text," ")}}function $E(t,e){if(t&1&&N(0,BE,2,1,"mark",56)(1,HE,1,1),t&2){let n=e.$implicit;R(n.match?0:1)}}function UE(t,e){if(t&1){let n=W();g(0,"div",44),P("click",function(){let o=E(n).$implicit,i=m();return w(i.commitClick.emit(o.commit))})("contextmenu",function(o){let i=E(n).$implicit,s=m();return w(s.onRowContextMenu(o,i.commit))}),xe(1,"div",22),g(2,"div",26),Me(3,FE,5,4,"span",45,EE),g(5,"span",46),Me(6,VE,2,1,null,null,Yn),y()(),g(8,"div",35),b(9),Po(10,"date"),y(),g(11,"div",47),Me(12,$E,2,1,null,null,Yn),y(),g(14,"div",48),b(15),y()()}if(t&2){let n=e.$implicit,r=m();ie("width",r.tableWidth(),"px"),$e("selected",n.commit.hash===r.selectedHash()),p(),ie("width",r.graphColumnWidth(),"px"),p(2),Se(r.badges(n.commit)),p(2),$e("head",r.isHead(n.commit)),p(),Se(r.highlight(n.commit.message)),p(2),ie("width",r.columnWidths().date,"px"),p(),Y(" ",Fo(10,18,n.commit.date,"d MMM y HH:mm")," "),p(2),ie("width",r.columnWidths().author,"px"),G("title",n.commit.author_name),p(),Se(r.highlight(n.commit.author_name)),p(2),ie("width",r.columnWidths().commit,"px"),G("title",n.commit.hash),p(),Y(" ",n.commit.hash.slice(0,8)," ")}}function zE(t,e){if(t&1&&(g(0,"div",19),b(1),y()),t&2){let n=m();p(),U(n.search().trim()?"No matching commits":"No commits to show")}}function GE(t,e){if(t&1){let n=W();g(0,"div",20)(1,"button",57),P("click",function(){E(n);let o=m();return w(o.onLoadMoreCommits())}),b(2,"Load more commits"),y(),g(3,"button",57),P("click",function(){E(n);let o=m();return w(o.onLoadAllCommits())}),b(4),y()()}if(t&2){let n=m();p(4),Y("Load all (",n.unloaded(),")")}}var at=34,gd=14,Bm=10,WE=72,Hm=10,Um="guito.columnWidths",$m={graph:0,date:132,author:150,commit:84},qE={graph:0,date:48,author:48,commit:48};function ZE(){let t=Ea(Um,{}),e=Q({},$m);for(let n of Object.keys($m)){let r=t[n];typeof r=="number"&&Number.isFinite(r)&&r>=qE[n]&&(e[n]=r)}return e}var xa=class t{commits=q.required();selectedHash=q.required();search=q("");selectedBranch=q("");showRemote=q(!0);workingChanges=q(null);unloaded=q(0);historyLoading=q(!1);loadingLabel=q("");scrollToHash=q(null);graphLoading=D(!1);pendingLabel=$(()=>this.loadingLabel()||(this.graphLoading()?"Drawing commit graph...":""));commitClick=X();contextMenu=X();loadMoreRequested=X();loadAllRequested=X();rowHeight=at;graph=v(Ca);viewport=sn(ri);zone=v(oe);scrollTop=D(0);scrollLeft=D(0);viewportWidth=D(0);viewportHeight=D(0);constructor(){_e(()=>{let e=this.commits();this.updateGraph(e)}),zu(()=>{this.graphCommits(),this.columnWidths();let e=this.viewport();e&&Ue(()=>{e.checkViewportSize(),this.measureViewport()})}),zu(()=>{this.selectedBranch(),this.showRemote();let e=this.viewport();e&&Ue(()=>{e.scrollToOffset(0),this.measureViewport()})}),_e(()=>{let e=this.scrollToHash();if(!e)return;let n=this.graphCommits().findIndex(o=>o.commit.hash===e.hash);if(n===-1)return;let r=this.viewport();r&&Ue(()=>this.scrollToIndex(r,n))}),_e(e=>{let n=this.viewport();if(!n)return;let r=new ResizeObserver(()=>{this.zone.run(()=>{n.checkViewportSize(),this.measureViewport()})});r.observe(n.elementRef.nativeElement);let o=n.elementScrolled().subscribe(()=>{this.zone.run(()=>this.measureViewport())});e(()=>{r.disconnect(),o.unsubscribe()})})}measureViewport(){let e=this.viewport()?.elementRef.nativeElement;e&&(this.scrollTop.set(e.scrollTop),this.scrollLeft.set(e.scrollLeft),this.viewportWidth.set(e.clientWidth),this.viewportHeight.set(e.clientHeight))}scrollToIndex(e,n){let r=e.elementRef.nativeElement,o=r.clientHeight||this.viewportHeight(),i=Math.max(0,n*at-(o-at)/2),s=0,a=()=>{e.scrollToOffset(i),this.measureViewport(),Math.abs(r.scrollTop-i)>1&&++s<10&&requestAnimationFrame(a)};a()}columnWidths=D(ZE());graphCommits=D([]);graphSubscription=null;updateGraph(e){this.graphSubscription?.unsubscribe(),this.graphLoading.set(!0),this.graphSubscription=this.graph.compute(e).subscribe(n=>{n.length===e.length&&(this.graphLoading.set(!1),this.graphCommits.set(e.map((r,o)=>({commit:r,lane:n[o],parents:r.parents??[]}))))})}graphWidth=$(()=>{let e=this.graphCommits().reduce((n,r)=>Math.max(n,r.lane),0)+1;return Math.max(WE,Bm*2+e*gd)});graphColumnWidth=$(()=>Math.max(this.graphWidth(),this.columnWidths().graph));tableWidth=$(()=>Math.max(this.viewportWidth(),this.graphColumnWidth()+this.columnWidths().date+this.columnWidths().author+this.columnWidths().commit+280));horizontalTransform=$(()=>"translateX("+-this.scrollLeft()+"px)");graphHeight=$(()=>this.graphCommits().length*at);allEdges=$(()=>{let e=this.graphCommits(),n=new Map,r=new Map;e.forEach((i,s)=>{n.set(i.commit.hash,s),r.set(i.commit.hash,i.lane)});let o=[];for(let i=0;i<e.length;i++){let s=e[i];for(let a of s.parents){let c=n.get(a);o.push({childRow:i,childLane:s.lane,parentRow:c??-1,parentLane:c===void 0?s.lane:r.get(a)??s.lane})}}return o});visibleRange=$(()=>{let e=this.graphCommits().length;if(e===0||this.viewportHeight()===0)return{start:0,end:0};let n=Math.max(0,Math.floor(this.scrollTop()/at)-Hm),r=Math.min(e,Math.ceil((this.scrollTop()+this.viewportHeight())/at)+Hm);return{start:n,end:r}});nodes=$(()=>{let{start:e,end:n}=this.visibleRange(),r=[];for(let o=e;o<n;o++){let i=this.graphCommits()[o];r.push({hash:i.commit.hash,x:this.laneX(i.lane),y:o*at+at/2,color:ei(i.lane),isHead:hd(i.commit)})}return r});edges=$(()=>{let e=this.allEdges(),{start:n,end:r}=this.visibleRange(),o=this.graphHeight(),i=[];for(let s of e){let a=s.parentRow,c=Math.min(s.childRow,a<0?s.childRow:a);if((a<0?Number.MAX_SAFE_INTEGER:Math.max(s.childRow,a))<n||c>=r)continue;let u=ei(s.childLane),d=this.laneX(s.childLane),h=s.childRow*at+at/2;if(a<0){i.push({d:`M ${d} ${h} L ${d} ${o}`,color:u});continue}let f=this.laneX(s.parentLane),_=a*at+at/2;if(d===f)i.push({d:`M ${d} ${h} L ${f} ${_}`,color:u});else{let I=(h+_)/2;i.push({d:`M ${d} ${h} C ${d} ${I} ${f} ${I} ${f} ${_}`,color:u})}}return i});hasWorkingChanges=$(()=>{let e=this.workingChanges();return!!e&&e.staged.length+e.unstaged.length+e.untracked.length+e.conflicted.length>0});workingHash=Nt;workingCommit=$(()=>({hash:Nt,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]}));resizeState=null;startResize(e,n){n.preventDefault(),n.stopPropagation();let r=e==="graph"?this.graphColumnWidth():this.columnWidths()[e];this.resizeState={column:e,startX:n.clientX,startWidth:r},document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd)}onResizeMove=e=>{let n=this.resizeState;if(!n)return;let r=e.clientX-n.startX,o=n.column==="graph"?this.graphWidth():48,i=Math.max(o,n.startWidth+r);this.columnWidths.update(s=>ae(Q({},s),{[n.column]:i}))};onResizeEnd=()=>{this.resizeState&&wa(Um,this.columnWidths()),this.resizeState=null,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)};ngOnDestroy(){this.onResizeEnd(),this.graphSubscription?.unsubscribe()}onRowContextMenu(e,n){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({x:e.clientX,y:e.clientY,target:{kind:"commit",commit:n}})}onBadgeContextMenu(e,n,r){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({x:e.clientX,y:e.clientY,target:{kind:r.type==="tag"?"tag":"branch",commit:n,branch:r}})}onWorkingContextMenu(e){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({x:e.clientX,y:e.clientY,target:{kind:"working"}})}highlight(e){let n=this.search().trim().toLowerCase();if(!n||!e)return[{text:e,match:!1}];let r=[],o=e.toLowerCase(),i=0,s=o.indexOf(n);for(;s!==-1;)s>i&&r.push({text:e.slice(i,s),match:!1}),r.push({text:e.slice(s,s+n.length),match:!0}),i=s+n.length,s=o.indexOf(n,i);return i<e.length&&r.push({text:e.slice(i),match:!1}),r.length>0?r:[{text:e,match:!1}]}onLoadMoreCommits(){this.loadMoreRequested.emit()}onLoadAllCommits(){this.loadAllRequested.emit()}trackByHash(e,n){return n.commit.hash}badges(e){let n=this.selectedBranch(),r=this.showRemote();return Vm(e.refs).filter(o=>o.type==="remote"&&!r?!1:!n||o.type==="tag"?!0:o.name===n)}isHead(e){return hd(e)}laneX(e){return Bm+gd/2+e*gd}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=we({type:t,selectors:[["app-commit-table"]],viewQuery:function(n,r){n&1&&Lt(r.viewport,ri,5),n&2&&jt()},inputs:{commits:[1,"commits"],selectedHash:[1,"selectedHash"],search:[1,"search"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],workingChanges:[1,"workingChanges"],unloaded:[1,"unloaded"],historyLoading:[1,"historyLoading"],loadingLabel:[1,"loadingLabel"],scrollToHash:[1,"scrollToHash"]},outputs:{commitClick:"commitClick",contextMenu:"contextMenu",loadMoreRequested:"loadMoreRequested",loadAllRequested:"loadAllRequested"},decls:37,vars:28,consts:[[1,"table"],[1,"pinned-clip"],[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,"width","transform","selected"],[1,"table-body"],["role","status",1,"table-loading"],[1,"list-container"],[1,"graph-clip"],["aria-hidden","true",1,"graph-overlay"],["fill","none","stroke-width","2"],[1,"list-viewport",3,"itemSize"],["class","row",3,"width","selected","click","contextmenu",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"empty"],[1,"load-actions"],[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"],[1,"spinner"],["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,"div",3)(4,"span",4),b(5,"Graph"),y(),g(6,"div",5),P("mousedown",function(i){return r.startResize("graph",i)}),y()(),g(7,"div",6)(8,"span",4),b(9,"Description"),y()(),g(10,"div",7)(11,"span",4),b(12,"Date"),y(),g(13,"div",5),P("mousedown",function(i){return r.startResize("date",i)}),y()(),g(14,"div",8)(15,"span",4),b(16,"Author"),y(),g(17,"div",5),P("mousedown",function(i){return r.startResize("author",i)}),y()(),g(18,"div",9)(19,"span",4),b(20,"Commit"),y(),g(21,"div",5),P("mousedown",function(i){return r.startResize("commit",i)}),y()()(),N(22,ME,22,15,"div",10),y(),g(23,"div",11),N(24,SE,3,1,"div",12),g(25,"div",13)(26,"div",14),J(),g(27,"svg",15)(28,"g"),Me(29,NE,1,2,":svg:path",16,Yn),Me(31,AE,2,1,null,null,CE),y()()(),Ee(),g(33,"cdk-virtual-scroll-viewport",17),Gs(34,UE,16,21,"div",18),y(),N(35,zE,2,1,"div",19),y(),N(36,GE,5,1,"div",20),y()()),n&2&&(me("aria-busy",!!r.pendingLabel()),p(),ie("width",r.viewportWidth(),"px"),p(),ie("width",r.tableWidth(),"px")("transform",r.horizontalTransform()),p(),ie("width",r.graphColumnWidth(),"px"),p(7),ie("width",r.columnWidths().date,"px"),p(4),ie("width",r.columnWidths().author,"px"),p(4),ie("width",r.columnWidths().commit,"px"),p(4),R(r.hasWorkingChanges()?22:-1),p(2),R(r.pendingLabel()?24:-1),p(2),ie("width",r.viewportWidth(),"px"),p(),ie("transform",r.horizontalTransform()),me("width",r.graphWidth()),p(),me("transform","translate(0 "+-r.scrollTop()+")"),p(),Se(r.edges()),p(2),Se(r.nodes()),p(2),G("itemSize",r.rowHeight),p(),G("cdkVirtualForOf",r.graphCommits())("cdkVirtualForTrackBy",r.trackByHash),p(),R(!r.pendingLabel()&&r.graphCommits().length===0?35:-1),p(),R(r.unloaded()>0&&!r.historyLoading()?36:-1))},dependencies:[Fm,jm,ri,Go],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:0;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%]{display:flex;flex-direction:column;flex:1;min-height:0}.list-container[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0}.list-viewport[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%}.graph-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;pointer-events:none}.row[_ngcontent-%COMP%]{display:flex;align-items:center;height:34px;flex:none;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)}.load-actions[_ngcontent-%COMP%]{display:flex;border-top:1px solid var(--border)}.load-actions[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{border-top:none}.load-actions[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%] + .load-more[_ngcontent-%COMP%]{border-left:1px solid var(--border)}.history-loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:10px;border-top:1px solid var(--border);color:var(--text-dim);font-size:12px}.pinned-clip[_ngcontent-%COMP%]{overflow:hidden;flex:none;max-width:100%}.table-body[_ngcontent-%COMP%]{position:relative}.graph-clip[_ngcontent-%COMP%]{position:absolute;inset:0 auto 0 0;overflow:hidden;pointer-events:none;z-index:1}.table-head[_ngcontent-%COMP%], .row[_ngcontent-%COMP%]{box-sizing:border-box}.head-cell.cell-desc[_ngcontent-%COMP%], .cell-desc[_ngcontent-%COMP%]{min-width:280px}.empty[_ngcontent-%COMP%]{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.table-loading[_ngcontent-%COMP%]{position:absolute;top:8px;left:50%;transform:translate(-50%);z-index:3;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);border-radius:4px;background:var(--bg-alt);color:var(--text);font-size:12px;white-space:nowrap}.spinner[_ngcontent-%COMP%]{width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0})};function YE(t,e){t&1&&pe(0,"div",2)}function QE(t,e){if(t&1){let n=W();x(0,"button",4),ee("click",function(){E(n);let o=m().$implicit,i=m(2);return w(i.onSelect(o))}),b(1),S()}if(t&2){let n=m().$implicit;$e("danger",n.danger),Ie("disabled",n.disabled),p(),Y(" ",n.label," ")}}function KE(t,e){if(t&1&&N(0,YE,1,0,"div",2)(1,QE,2,4,"button",3),t&2){let n=e.$implicit;R(n.separator?0:1)}}function XE(t,e){if(t&1){let n=W();x(0,"div",0),ee("click",function(){E(n);let o=m();return w(o.closed.emit())})("contextmenu",function(o){E(n);let i=m();return o.preventDefault(),w(i.closed.emit())}),S(),x(1,"div",1),Me(2,KE,2,1,null,null,Yn),S()}if(t&2){let n=m();p(),ie("left",n.left(),"px")("top",n.top(),"px"),p(),Se(e.items)}}var Ia=class t{menu=q.required();select=X();closed=X();left=$(()=>{let e=this.menu();return e?Math.max(4,Math.min(e.x,window.innerWidth-250)):0});top=$(()=>{let e=this.menu();if(!e)return 0;let n=e.items.length*30+12;return Math.max(4,Math.min(e.y,window.innerHeight-n-8))});onEscape(){this.menu()&&this.closed.emit()}onSelect(e){e.disabled||!e.action||(this.select.emit(e.action),this.closed.emit())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=we({type:t,selectors:[["app-context-menu"]],hostBindings:function(n,r){n&1&&P("keydown.escape",function(){return r.onEscape()},St)},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,XE,4,4),n&2){let o;R((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 JE=["inputEl"],ew=(t,e)=>e.value;function tw(t,e){if(t&1&&(x(0,"p",4),b(1),S()),t&2){let n=m();p(),U(n.label)}}function nw(t,e){if(t&1&&(x(0,"span",14),b(1),S()),t&2){let n=m().$implicit;p(),U(n.description)}}function rw(t,e){if(t&1){let n=W();x(0,"button",10),ee("click",function(){let o=E(n).$implicit,i=m(3);return w(i.choose(o))})("dblclick",function(){E(n);let o=m(3);return w(o.confirm())}),pe(1,"span",11),x(2,"span",12)(3,"span",13),b(4),S(),N(5,nw,2,1,"span",14),S()()}if(t&2){let n=e.$implicit,r=m(3);$e("selected",r.choice()===n.value)("danger",n.danger),me("aria-checked",r.choice()===n.value),p(4),U(n.label),p(),R(n.description?5:-1)}}function ow(t,e){if(t&1&&(x(0,"div",5),Me(1,rw,6,7,"button",9,ew),S()),t&2){let n=m(2);p(),Se(n.options())}}function iw(t,e){if(t&1){let n=W();x(0,"label",15),b(1),S(),x(2,"input",16,0),ee("input",function(o){E(n);let i=m(2);return w(i.onInput(o))})("keydown.enter",function(){E(n);let o=m(2);return w(o.confirm())}),S()}if(t&2){let n=m(),r=m();p(),U(n.label||n.title),p(),Ie("value",r.value()),me("placeholder",n.placeholder||" ")("aria-label",n.label||n.title)}}function sw(t,e){if(t&1){let n=W();x(0,"div",1),ee("click",function(){E(n);let o=m();return w(o.cancelled.emit())}),S(),x(1,"div",2)(2,"h3",3),b(3),S(),N(4,tw,2,1,"p",4),N(5,ow,3,0,"div",5)(6,iw,4,4),x(7,"div",6)(8,"button",7),ee("click",function(){E(n);let o=m();return w(o.cancelled.emit())}),b(9,"Cancel"),S(),x(10,"button",8),ee("click",function(){E(n);let o=m();return w(o.confirm())}),b(11),S()()()}if(t&2){let n=e,r=m();p(3),U(n.title),p(),R(n.label?4:-1),p(),R(r.options().length>0?5:n.confirmOnly?-1:6),p(5),$e("btn-danger",n.danger),Ie("disabled",r.options().length===0&&!n.confirmOnly&&!n.allowEmpty&&!r.value().trim()),p(),Y(" ",n.okLabel||"OK"," ")}}var Ta=class t{state=q.required();confirmed=X();cancelled=X();value=D("");choice=D("");options=$(()=>this.state()?.options??[]);inputEl=sn("inputEl");constructor(){_e(()=>{let e=this.state();e&&(this.value.set(e.value??""),this.choice.set(e.options?.[0]?.value??""));let n=this.inputEl();e&&n&&(n.nativeElement.focus(),n.nativeElement.select())})}onEscape(){this.state()&&this.cancelled.emit()}onInput(e){this.value.set(e.target.value)}choose(e){this.choice.set(e.value)}confirm(){let e=this.state();if(e){if(e.options?.length){this.confirmed.emit(this.choice());return}!e.confirmOnly&&!e.allowEmpty&&!this.value().trim()||this.confirmed.emit(e.confirmOnly?"":this.value().trim())}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=we({type:t,selectors:[["app-prompt-dialog"]],viewQuery:function(n,r){n&1&&Lt(r.inputEl,JE,5),n&2&&jt()},hostBindings:function(n,r){n&1&&P("keydown.escape",function(){return r.onEscape()},St)},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"],["role","radiogroup",1,"options"],[1,"actions"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","button","role","radio",1,"option",3,"selected","danger"],["type","button","role","radio",1,"option",3,"click","dblclick"],["aria-hidden","true",1,"option-radio"],[1,"option-text"],[1,"option-label"],[1,"option-description"],["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,sw,12,7),n&2){let o;R((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}.options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.option[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);font-family:inherit;text-align:left;cursor:pointer}.option[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.option.selected[_ngcontent-%COMP%]{border-color:var(--accent);background:#3794ff1f}.option-radio[_ngcontent-%COMP%]{width:13px;height:13px;margin-top:2px;border:1px solid var(--border);border-radius:50%;flex:none}.option.selected[_ngcontent-%COMP%] .option-radio[_ngcontent-%COMP%]{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 40%,transparent 45%)}.option-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.option-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--text-bright)}.option.danger[_ngcontent-%COMP%] .option-label[_ngcontent-%COMP%]{color:#f48771}.option-description[_ngcontent-%COMP%]{font-size:11px;color:var(--text-dim)}.btn-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#c42b1c}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:0})};var aw=(t,e)=>e.path;function cw(t,e){if(t&1&&(g(0,"div",4),xe(1,"span",16),b(2),y()),t&2){let n=m();p(2),U(n.statusLoading()?"Refreshing changes\u2026":"Updating repository\u2026")}}function lw(t,e){if(t&1){let n=W();g(0,"div",5),b(1),g(2,"button",3),P("click",function(){E(n);let o=m();return w(o.retry.emit())}),b(3,"Retry status"),y()()}if(t&2){let n=m();p(),Y("",n.statusError()," "),p(),G("disabled",n.busy())}}function uw(t,e){if(t&1){let n=W();g(0,"button",22),P("click",function(){E(n);let o=m(2);return w(o.discardSelected())}),b(1,"Discard selected"),y(),g(2,"button",22),P("click",function(){E(n);let o=m(2);return w(o.discardAll())}),b(3,"Discard all"),y()}if(t&2){let n=m().$implicit,r=m();G("disabled",r.disabled()||!r.selected()[n].size),p(2),G("disabled",r.disabled()||!r.files(n).length)}}function dw(t,e){if(t&1){let n=W();g(0,"div",20)(1,"div",23),P("click",function(o){let i=E(n).$implicit,s=m().$implicit,a=m();return w(a.select(s,i.path,o))})("keydown",function(o){let i=E(n).$implicit,s=m().$implicit,a=m();return w(a.keySelect(s,i.path,o))}),g(2,"span",24),b(3),y(),g(4,"span",25),b(5),y(),g(6,"span",26)(7,"span",27),b(8),y(),g(9,"span",28),b(10),y()()(),g(11,"button",29),P("click",function(){let o=E(n).$implicit,i=m().$implicit,s=m();return w(s.dialog.set({file:o,group:i}))}),b(12,"Diff"),y()()}if(t&2){let n=e.$implicit,r=m().$implicit,o=m();p(),$e("selected",o.selected()[r].has(n.path)),me("aria-selected",o.selected()[r].has(n.path))("aria-label",n.path),p(),G("title",n.status),p(),U(n.status.slice(0,1).toUpperCase()),p(),G("title",n.oldPath&&n.oldPath!==n.path?n.oldPath+" \u2192 "+n.path:n.path),p(),U(n.path),p(3),Y("+",n.additions),p(2),Y("\u2212",n.deletions),p(),G("disabled",o.busy()),me("aria-label","View "+r+" diff for "+n.path)}}function fw(t,e){if(t&1&&(g(0,"p",21),b(1),y()),t&2){let n=m().$implicit;p(),U(n==="staged"?"No staged changes.":"No unstaged changes.")}}function pw(t,e){if(t&1){let n=W();g(0,"section")(1,"h3"),b(2),y(),g(3,"div",17)(4,"span",18),b(5),y(),g(6,"button",3),P("click",function(){let o=E(n).$implicit,i=m();return w(i.moveSelected(o))}),b(7),y(),g(8,"button",3),P("click",function(){let o=E(n).$implicit,i=m();return w(i.moveAll(o))}),b(9),y(),N(10,uw,4,2),y(),g(11,"div",19),Me(12,dw,13,12,"div",20,aw,!1,fw,2,1,"p",21),y()()}if(t&2){let n=e.$implicit,r=m();me("aria-label",n==="staged"?"Staged changes":"Unstaged changes"),p(2),Pr("",n==="staged"?"Staged changes":"Unstaged changes"," (",r.files(n).length,")"),p(3),Y("",r.selected()[n].size," selected"),p(),G("disabled",r.disabled()||!r.selected()[n].size),p(),U(n==="staged"?"Unstage selected":"Stage selected"),p(),G("disabled",r.disabled()||!r.files(n).length),p(),U(n==="staged"?"Unstage all":"Stage all"),p(),R(n==="unstaged"?10:-1),p(),me("aria-label",n+" files"),p(),Se(r.files(n))}}function hw(t,e){t&1&&(g(0,"p",8),b(1,"Resolve conflicts before committing."),y())}function gw(t,e){if(t&1){let n=W();g(0,"app-diff-dialog",30),P("closed",function(){E(n);let o=m();return w(o.dialog.set(null))}),y()}if(t&2){let n=e;G("file",n.file)("originalRef",n.group==="staged"?"HEAD":"INDEX")("modifiedRef",n.group==="staged"?"INDEX":"WORKING")}}var Ma=class t{changes=q(null);busy=q(!1);statusLoading=q(!1);statusError=q("");subject=q("");description=q("");subjectChange=X();descriptionChange=X();stageChange=X();stashChange=X();discardRequest=X();commitRequested=X();retry=X();closed=X();groups=["staged","unstaged"];selected=D({staged:new Set,unstaged:new Set});anchors={staged:null,unstaged:null};dialog=D(null);disabled=$(()=>this.busy()||!!this.statusError()||!this.changes());canCommit=$(()=>!this.disabled()&&!!this.subject().trim()&&!!this.changes()?.staged.length&&!this.changes()?.conflicted.length);constructor(){_e(()=>{let e=this.changes();this.selected.update(n=>{let r=Q({},n);for(let o of this.groups){let i=new Set((o==="staged"?e?.stagedFiles:e?.unstagedFiles)?.map(s=>s.path));r[o]=new Set([...n[o]].filter(s=>i.has(s))),this.anchors[o]&&!i.has(this.anchors[o])&&(this.anchors[o]=null)}return r}),this.dialog.set(null)})}files(e){return(e==="staged"?this.changes()?.stagedFiles:this.changes()?.unstagedFiles)??[]}select(e,n,r){let o=r.ctrlKey||r.metaKey,i=this.files(e).map(l=>l.path),s=this.anchors[e],a=r.shiftKey&&s!==null&&i.includes(s),c=o?new Set(this.selected()[e]):new Set;if(a){let l=i.indexOf(s),u=i.indexOf(n);for(let d of i.slice(Math.min(l,u),Math.max(l,u)+1))c.add(d)}else o&&c.has(n)?c.delete(n):c.add(n),this.anchors[e]=n;this.selected.update(l=>ae(Q({},l),{[e]:c}))}keySelect(e,n,r){if((r.key===" "||r.key==="Enter")&&(r.preventDefault(),this.select(e,n,r)),r.key==="ArrowDown"||r.key==="ArrowUp"){r.preventDefault();let o=Array.from(r.currentTarget.closest(".file-list").querySelectorAll('[role="option"]')),i=o.indexOf(r.currentTarget),s=Math.max(0,Math.min(o.length-1,i+(r.key==="ArrowDown"?1:-1)));o[s]?.focus(),r.shiftKey&&this.select(e,this.files(e)[s].path,r)}}move(e,n){this.disabled()||!n.length||this.stageChange.emit({staged:e==="staged",files:n})}moveSelected(e){this.move(e,[...this.selected()[e]])}moveAll(e){this.move(e,this.files(e).map(n=>n.path))}stash(e){this.disabled()||this.stashChange.emit(e)}discard(e){this.disabled()||!e.length||this.discardRequest.emit(e)}discardSelected(){this.discard([...this.selected().unstaged])}discardAll(){this.discard(this.files("unstaged").map(e=>e.path))}updateSubject(e){this.subjectChange.emit(e.target.value)}updateDescription(e){this.descriptionChange.emit(e.target.value)}commit(e){e.preventDefault(),this.canCommit()&&this.commitRequested.emit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=we({type:t,selectors:[["app-working-panel"]],inputs:{changes:[1,"changes"],busy:[1,"busy"],statusLoading:[1,"statusLoading"],statusError:[1,"statusError"],subject:[1,"subject"],description:[1,"description"]},outputs:{subjectChange:"subjectChange",descriptionChange:"descriptionChange",stageChange:"stageChange",stashChange:"stashChange",discardRequest:"discardRequest",commitRequested:"commitRequested",retry:"retry",closed:"closed"},decls:31,vars:12,consts:[["aria-label","Uncommitted changes",1,"detail"],["type","button","aria-label","Close changes",3,"click"],["role","group","aria-label","Stash changes",1,"stash-actions"],["type","button",3,"click","disabled"],["role","status",1,"state"],["role","alert",1,"error"],[1,"changes"],[3,"submit"],[1,"error"],["for","commit-subject"],["id","commit-subject","placeholder","Summary of your changes","required","",3,"input","value","disabled"],["for","commit-description"],[1,"optional"],["id","commit-description","rows","3",3,"input","value","disabled"],["type","submit",1,"commit-button",3,"disabled"],[3,"file","originalRef","modifiedRef"],[1,"spinner"],[1,"actions"],["aria-live","polite",1,"selection-count"],["role","listbox","aria-multiselectable","true",1,"file-list"],[1,"file-entry"],[1,"empty"],["type","button",1,"danger",3,"click","disabled"],["role","option","tabindex","0",1,"file-row",3,"click","keydown"],[1,"file-status",3,"title"],[1,"file-path",3,"title"],[1,"counts"],[1,"additions"],[1,"deletions"],["type","button",1,"file-action",3,"click","disabled"],[3,"closed","file","originalRef","modifiedRef"]],template:function(n,r){if(n&1&&(g(0,"aside",0)(1,"header")(2,"h2"),b(3,"Uncommitted changes"),y(),g(4,"button",1),P("click",function(){return r.closed.emit()}),b(5,"\xD7"),y()(),g(6,"div",2)(7,"button",3),P("click",function(){return r.stash("all")}),b(8,"Stash all"),y(),g(9,"button",3),P("click",function(){return r.stash("staged")}),b(10,"Stash staged"),y(),g(11,"button",3),P("click",function(){return r.stash("unstaged")}),b(12,"Stash unstaged"),y()(),N(13,cw,3,1,"div",4),N(14,lw,4,2,"div",5),g(15,"div",6),Me(16,pw,15,11,"section",null,Iu),y(),g(18,"form",7),P("submit",function(i){return r.commit(i)}),N(19,hw,2,0,"p",8),g(20,"label",9),b(21,"Commit message"),y(),g(22,"input",10),P("input",function(i){return r.updateSubject(i)}),y(),g(23,"label",11),b(24,"Description "),g(25,"span",12),b(26,"(optional)"),y()(),g(27,"textarea",13),P("input",function(i){return r.updateDescription(i)}),y(),g(28,"button",14),b(29,"Commit staged changes"),y()()(),N(30,gw,1,3,"app-diff-dialog",15)),n&2){let o,i;p(7),G("disabled",r.disabled()||!r.files("staged").length&&!r.files("unstaged").length),p(2),G("disabled",r.disabled()||!r.files("staged").length),p(2),G("disabled",r.disabled()||!r.files("unstaged").length),p(2),R(r.busy()?13:-1),p(),R(r.statusError()?14:-1),p(2),Se(r.groups),p(3),R(!((o=r.changes())==null||o.conflicted==null)&&o.conflicted.length?19:-1),p(3),G("value",r.subject())("disabled",r.busy()),p(5),G("value",r.description())("disabled",r.busy()),p(),G("disabled",!r.canCommit()),p(2),R((i=r.dialog())?30:-1,i)}},dependencies:[Vr],styles:["[_nghost-%COMP%]{display:flex;flex:none;width:min(480px,60vw);min-width:320px;min-height:0}.detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;min-height:0;background:var(--bg-alt);border-left:1px solid var(--border);color:var(--text)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px;gap:12px}h2[_ngcontent-%COMP%]{font-size:15px;margin:0}h3[_ngcontent-%COMP%]{font-size:13px;margin:0 0 8px}.stash-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;padding:0 12px 10px;flex-wrap:wrap;font-size:11px}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font:inherit;color:var(--text);border:1px solid var(--border);border-radius:3px;background:var(--bg)}button[_ngcontent-%COMP%]{cursor:pointer;padding:4px 7px;white-space:nowrap}button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover)}button.danger[_ngcontent-%COMP%]{color:#f48771}button.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#5a1d1d}button[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}button[_ngcontent-%COMP%]:focus-visible, input[_ngcontent-%COMP%]:focus-visible, textarea[_ngcontent-%COMP%]:focus-visible, .file-row[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.changes[_ngcontent-%COMP%]{overflow-y:auto;flex:1;min-height:80px}section[_ngcontent-%COMP%]{padding:10px;border-top:1px solid var(--border)}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;margin-bottom:6px;flex-wrap:wrap;font-size:11px}.selection-count[_ngcontent-%COMP%]{margin-right:auto;color:var(--text-dim)}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.file-entry[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px}.file-row[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;min-width:0;gap:7px;padding:7px 4px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:12px}.file-row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.file-row.selected[_ngcontent-%COMP%]{background:#04395e}.file-status[_ngcontent-%COMP%]{color:var(--accent);width:12px;flex:none}.file-path[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.counts[_ngcontent-%COMP%]{white-space:nowrap;font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{color:#f48771}.file-action[_ngcontent-%COMP%]{font-size:11px}.empty[_ngcontent-%COMP%], .optional[_ngcontent-%COMP%]{color:var(--text-dim);font-size:12px}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;padding:12px;border-top:1px solid var(--border);max-height:50%;overflow-y:auto}label[_ngcontent-%COMP%]{font-size:12px}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{padding:7px;width:100%;box-sizing:border-box}textarea[_ngcontent-%COMP%]{resize:vertical;min-height:50px}.commit-button[_ngcontent-%COMP%]{background:var(--accent);color:#fff;padding:8px;margin-top:4px}.state[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{padding:8px 12px;font-size:12px}.state[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.spinner[_ngcontent-%COMP%]{width:12px;height:12px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0})};function zm(t){t||(t=v(He));let e=new H(n=>{if(t.destroyed){n.next();return}return t.onDestroy(n.next.bind(n))});return n=>n.pipe(_n(e))}function Gm(t,e){let n=e?.injector??v(je),r=new vn(1),o=_e(()=>{let i;try{i=t()}catch(s){Ue(()=>r.error(s));return}Ue(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(He).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var mw=["searchInput"],yw=(t,e)=>e.name;function vw(t,e){if(t&1&&(x(0,"option",6),b(1),S()),t&2){let n=e.$implicit;Ie("value",n.name),p(),U(n.name)}}function bw(t,e){if(t&1){let n=W();x(0,"button",31),ee("click",function(){E(n);let o=m();return w(o.clearSearch())}),J(),x(1,"svg",10),pe(2,"line",32)(3,"line",33),S()()}}function _w(t,e){t&1&&b(0," No matches ")}function Dw(t,e){if(t&1&&b(0),t&2){let n=m(2);Y(" ",n.matchCount()," matches ")}}function Cw(t,e){if(t&1&&b(0),t&2){let n=m(2);Pr(" ",n.matchIndex()+1," of ",n.matchCount()," ")}}function Ew(t,e){if(t&1){let n=W();x(0,"div",15)(1,"button",34),ee("click",function(){E(n);let o=m();return w(o.searchNavigate.emit("prev"))}),J(),x(2,"svg",10),pe(3,"polyline",35),S()(),Ee(),x(4,"span",36),N(5,_w,1,0)(6,Dw,1,1)(7,Cw,1,2),S(),x(8,"button",37),ee("click",function(){E(n);let o=m();return w(o.searchNavigate.emit("next"))}),J(),x(9,"svg",10),pe(10,"polyline",38),S()()()}if(t&2){let n=m();p(),Ie("disabled",n.matchCount()===0),p(4),R(n.matchCount()===0?5:n.matchIndex()<0?6:7),p(3),Ie("disabled",n.matchCount()===0)}}function ww(t,e){if(t&1){let n=W();x(0,"div",23)(1,"button",39),ee("click",function(){E(n);let o=m();return w(o.chooseRemoteAction("pull"))}),b(2,"Pull"),S(),x(3,"button",39),ee("click",function(){E(n);let o=m();return w(o.chooseRemoteAction("pull-rebase"))}),b(4,"Pull (rebase)"),S()()}}function xw(t,e){if(t&1){let n=W();x(0,"div",23)(1,"button",39),ee("click",function(){E(n);let o=m();return w(o.chooseRemoteAction("push"))}),b(2,"Push"),S(),x(3,"button",39),ee("click",function(){E(n);let o=m();return w(o.chooseRemoteAction("sync"))}),b(4,"Sync"),S()()}}var Iw=300,Sa=class t{branches=q.required();selectedBranch=q.required();showRemote=q.required();busy=q.required();matchIndex=q(-1);matchCount=q(0);branchChange=X();remoteToggle=X();searchChange=X();searchNavigate=X();refresh=X();remoteAction=X();openMenu=D(null);searchValue=D("");searchInput=sn("searchInput");constructor(){Gm(this.searchValue).pipe(tc(Iw),eo(),zm()).subscribe(e=>this.searchChange.emit(e))}visibleBranches=$(()=>this.branches());onBranchChange(e){this.branchChange.emit(e.target.value)}onRemoteToggle(e){this.remoteToggle.emit(e.target.checked)}onSearch(e){this.searchValue.set(e.target.value)}onSearchKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.searchNavigate.emit(e.shiftKey?"prev":"next"))}clearSearch(){this.searchValue.set(""),this.searchInput()?.nativeElement.focus()}toggleMenu(e,n){n.stopPropagation(),this.openMenu.update(r=>r===e?null:e)}chooseRemoteAction(e){this.openMenu.set(null),this.remoteAction.emit(e)}closeMenu(){this.openMenu.set(null)}closeMenuOnEscape(){this.openMenu.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=we({type:t,selectors:[["app-toolbar"]],viewQuery:function(n,r){n&1&&Lt(r.searchInput,mw,5),n&2&&jt()},hostBindings:function(n,r){n&1&&P("click",function(){return r.closeMenu()},St)("keydown.escape",function(){return r.closeMenuOnEscape()},St)},inputs:{branches:[1,"branches"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],busy:[1,"busy"],matchIndex:[1,"matchIndex"],matchCount:[1,"matchCount"]},outputs:{branchChange:"branchChange",remoteToggle:"remoteToggle",searchChange:"searchChange",searchNavigate:"searchNavigate",refresh:"refresh",remoteAction:"remoteAction"},decls:44,vars:12,consts:[["searchInput",""],[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","keydown","value"],["type","button","title","Clear search","aria-label","Clear search",1,"clear-btn"],[1,"search-nav"],["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","title","Clear search","aria-label","Clear search",1,"clear-btn",3,"click"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],["type","button","title","Previous match (Shift+Enter)","aria-label","Previous match",1,"nav-btn",3,"click","disabled"],["points","18 15 12 9 6 15"],[1,"count"],["type","button","title","Next match (Enter)","aria-label","Next match",1,"nav-btn",3,"click","disabled"],["points","6 9 12 15 18 9"],["type","button","role","menuitem",3,"click"]],template:function(n,r){if(n&1){let o=W();x(0,"div",1)(1,"div",2)(2,"label",3),b(3,"Branches:"),S(),x(4,"select",4),ee("change",function(s){return E(o),w(r.onBranchChange(s))}),x(5,"option",5),b(6,"Show All"),S(),Me(7,vw,2,2,"option",6,yw),S(),x(9,"label",7)(10,"input",8),ee("change",function(s){return E(o),w(r.onRemoteToggle(s))}),S(),x(11,"span"),b(12,"Show Remote Branches"),S()()(),x(13,"div",2)(14,"div",9),J(),x(15,"svg",10),pe(16,"circle",11)(17,"line",12),S(),Ee(),x(18,"input",13,0),ee("input",function(s){return E(o),w(r.onSearch(s))})("keydown",function(s){return E(o),w(r.onSearchKeydown(s))}),S(),N(20,bw,4,0,"button",14),S(),N(21,Ew,11,3,"div",15),x(22,"button",16),ee("click",function(){return E(o),w(r.remoteAction.emit("fetch"))}),J(),x(23,"svg",10),pe(24,"path",17),S()(),Ee(),x(25,"div",18)(26,"button",19),ee("click",function(s){return E(o),w(r.toggleMenu("pull",s))}),J(),x(27,"svg",10),pe(28,"circle",20)(29,"polyline",21)(30,"line",22),S()(),N(31,ww,5,0,"div",23),S(),Ee(),x(32,"div",18)(33,"button",24),ee("click",function(s){return E(o),w(r.toggleMenu("push",s))}),J(),x(34,"svg",10),pe(35,"circle",20)(36,"polyline",25)(37,"line",26),S()(),N(38,xw,5,0,"div",23),S(),Ee(),x(39,"button",27),ee("click",function(){return E(o),w(r.refresh.emit())}),J(),x(40,"svg",10),pe(41,"polyline",28)(42,"polyline",29)(43,"path",30),S()()()()}n&2&&(p(4),Ie("value",r.selectedBranch()),p(3),Se(r.visibleBranches()),p(3),Ie("checked",r.showRemote()),p(8),Ie("value",r.searchValue()),p(2),R(r.searchValue()?20:-1),p(),R(r.searchValue()?21:-1),p(),Ie("disabled",r.busy()),p(4),Ie("disabled",r.busy()),me("aria-expanded",r.openMenu()==="pull"),p(5),R(r.openMenu()==="pull"?31:-1),p(2),Ie("disabled",r.busy()),me("aria-expanded",r.openMenu()==="push"),p(5),R(r.openMenu()==="push"?38:-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}.clear-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:3px;background:transparent;color:var(--text-dim);cursor:pointer;flex:none}.clear-btn[_ngcontent-%COMP%]:hover{color:var(--text);background:#3a3a3a}.clear-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.count[_ngcontent-%COMP%]{font-size:12px;color:var(--text-dim);white-space:nowrap;-webkit-user-select:none;user-select:none}.search-nav[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px}.nav-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;border-radius:3px;background:transparent;color:var(--text-dim);cursor:pointer;flex:none}.nav-btn[_ngcontent-%COMP%]:hover:not(:disabled){color:var(--text-bright);background:#3a3a3a}.nav-btn[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:default}.nav-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.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 Tw(t,e){if(t&1){let n=W();g(0,"div",12),b(1),g(2,"button",18),P("click",function(){E(n);let o=m();return w(o.refresh())}),b(3,"Retry"),y()()}if(t&2){let n=m();p(),Y("",n.error()," "),p(),G("disabled",n.loading())}}function Mw(t,e){if(t&1){let n=W();g(0,"div",13),b(1),g(2,"button",18),P("click",function(){E(n);let o=m();return w(o.refreshWorking())}),b(3,"Retry status"),y()()}if(t&2){let n=m();p(),Y("",n.statusError()," "),p(),G("disabled",n.statusLoading())}}function Sw(t,e){if(t&1){let n=W();g(0,"app-working-panel",21),P("subjectChange",function(o){E(n);let i=m(2);return w(i.commitSubject.set(o))})("descriptionChange",function(o){E(n);let i=m(2);return w(i.commitDescription.set(o))})("stageChange",function(o){E(n);let i=m(2);return w(i.changeStage(o))})("stashChange",function(o){E(n);let i=m(2);return w(i.stashChanges(o))})("discardRequest",function(o){E(n);let i=m(2);return w(i.discardUnstaged(o))})("commitRequested",function(){E(n);let o=m(2);return w(o.commitChanges())})("retry",function(){E(n);let o=m(2);return w(o.refreshWorking())})("closed",function(){E(n);let o=m(2);return w(o.selectedCommit.set(null))}),y()}if(t&2){let n=m(2);G("changes",n.workingChanges())("busy",n.busy()||n.mutationBusy()||n.statusLoading())("statusLoading",n.statusLoading())("statusError",n.statusError())("subject",n.commitSubject())("description",n.commitDescription())}}function Nw(t,e){if(t&1){let n=W();g(0,"app-commit-detail",22),P("closed",function(){E(n);let o=m(2);return w(o.selectedCommit.set(null))}),y()}if(t&2){let n=m();G("commit",n)}}function Rw(t,e){if(t&1&&N(0,Sw,1,6,"app-working-panel",19)(1,Nw,1,1,"app-commit-detail",20),t&2){let n=m();R(e.hash===n.workingHash?0:1)}}var Wm=500,qm="guito.commitDraft";function kw(){let t=Ea(qm,{});return{subject:typeof t.subject=="string"?t.subject:"",description:typeof t.description=="string"?t.description:""}}var Na=class t{git=v(cn);workingHash=Nt;mutationBusy=this.git.mutating;statusLoading=D(!1);statusError=D("");commitDraft=kw();commitSubject=D(this.commitDraft.subject);commitDescription=D(this.commitDraft.description);displayedCommits=D([]);searchLoading=D(!1);historyGeneration=D(0);filterFailed=D(!1);tableLoading=$(()=>this.loading()?"Refreshing commits...":this.searchLoading()||this.search().trim()&&this.historyLoading()?"Searching commits...":this.historyLoading()?"Loading history...":"");commits=D([]);branches=D([]);selectedBranch=D("");showRemote=D(!0);search=D("");selectedCommit=D(null);loading=D(!1);busy=D(!1);error=D("");repoName=D("");workingChanges=D(null);totalCommits=D(0);historyLoading=D(!1);contextMenuState=D(null);contextMenuTarget=D(null);promptState=D(null);pendingDiscard=D(null);searchFocusHash=D("");pendingSearchHash=D("");scrollRequest=D(null);scrollRequestCounter=0;bodyMatches=D([]);refreshSub=null;historySub=null;workingSub=null;searchSub=null;unloadedCommits=$(()=>Math.max(0,this.totalCommits()-this.commits().length));commitIndex=$(()=>{let e=new Map;for(let n of this.commits())e.set(n.hash,n);return e});filteredCommits=$(()=>{let e=this.commits(),n=this.selectedBranch(),r=this.branches().filter(i=>this.showRemote()||!i.remote),o=n?r.filter(i=>i.name===n):r;if(o.length>0){let i=new Set;for(let s of o)for(let a of this.ancestorsOf(s.commit))i.add(a);e=e.filter(s=>i.has(s.hash))}else e=[];return e});searchMatches=$(()=>{let e=this.search().trim().toLowerCase();if(!e)return[];let n=new Set(this.bodyMatches()),r=this.filteredCommits().filter(s=>s.message.toLowerCase().includes(e)||s.author_name.toLowerCase().includes(e)||s.hash.toLowerCase().startsWith(e)||n.has(s.hash)).map(s=>s.hash),o=new Set(r),i=this.bodyMatches().filter(s=>!o.has(s));return[...r,...i]});searchIndex=$(()=>{let e=this.searchFocusHash();return e?this.searchMatches().indexOf(e):-1});constructor(){this.refresh(),_e(()=>{let e=this.search().trim();this.selectedBranch(),this.historyGeneration(),Ue(()=>{this.searchSub?.unsubscribe(),this.searchLoading.set(!1),this.bodyMatches.set([]),this.filterFailed.set(!1),this.error.set(""),this.searchFocusHash.set(""),this.pendingSearchHash.set(""),!this.loading()&&(this.selectedBranch()&&this.unloadedCommits()>0&&this.loadAllCommits(),e&&this.fetchBodyMatches(e))})}),_e(()=>{!this.loading()&&!this.searchLoading()&&!this.historyLoading()&&!this.filterFailed()&&this.displayedCommits.set(this.filteredCommits())}),_e(()=>{let e=this.pendingSearchHash();if(!e)return;let n=this.displayedCommits().find(r=>r.hash===e);n?Ue(()=>{this.selectedCommit.set(n),this.scrollRequestCounter+=1,this.scrollRequest.set({hash:e,id:this.scrollRequestCounter}),this.pendingSearchHash.set("")}):this.unloadedCommits()>0&&!this.historyLoading()&&!this.loading()?Ue(()=>this.loadMoreCommits()):!this.historyLoading()&&!this.loading()&&this.pendingSearchHash.set("")}),_e(()=>{wa(qm,{subject:this.commitSubject(),description:this.commitDescription()})})}ngOnDestroy(){this.refreshSub?.unsubscribe(),this.historySub?.unsubscribe(),this.workingSub?.unsubscribe(),this.searchSub?.unsubscribe()}refresh(){this.historySub?.unsubscribe(),this.workingSub?.unsubscribe(),this.searchSub?.unsubscribe(),this.searchLoading.set(!1),this.filterFailed.set(!1),this.statusLoading.set(!0),this.historyLoading.set(!1),this.loading.set(!0),this.error.set(""),this.refreshSub?.unsubscribe(),this.refreshSub=Ja({history:this.git.getCommits(Wm),branches:this.git.getAllBranches(),repo:this.git.getRepoInfo(),working:this.git.getWorkingChanges().pipe(ji(e=>(this.statusError.set(this.errorMessage(e)),qe(null))))}).subscribe({next:({history:e,branches:n,repo:r,working:o})=>{this.commits.set(e.commits),this.totalCommits.set(Math.max(e.total,e.commits.length)),this.branches.set(n),this.repoName.set(r.name),o&&(this.workingChanges.set(o),this.statusError.set("")),this.statusLoading.set(!1),this.loading.set(!1),this.historyGeneration.update(i=>i+1)},error:e=>{this.error.set(this.errorMessage(e)),this.filterFailed.set(!0),this.statusError.set(this.errorMessage(e)),this.statusLoading.set(!1),this.loading.set(!1)}})}refreshWorking(){this.workingSub?.unsubscribe(),this.statusLoading.set(!0),this.workingSub=this.git.getWorkingChanges().subscribe({next:e=>{this.workingChanges.set(e),this.statusError.set(""),this.statusLoading.set(!1)},error:e=>{this.statusError.set(this.errorMessage(e)),this.statusLoading.set(!1)}})}changeStage(e){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||(this.busy.set(!0),this.error.set(""),(e.staged?this.git.unstage(e.files):this.git.stage(e.files)).subscribe({next:()=>{this.refreshWorking(),this.busy.set(!1)},error:n=>{this.error.set(this.errorMessage(n)),this.refreshWorking(),this.busy.set(!1)}}))}stashChanges(e){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||this.git.stashSave(void 0,e).subscribe({next:()=>this.refresh(),error:n=>this.error.set(this.errorMessage(n))})}discardUnstaged(e){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||e.length&&(this.pendingDiscard.set(e),this.promptState.set({title:"Discard unstaged changes?",label:e.length===1?`${e[0]} will be discarded. This cannot be undone.`:`${e.length} files will be discarded. This cannot be undone.`,confirmOnly:!0,okLabel:"Discard",danger:!0}))}onPromptCancel(){this.pendingDiscard.set(null),this.promptState.set(null)}commitChanges(){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||!this.commitSubject().trim()||!this.workingChanges()?.staged.length||this.workingChanges()?.conflicted.length||(this.busy.set(!0),this.error.set(""),this.git.commit(this.commitSubject(),this.commitDescription()).subscribe({next:()=>{this.commitSubject.set(""),this.commitDescription.set(""),this.refresh(),this.busy.set(!1)},error:e=>{this.error.set(this.errorMessage(e)),this.refreshWorking(),this.busy.set(!1)}}))}loadMoreCommits(){this.loadHistory(this.git.getCommits(Wm,this.commits().length))}loadAllCommits(){this.loadHistory(this.git.getCommits(void 0,this.commits().length))}loadHistory(e){if(this.historyLoading()||this.loading())return;let n=this.commits().length;this.filterFailed.set(!1),this.historyLoading.set(!0),this.historySub?.unsubscribe(),this.historySub=e.subscribe({next:({commits:r,total:o})=>{this.commits().length===n&&(this.commits.update(i=>[...i,...r]),this.totalCommits.set(r.length>0?Math.max(o,this.commits().length):this.commits().length)),this.historyLoading.set(!1)},error:r=>{this.error.set(this.errorMessage(r)),this.filterFailed.set(!0),this.historyLoading.set(!1)}})}fetchBodyMatches(e){this.searchSub?.unsubscribe(),this.searchLoading.set(!0),this.searchSub=this.git.searchCommits(e).subscribe({next:n=>{this.bodyMatches.set(n.hashes),this.searchLoading.set(!1)},error:n=>{this.filterFailed.set(!0),this.error.set(this.errorMessage(n)),this.searchLoading.set(!1)}})}navigateSearch(e){let n=this.searchMatches();if(n.length===0)return;let r=this.searchIndex(),o=r<0?e==="next"?0:n.length-1:e==="next"?(r+1)%n.length:(r-1+n.length)%n.length,i=n[o];this.searchFocusHash.set(i),this.pendingSearchHash.set(i)}onRemoteToggle(e){this.showRemote.set(e)}runRemoteAction(e){if(this.busy()||this.mutationBusy()||this.statusLoading())return;this.busy.set(!0),this.error.set(""),(e==="fetch"?this.git.fetch():e==="pull"?this.git.pull():e==="pull-rebase"?this.git.pull(!0):e==="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(e){let n=[];if(e.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"});else if(e.target.kind==="tag")n.push({label:"View Details",action:"tag-details"}),n.push({separator:!0}),n.push({label:"Delete Tag...",action:"tag-delete",danger:!0}),n.push({label:"Push Tag...",action:"tag-push"}),n.push({separator:!0}),n.push({label:"Create Archive",action:"create-archive"}),n.push({label:"Copy Tag Name to Clipboard",action:"copy-tag-name"});else if(e.target.kind==="branch"){let r=e.target.branch.type,o=r==="head"||r==="local";n.push({label:"Checkout Branch...",action:"checkout-branch"}),o&&(n.push({label:"Rename Branch...",action:"rename-branch"}),n.push({label:"Delete Branch...",action:"delete-branch",danger:!0,disabled:r==="head"})),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"})}else 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(e.target),this.contextMenuState.set({x:e.x,y:e.y,items:n})}onContextAction(e){if(this.busy()||this.mutationBusy()||this.statusLoading())return;let n=this.contextMenuTarget()?.commit??this.selectedCommit();switch(e){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:"Choose the reset type:",options:[{value:"soft",label:"Soft",description:"Keep all changes staged"},{value:"mixed",label:"Mixed",description:"Keep changes, but unstage them"},{value:"hard",label:"Hard",description:"Discard all changes",danger:!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":{let r=this.contextMenuTarget(),o=r?.kind==="tag"?r.branch?.name:r?.commit?.hash;o&&window.open(xm(`/api/archive?ref=${encodeURIComponent(o)}`),"_blank");break}case"tag-details":this.contextMenuTarget()?.commit&&this.selectedCommit.set(this.contextMenuTarget().commit);break;case"tag-delete":{let r=this.contextMenuTarget()?.branch?.name??"";this.promptState.set({title:"Delete tag?",label:`This will delete the tag "${r}".`,confirmOnly:!0,okLabel:"Delete",danger:!0});break}case"tag-push":{let r=this.contextMenuTarget()?.branch?.name??"";this.promptState.set({title:"Push tag?",label:`This will push the tag "${r}" to the remote.`,confirmOnly:!0,okLabel:"Push"});break}case"copy-tag-name":this.contextMenuTarget()?.branch?.name&&navigator.clipboard?.writeText(this.contextMenuTarget().branch.name);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",value:this.contextMenuTarget()?.branch?.name,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:Nt,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.refreshWorking(),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(e){if(this.busy()||this.mutationBusy()||this.statusLoading())return;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(e,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Create Branch"&&r){this.git.createBranch(e,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){let o=e==="soft"||e==="mixed"?e:"hard";this.git.resetToCommit(r.hash,o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Delete tag?"){let o=this.contextMenuTarget()?.branch?.name;o&&this.git.deleteTag(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Push tag?"){let o=this.contextMenuTarget()?.branch?.name;o&&this.git.pushTag(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Discard unstaged changes?"){let o=this.pendingDiscard();this.pendingDiscard.set(null),o?.length&&this.git.discard(o,"unstaged").subscribe({next:()=>this.refreshWorking(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Stash uncommitted changes"){this.git.stashSave(e||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.refreshWorking(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Clean untracked files?"){this.git.cleanUntracked().subscribe({next:()=>this.refreshWorking(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Rename branch"){let o=this.contextMenuTarget()?.branch?.name,i=e.trim();o&&i&&i!==o&&this.git.renameBranch(o,i).subscribe({next:()=>{this.selectedBranch()===o&&this.selectedBranch.set(i),this.refresh()},error:s=>this.error.set(this.errorMessage(s))});return}if(n.title==="Delete branch?"){let o=this.contextMenuTarget()?.branch?.name;o&&this.git.deleteBranch(o).subscribe({next:()=>{this.selectedBranch()===o&&this.selectedBranch.set(""),this.refresh()},error:i=>this.error.set(this.errorMessage(i))});return}}ancestorsOf(e){let n=this.commitIndex(),r=new Set,o=[e];for(;o.length;){let i=o.pop();if(r.has(i))continue;r.add(i);let s=n.get(i);s&&o.push(...s.parents)}return r}errorMessage(e){let n=e;return n?.status===400&&n.error?.error?n.error.error:"Failed to communicate with the Guito server."}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=we({type:t,selectors:[["app-root"]],decls:20,vars:21,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","searchNavigate","refresh","remoteAction","branches","selectedBranch","showRemote","busy","matchIndex","matchCount"],[1,"error-banner"],["role","alert",1,"error-banner"],[1,"content"],[3,"commitClick","contextMenu","loadMoreRequested","loadAllRequested","commits","loadingLabel","selectedHash","search","selectedBranch","showRemote","workingChanges","unloaded","historyLoading","scrollToHash"],[3,"select","closed","menu"],[3,"confirmed","cancelled","state"],["type","button",3,"click","disabled"],[3,"changes","busy","statusLoading","statusError","subject","description"],[3,"commit"],[3,"subjectChange","descriptionChange","stageChange","stashChange","discardRequest","commitRequested","retry","closed","changes","busy","statusLoading","statusError","subject","description"],[3,"closed","commit"]],template:function(n,r){if(n&1&&(g(0,"div",0)(1,"header",1)(2,"div",2),J(),g(3,"svg",3),xe(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9),y(),Ee(),g(10,"span",10),b(11,"Guito"),y()()(),g(12,"app-toolbar",11),P("branchChange",function(i){return r.selectedBranch.set(i)})("remoteToggle",function(i){return r.onRemoteToggle(i)})("searchChange",function(i){return r.search.set(i)})("searchNavigate",function(i){return r.navigateSearch(i)})("refresh",function(){return r.refresh()})("remoteAction",function(i){return r.runRemoteAction(i)}),y(),N(13,Tw,4,2,"div",12),N(14,Mw,4,2,"div",13),g(15,"main",14)(16,"app-commit-table",15),P("commitClick",function(i){return r.selectedCommit.set(i)})("contextMenu",function(i){return r.onContextMenu(i)})("loadMoreRequested",function(){return r.loadMoreCommits()})("loadAllRequested",function(){return r.loadAllCommits()}),y(),N(17,Rw,2,1),y(),g(18,"app-context-menu",16),P("select",function(i){return r.onContextAction(i)})("closed",function(){return r.contextMenuState.set(null)}),y(),g(19,"app-prompt-dialog",17),P("confirmed",function(i){return r.onPromptConfirm(i)})("cancelled",function(){return r.onPromptCancel()}),y()()),n&2){let o,i,s;p(12),G("branches",r.branches())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("busy",r.busy()||r.mutationBusy()||r.statusLoading())("matchIndex",r.searchIndex())("matchCount",r.searchMatches().length),p(),R(r.error()?13:-1),p(),R(r.statusError()&&((o=r.selectedCommit())==null?null:o.hash)!==r.workingHash?14:-1),p(2),G("commits",r.displayedCommits())("loadingLabel",r.tableLoading())("selectedHash",((i=r.selectedCommit())==null?null:i.hash)??"")("search",r.search())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("workingChanges",r.workingChanges())("unloaded",r.unloadedCommits())("historyLoading",r.historyLoading())("scrollToHash",r.scrollRequest()),p(),R((s=r.selectedCommit())?17:-1,s),p(),G("menu",r.contextMenuState()),p(),G("state",r.promptState())}},dependencies:[Sa,xa,ma,Ia,Ta,Ma],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})};od(Na,Im).catch(t=>console.error(t));