guito 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/bin/guito-server.js +114 -89
- package/bin/ui/browser/index.html +1 -1
- package/bin/ui/browser/main-A5ZTTMFS.js +5 -0
- package/package.json +2 -1
- package/bin/ui/browser/main-24WBYIHU.js +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var Th=Object.defineProperty,Mh=Object.defineProperties;var xh=Object.getOwnPropertyDescriptors;var Nl=Object.getOwnPropertySymbols;var Sh=Object.prototype.hasOwnProperty,Nh=Object.prototype.propertyIsEnumerable;var Al=(e,t,n)=>t in e?Th(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t)=>{for(var n in t||={})Sh.call(t,n)&&Al(e,n,t[n]);if(Nl)for(var n of Nl(t))Nh.call(t,n)&&Al(e,n,t[n]);return e},ne=(e,t)=>Mh(e,xh(t));var Sn=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var Ns;function mo(){return Ns}function st(e){let t=Ns;return Ns=e,t}var Rl=Symbol("NotFound");function Nn(e){return e===Rl||e?.name==="\u0275NotFound"}var Ce=null,go=!1,As=1,Ah=null,ve=Symbol("SIGNAL");function T(e){let t=Ce;return Ce=e,t}function Eo(){return Ce}var Ht={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 An(e){if(go)throw new Error("");if(Ce===null)return;Ce.consumerOnSignalRead(e);let t=Ce.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Ce.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Ce.producers,n!==void 0&&n.producer===e)){Ce.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Ce&&(!r||kh(o,Ce)))return;let i=On(Ce),s={producer:e,consumer:Ce,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Ce.producersTail=s,t!==void 0?t.nextProducer=s:Ce.producers=s,i&&Fl(e,s)}function kl(){As++}function bo(e){if(!(On(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===As)){if(!e.producerMustRecompute(e)&&!kn(e)){Do(e);return}e.producerRecomputeValue(e),Do(e)}}function Rs(e){if(e.consumers===void 0)return;let t=go;go=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Rh(r)}}finally{go=t}}function ks(){return Ce?.consumerAllowSignalWrites!==!1}function Rh(e){e.dirty=!0,Rs(e),e.consumerMarkedDirty?.(e)}function Do(e){e.dirty=!1,e.lastCleanEpoch=As}function $t(e){return e&&Ol(e),T(e)}function Ol(e){e.producersTail=void 0,e.recomputing=!0}function Rn(e,t){T(t),e&&Pl(e)}function Pl(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(On(e))do n=Os(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function kn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(bo(n),r!==n.version))return!0}return!1}function Ut(e){if(On(e)){let t=e.producers;for(;t!==void 0;)t=Os(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Fl(e,t){let n=e.consumersTail,r=On(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Fl(o.producer,o)}function Os(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!On(t)){let i=t.producers;for(;i!==void 0;)i=Os(i)}return n}function On(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Co(e){Ah?.(e)}function kh(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function _o(e,t){return Object.is(e,t)}function ur(e,t){let n=Object.create(Oh);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(bo(n),An(n),n.value===lr)throw n.error;return n.value};return r[ve]=n,Co(n),r}var yo=Symbol("UNSET"),vo=Symbol("COMPUTING"),lr=Symbol("ERRORED"),Oh=ne(Z({},Ht),{value:yo,dirty:!0,error:null,equal:_o,kind:"computed",producerMustRecompute(e){return e.value===yo||e.value===vo},producerRecomputeValue(e){if(e.value===vo)throw new Error("");let t=e.value;e.value=vo;let n=$t(e),r,o=!1;try{r=e.computation(),T(null),o=t!==yo&&t!==lr&&r!==lr&&e.equal(t,r)}catch(i){r=lr,e.error=i}finally{Rn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Ph(){throw new Error}var Ll=Ph;function jl(e){Ll(e)}function Ps(e){Ll=e}var Fh=null;function Fs(e,t){let n=Object.create(wo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Bl(n);return r[ve]=n,Co(n),[r,s=>Pn(n,s),s=>Ls(n,s)]}function Bl(e){return An(e),e.value}function Pn(e,t){ks()||jl(e),e.equal(e.value,t)||(e.value=t,Lh(e))}function Ls(e,t){ks()||jl(e),Pn(e,t(e.value))}var wo=ne(Z({},Ht),{equal:_o,value:void 0,kind:"signal"});function Lh(e){e.version++,kl(),Rs(e),Fh?.(e)}function F(e){return typeof e=="function"}function Fn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Io=Fn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function Gt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var De=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(F(r))try{r()}catch(i){t=i instanceof Io?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Vl(i)}catch(s){t=t??[],s instanceof Io?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Io(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Vl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Gt(n,t)}remove(t){let{_finalizers:n}=this;n&&Gt(n,t),t instanceof e&&t._removeParent(this)}};De.EMPTY=(()=>{let e=new De;return e.closed=!0,e})();var js=De.EMPTY;function To(e){return e instanceof De||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function Vl(e){F(e)?e():e.unsubscribe()}var qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ln={setTimeout(e,t,...n){let{delegate:r}=Ln;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ln;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mo(e){Ln.setTimeout(()=>{let{onUnhandledError:t}=qe;if(t)t(e);else throw e})}function dr(){}var Hl=Bs("C",void 0,void 0);function $l(e){return Bs("E",void 0,e)}function Ul(e){return Bs("N",e,void 0)}function Bs(e,t,n){return{kind:e,value:t,error:n}}var zt=null;function jn(e){if(qe.useDeprecatedSynchronousErrorHandling){let t=!zt;if(t&&(zt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=zt;if(zt=null,n)throw r}}else e()}function Gl(e){qe.useDeprecatedSynchronousErrorHandling&&zt&&(zt.errorThrown=!0,zt.error=e)}var Wt=class extends De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,To(t)&&t.add(this)):this.destination=Vh}static create(t,n,r){return new St(t,n,r)}next(t){this.isStopped?Hs(Ul(t),this):this._next(t)}error(t){this.isStopped?Hs($l(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Hs(Hl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},jh=Function.prototype.bind;function Vs(e,t){return jh.call(e,t)}var $s=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){xo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){xo(r)}else xo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){xo(n)}}},St=class extends Wt{constructor(t,n,r){super();let o;if(F(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&qe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Vs(t.next,i),error:t.error&&Vs(t.error,i),complete:t.complete&&Vs(t.complete,i)}):o=t}this.destination=new $s(o)}};function xo(e){qe.useDeprecatedSynchronousErrorHandling?Gl(e):Mo(e)}function Bh(e){throw e}function Hs(e,t){let{onStoppedNotification:n}=qe;n&&Ln.setTimeout(()=>n(e,t))}var Vh={closed:!0,next:dr,error:Bh,complete:dr};var Bn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function So(e){return e}function zl(e){return e.length===0?So:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Q=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=$h(n)?n:new St(n,r,o);return jn(()=>{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=Wl(r),new r((o,i)=>{let s=new St({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)}[Bn](){return this}pipe(...n){return zl(n)(this)}toPromise(n){return n=Wl(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Wl(e){var t;return(t=e??qe.Promise)!==null&&t!==void 0?t:Promise}function Hh(e){return e&&F(e.next)&&F(e.error)&&F(e.complete)}function $h(e){return e&&e instanceof Wt||Hh(e)&&To(e)}function Uh(e){return F(e?.lift)}function re(e){return t=>{if(Uh(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function oe(e,t,n,r,o){return new Us(e,t,n,r,o)}var Us=class extends Wt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var ql=Fn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var at=(()=>{class e extends Q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new No(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ql}next(n){jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){jn(()=>{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(){jn(()=>{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?js:(this.currentObservers=null,i.push(n),new De(()=>{this.currentObservers=null,Gt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new Q;return n.source=this,n}}return e.create=(t,n)=>new No(t,n),e})(),No=class extends at{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:js}};var fr=class extends at{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var pr={now(){return(pr.delegate||Date).now()},delegate:void 0};var hr=class extends at{constructor(t=1/0,n=1/0,r=pr){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Ao=class extends De{constructor(t,n){super()}schedule(t,n=0){return this}};var mr={setInterval(e,t,...n){let{delegate:r}=mr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=mr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Ro=class extends Ao{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return mr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&mr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Gt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Vn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Vn.now=pr.now;var ko=class extends Vn{constructor(t,n=Vn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Zl=new ko(Ro);function Yl(e){return e&&F(e.schedule)}function Ql(e){return e[e.length-1]}function Kl(e){return F(Ql(e))?e.pop():void 0}function Xl(e){return Yl(Ql(e))?e.pop():void 0}function eu(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Jl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(e){return this instanceof qt?(this.v=e,this):new qt(e)}function tu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(y){return Promise.resolve(y).then(f,d)}}function a(f,y){r[f]&&(o[f]=function(_){return new Promise(function(w,C){i.push([f,_,w,C])>1||c(f,_)})},y&&(o[f]=y(o[f])))}function c(f,y){try{l(r[f](y))}catch(_){p(i[0][3],_)}}function l(f){f.value instanceof qt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,y){f(y),i.shift(),i.length&&c(i[0][0],i[0][1])}}function nu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Jl=="function"?Jl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Oo=e=>e&&typeof e.length=="number"&&typeof e!="function";function Po(e){return F(e?.then)}function Fo(e){return F(e[Bn])}function Lo(e){return Symbol.asyncIterator&&F(e?.[Symbol.asyncIterator])}function jo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Gh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Bo=Gh();function Vo(e){return F(e?.[Bo])}function Ho(e){return tu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield qt(n.read());if(o)return yield qt(void 0);yield yield qt(r)}}finally{n.releaseLock()}})}function $o(e){return F(e?.getReader)}function ye(e){if(e instanceof Q)return e;if(e!=null){if(Fo(e))return zh(e);if(Oo(e))return Wh(e);if(Po(e))return qh(e);if(Lo(e))return ru(e);if(Vo(e))return Zh(e);if($o(e))return Yh(e)}throw jo(e)}function zh(e){return new Q(t=>{let n=e[Bn]();if(F(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Wh(e){return new Q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function qh(e){return new Q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mo)})}function Zh(e){return new Q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ru(e){return new Q(t=>{Qh(e,t).catch(n=>t.error(n))})}function Yh(e){return ru(Ho(e))}function Qh(e,t){var n,r,o,i;return eu(this,void 0,void 0,function*(){try{for(n=nu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function je(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Uo(e,t=0){return re((n,r)=>{n.subscribe(oe(r,o=>je(r,e,()=>r.next(o),t),()=>je(r,e,()=>r.complete(),t),o=>je(r,e,()=>r.error(o),t)))})}function Go(e,t=0){return re((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ou(e,t){return ye(e).pipe(Go(t),Uo(t))}function iu(e,t){return ye(e).pipe(Go(t),Uo(t))}function su(e,t){return new Q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function au(e,t){return new Q(n=>{let r;return je(n,t,()=>{r=e[Bo](),je(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>F(r?.return)&&r.return()})}function zo(e,t){if(!e)throw new Error("Iterable cannot be null");return new Q(n=>{je(n,t,()=>{let r=e[Symbol.asyncIterator]();je(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function cu(e,t){return zo(Ho(e),t)}function lu(e,t){if(e!=null){if(Fo(e))return ou(e,t);if(Oo(e))return su(e,t);if(Po(e))return iu(e,t);if(Lo(e))return zo(e,t);if(Vo(e))return au(e,t);if($o(e))return cu(e,t)}throw jo(e)}function uu(e,t){return t?lu(e,t):ye(e)}function Hn(...e){let t=Xl(e);return uu(e,t)}var du=Fn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Wo(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new St({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new du)}});e.subscribe(i)})}function Be(e,t){return re((n,r)=>{let o=0;n.subscribe(oe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Kh}=Array;function Xh(e,t){return Kh(t)?e(...t):e(t)}function fu(e){return Be(t=>Xh(e,t))}var{isArray:Jh}=Array,{getPrototypeOf:em,prototype:tm,keys:nm}=Object;function pu(e){if(e.length===1){let t=e[0];if(Jh(t))return{args:t,keys:null};if(rm(t)){let n=nm(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function rm(e){return e&&typeof e=="object"&&em(e)===tm}function hu(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function mu(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=_=>l<r?y(_):c.push(_),y=_=>{i&&t.next(_),l++;let w=!1;ye(n(_,u++)).subscribe(oe(t,C=>{o?.(C),i?f(C):t.next(C)},()=>{w=!0},void 0,()=>{if(w)try{for(l--;c.length&&l<r;){let C=c.shift();s?je(t,s,()=>y(C)):y(C)}p()}catch(C){t.error(C)}}))};return e.subscribe(oe(t,f,()=>{d=!0,p()})),()=>{a?.()}}function qo(e,t,n=1/0){return F(t)?qo((r,o)=>Be((i,s)=>t(r,i,o,s))(ye(e(r,o))),n):(typeof t=="number"&&(n=t),re((r,o)=>mu(r,o,e,n)))}function Gs(...e){let t=Kl(e),{args:n,keys:r}=pu(e),o=new Q(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;ye(n[u]).subscribe(oe(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?hu(r,a):a),i.complete())}))}});return t?o.pipe(fu(t)):o}function zs(e,t){return re((n,r)=>{let o=0;n.subscribe(oe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Zo(e){return re((t,n)=>{let r=null,o=!1,i;r=t.subscribe(oe(n,void 0,void 0,s=>{i=ye(e(s,Zo(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Ws(e,t){return F(t)?qo(e,t,1):qo(e,1)}function qs(e,t=Zl){return re((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+e,u=t.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(oe(r,l=>{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Zs(e,t=So){return e=e??om,re((n,r)=>{let o,i=!0;n.subscribe(oe(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function om(e,t){return e===t}function Ys(e){return re((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Qs(e,t){return re((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(oe(r,c=>{o?.unsubscribe();let l=0,u=i++;ye(e(c,u)).subscribe(o=oe(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ks(e){return re((t,n)=>{ye(e).subscribe(oe(n,()=>n.complete(),dr)),!n.closed&&t.subscribe(n)})}function gu(e){let t=T(null);try{return e()}finally{T(t)}}var yu=ne(Z({},Ht),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function vu(e){if(e.dirty=!1,e.version>0&&!kn(e))return;e.version++;let t=$t(e);try{e.cleanup(),e.fn()}finally{Rn(e,t)}}var la="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",b=class extends Error{code;constructor(t,n){super(Xt(t,n)),this.code=t}};function im(e){return`NG0${Math.abs(e)}`}function Xt(e,t){return`${im(e)}${t?": "+t:""}`}var Jt=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("")}function Nt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Nt).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function Jo(e,t){return e?t?`${e} ${t}`:e:t||""}var sm=$({__forward_ref__:$});function ei(e){return e.__forward_ref__=ei,e.toString=function(){return Nt(this())},e}function Re(e){return bu(e)?e():e}function bu(e){return typeof e=="function"&&e.hasOwnProperty(sm)&&e.__forward_ref__===ei}function H(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ti(e){return am(e,ni)}function am(e,t){return e.hasOwnProperty(t)&&e[t]||null}function cm(e){let t=e?.[ni]??null;return t||null}function Js(e){return e&&e.hasOwnProperty(Qo)?e[Qo]:null}var ni=$({\u0275prov:$}),Qo=$({\u0275inj:$}),x=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=H({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ua(e){return e&&!!e.\u0275providers}var da=$({\u0275cmp:$}),fa=$({\u0275dir:$}),pa=$({\u0275pipe:$});var ea=$({\u0275fac:$}),en=$({__NG_ELEMENT_ID__:$}),Du=$({__NG_ENV_ID__:$});function ri(e){return typeof e=="string"?e:e==null?"":String(e)}function Cu(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ri(e)}var _u=$({ngErrorCode:$}),lm=$({ngErrorMessage:$}),um=$({ngTokenPath:$});function ha(e,t){return wu("",-200,t)}function oi(e,t){throw new b(-201,!1)}function wu(e,t,n){let r=new b(t,e);return r[_u]=t,r[lm]=e,n&&(r[um]=n),r}function dm(e){return e[_u]}var ta;function Iu(){return ta}function Ie(e){let t=ta;return ta=e,t}function ma(e,t,n){let r=ti(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;oi(e,"Injector")}var fm={},Zt=fm,pm="__NG_DI_FLAG__",na=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Yt(n)||0;try{return this.injector.get(t,r&8?null:Zt,r)}catch(o){if(Nn(o))return o;throw o}}};function hm(e,t=0){let n=mo();if(n===void 0)throw new b(-203,!1);if(n===null)return ma(e,void 0,t);{let r=mm(t),o=n.retrieve(e,r);if(Nn(o)){if(r.optional)return null;throw o}return o}}function L(e,t=0){return(Iu()||hm)(Re(e),t)}function E(e,t){return L(e,Yt(t))}function Yt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function mm(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ra(e){let t=[];for(let n=0;n<e.length;n++){let r=Re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new b(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=gm(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(L(o,i))}else t.push(L(r))}return t}function gm(e){return e[pm]}function Qt(e,t){let n=e.hasOwnProperty(ea);return n?e[ea]:null}function Tu(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Mu(e){return e.flat(Number.POSITIVE_INFINITY)}function ii(e,t){e.forEach(n=>Array.isArray(n)?ii(n,t):t(n))}function ga(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Dr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xu(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function si(e,t,n){let r=Un(e,t);return r>=0?e[r|1]=n:(r=~r,xu(e,r,t,n)),r}function ai(e,t){let n=Un(e,t);if(n>=0)return e[n|1]}function Un(e,t){return ym(e,t,1)}function ym(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var tn={},Ze=[],nn=new x(""),ya=new x("",-1),va=new x(""),yr=class{get(t,n=Zt){if(n===Zt){let o=wu("",-201);throw o.name="\u0275NotFound",o}return n}};function rn(e){return e[da]||null}function Da(e){return e[fa]||null}function Su(e){return e[pa]||null}function Er(e){return{\u0275providers:e}}function Nu(...e){return{\u0275providers:Ea(!0,e),\u0275fromNgModule:!0}}function Ea(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ii(t,s=>{let a=s;Ko(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Au(o,i),n}function Au(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ba(o,i=>{t(i,r)})}}function Ko(e,t,n,r){if(e=Re(e),!e)return!1;let o=null,i=Js(e),s=!i&&rn(e);if(!i&&!s){let c=e.ngModule;if(i=Js(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Ko(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;ii(i.imports,u=>{Ko(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&Au(l,t)}if(!a){let l=Qt(o)||(()=>new o);t({provide:o,useFactory:l,deps:Ze},o),t({provide:va,useValue:o,multi:!0},o),t({provide:nn,useValue:()=>L(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;ba(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function ba(e,t){for(let n of e)ua(n)&&(n=n.\u0275providers),Array.isArray(n)?ba(n,t):t(n)}var vm=$({provide:String,useValue:$});function Ru(e){return e!==null&&typeof e=="object"&&vm in e}function Dm(e){return!!(e&&e.useExisting)}function Em(e){return!!(e&&e.useFactory)}function Xo(e){return typeof e=="function"}var br=new x(""),Yo={},Eu={},Xs;function Cr(){return Xs===void 0&&(Xs=new yr),Xs}var Me=class{},Kt=class extends Me{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ia(t,s=>this.processProvider(s)),this.records.set(ya,$n(void 0,this)),o.has("environment")&&this.records.set(Me,$n(void 0,this));let i=this.records.get(br);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(va,Ze,{self:!0}))}retrieve(t,n){let r=Yt(n)||0;try{return this.get(t,Zt,r)}catch(o){if(Nn(o))return o;throw o}}destroy(){gr(this),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return gr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){gr(this);let n=st(this),r=Ie(void 0),o;try{return t()}finally{st(n),Ie(r)}}get(t,n=Zt,r){if(gr(this),t.hasOwnProperty(Du))return t[Du](this);let o=Yt(r),i,s=st(this),a=Ie(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=Im(t)&&ti(t);u&&this.injectableDefInScope(u)?l=$n(oa(t),Yo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?Cr():this.parent;return n=o&8&&n===Zt?null:n,c.get(t,n)}catch(c){let l=dm(c);throw l===-200||l===-201?new b(l,null):c}finally{Ie(a),st(s)}}resolveInjectorInitializers(){let t=T(null),n=st(this),r=Ie(void 0),o;try{let i=this.get(nn,Ze,{self:!0});for(let s of i)s()}finally{st(n),Ie(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Nt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Re(t);let n=Xo(t)?t:Re(t&&t.provide),r=Cm(t);if(!Xo(t)&&t.multi===!0){let o=this.records.get(n);o||(o=$n(void 0,Yo,!0),o.factory=()=>ra(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=T(null);try{if(n.value===Eu)throw ha(Nt(t));return n.value===Yo&&(n.value=Eu,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&wm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function oa(e){let t=ti(e),n=t!==null?t.factory:Qt(e);if(n!==null)return n;if(e instanceof x)throw new b(204,!1);if(e instanceof Function)return bm(e);throw new b(204,!1)}function bm(e){if(e.length>0)throw new b(204,!1);let n=cm(e);return n!==null?()=>n.factory(e):()=>new e}function Cm(e){if(Ru(e))return $n(void 0,e.useValue);{let t=ku(e);return $n(t,Yo)}}function ku(e,t,n){let r;if(Xo(e)){let o=Re(e);return Qt(o)||oa(o)}else if(Ru(e))r=()=>Re(e.useValue);else if(Em(e))r=()=>e.useFactory(...ra(e.deps||[]));else if(Dm(e))r=(o,i)=>L(Re(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Re(e&&(e.useClass||e.provide));if(_m(e))r=()=>new o(...ra(e.deps));else return Qt(o)||oa(o)}return r}function gr(e){if(e.destroyed)throw new b(205,!1)}function $n(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _m(e){return!!e.deps}function wm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Im(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ia(e,t){for(let n of e)Array.isArray(n)?ia(n,t):n&&ua(n)?ia(n.\u0275providers,t):t(n)}function Gn(e,t){let n;e instanceof Kt?(gr(e),n=e):n=new na(e);let r,o=st(n),i=Ie(void 0);try{return t()}finally{st(o),Ie(i)}}function Ou(){return Iu()!==void 0||mo()!=null}var Qe=0,I=1,M=2,fe=3,He=4,$e=5,zn=6,Wn=7,se=8,Dt=9,Et=10,J=11,qn=12,Ca=13,on=14,Ue=15,Rt=16,sn=17,lt=18,_r=19,_a=20,vt=21,ci=22,bt=23,ke=24,li=25,an=26,pe=27,Pu=1,wa=6,kt=7,wr=8,cn=9,ie=10;function Ct(e){return Array.isArray(e)&&typeof e[Pu]=="object"}function Ke(e){return Array.isArray(e)&&e[Pu]===!0}function Ia(e){return(e.flags&4)!==0}function ln(e){return e.componentOffset>-1}function ui(e){return(e.flags&1)===1}function un(e){return!!e.template}function Zn(e){return(e[M]&512)!==0}function dn(e){return(e[M]&256)===256}var Ta="svg",Fu="math";function Ge(e){for(;Array.isArray(e);)e=e[Qe];return e}function Ma(e,t){return Ge(t[e])}function Xe(e,t){return Ge(t[e.index])}function Ir(e,t){return e.data[t]}function Lu(e,t){return e[t]}function xa(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ut(e,t){let n=t[e];return Ct(n)?n:n[Qe]}function di(e){return(e[M]&128)===128}function ju(e){return Ke(e[fe])}function dt(e,t){return t==null?null:e[t]}function Sa(e){e[sn]=0}function Na(e){e[M]&1024||(e[M]|=1024,di(e)&&fn(e))}function Bu(e,t){for(;e>0;)t=t[on],e--;return t}function Tr(e){return!!(e[M]&9216||e[ke]?.dirty)}function fi(e){e[Et].changeDetectionScheduler?.notify(8),e[M]&64&&(e[M]|=1024),Tr(e)&&fn(e)}function fn(e){e[Et].changeDetectionScheduler?.notify(0);let t=At(e);for(;t!==null&&!(t[M]&8192||(t[M]|=8192,!di(t)));)t=At(t)}function Aa(e,t){if(dn(e))throw new b(911,!1);e[vt]===null&&(e[vt]=[]),e[vt].push(t)}function Vu(e,t){if(e[vt]===null)return;let n=e[vt].indexOf(t);n!==-1&&e[vt].splice(n,1)}function At(e){let t=e[fe];return Ke(t)?t[fe]:t}function Ra(e){return e[Wn]??=[]}function ka(e){return e.cleanup??=[]}function Hu(e,t,n,r){let o=Ra(t);o.push(n),e.firstCreatePass&&ka(e).push(r,o.length-1)}var A={lFrame:nd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sa=!1;function $u(){return A.lFrame.elementDepthCount}function Uu(){A.lFrame.elementDepthCount++}function Oa(){A.lFrame.elementDepthCount--}function Gu(){return A.bindingsEnabled}function zu(){return A.skipHydrationRootTNode!==null}function Pa(e){return A.skipHydrationRootTNode===e}function Fa(){A.skipHydrationRootTNode=null}function V(){return A.lFrame.lView}function _e(){return A.lFrame.tView}function j(e){return A.lFrame.contextLView=e,e[se]}function B(e){return A.lFrame.contextLView=null,e}function Oe(){let e=La();for(;e!==null&&e.type===64;)e=e.parent;return e}function La(){return A.lFrame.currentTNode}function Wu(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Yn(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function ja(){return A.lFrame.isParent}function qu(){A.lFrame.isParent=!1}function Ba(){return sa}function Qn(e){let t=sa;return sa=e,t}function Zu(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yu(e){return A.lFrame.bindingIndex=e}function pn(){return A.lFrame.bindingIndex++}function Va(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Qu(){return A.lFrame.inI18n}function Ku(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,pi(t)}function Xu(){return A.lFrame.currentDirectiveIndex}function pi(e){A.lFrame.currentDirectiveIndex=e}function Ju(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ed(){return A.lFrame.currentQueryIndex}function hi(e){A.lFrame.currentQueryIndex=e}function Tm(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[$e]:null}function Ha(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Tm(i),o===null||(i=i[on],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=td();return r.currentTNode=t,r.lView=e,!0}function mi(e){let t=td(),n=e[I];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function td(){let e=A.lFrame,t=e===null?null:e.child;return t===null?nd(e):t}function nd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function rd(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var $a=rd;function gi(){let e=rd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function od(e){return(A.lFrame.contextLView=Bu(e,A.lFrame.contextLView))[se]}function _t(){return A.lFrame.selectedIndex}function Ot(e){A.lFrame.selectedIndex=e}function yi(){let e=A.lFrame;return Ir(e.tView,e.selectedIndex)}function W(){A.lFrame.currentNamespace=Ta}function Ee(){Mm()}function Mm(){A.lFrame.currentNamespace=null}function Ua(){return A.lFrame.currentNamespace}var id=!0;function vi(){return id}function Di(e){id=e}function aa(e,t=null,n=null,r){let o=sd(e,t,n,r);return o.resolveInjectorInitializers(),o}function sd(e,t=null,n=null,r,o=new Set){let i=[n||Ze,Nu(e)];return r=r||(typeof e=="object"?void 0:Nt(e)),new Kt(i,t||Cr(),r||null,o)}var Ye=class e{static THROW_IF_NOT_FOUND=Zt;static NULL=new yr;static create(t,n){if(Array.isArray(t))return aa({name:""},n,t,"");{let r=t.name??"";return aa({name:r},t.parent,t.providers,r)}}static \u0275prov=H({token:e,providedIn:"any",factory:()=>L(ya)});static __NG_ELEMENT_ID__=-1},Pe=new x(""),Je=(()=>{class e{static __NG_ELEMENT_ID__=xm;static __NG_ENV_ID__=n=>n}return e})(),vr=class extends Je{_lView;constructor(t){super(),this._lView=t}get destroyed(){return dn(this._lView)}onDestroy(t){let n=this._lView;return Aa(n,t),()=>Vu(n,t)}};function xm(){return new vr(V())}var Ve=class{_console=console;handleError(t){this._console.error("ERROR",t)}},ft=new x("",{providedIn:"root",factory:()=>{let e=E(Me),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ve),t.handleError(n))}}}),ad={provide:nn,useValue:()=>{E(Ve)},multi:!0};function R(e,t){let[n,r,o]=Fs(e,t?.equal),i=n,s=i[ve];return i.set=r,i.update=o,i.asReadonly=Ga.bind(i),i}function Ga(){let e=this[ve];if(e.readonlyFn===void 0){let t=()=>this();t[ve]=e,e.readonlyFn=t}return e.readonlyFn}var Mr=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Sm}return e})();function Sm(){return new Mr(V(),Oe())}var ct=class{},xr=new x("",{providedIn:"root",factory:()=>!1});var za=new x(""),Wa=new x(""),Pt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new fr(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Q(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=H({token:e,providedIn:"root",factory:()=>new e})}return e})(),Kn=(()=>{class e{internalPendingTasks=E(Pt);scheduler=E(ct);errorHandler=E(ft);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=H({token:e,providedIn:"root",factory:()=>new e})}return e})();function hn(...e){}var Sr=(()=>{class e{static \u0275prov=H({token:e,providedIn:"root",factory:()=>new ca})}return e})(),ca=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Fd(e){return{toString:e}.toString()}function Bm(e){return typeof e=="function"}var Mi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ld(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Vm(e){return e.type.prototype.ngOnChanges&&(e.setInput=$m),Hm}function Hm(){let e=Bd(this),t=e?.current;if(t){let n=e.previous;if(n===tn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function $m(e,t,n,r,o){let i=this.declaredInputs[r],s=Bd(e)||Um(e,{previous:tn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Mi(l&&l.currentValue,n,c===tn),Ld(e,t,o,n)}var jd="__ngSimpleChanges__";function Bd(e){return e[jd]||null}function Um(e,t){return e[jd]=t}var cd=[];var q=function(e,t=null,n){for(let r=0;r<cd.length;r++){let o=cd[r];o(e,t,n)}};function Gm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Vm(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function zm(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Ci(e,t,n){Vd(e,t,3,n)}function _i(e,t,n,r){(e[M]&3)===n&&Vd(e,t,n,r)}function qa(e,t){let n=e[M];(n&3)===t&&(n&=16383,n+=1,e[M]=n)}function Vd(e,t,n,r){let o=r!==void 0?e[sn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[sn]+=65536),(a<i||i==-1)&&(Wm(e,n,t,c),e[sn]=(e[sn]&4294901760)+c+2),c++}function ld(e,t){q(4,e,t);let n=T(null);try{t.call(e)}finally{T(n),q(5,e,t)}}function Wm(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[M]>>14<e[sn]>>16&&(e[M]&3)===t&&(e[M]+=16384,ld(a,i)):ld(a,i)}var Jn=-1,Rr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function qm(e){return(e.flags&8)!==0}function Zm(e){return(e.flags&16)!==0}function Ym(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Km(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Qm(e){return e===3||e===4||e===6}function Km(e){return e.charCodeAt(0)===64}function Ui(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?ud(e,n,o,null,t[++r]):ud(e,n,o,null,null))}}return e}function ud(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Hd(e){return e!==Jn}function xi(e){return e&32767}function Xm(e){return e>>16}function Si(e,t){let n=Xm(e),r=t;for(;n>0;)r=r[on],n--;return r}var tc=!0;function Ni(e){let t=tc;return tc=e,t}var Jm=256,$d=Jm-1,Ud=5,eg=0,pt={};function tg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(en)&&(r=n[en]),r==null&&(r=n[en]=eg++);let o=r&$d,i=1<<o;t.data[e+(o>>Ud)]|=i}function Gd(e,t){let n=zd(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Za(r.data,e),Za(t,null),Za(r.blueprint,null));let o=Ac(e,t),i=e.injectorIndex;if(Hd(o)){let s=xi(o),a=Si(o,t),c=a[I].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Za(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ac(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Qd(o),r===null)return Jn;if(n++,o=o[on],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Jn}function ng(e,t,n){tg(e,t,n)}function Wd(e,t,n){if(n&8||e!==void 0)return e;oi(t,"NodeInjector")}function qd(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Dt],i=Ie(void 0);try{return o?o.get(t,r,n&8):ma(t,r,n&8)}finally{Ie(i)}}return Wd(r,t,n)}function Zd(e,t,n,r=0,o){if(e!==null){if(t[M]&2048&&!(r&2)){let s=sg(e,t,n,r,pt);if(s!==pt)return s}let i=Yd(e,t,n,r,pt);if(i!==pt)return i}return qd(t,n,r,o)}function Yd(e,t,n,r,o){let i=og(n);if(typeof i=="function"){if(!Ha(t,e,r))return r&1?Wd(o,n,r):qd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))oi(n);else return s}finally{$a()}}else if(typeof i=="number"){let s=null,a=zd(e,t),c=Jn,l=r&1?t[Ue][$e]:null;for((a===-1||r&4)&&(c=a===-1?Ac(e,t):t[a+8],c===Jn||!fd(r,!1)?a=-1:(s=t[I],a=xi(c),t=Si(c,t)));a!==-1;){let u=t[I];if(dd(i,a,u.data)){let d=rg(a,t,n,s,r,l);if(d!==pt)return d}c=t[a+8],c!==Jn&&fd(r,t[I].data[a+8]===l)&&dd(i,a,t)?(s=u,a=xi(c),t=Si(c,t)):a=-1}}return o}function rg(e,t,n,r,o,i){let s=t[I],a=s.data[e+8],c=r==null?ln(a)&&tc:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=wi(a,s,n,c,l);return u!==null?Ai(t,s,u,a,o):pt}function wi(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let y=s[f];if(f<c&&n===y||f>=c&&y.type===n)return f}if(o){let f=s[c];if(f&&un(f)&&f.type===n)return c}return null}function Ai(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Rr){let a=i;if(a.resolving){let f=Cu(s[n]);throw ha(f)}let c=Ni(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?Ie(a.injectImpl):null,p=Ha(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Gm(n,s[n],t)}finally{d!==null&&Ie(d),Ni(c),a.resolving=!1,$a()}}return i}function og(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(en)?e[en]:void 0;return typeof t=="number"?t>=0?t&$d:ig:t}function dd(e,t,n){let r=1<<e;return!!(n[t+(e>>Ud)]&r)}function fd(e,t){return!(e&2)&&!(e&1&&t)}var mn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Zd(this._tNode,this._lView,t,Yt(r),n)}};function ig(){return new mn(Oe(),V())}function sg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[M]&2048&&!Zn(s);){let a=Yd(i,s,n,r|2,pt);if(a!==pt)return a;let c=i.parent;if(!c){let l=s[_a];if(l){let u=l.get(n,pt,r);if(u!==pt)return u}c=Qd(s),s=s[on]}i=c}return o}function Qd(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[$e]:null}function ag(){return or(Oe(),V())}function or(e,t){return new ir(Xe(e,t))}var ir=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ag}return e})();function cg(e){return e instanceof ir?e.nativeElement:e}function lg(){return this._results[Symbol.iterator]()}var Ri=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 at}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Mu(t);(this._changesDetected=!Tu(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=lg};function Kd(e){return(e.flags&128)===128}var Rc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Rc||{}),Xd=new Map,ug=0;function dg(){return ug++}function fg(e){Xd.set(e[_r],e)}function nc(e){Xd.delete(e[_r])}var pd="__ngContext__";function er(e,t){Ct(t)?(e[pd]=t[_r],fg(t)):e[pd]=t}function Jd(e){return tf(e[qn])}function ef(e){return tf(e[He])}function tf(e){for(;e!==null&&!Ke(e);)e=e[He];return e}var rc;function kc(e){rc=e}function nf(){if(rc!==void 0)return rc;if(typeof document<"u")return document;throw new b(210,!1)}var Gi=new x("",{providedIn:"root",factory:()=>pg}),pg="ng",zi=new x(""),Vr=new x("",{providedIn:"platform",factory:()=>"unknown"});var Wi=new x("",{providedIn:"root",factory:()=>nf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hg="h",mg="b";var rf="r";var of="di";var sf=!1,af=new x("",{providedIn:"root",factory:()=>sf});var gg=(e,t,n,r)=>{};function yg(e,t,n,r){gg(e,t,n,r)}function Oc(e){return(e.flags&32)===32}var vg=()=>null;function cf(e,t,n=!1){return vg(e,t,n)}function lf(e,t){let n=e.contentQueries;if(n!==null){let r=T(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];hi(i),a.contentQueries(2,t[s],s)}}}finally{T(r)}}}function oc(e,t,n){hi(0);let r=T(null);try{t(e,n)}finally{T(r)}}function uf(e,t,n){if(Ia(t)){let r=T(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{T(r)}}}var It=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(It||{});var ic=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${la})`}};function Pc(e){return e instanceof ic?e.changingThisBreaksApplicationSecurity:e}function Dg(e,t){return e.createText(t)}function Eg(e,t,n){e.setValue(t,n)}function df(e,t,n){return e.createElement(t,n)}function ki(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ff(e,t,n){e.appendChild(t,n)}function hd(e,t,n,r,o){r!==null?ki(e,t,n,r,o):ff(e,t,n)}function pf(e,t,n,r){e.removeChild(null,t,n,r)}function bg(e,t,n){e.setAttribute(t,"style",n)}function Cg(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function hf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Ym(e,t,r),o!==null&&Cg(e,t,o),i!==null&&bg(e,t,i)}function gt(e){return e.ownerDocument}function _g(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var mf="ng-template";function wg(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&_g(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Fc(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Fc(e){return e.type===4&&e.value!==mf}function Ig(e,t,n){let r=e.type===4&&!n?mf:e.value;return t===r}function Tg(e,t,n){let r=4,o=e.attrs,i=o!==null?Sg(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!et(r)&&!et(c))return!1;if(s&&et(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Ig(e,c,n)||c===""&&t.length===1){if(et(r))return!1;s=!0}}else if(r&8){if(o===null||!wg(e,o,c,n)){if(et(r))return!1;s=!0}}else{let l=t[++a],u=Mg(c,o,Fc(e),n);if(u===-1){if(et(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(et(r))return!1;s=!0}}}}return et(r)||s}function et(e){return(e&1)===0}function Mg(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Ng(t,e)}function xg(e,t,n=!1){for(let r=0;r<t.length;r++)if(Tg(e,t[r],n))return!0;return!1}function Sg(e){for(let t=0;t<e.length;t++){let n=e[t];if(Qm(n))return t}return e.length}function Ng(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function md(e,t){return e?":not("+t.trim()+")":t}function Ag(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!et(s)&&(t+=md(i,o),o=""),r=s,i=i||!et(r);n++}return o!==""&&(t+=md(i,o)),t}function Rg(e){return e.map(Ag).join(",")}function kg(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!et(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ze={};function Lc(e,t,n,r,o,i,s,a,c,l,u){let d=pe+r,p=d+o,f=Og(d,p),y=typeof l=="function"?l():l;return f[I]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:y,incompleteFirstPass:!1,ssrId:u}}function Og(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ze);return n}function Pg(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Lc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function jc(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Qe]=o,d[M]=r|4|128|8|64|1024,(l!==null||e&&e[M]&2048)&&(d[M]|=2048),Sa(d),d[fe]=d[on]=e,d[se]=n,d[Et]=s||e&&e[Et],d[J]=a||e&&e[J],d[Dt]=c||e&&e[Dt]||null,d[$e]=i,d[_r]=dg(),d[zn]=u,d[_a]=l,d[Ue]=t.type==2?e[Ue]:d,d}function Fg(e,t,n){let r=Xe(t,e),o=Pg(n),i=e[Et].rendererFactory,s=Bc(e,jc(e,o,null,gf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function gf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function yf(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Bc(e,t){return e[qn]?e[Ca][He]=t:e[qn]=t,e[Ca]=t,t}function h(e=1){vf(_e(),V(),_t()+e,!1)}function vf(e,t,n,r){if(!r)if((t[M]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ci(t,i,n)}else{let i=e.preOrderHooks;i!==null&&_i(t,i,0,n)}Ot(n)}var qi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(qi||{});function sc(e,t,n,r){let o=T(null);try{let[i,s,a]=e.inputs[n],c=null;(s&qi.SignalBased)!==0&&(c=t[i][ve]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Ld(t,c,i,r)}finally{T(o)}}var ht=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(ht||{}),Lg;function Vc(e,t){return Lg(e,t)}var gn=new Set,Hc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Hc||{}),Hr=new x(""),gd=new Set;function Dn(e){gd.has(e)||(gd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Df=!1,ac=class extends at{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ou()&&(this.destroyRef=E(Je,{optional:!0})??void 0,this.pendingTasks=E(Pt,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof De&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},wt=ac;function Ef(e){let t,n;function r(){e=hn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function yd(e){return queueMicrotask(()=>e()),()=>{e=hn}}var $c="isAngularZone",Oi=$c+"_ID",jg=0,he=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new wt(!1);onMicrotaskEmpty=new wt(!1);onStable=new wt(!1);onError=new wt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Df}=t;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Hg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get($c)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Bg,hn,hn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Bg={};function Uc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Vg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ef(()=>{e.callbackScheduled=!1,cc(e),e.isCheckStableRunning=!0,Uc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),cc(e)}function Hg(e){let t=()=>{Vg(e)},n=jg++;e._inner=e._inner.fork({name:"angular",properties:{[$c]:!0,[Oi]:n,[Oi+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if($g(c))return r.invokeTask(i,s,a,c);try{return vd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Dd(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return vd(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ug(c)&&t(),Dd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,cc(e),Uc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function cc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function vd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dd(e){e._nesting--,Uc(e)}var Pi=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new wt;onMicrotaskEmpty=new wt;onStable=new wt;onError=new wt;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function $g(e){return bf(e,"__ignore_ng_zone__")}function Ug(e){return bf(e,"__scheduler_tick__")}function bf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Cf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=H({token:e,providedIn:"root",factory:()=>new e})}return e})();var _f=new x("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function wf(e,t,n){let r=e.get(_f);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Gg(e,t){let n=e.get(_f);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function zg(e,t){for(let[n,r]of t)wf(e,r.animateFns)}function Ed(e,t,n,r){let o=e?.[an]?.enter;t!==null&&o&&o.has(n.index)&&zg(r,o)}function Xn(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;Ke(o)?c=o:Ct(o)&&(l=!0,o=o[Qe]);let u=Ge(o);e===0&&r!==null?(Ed(a,r,i,n),s==null?ff(t,r,u):ki(t,r,u,s||null,!0)):e===1&&r!==null?(Ed(a,r,i,n),ki(t,r,u,s||null,!0)):e===2?bd(a,i,n,d=>{pf(t,u,l,d)}):e===3&&bd(a,i,n,()=>{t.destroyNode(u)}),c!=null&&oy(t,e,n,c,i,r,s)}}function Wg(e,t){If(e,t),t[Qe]=null,t[$e]=null}function qg(e,t,n,r,o,i){r[Qe]=o,r[$e]=t,Yi(e,r,n,1,o,i)}function If(e,t){t[Et].changeDetectionScheduler?.notify(9),Yi(e,t,t[J],2,null,null)}function Zg(e){let t=e[qn];if(!t)return Ya(e[I],e);for(;t;){let n=null;if(Ct(t))n=t[qn];else{let r=t[ie];r&&(n=r)}if(!n){for(;t&&!t[He]&&t!==e;)Ct(t)&&Ya(t[I],t),t=t[fe];t===null&&(t=e),Ct(t)&&Ya(t[I],t),n=t&&t[He]}t=n}}function Gc(e,t){let n=e[cn],r=n.indexOf(t);n.splice(r,1)}function Zi(e,t){if(dn(t))return;let n=t[J];n.destroyNode&&Yi(e,t,n,3,null,null),Zg(t)}function Ya(e,t){if(dn(t))return;let n=T(null);try{t[M]&=-129,t[M]|=256,t[ke]&&Ut(t[ke]),Kg(e,t),Qg(e,t),t[I].type===1&&t[J].destroy();let r=t[Rt];if(r!==null&&Ke(t[fe])){r!==t[fe]&&Gc(r,t);let o=t[lt];o!==null&&o.detachView(e)}nc(t)}finally{T(n)}}function bd(e,t,n,r){let o=e?.[an];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&gn.add(e),wf(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let l=s.animateFns[c],{promise:u}=l();a.push(u)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),Yg(e,r)}else e&&gn.delete(e),r(!1)},o)}function Yg(e,t){let n=e[an]?.running;if(n){n.then(()=>{e[an].running=void 0,gn.delete(e),t(!0)});return}t(!1)}function Qg(e,t){let n=e.cleanup,r=t[Wn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Wn]=null);let o=t[vt];if(o!==null){t[vt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[bt];if(i!==null){t[bt]=null;for(let s of i)s.destroy()}}function Kg(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Rr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];q(4,a,c);try{c.call(a)}finally{q(5,a,c)}}else{q(4,o,i);try{i.call(o)}finally{q(5,o,i)}}}}}function Xg(e,t,n){return Jg(e,t.parent,n)}function Jg(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Qe];if(ln(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===It.None||o===It.Emulated)return null}return Xe(r,n)}function ey(e,t,n){return ny(e,t,n)}function ty(e,t,n){return e.type&40?Xe(e,n):null}var ny=ty,Cd;function zc(e,t,n,r){let o=Xg(e,r,t),i=t[J],s=r.parent||t[$e],a=ey(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)hd(i,o,n[c],a,!1);else hd(i,o,n,a,!1);Cd!==void 0&&Cd(i,r,t,n,o)}function Nr(e,t){if(t!==null){let n=t.type;if(n&3)return Xe(t,e);if(n&4)return lc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Nr(e,r);{let o=e[t.index];return Ke(o)?lc(-1,o):Ge(o)}}else{if(n&128)return Nr(e,t.next);if(n&32)return Vc(t,e)()||Ge(e[t.index]);{let r=Tf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=At(e[Ue]);return Nr(o,r)}else return Nr(e,t.next)}}}return null}function Tf(e,t){if(t!==null){let r=e[Ue][$e],o=t.projection;return r.projection[o]}return null}function lc(e,t){let n=ie+e+1;if(n<t.length){let r=t[n],o=r[I].firstChild;if(o!==null)return Nr(r,o)}return t[kt]}function Wc(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Dt];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&er(Ge(c),r),n.flags|=2),!Oc(n))if(l&8)Wc(e,t,n.child,r,o,i,!1),Xn(t,e,a,o,c,n,i,r);else if(l&32){let u=Vc(n,r),d;for(;d=u();)Xn(t,e,a,o,d,n,i,r);Xn(t,e,a,o,c,n,i,r)}else l&16?ry(e,t,r,n,o,i):Xn(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Yi(e,t,n,r,o,i){Wc(n,r,e.firstChild,t,o,i,!1)}function ry(e,t,n,r,o,i){let s=n[Ue],c=s[$e].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Xn(t,e,n[Dt],o,u,r,i,n)}else{let l=c,u=s[fe];Kd(r)&&(l.flags|=128),Wc(e,t,l,u,o,i,!0)}}function oy(e,t,n,r,o,i,s){let a=r[kt],c=Ge(r);a!==c&&Xn(t,e,n,i,a,o,s);for(let l=ie;l<r.length;l++){let u=r[l];Yi(u[I],u,e,t,i,a)}}function iy(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:ht.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}function Mf(e,t,n,r,o){let i=_t(),s=r&2;try{Ot(-1),s&&t.length>pe&&vf(e,t,pe,!1),q(s?2:0,o,n),n(r,o)}finally{Ot(i),q(s?3:1,o,n)}}function xf(e,t,n){fy(e,t,n),(n.flags&64)===64&&py(e,t,n)}function qc(e,t,n=Xe){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function sy(e,t,n,r){let i=r.get(af,sf)||n===It.ShadowDom,s=e.selectRootElement(t,i);return ay(s),s}function ay(e){cy(e)}var cy=()=>null;function ly(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function uy(e,t,n,r,o,i){let s=t[I];if(Zc(e,s,t,n,r)){ln(e)&&dy(t,e.index);return}e.type&3&&(n=ly(n)),Sf(e,t,n,r,o,i)}function Sf(e,t,n,r,o,i){if(e.type&3){let s=Xe(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function dy(e,t){let n=ut(t,e);n[M]&16||(n[M]|=64)}function fy(e,t,n){let r=n.directiveStart,o=n.directiveEnd;ln(n)&&Fg(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Gd(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Ai(t,e,s,n);if(er(c,t),i!==null&&vy(t,s-r,c,a,n,i),un(a)){let l=ut(n.index,t);l[se]=Ai(t,e,s,n)}}}function py(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Xu();try{Ot(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];pi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&hy(c,l)}}finally{Ot(-1),pi(s)}}function hy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function my(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];xg(t,i.selectors,!1)&&(r??=[],un(i)?r.unshift(i):r.push(i))}return r}function gy(e,t,n,r,o,i){let s=Xe(e,t);yy(t[J],s,i,e.value,n,r,o)}function yy(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?ri(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function vy(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];sc(r,n,c,l)}}function Nf(e,t,n,r,o){let i=pe+n,s=t[I],a=o(s,t,e,r,n);t[i]=a,Yn(e,!0);let c=e.type===2;return c?(hf(t[J],a,e),($u()===0||ui(e))&&er(a,t),Uu()):er(a,t),vi()&&(!c||!Oc(e))&&zc(s,t,a,e),e}function Af(e){let t=e;return ja()?qu():(t=t.parent,Yn(t,!1)),t}function Dy(e,t){let n=e[Dt];if(!n)return;let r;try{r=n.get(ft,null)}catch{r=null}r?.(t)}function Zc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];sc(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];sc(u,l,r,o),a=!0}return a}function Ey(e,t){let n=ut(t,e),r=n[I];by(r,n);let o=n[Qe];o!==null&&n[zn]===null&&(n[zn]=cf(o,n[Dt])),q(18),Yc(r,n,n[se]),q(19,n[se])}function by(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Yc(e,t,n){mi(t);try{let r=e.viewQuery;r!==null&&oc(1,r,n);let o=e.template;o!==null&&Mf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[lt]?.finishViewCreation(e),e.staticContentQueries&&lf(e,t),e.staticViewQueries&&oc(2,e.viewQuery,n);let i=e.components;i!==null&&Cy(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[M]&=-5,gi()}}function Cy(e,t){for(let n=0;n<t.length;n++)Ey(e,t[n])}function Qi(e,t,n,r){let o=T(null);try{let i=t.tView,a=e[M]&4096?4096:16,c=jc(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Rt]=l;let u=e[lt];return u!==null&&(c[lt]=u.createEmbeddedView(i)),Yc(i,c,n),c}finally{T(o)}}function kr(e,t){return!t||t.firstChild===null||Kd(e)}function Or(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ge(i)),Ke(i)&&Rf(i,r);let s=n.type;if(s&8)Or(e,t,n.child,r);else if(s&32){let a=Vc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Tf(t,n);if(Array.isArray(a))r.push(...a);else{let c=At(t[Ue]);Or(c[I],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Rf(e,t){for(let n=ie;n<e.length;n++){let r=e[n],o=r[I].firstChild;o!==null&&Or(r[I],r,o,t)}e[kt]!==e[Qe]&&t.push(e[kt])}function kf(e){if(e[li]!==null){for(let t of e[li])t.impl.addSequence(t);e[li].length=0}}var Of=[];function _y(e){return e[ke]??wy(e)}function wy(e){let t=Of.pop()??Object.create(Ty);return t.lView=e,t}function Iy(e){e.lView[ke]!==e&&(e.lView=null,Of.push(e))}var Ty=ne(Z({},Ht),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{fn(e.lView)},consumerOnSignalRead(){this.lView[ke]=this}});function My(e){let t=e[ke]??Object.create(xy);return t.lView=e,t}var xy=ne(Z({},Ht),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=At(e.lView);for(;t&&!Pf(t[I]);)t=At(t);t&&Na(t)},consumerOnSignalRead(){this.lView[ke]=this}});function Pf(e){return e.type!==2}function Ff(e){if(e[bt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[bt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[M]&8192)}}var Sy=100;function Lf(e,t=0){let r=e[Et].rendererFactory,o=!1;o||r.begin?.();try{Ny(e,t)}finally{o||r.end?.()}}function Ny(e,t){let n=Ba();try{Qn(!0),uc(e,t);let r=0;for(;Tr(e);){if(r===Sy)throw new b(103,!1);r++,uc(e,1)}}finally{Qn(n)}}function Ay(e,t,n,r){if(dn(t))return;let o=t[M],i=!1,s=!1;mi(t);let a=!0,c=null,l=null;i||(Pf(e)?(l=_y(t),c=$t(l)):Eo()===null?(a=!1,l=My(t),c=$t(l)):t[ke]&&(Ut(t[ke]),t[ke]=null));try{Sa(t),Yu(e.bindingStartIndex),n!==null&&Mf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Ci(t,f,null)}else{let f=e.preOrderHooks;f!==null&&_i(t,f,0,null),qa(t,0)}if(s||Ry(t),Ff(t),jf(t,0),e.contentQueries!==null&&lf(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Ci(t,f)}else{let f=e.contentHooks;f!==null&&_i(t,f,1),qa(t,1)}Oy(e,t);let d=e.components;d!==null&&Vf(t,d,0);let p=e.viewQuery;if(p!==null&&oc(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Ci(t,f)}else{let f=e.viewHooks;f!==null&&_i(t,f,2),qa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ci]){for(let f of t[ci])f();t[ci]=null}i||(kf(t),t[M]&=-73)}catch(u){throw i||fn(t),u}finally{l!==null&&(Rn(l,c),a&&Iy(l)),gi()}}function jf(e,t){for(let n=Jd(e);n!==null;n=ef(n))for(let r=ie;r<n.length;r++){let o=n[r];Bf(o,t)}}function Ry(e){for(let t=Jd(e);t!==null;t=ef(t)){if(!(t[M]&2))continue;let n=t[cn];for(let r=0;r<n.length;r++){let o=n[r];Na(o)}}}function ky(e,t,n){q(18);let r=ut(t,e);Bf(r,n),q(19,r[se])}function Bf(e,t){di(e)&&uc(e,t)}function uc(e,t){let r=e[I],o=e[M],i=e[ke],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&kn(i)),s||=!1,i&&(i.dirty=!1),e[M]&=-9217,s)Ay(r,e,r.template,e[se]);else if(o&8192){let a=T(null);try{Ff(e),jf(e,1);let c=r.components;c!==null&&Vf(e,c,1),kf(e)}finally{T(a)}}}function Vf(e,t,n){for(let r=0;r<t.length;r++)ky(e,t[r],n)}function Oy(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Ot(~o);else{let i=o,s=n[++r],a=n[++r];Ku(s,i);let c=t[i];q(24,c),a(2,c),q(25,c)}}}finally{Ot(-1)}}function Qc(e,t){let n=Ba()?64:1088;for(e[Et].changeDetectionScheduler?.notify(t);e;){e[M]|=n;let r=At(e);if(Zn(e)&&!r)return e;e=r}return null}function Hf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function $f(e,t){let n=ie+t;if(n<e.length)return e[n]}function Ki(e,t,n,r=!0){let o=t[I];if(Py(o,t,e,n),r){let s=lc(n,e),a=t[J],c=a.parentNode(e[kt]);c!==null&&qg(o,e[$e],a,t,c,s)}let i=t[zn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Uf(e,t){let n=Pr(e,t);return n!==void 0&&Zi(n[I],n),n}function Pr(e,t){if(e.length<=ie)return;let n=ie+t,r=e[n];if(r){let o=r[Rt];o!==null&&o!==e&&Gc(o,r),t>0&&(e[n-1][He]=r[He]);let i=Dr(e,ie+t);Wg(r[I],r);let s=i[lt];s!==null&&s.detachView(i[I]),r[fe]=null,r[He]=null,r[M]&=-129}return r}function Py(e,t,n,r){let o=ie+r,i=n.length;r>0&&(n[o-1][He]=t),r<i-ie?(t[He]=n[o],ga(n,ie+r,t)):(n.push(t),t[He]=null),t[fe]=n;let s=t[Rt];s!==null&&n!==s&&Gf(s,t);let a=t[lt];a!==null&&a.insertView(e),fi(t),t[M]|=128}function Gf(e,t){let n=e[cn],r=t[fe];if(Ct(r))e[M]|=2;else{let o=r[fe][Ue];t[Ue]!==o&&(e[M]|=2)}n===null?e[cn]=[t]:n.push(t)}var tr=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[I];return Or(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[se]}set context(t){this._lView[se]=t}get destroyed(){return dn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[fe];if(Ke(t)){let n=t[wr],r=n?n.indexOf(this):-1;r>-1&&(Pr(t,r),Dr(n,r))}this._attachedToViewContainer=!1}Zi(this._lView[I],this._lView)}onDestroy(t){Aa(this._lView,t)}markForCheck(){Qc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){fi(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,Lf(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Zn(this._lView),n=this._lView[Rt];n!==null&&!t&&Gc(n,this._lView),If(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t;let n=Zn(this._lView),r=this._lView[Rt];r!==null&&!n&&Gf(r,this._lView),fi(this._lView)}};var nr=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Fy;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=Qi(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new tr(i)}}return e})();function Fy(){return Kc(Oe(),V())}function Kc(e,t){return e.type&4?new nr(t,e,or(e,t)):null}function Xi(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ly(e,t,n,r,o),Qu()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Wu();i.injectorIndex=s===null?-1:s.injectorIndex}return Yn(i,!0),i}function Ly(e,t,n,r,o){let i=La(),s=ja(),a=s?i:i&&i.parent,c=e.data[t]=By(e,a,n,t,r,o);return jy(e,c,i,s),c}function jy(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function By(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return zu()&&(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:Ua(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var NM=new RegExp(`^(\\d+)*(${mg}|${hg})*(.*)`);function Vy(e){let t=e[wa]??[],r=e[fe][J],o=[];for(let i of t)i.data[of]!==void 0?o.push(i):Hy(i,r);e[wa]=o}function Hy(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[rf];for(;n<o;){let i=r.nextSibling;pf(t,r,!1),r=i,n++}}}var $y=()=>null,Uy=()=>null;function dc(e,t){return $y(e,t)}function zf(e,t,n){return Uy(e,t,n)}var Wf=class{},Ji=class{},fc=class{resolveComponentFactory(t){throw new b(917,!1)}},es=class{static NULL=new fc},yn=class{};var qf=(()=>{class e{static \u0275prov=H({token:e,providedIn:"root",factory:()=>null})}return e})();var Ii={},pc=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Ii,r);return o!==Ii||n===Ii?o:this.parentInjector.get(t,n,r)}};function Fi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Jo(o,a);else if(i==2){let c=a,l=t[++s];r=Jo(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function En(e,t=0){let n=V();if(n===null)return L(e,t);let r=Oe();return Zd(r,n,Re(e),t)}function Gy(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}qy(e,t,n,a,i,c,l)}i!==null&&r!==null&&zy(n,r,i)}function zy(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new b(-301,!1);r.push(t[o],i)}}function Wy(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function qy(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&un(f)&&(c=!0,Wy(e,n,p)),ng(Gd(n,t),e,f.type)}Jy(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=yf(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Ui(n.mergedAttrs,f.hostAttrs),Yy(e,n,t,d,f),Xy(d,f,o),s!==null&&s.has(f)){let[_,w]=s.get(f);n.directiveToIndex.set(f.type,[d,_+n.directiveStart,w+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let y=f.type.prototype;!l&&(y.ngOnChanges||y.ngOnInit||y.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(y.ngOnChanges||y.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}Zy(e,n,i)}function Zy(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))_d(0,t,o,r),_d(1,t,o,r),Id(t,r,!1);else{let i=n.get(o);wd(0,t,i,r),wd(1,t,i,r),Id(t,r,!0)}}}function _d(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Zf(t,i)}}function wd(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Zf(t,s)}}function Zf(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Id(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Fc(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Yy(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Qt(o.type,!0)),s=new Rr(i,un(o),En,null);e.blueprint[r]=s,n[r]=s,Qy(e,t,r,yf(e,n,o.hostVars,ze),o)}function Qy(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Ky(s)!=a&&s.push(a),s.push(n,r,i)}}function Ky(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Xy(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;un(t)&&(n[""]=e)}}function Jy(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Yf(e,t,n,r,o,i,s,a){let c=t[I],l=c.consts,u=dt(l,s),d=Xi(c,e,n,r,u);return i&&Gy(c,t,d,dt(l,a),o),d.mergedAttrs=Ui(d.mergedAttrs,d.attrs),d.attrs!==null&&Fi(d,d.attrs,!1),d.mergedAttrs!==null&&Fi(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Qf(e,t){zm(e,t),Ia(t)&&e.queries.elementEnd(t)}function ev(e,t,n,r,o,i){let s=t.consts,a=dt(s,o),c=Xi(t,e,n,r,a);if(c.mergedAttrs=Ui(c.mergedAttrs,c.attrs),i!=null){let l=dt(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Fi(c,c.attrs,!1),c.mergedAttrs!==null&&Fi(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function tv(e,t,n){return e[t]=n}function mt(e,t,n){if(n===ze)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function nv(e,t,n,r){let o=mt(e,t,n);return mt(e,t+1,r)||o}function Ti(e,t,n){return function r(o){let i=ln(e)?ut(e.index,t):t;Qc(i,5);let s=t[se],a=Td(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Td(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Td(e,t,n,r){let o=T(null);try{return q(6,t,n),n(r)!==!1}catch(i){return Dy(e,i),!1}finally{q(7,t,n),T(o)}}function Kf(e,t,n,r,o,i,s,a){let c=ui(e),l=!1,u=null;if(!r&&c&&(u=ov(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=Xe(e,n),p=r?r(d):d;yg(n,p,i,a);let f=o.listen(p,i,a);if(!rv(i)){let y=r?_=>r(Ge(_[e.index])):e.index;Xf(y,t,n,i,a,f,!1)}}return l}function rv(e){return e.startsWith("animation")||e.startsWith("transition")}function ov(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Wn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Xf(e,t,n,r,o,i,s){let a=t.firstCreatePass?ka(t):null,c=Ra(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function Md(e,t,n,r,o,i){let s=t[n],a=t[I],l=a.data[n].outputs[r],d=s[l].subscribe(i);Xf(e.index,a,t,o,i,d,!0)}var hc=Symbol("BINDING");var mc=class extends es{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=rn(t);return new Fr(n,this.ngModule)}};function iv(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&qi.SignalBased)!==0};return o&&(i.transform=o),i})}function sv(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function av(e,t,n){let r=t instanceof Me?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new pc(n,r):n}function cv(e){let t=e.get(yn,null);if(t===null)throw new b(407,!1);let n=e.get(qf,null),r=e.get(ct,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function lv(e,t){let n=Jf(e);return df(t,n,n==="svg"?Ta:n==="math"?Fu:null)}function uv(e){if(e?.toLowerCase()==="script")throw new b(905,!1)}function Jf(e){return(e.selectors[0][0]||"div").toLowerCase()}var Fr=class extends Ji{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=iv(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=sv(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Rg(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){q(22);let a=T(null);try{let c=this.componentDef,l=dv(r,c,s,i),u=av(c,o||this.ngModule,t),d=cv(u),p=d.rendererFactory.createRenderer(null,c),f=r?sy(p,r,c.encapsulation,u):lv(c,p);uv(f?.tagName);let y=s?.some(xd)||i?.some(C=>typeof C!="function"&&C.bindings.some(xd)),_=jc(null,l,null,512|gf(c),null,null,d,p,u,null,cf(f,u,!0));_[pe]=f,mi(_);let w=null;try{let C=Yf(pe,_,2,"#host",()=>l.directiveRegistry,!0,0);hf(p,f,C),er(f,_),xf(l,_,C),uf(l,C,_),Qf(l,C),n!==void 0&&pv(C,this.ngContentSelectors,n),w=ut(C.index,_),_[se]=w[se],Yc(l,_,null)}catch(C){throw w!==null&&nc(w),nc(_),C}finally{q(23),gi()}return new Li(this.componentType,_,!!y)}finally{T(a)}}};function dv(e,t,n,r){let o=e?["ng-version","20.3.29"]:kg(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[hc].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[hc].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=Da(d);c.push(p)}return Lc(0,null,fv(i,s),1,a,c,null,null,null,[o],null)}function fv(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function xd(e){let t=e[hc].kind;return t==="input"||t==="twoWay"}var Li=class extends Wf{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ir(n[I],pe),this.location=or(this._tNode,n),this.instance=ut(this._tNode.index,n)[se],this.hostView=this.changeDetectorRef=new tr(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Zc(r,o[I],o,t,n);this.previousInputValues.set(t,n);let s=ut(r.index,o);Qc(s,1)}get injector(){return new mn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function pv(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var $r=(()=>{class e{static __NG_ELEMENT_ID__=hv}return e})();function hv(){let e=Oe();return tp(e,V())}var mv=$r,ep=class extends mv{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return or(this._hostTNode,this._hostLView)}get injector(){return new mn(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ac(this._hostTNode,this._hostLView);if(Hd(t)){let n=Si(t,this._hostLView),r=xi(t),o=n[I].data[r+8];return new mn(o,n)}else return new mn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Sd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ie}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=dc(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,kr(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Bm(t),l;if(c)l=n;else{let w=n||{};l=w.index,r=w.injector,o=w.projectableNodes,i=w.environmentInjector||w.ngModuleRef,s=w.directives,a=w.bindings}let u=c?t:new Fr(rn(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let C=(c?d:this.parentInjector).get(Me,null);C&&(i=C)}let p=rn(u.componentType??{}),f=dc(this._lContainer,p?.id??null),y=f?.firstChild??null,_=u.create(d,o,y,i,s,a);return this.insertImpl(_.hostView,l,kr(this._hostTNode,f)),_}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ju(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[fe],l=new ep(c,c[$e],c[fe]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Ki(s,o,i,r),t.attachToViewContainerRef(),ga(Qa(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Sd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Pr(this._lContainer,n);r&&(Dr(Qa(this._lContainer),n),Zi(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=Pr(this._lContainer,n);return r&&Dr(Qa(this._lContainer),n)!=null?new tr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Sd(e){return e[wr]}function Qa(e){return e[wr]||(e[wr]=[])}function tp(e,t){let n,r=t[e.index];return Ke(r)?n=r:(n=Hf(r,t,null,e),t[e.index]=n,Bc(t,n)),yv(n,t,e,r),new ep(n,e,t)}function gv(e,t){let n=e[J],r=n.createComment(""),o=Xe(t,e),i=n.parentNode(o);return ki(n,i,r,n.nextSibling(o),!1),r}var yv=Ev,vv=()=>!1;function Dv(e,t,n){return vv(e,t,n)}function Ev(e,t,n,r){if(e[kt])return;let o;n.type&8?o=Ge(r):o=gv(t,n),e[kt]=o}var gc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},yc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)op(t,n).matches!==null&&this.queries[n].setDirty()}},vc=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Mv(t):this.predicate=t}},Dc=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Ec=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,bv(n,i)),this.matchTNodeWithReadOption(t,n,wi(n,t,i,!1,!1))}else r===nr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,wi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===ir||o===$r||o===nr&&n.type&4)this.addMatch(n.index,-2);else{let i=wi(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function bv(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Cv(e,t){return e.type&11?or(e,t):e.type&4?Kc(e,t):null}function _v(e,t,n,r){return n===-1?Cv(t,e):n===-2?wv(e,t,r):Ai(e,e[I],n,t)}function wv(e,t,n){if(n===ir)return or(t,e);if(n===nr)return Kc(t,e);if(n===$r)return tp(t,e)}function np(e,t,n,r){let o=t[lt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(_v(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function bc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=np(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=ie;d<u.length;d++){let p=u[d];p[Rt]===p[fe]&&bc(p[I],p,l,r)}if(u[cn]!==null){let d=u[cn];for(let p=0;p<d.length;p++){let f=d[p];bc(f[I],f,l,r)}}}}}return r}function rp(e,t){return e[lt].queries[t].queryList}function Iv(e,t,n){let r=new Ri((n&4)===4);return Hu(e,t,r,r.destroy),(t[lt]??=new yc).queries.push(new gc(r))-1}function Tv(e,t,n){let r=_e();return r.firstCreatePass&&(xv(r,new vc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Iv(r,V(),t)}function Mv(e){return e.split(",").map(t=>t.trim())}function xv(e,t,n){e.queries===null&&(e.queries=new Dc),e.queries.track(new Ec(t,n))}function op(e,t){return e.queries.getByIndex(t)}function Sv(e,t){let n=e[I],r=op(n,t);return r.crossesNgTemplate?bc(n,e,t,[]):np(n,e,r,t)}function ip(e,t,n){let r,o=ur(()=>{r._dirtyCounter();let i=Av(r,e);if(t&&i===void 0)throw new b(-951,!1);return i});return r=o[ve],r._dirtyCounter=R(0),r._flatValue=void 0,o}function sp(e){return ip(!0,!1,e)}function ap(e){return ip(!0,!0,e)}function Nv(e,t){let n=e[ve];n._lView=V(),n._queryIndex=t,n._queryList=rp(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function Av(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[M]&4)return t?void 0:Ze;let o=rp(n,r),i=Sv(n,r);return o.reset(i,cg),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var Lr=class{};var jr=class extends Lr{injector;componentFactoryResolver=new mc(this);instance=null;constructor(t){super();let n=new Kt([...t.providers,{provide:Lr,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],t.parent||Cr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function cp(e,t,n=null){return new jr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Rv=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Ea(!1,n.type),o=r.length>0?cp([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=H({token:e,providedIn:"environment",factory:()=>new e(L(Me))})}return e})();function Te(e){return Fd(()=>{let t=Fv(e),n=ne(Z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Rv).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||It.Emulated,styles:e.styles||Ze,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Dn("NgStandalone"),Lv(n);let r=e.dependencies;return n.directiveDefs=Nd(r,kv),n.pipeDefs=Nd(r,Su),n.id=jv(n),n})}function kv(e){return rn(e)||Da(e)}function Ov(e,t){if(e==null)return tn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=qi.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function Pv(e){if(e==null)return tn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Xc(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Fv(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||tn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ze,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:Ov(e.inputs,t),outputs:Pv(e.outputs),debugInfo:null}}function Lv(e){e.features?.forEach(t=>t(e))}function Nd(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function jv(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Bv(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Ui(e.mergedAttrs,e.attrs);let u=e.tView=Lc(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Yn(e,!1);let c=Vv(n,t,e,r);vi()&&zc(n,t,c,e),er(c,t);let l=Hf(c,t,c,e);t[r+pe]=l,Bc(t,l),Dv(l,e,t)}function ji(e,t,n,r,o,i,s,a,c,l,u){let d=n+pe,p;if(t.firstCreatePass){if(p=Xi(t,d,4,s||null,a||null),l!=null){let f=dt(t.consts,l);p.localNames=[];for(let y=0;y<f.length;y+=2)p.localNames.push(f[y],-1)}}else p=t.data[d];return Bv(p,e,t,n,r,o,i,c),l!=null&&qc(e,p,u),p}var Vv=Hv;function Hv(e,t,n,r){return Di(!0),t[J].createComment("")}var Jc=new x("");function ts(e){return!!e&&typeof e.then=="function"}function el(e){return!!e&&typeof e.subscribe=="function"}var lp=new x("");var tl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=E(lp,{optional:!0})??[];injector=E(Ye);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Gn(this.injector,o);if(ts(i))n.push(i);else if(el(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),up=new x("");function dp(){Ps(()=>{let e="";throw new b(600,e)})}function fp(e){return e.isBoundToModule}var $v=10;var Ur=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=E(ft);afterRenderManager=E(Cf);zonelessEnabled=E(xr);rootEffectScheduler=E(Sr);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new at;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=E(Pt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Be(n=>!n))}constructor(){E(Hr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=E(Me);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ye.NULL){return this._injector.get(he).run(()=>{q(10);let s=n instanceof Ji;if(!this._injector.get(tl).done){let y="";throw new b(405,y)}let c;s?c=n:c=this._injector.get(es).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=fp(c)?void 0:this._injector.get(Lr),u=r||c.selector,d=c.create(o,[],u,l),p=d.location.nativeElement,f=d.injector.get(Jc,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),Ar(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),q(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){q(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Hc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new b(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,T(n),this.afterTick.next(),q(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(yn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<$v;)q(14),this.synchronizeOnce(),q(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&&!Tr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Lf(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})=>Tr(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;Ar(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(up,[]).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),()=>Ar(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ar(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xe(e,t,n,r){let o=V(),i=pn();if(mt(o,i,t)){let s=_e(),a=yi();gy(a,o,e,t,n,r)}return xe}var FM=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Cc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Ka(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Uv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=Ka(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=t[c],y=Ka(s,p,c,f,n);if(y!==0){y<0&&e.updateValue(s,f),s--,c--;continue}let _=n(i,l),w=n(s,p),C=n(i,u);if(Object.is(C,w)){let ge=n(c,f);Object.is(ge,_)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new Bi,o??=Rd(e,i,s,n),_c(e,r,i,C))e.updateValue(i,u),i++,s++;else if(o.has(C))r.set(_,e.detach(i)),s--;else{let ge=e.create(i,t[i]);e.attach(i,ge),i++,s++}}for(;i<=c;)Ad(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,p=Ka(i,u,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new Bi,o??=Rd(e,i,s,n);let f=n(i,d);if(_c(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let y=n(i,u);r.set(y,e.detach(i)),s--}}}for(;!l.done;)Ad(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function _c(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Ad(e,t,n,r,o){if(_c(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Rd(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Bi=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function S(e,t,n,r,o,i,s,a){Dn("NgControlFlow");let c=V(),l=_e(),u=dt(l.consts,i);return ji(c,l,e,t,n,r,o,u,256,s,a),nl}function nl(e,t,n,r,o,i,s,a){Dn("NgControlFlow");let c=V(),l=_e(),u=dt(l.consts,i);return ji(c,l,e,t,n,r,o,u,512,s,a),nl}function N(e,t){Dn("NgControlFlow");let n=V(),r=pn(),o=n[r]!==ze?n[r]:-1,i=o!==-1?Vi(n,pe+o):void 0,s=0;if(mt(n,r,e)){let a=T(null);try{if(i!==void 0&&Uf(i,s),e!==-1){let c=pe+e,l=Vi(n,c),u=Mc(n[I],c),d=zf(l,u,n),p=Qi(n,u,t,{dehydratedView:d});Ki(l,p,s,kr(u,d))}}finally{T(a)}}else if(i!==void 0){let a=$f(i,s);a!==void 0&&(a[se]=t)}}var wc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ie}};function bn(e){return e}var Ic=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Se(e,t,n,r,o,i,s,a,c,l,u,d,p){Dn("NgControlFlow");let f=V(),y=_e(),_=c!==void 0,w=V(),C=a?s.bind(w[Ue][se]):s,ge=new Ic(_,C);w[pe+e]=ge,ji(f,y,e+1,t,n,r,o,dt(y.consts,i),256),_&&ji(f,y,e+2,c,l,u,d,dt(y.consts,p),512)}var Tc=class extends Cc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ie}at(t){return this.getLView(t)[se].$implicit}attach(t,n){let r=n[zn];this.needsIndexUpdate||=t!==this.length,Ki(this.lContainer,n,t,kr(this.templateTNode,r)),Gv(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,zv(this.lContainer,t),Wv(this.lContainer,t)}create(t,n){let r=dc(this.lContainer,this.templateTNode.tView.ssrId),o=Qi(this.hostLView,this.templateTNode,new wc(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Zi(t[I],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[se].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[se].$index=t}getLView(t){return qv(this.lContainer,t)}};function Ne(e){let t=T(null),n=_t();try{let r=V(),o=r[I],i=r[n],s=n+1,a=Vi(r,s);if(i.liveCollection===void 0){let l=Mc(o,s);i.liveCollection=new Tc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(Uv(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=pn(),u=c.length===0;if(mt(r,l,u)){let d=n+2,p=Vi(r,d);if(u){let f=Mc(o,d),y=zf(p,f,r),_=Qi(r,f,void 0,{dehydratedView:y});Ki(p,_,0,kr(f,y))}else o.firstUpdatePass&&Vy(p),Uf(p,0)}}}finally{T(t)}}function Vi(e,t){return e[t]}function Gv(e,t){if(e.length<=ie)return;let n=ie+t,r=e[n],o=r?r[an]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Dt];Gg(i,o),gn.delete(r),o.detachedLeaveAnimationFns=void 0}}function zv(e,t){if(e.length<=ie)return;let n=ie+t,r=e[n],o=r?r[an]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Wv(e,t){return Pr(e,t)}function qv(e,t){return $f(e,t)}function Mc(e,t){return Ir(e,t)}function nt(e,t,n){let r=V(),o=pn();if(mt(r,o,t)){let i=_e(),s=yi();uy(s,r,e,t,r[J],n)}return nt}function xc(e,t,n,r,o){Zc(t,e,n,o?"class":"style",r)}function O(e,t,n,r){let o=V(),i=o[I],s=e+pe,a=i.firstCreatePass?Yf(s,o,2,t,my,Gu(),n,r):i.data[s];if(Nf(a,o,e,t,pp),ui(a)){let c=o[I];xf(c,o,a),uf(c,a,o)}return r!=null&&qc(o,a),O}function k(){let e=_e(),t=Oe(),n=Af(t);return e.firstCreatePass&&Qf(e,n),Pa(n)&&Fa(),Oa(),n.classesWithoutHost!=null&&qm(n)&&xc(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Zm(n)&&xc(e,n,V(),n.stylesWithoutHost,!1),k}function Ft(e,t,n,r){return O(e,t,n,r),k(),Ft}function m(e,t,n,r){let o=V(),i=o[I],s=e+pe,a=i.firstCreatePass?ev(s,i,2,t,n,r):i.data[s];return Nf(a,o,e,t,pp),r!=null&&qc(o,a),m}function g(){let e=Oe(),t=Af(e);return Pa(t)&&Fa(),Oa(),g}function K(e,t,n,r){return m(e,t,n,r),g(),K}var pp=(e,t,n,r,o)=>(Di(!0),df(t[J],r,Ua()));function ee(){return V()}function le(e,t,n){let r=V(),o=pn();if(mt(r,o,t)){let i=_e(),s=yi();Sf(s,r,e,t,r[J],n)}return le}var Ei=void 0;function Zv(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Yv=["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"]],Ei,[["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"]],Ei,[["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}",Ei,"{1} 'at' {0}",Ei],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Zv],Xa={};function Fe(e){let t=Qv(e),n=kd(t);if(n)return n;let r=t.split("-")[0];if(n=kd(r),n)return n;if(r==="en")return Yv;throw new b(701,!1)}function kd(e){if(!(e in Xa)){let t=Jt.ng&&Jt.ng.common&&Jt.ng.common.locales&&Jt.ng.common.locales[e];return t!==void 0&&(Xa[e]=t),t}return Xa[e]}var ae=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(ae||{});function Qv(e){return e.toLowerCase().replace(/_/g,"-")}var Gr="en-US";var Kv=Gr;function hp(e){typeof e=="string"&&(Kv=e.toLowerCase().replace(/_/g,"-"))}function ue(e,t,n){let r=V(),o=_e(),i=Oe();return Xv(o,r,r[J],i,e,t,n),ue}function P(e,t,n){let r=V(),o=_e(),i=Oe();return(i.type&3||n)&&Kf(i,o,r,n,r[J],e,t,Ti(i,r,t)),P}function Xv(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Ti(r,t,i),Kf(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=Ti(r,t,i),Md(r,t,p,f,o,c)}if(l&&l.length)for(let d of l)c??=Ti(r,t,i),Md(r,t,d,o,o,c)}}function D(e=1){return od(e)}function zr(e,t,n,r){Nv(e,Tv(t,n,r))}function Wr(e=1){hi(ed()+e)}function bi(e,t){return e<<17|t<<2}function vn(e){return e>>17&32767}function Jv(e){return(e&2)==2}function eD(e,t){return e&131071|t<<17}function Sc(e){return e|2}function rr(e){return(e&131068)>>2}function Ja(e,t){return e&-131069|t<<2}function tD(e){return(e&1)===1}function Nc(e){return e|1}function nD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=vn(s),c=rr(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Un(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=vn(e[a+1]);e[r+1]=bi(p,a),p!==0&&(e[p+1]=Ja(e[p+1],r)),e[a+1]=eD(e[a+1],r)}else e[r+1]=bi(a,0),a!==0&&(e[a+1]=Ja(e[a+1],r)),a=r;else e[r+1]=bi(c,0),a===0?a=r:e[c+1]=Ja(e[c+1],r),c=r;l&&(e[r+1]=Sc(e[r+1])),Od(e,u,r,!0),Od(e,u,r,!1),rD(t,u,e,r,i),s=bi(a,c),i?t.classBindings=s:t.styleBindings=s}function rD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Un(i,t)>=0&&(n[r+1]=Nc(n[r+1]))}function Od(e,t,n,r){let o=e[n+1],i=t===null,s=r?vn(o):rr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];oD(c,t)&&(a=!0,e[s+1]=r?Nc(l):Sc(l)),s=r?vn(l):rr(l)}a&&(e[n+1]=r?Sc(o):Nc(o))}function oD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Un(e,t)>=0:!1}var tt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function iD(e){return e.substring(tt.key,tt.keyEnd)}function sD(e){return aD(e),mp(e,gp(e,0,tt.textEnd))}function mp(e,t){let n=tt.textEnd;return n===t?-1:(t=tt.keyEnd=cD(e,tt.key=t,n),gp(e,t,n))}function aD(e){tt.key=0,tt.keyEnd=0,tt.value=0,tt.valueEnd=0,tt.textEnd=e.length}function gp(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function cD(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function me(e,t,n){return yp(e,t,n,!1),me}function yt(e,t){return yp(e,t,null,!0),yt}function Cn(e){uD(gD,lD,e,!0)}function lD(e,t){for(let n=sD(t);n>=0;n=mp(t,n))si(e,iD(t),!0)}function yp(e,t,n,r){let o=V(),i=_e(),s=Va(2);if(i.firstUpdatePass&&Dp(i,e,s,r),t!==ze&&mt(o,s,t)){let a=i.data[_t()];Ep(i,a,o,o[J],e,o[s+1]=vD(t,n),r,s)}}function uD(e,t,n,r){let o=_e(),i=Va(2);o.firstUpdatePass&&Dp(o,null,i,r);let s=V();if(n!==ze&&mt(s,i,n)){let a=o.data[_t()];if(bp(a,r)&&!vp(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Jo(c,n||"")),xc(o,a,s,n,r)}else yD(o,a,s,s[J],s[i+1],s[i+1]=mD(e,t,n),r,i)}}function vp(e,t){return t>=e.expandoStartIndex}function Dp(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[_t()],s=vp(e,n);bp(i,r)&&t===null&&!s&&(t=!1),t=dD(o,i,t,r),nD(o,i,t,n,s,r)}}function dD(e,t,n,r){let o=Ju(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ec(null,e,t,n,r),n=Br(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ec(o,e,t,n,r),i===null){let c=fD(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ec(null,e,t,c[1],r),c=Br(c,t.attrs,r),pD(e,t,r,c))}else i=hD(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function fD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(rr(r)!==0)return e[vn(r)]}function pD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[vn(o)]=r}function hD(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Br(r,s,n)}return Br(r,t.attrs,n)}function ec(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Br(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Br(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),si(e,s,n?!0:t[++i]))}return e===void 0?null:e}function mD(e,t,n){if(n==null||n==="")return Ze;let r=[],o=Pc(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function gD(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&si(e,r,n)}function yD(e,t,n,r,o,i,s,a){o===ze&&(o=Ze);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,y=null,_;u===d?(c+=2,l+=2,p!==f&&(y=d,_=f)):d===null||u!==null&&u<d?(c+=2,y=u):(l+=2,y=d,_=f),y!==null&&Ep(e,t,n,r,y,_,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Ep(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=tD(l)?Pd(c,t,n,o,rr(l),s):void 0;if(!Hi(u)){Hi(i)||Jv(l)&&(i=Pd(c,null,n,o,a,s));let d=Ma(_t(),n);iy(r,s,d,o,i)}}function Pd(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===ze&&(p=d?Ze:void 0);let f=d?ai(p,r):u===r?p:void 0;if(l&&!Hi(f)&&(f=ai(c,r)),Hi(f)&&(a=f,s))return a;let y=e[o+1];o=s?vn(y):rr(y)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ai(c,r))}return a}function Hi(e){return e!==void 0}function vD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Nt(Pc(e)))),e}function bp(e,t){return(e.flags&(t?8:16))!==0}function v(e,t=""){let n=V(),r=_e(),o=e+pe,i=r.firstCreatePass?Xi(r,o,1,t,null):r.data[o],s=DD(r,n,i,t,e);n[o]=s,vi()&&zc(r,n,s,i),Yn(i,!1)}var DD=(e,t,n,r,o)=>(Di(!0),Dg(t[J],r));function ED(e,t,n,r=""){return mt(e,pn(),n)?t+ri(n)+r:ze}function U(e){return te("",e),U}function te(e,t,n){let r=V(),o=ED(r,e,t,n);return o!==ze&&bD(r,_t(),o),te}function bD(e,t,n){let r=Ma(t,e);Eg(e[J],r,n)}function CD(e,t){let n=e[t];return n===ze?void 0:n}function _D(e,t,n,r,o,i,s){let a=t+n;return nv(e,a,o,i)?tv(e,a+2,s?r.call(s,o,i):r(o,i)):CD(e,a+2)}function qr(e,t){let n=_e(),r,o=e+pe;n.firstCreatePass?(r=wD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Qt(r.type,!0)),s,a=Ie(En);try{let c=Ni(!1),l=i();return Ni(c),xa(n,V(),o,l),l}finally{Ie(a)}}function wD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Zr(e,t,n,r){let o=e+pe,i=V(),s=Lu(i,o);return ID(i,o)?_D(i,Zu(),t,s.transform,n,r,s):s.transform(n,r)}function ID(e,t){return e[I].data[t].pure}var TD=(()=>{class e{zone=E(he);changeDetectionScheduler=E(ct);applicationRef=E(Ur);applicationErrorHandler=E(ft);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cp=new x("",{factory:()=>!1});function rl({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new he(ne(Z({},il()),{scheduleInRootZone:n})),[{provide:he,useFactory:e},{provide:nn,multi:!0,useFactory:()=>{let r=E(TD,{optional:!0});return()=>r.initialize()}},{provide:nn,multi:!0,useFactory:()=>{let r=E(MD);return()=>{r.initialize()}}},t===!0?{provide:za,useValue:!0}:[],{provide:Wa,useValue:n??Df},{provide:ft,useFactory:()=>{let r=E(he),o=E(Me),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Ve),i.handleError(s))})}}}]}function ol(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=rl({ngZoneFactory:()=>{let o=il(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Dn("NgZone_CoalesceEvent"),new he(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Er([{provide:Cp,useValue:!0},{provide:xr,useValue:!1},r])}function il(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var MD=(()=>{class e{subscription=new De;initialized=!1;zone=E(he);pendingTasks=E(Pt);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(()=>{he.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{he.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _p=(()=>{class e{applicationErrorHandler=E(ft);appRef=E(Ur);taskService=E(Pt);ngZone=E(he);zonelessEnabled=E(xr);tracing=E(Hr,{optional:!0});disableScheduling=E(za,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new De;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Oi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(E(Wa,{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 Pi||!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?yd:Ef;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(Oi+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,yd(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xD(){return typeof $localize<"u"&&$localize.locale||Gr}var Yr=new x("",{providedIn:"root",factory:()=>E(Yr,{optional:!0,skipSelf:!0})||xD()});var ns=class{destroyed=!1;listeners=null;errorHandler=E(Ve,{optional:!0});destroyRef=E(Je);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new b(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(Xt(953,!1));return}if(this.listeners===null)return;let n=T(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{T(n)}}};function Qr(e){return gu(e)}function G(e,t){return ur(e,t?.equal)}var sl=class{[ve];constructor(t){this[ve]=t}destroy(){this[ve].destroy()}};function rt(e,t){let n=t?.injector??E(Ye),r=t?.manualCleanup!==!0?n.get(Je):null,o,i=n.get(Mr,null,{optional:!0}),s=n.get(ct);return i!==null?(o=AD(i.view,s,e),r instanceof vr&&r._lView===i.view&&(r=null)):o=RD(e,n.get(Sr),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new sl(o)}var wp=ne(Z({},yu),{cleanupFns:void 0,zone:null,onDestroyFn:hn,run(){let e=Qn(!1);try{vu(this)}finally{Qn(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=T(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],T(e)}}}),SD=ne(Z({},wp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Ut(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),ND=ne(Z({},wp),{consumerMarkedDirty(){this.view[M]|=8192,fn(this.view),this.notifier.notify(13)},destroy(){Ut(this),this.onDestroyFn(),this.cleanup(),this.view[bt]?.delete(this)}});function AD(e,t,n){let r=Object.create(ND);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Ip(r,n),e[bt]??=new Set,e[bt].add(r),r.consumerMarkedDirty(r),r}function RD(e,t,n){let r=Object.create(SD);return r.fn=Ip(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Ip(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}var xp=Symbol("InputSignalNode#UNSET"),YD=ne(Z({},wo),{transformFn:void 0,applyValueToInputSignal(e,t){Pn(e,t)}});function Sp(e,t){let n=Object.create(YD);n.value=e,n.transformFn=t?.transform;function r(){if(An(n),n.value===xp){let o=null;throw new b(-950,o)}return n.value}return r[ve]=n,r}var QD=new x("");QD.__NG_ELEMENT_ID__=e=>{let t=Oe();if(t===null)throw new b(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new b(204,!1)};function ce(e){return new ns}function Tp(e,t){return Sp(e,t)}function KD(e){return Sp(xp,e)}var X=(Tp.required=KD,Tp);function Mp(e,t){return sp(t)}function XD(e,t){return ap(t)}var os=(Mp.required=XD,Mp);var al=new x(""),JD=new x("");function Kr(e){return!e.moduleRef}function eE(e){let t=Kr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(he);return n.run(()=>{Kr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ft),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Kr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(al);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(al);s.add(i),e.moduleRef.onDestroy(()=>{Ar(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return nE(r,n,()=>{let i=t.get(Pt),s=i.add(),a=t.get(tl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Yr,Gr);if(hp(c||Gr),!t.get(JD,!0))return Kr(e)?t.get(Ur):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Kr(e)){let u=t.get(Ur);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return tE?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var tE;function nE(e,t,n){try{let r=n();return ts(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var rs=null;function rE(e=[],t){return Ye.create({name:t,providers:[{provide:br,useValue:"platform"},{provide:al,useValue:new Set([()=>rs=null])},...e]})}function oE(e=[]){if(rs)return rs;let t=rE(e);return rs=t,dp(),iE(t),t}function iE(e){let t=e.get(zi,null);Gn(e,()=>{t?.forEach(n=>n())})}function Np(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;q(8);try{let i=o?.injector??oE(r),s=[rl({}),{provide:ct,useExisting:_p},ad,...n||[]],a=new jr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return eE({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{q(9)}}var Ap=null;function Jr(){return Ap}function ll(e){Ap??=e}var Xr=class{};var we=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(we||{}),z=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(z||{}),Ae=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ae||{}),Mt={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 kp(e){return Fe(e)[ae.LocaleId]}function Op(e,t,n){let r=Fe(e),o=[r[ae.DayPeriodsFormat],r[ae.DayPeriodsStandalone]],i=We(o,t);return We(i,n)}function Pp(e,t,n){let r=Fe(e),o=[r[ae.DaysFormat],r[ae.DaysStandalone]],i=We(o,t);return We(i,n)}function Fp(e,t,n){let r=Fe(e),o=[r[ae.MonthsFormat],r[ae.MonthsStandalone]],i=We(o,t);return We(i,n)}function Lp(e,t){let r=Fe(e)[ae.Eras];return We(r,t)}function eo(e,t){let n=Fe(e);return We(n[ae.DateFormat],t)}function to(e,t){let n=Fe(e);return We(n[ae.TimeFormat],t)}function no(e,t){let r=Fe(e)[ae.DateTimeFormat];return We(r,t)}function ro(e,t){let n=Fe(e),r=n[ae.NumberSymbols][t];if(typeof r>"u"){if(t===Mt.CurrencyDecimal)return n[ae.NumberSymbols][Mt.Decimal];if(t===Mt.CurrencyGroup)return n[ae.NumberSymbols][Mt.Group]}return r}function jp(e){if(!e[ae.ExtraData])throw new b(2303,!1)}function Bp(e){let t=Fe(e);return jp(t),(t[ae.ExtraData][2]||[]).map(r=>typeof r=="string"?ul(r):[ul(r[0]),ul(r[1])])}function Vp(e,t,n){let r=Fe(e);jp(r);let o=[r[ae.ExtraData][0],r[ae.ExtraData][1]],i=We(o,t)||[];return We(i,n)||[]}function We(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new b(2304,!1)}function ul(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var sE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,is={},aE=/((?:[^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]*)/,cE=256;function Hp(e,t,n,r){let o=vE(e);lE(t),t=Tt(n,t)||t;let s=[],a;for(;t;)if(a=aE.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Up(r,c),o=yE(o,r));let l="";return s.forEach(u=>{let d=mE(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function lE(e){if(e.length>cE)throw new b(2300,!1)}function us(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Tt(e,t){let n=kp(e);if(is[n]??={},is[n][t])return is[n][t];let r="";switch(t){case"shortDate":r=eo(e,Ae.Short);break;case"mediumDate":r=eo(e,Ae.Medium);break;case"longDate":r=eo(e,Ae.Long);break;case"fullDate":r=eo(e,Ae.Full);break;case"shortTime":r=to(e,Ae.Short);break;case"mediumTime":r=to(e,Ae.Medium);break;case"longTime":r=to(e,Ae.Long);break;case"fullTime":r=to(e,Ae.Full);break;case"short":let o=Tt(e,"shortTime"),i=Tt(e,"shortDate");r=ss(no(e,Ae.Short),[o,i]);break;case"medium":let s=Tt(e,"mediumTime"),a=Tt(e,"mediumDate");r=ss(no(e,Ae.Medium),[s,a]);break;case"long":let c=Tt(e,"longTime"),l=Tt(e,"longDate");r=ss(no(e,Ae.Long),[c,l]);break;case"full":let u=Tt(e,"fullTime"),d=Tt(e,"fullDate");r=ss(no(e,Ae.Full),[u,d]);break}return r&&(is[n][t]=r),r}function ss(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function ot(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function uE(e,t){return ot(e,3).substring(0,t)}function de(e,t,n=0,r=!1,o=!1){return function(i,s){let a=dE(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return uE(a,t);let c=ro(s,Mt.MinusSign);return ot(a,t,c,r,o)}}function dE(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new b(2301,!1)}}function Y(e,t,n=we.Format,r=!1){return function(o,i){return fE(o,i,e,t,n,r)}}function fE(e,t,n,r,o,i){switch(n){case 2:return Fp(t,o,r)[e.getMonth()];case 1:return Pp(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Bp(t),u=Vp(t,o,r),d=l.findIndex(p=>{if(Array.isArray(p)){let[f,y]=p,_=s>=f.hours&&a>=f.minutes,w=s<y.hours||s===y.hours&&a<y.minutes;if(f.hours<y.hours){if(_&&w)return!0}else if(_||w)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return Op(t,o,r)[s<12?0:1];case 3:return Lp(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new b(2302,!1)}}function as(e){return function(t,n,r){let o=-1*r,i=ro(n,Mt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+ot(s,2,i)+ot(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+ot(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+ot(s,2,i)+":"+ot(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+ot(s,2,i)+":"+ot(Math.abs(o%60),2,i);default:throw new b(2310,!1)}}}var pE=0,ls=4;function hE(e){let t=us(e,pE,1).getDay();return us(e,0,1+(t<=ls?ls:ls+7)-t)}function $p(e){let t=e.getDay(),n=t===0?-3:ls-t;return us(e.getFullYear(),e.getMonth(),e.getDate()+n)}function dl(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=$p(n),s=hE(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return ot(o,e,ro(r,Mt.MinusSign))}}function cs(e,t=!1){return function(n,r){let i=$p(n).getFullYear();return ot(i,e,ro(r,Mt.MinusSign),t)}}var fl={};function mE(e){if(fl[e])return fl[e];let t;switch(e){case"G":case"GG":case"GGG":t=Y(3,z.Abbreviated);break;case"GGGG":t=Y(3,z.Wide);break;case"GGGGG":t=Y(3,z.Narrow);break;case"y":t=de(0,1,0,!1,!0);break;case"yy":t=de(0,2,0,!0,!0);break;case"yyy":t=de(0,3,0,!1,!0);break;case"yyyy":t=de(0,4,0,!1,!0);break;case"Y":t=cs(1);break;case"YY":t=cs(2,!0);break;case"YYY":t=cs(3);break;case"YYYY":t=cs(4);break;case"M":case"L":t=de(1,1,1);break;case"MM":case"LL":t=de(1,2,1);break;case"MMM":t=Y(2,z.Abbreviated);break;case"MMMM":t=Y(2,z.Wide);break;case"MMMMM":t=Y(2,z.Narrow);break;case"LLL":t=Y(2,z.Abbreviated,we.Standalone);break;case"LLLL":t=Y(2,z.Wide,we.Standalone);break;case"LLLLL":t=Y(2,z.Narrow,we.Standalone);break;case"w":t=dl(1);break;case"ww":t=dl(2);break;case"W":t=dl(1,!0);break;case"d":t=de(2,1);break;case"dd":t=de(2,2);break;case"c":case"cc":t=de(7,1);break;case"ccc":t=Y(1,z.Abbreviated,we.Standalone);break;case"cccc":t=Y(1,z.Wide,we.Standalone);break;case"ccccc":t=Y(1,z.Narrow,we.Standalone);break;case"cccccc":t=Y(1,z.Short,we.Standalone);break;case"E":case"EE":case"EEE":t=Y(1,z.Abbreviated);break;case"EEEE":t=Y(1,z.Wide);break;case"EEEEE":t=Y(1,z.Narrow);break;case"EEEEEE":t=Y(1,z.Short);break;case"a":case"aa":case"aaa":t=Y(0,z.Abbreviated);break;case"aaaa":t=Y(0,z.Wide);break;case"aaaaa":t=Y(0,z.Narrow);break;case"b":case"bb":case"bbb":t=Y(0,z.Abbreviated,we.Standalone,!0);break;case"bbbb":t=Y(0,z.Wide,we.Standalone,!0);break;case"bbbbb":t=Y(0,z.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":t=Y(0,z.Abbreviated,we.Format,!0);break;case"BBBB":t=Y(0,z.Wide,we.Format,!0);break;case"BBBBB":t=Y(0,z.Narrow,we.Format,!0);break;case"h":t=de(3,1,-12);break;case"hh":t=de(3,2,-12);break;case"H":t=de(3,1);break;case"HH":t=de(3,2);break;case"m":t=de(4,1);break;case"mm":t=de(4,2);break;case"s":t=de(5,1);break;case"ss":t=de(5,2);break;case"S":t=de(6,1);break;case"SS":t=de(6,2);break;case"SSS":t=de(6,3);break;case"Z":case"ZZ":case"ZZZ":t=as(0);break;case"ZZZZZ":t=as(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=as(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=as(2);break;default:return null}return fl[e]=t,t}function Up(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function gE(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function yE(e,t,n){let o=e.getTimezoneOffset(),i=Up(t,o);return gE(e,-1*(i-o))}function vE(e){if(Rp(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return us(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(sE))return DE(r)}let t=new Date(e);if(!Rp(t))throw new b(2311,!1);return t}function DE(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function Rp(e){return e instanceof Date&&!isNaN(e.valueOf())}function EE(e,t){return new b(2100,!1)}var bE="mediumDate",Gp=new x(""),zp=new x(""),oo=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??bE,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Hp(n,s,i||this.locale,a)}catch(s){throw EE(e,s.message)}}static \u0275fac=function(r){return new(r||e)(En(Yr,16),En(Gp,24),En(zp,24))};static \u0275pipe=Xc({name:"date",type:e,pure:!0})}return e})();function io(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var wn=class{};var Wp="browser";var so=class{_doc;constructor(t){this._doc=t}manager},ds=(()=>{class e extends so{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(L(Pe))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),ps=new x(""),yl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof ds));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof ds);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(L(ps),L(he))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),pl="ng-app-id";function qp(e){for(let t of e)t.remove()}function Zp(e,t){let n=t.createElement("style");return n.textContent=e,n}function wE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${pl}="${t}"],link[${pl}="${t}"]`);if(o)for(let i of o)i.removeAttribute(pl),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 ml(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var vl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,wE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Zp);r?.forEach(o=>this.addUsage(o,this.external,ml))}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&&(qp(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])qp(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Zp(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,ml(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(L(Pe),L(Gi),L(Wi,8),L(Vr))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),hl={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"},Dl=/%COMP%/g;var Qp="%COMP%",IE=`_nghost-${Qp}`,TE=`_ngcontent-${Qp}`,ME=!0,xE=new x("",{providedIn:"root",factory:()=>ME});function SE(e){return TE.replace(Dl,e)}function NE(e){return IE.replace(Dl,e)}function Kp(e,t){return t.map(n=>n.replace(Dl,e))}var El=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.platformIsServer=!1,this.defaultRenderer=new ao(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 fs?o.applyToHost(n):o instanceof co&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case It.Emulated:i=new fs(c,l,r,this.appId,u,s,a,d,p);break;case It.ShadowDom:return new gl(c,l,n,r,s,a,this.nonce,d,p);default:i=new co(c,l,r,u,s,a,d,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(L(yl),L(vl),L(Gi),L(xE),L(Pe),L(he),L(Wi),L(Hr,8))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),ao=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(hl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Yp(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Yp(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new b(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=hl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=hl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Jr().getGlobalEventTarget(this.doc,t),!t))throw new b(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Yp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var gl=class extends ao{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=Kp(o.id,u);for(let p of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=p,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let p of d){let f=ml(p,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},co=class extends ao{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?Kp(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&gn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},fs=class extends co{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=SE(u),this.hostAttr=NE(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var hs=class e extends Xr{supportsDOMEvents=!0;static makeCurrent(){ll(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=AE();return n==null?null:RE(n)}resetBaseElement(){lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return io(document.cookie,t)}},lo=null;function AE(){return lo=lo||document.head.querySelector("base"),lo?lo.getAttribute("href"):null}function RE(e){return new URL(e,document.baseURI).pathname}var kE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),Xp=["alt","control","meta","shift"],OE={"\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"},PE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Jp=(()=>{class e extends so{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jr().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Xp.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=OE[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"),Xp.forEach(s=>{if(s!==o){let a=PE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(L(Pe))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();function bl(e,t,n){let r=Z({rootComponent:e,platformRef:n?.platformRef},FE(t));return Np(r)}function FE(e){return{appProviders:[...HE,...e?.providers??[]],platformProviders:VE}}function LE(){hs.makeCurrent()}function jE(){return new Ve}function BE(){return kc(document),document}var VE=[{provide:Vr,useValue:Wp},{provide:zi,useValue:LE,multi:!0},{provide:Pe,useFactory:BE}];var HE=[{provide:br,useValue:"root"},{provide:Ve,useFactory:jE},{provide:ps,useClass:ds,multi:!0,deps:[Pe]},{provide:ps,useClass:Jp,multi:!0,deps:[Pe]},El,vl,yl,{provide:yn,useExisting:El},{provide:wn,useClass:kE},[]];var Tn=class{},uo=class{},Lt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=t.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var gs=class{encodeKey(t){return eh(t)}encodeValue(t){return eh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function $E(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var UE=/%(\d[a-f0-9])/gi,GE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eh(e){return encodeURIComponent(e).replace(UE,(t,n)=>GE[n]??t)}function ms(e){return`${e}`}var it=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new gs,t.fromString){if(t.fromObject)throw new b(2805,!1);this.map=$E(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(ms):[ms(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(ms(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(ms(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};var ys=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function zE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function th(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function nh(e){return typeof Blob<"u"&&e instanceof Blob}function rh(e){return typeof FormData<"u"&&e instanceof FormData}function WE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var oh="Content-Type",ih="Accept",sh="X-Request-URL",ah="text/plain",ch="application/json",qE=`${ch}, ${ah}, */*`,sr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(zE(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new b(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new Lt,this.context??=new ys,!this.params)this.params=new it,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"||th(this.body)||nh(this.body)||rh(this.body)||WE(this.body)?this.body:this.body instanceof it?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||rh(this.body)?null:nh(this.body)?this.body.type||null:th(this.body)?null:typeof this.body=="string"?ah:this.body instanceof it?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?ch:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,y=t.timeout??this.timeout,_=t.body!==void 0?t.body:this.body,w=t.withCredentials??this.withCredentials,C=t.reportProgress??this.reportProgress,ge=t.headers||this.headers,xn=t.params||this.params,be=t.context??this.context;return t.setHeaders!==void 0&&(ge=Object.keys(t.setHeaders).reduce((Bt,Vt)=>Bt.set(Vt,t.setHeaders[Vt]),ge)),t.setParams&&(xn=Object.keys(t.setParams).reduce((Bt,Vt)=>Bt.set(Vt,t.setParams[Vt]),xn)),new e(n,r,_,{params:xn,headers:ge,context:be,reportProgress:C,responseType:o,withCredentials:w,transferCache:f,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:l,credentials:u,referrer:d,integrity:p})}},In=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(In||{}),cr=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Lt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},vs=class e extends cr{constructor(t={}){super(t)}type=In.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},fo=class e extends cr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=In.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},ar=class extends cr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},ZE=200,YE=204;function Cl(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var Es=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof sr)i=n;else{let c;o.headers instanceof Lt?c=o.headers:c=new Lt(o.headers);let l;o.params&&(o.params instanceof it?l=o.params:l=new it({fromObject:o.params})),i=new sr(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=Hn(i).pipe(Ws(c=>this.handler.handle(c)));if(n instanceof sr||o.observe==="events")return s;let a=s.pipe(zs(c=>c instanceof fo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new b(2806,!1);return c.body}));case"blob":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new b(2807,!1);return c.body}));case"text":return a.pipe(Be(c=>{if(c.body!==null&&typeof c.body!="string")throw new b(2808,!1);return c.body}));default:return a.pipe(Be(c=>c.body))}case"response":return a;default:throw new b(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new it().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,Cl(o,r))}post(n,r,o={}){return this.request("POST",n,Cl(o,r))}put(n,r,o={}){return this.request("PUT",n,Cl(o,r))}static \u0275fac=function(r){return new(r||e)(L(Tn))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();var QE=new x("");function KE(e,t){return t(e)}function XE(e,t,n){return(r,o)=>Gn(n,()=>t(r,i=>e(i,o)))}var wl=new x(""),lh=new x(""),uh=new x("",{providedIn:"root",factory:()=>!0});var Ds=(()=>{class e extends Tn{backend;injector;chain=null;pendingTasks=E(Kn);contributeToStability=E(uh);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=this.injector.get(Tn,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get(lh,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(wl),...i]));this.chain=s.reduceRight((a,c)=>XE(a,c,this.injector),KE)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ys(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(L(uo),L(Me))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();var JE=/^\)\]\}',?\n/,eb=RegExp(`^${sh}:`,"m");function tb(e){return"responseURL"in e&&e.responseURL?e.responseURL:eb.test(e.getAllResponseHeaders())?e.getResponseHeader(sh):null}var _l=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return Hn(null).pipe(Qs(()=>new Q(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((w,C)=>s.setRequestHeader(w,C.join(","))),n.headers.has(ih)||s.setRequestHeader(ih,qE),!n.headers.has(oh)){let w=n.detectContentTypeHeader();w!==null&&s.setRequestHeader(oh,w)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let w=n.responseType.toLowerCase();s.responseType=w!=="json"?w:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=s.statusText||"OK",C=new Lt(s.getAllResponseHeaders()),ge=tb(s)||n.url;return c=new vs({headers:C,status:s.status,statusText:w,url:ge}),c},u=()=>{let{headers:w,status:C,statusText:ge,url:xn}=l(),be=null;C!==YE&&(be=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=be?ZE:0);let Bt=C>=200&&C<300;if(n.responseType==="json"&&typeof be=="string"){let Vt=be;be=be.replace(JE,"");try{be=be!==""?JSON.parse(be):null}catch(Ih){be=Vt,Bt&&(Bt=!1,be={error:Ih,text:be})}}Bt?(i.next(new fo({body:be,headers:w,status:C,statusText:ge,url:xn||void 0})),i.complete()):i.error(new ar({error:be,headers:w,status:C,statusText:ge,url:xn||void 0}))},d=w=>{let{url:C}=l(),ge=new ar({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(ge)},p=d;n.timeout&&(p=w=>{let{url:C}=l(),ge=new ar({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(ge)});let f=!1,y=w=>{f||(i.next(l()),f=!0);let C={type:In.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(C.total=w.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)},_=w=>{let C={type:In.UploadProgress,loaded:w.loaded};w.lengthComputable&&(C.total=w.total),i.next(C)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",y),a!==null&&s.upload&&s.upload.addEventListener("progress",_)),s.send(a),i.next({type:In.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",y),a!==null&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(L(wn))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),dh=new x(""),nb="XSRF-TOKEN",rb=new x("",{providedIn:"root",factory:()=>nb}),ob="X-XSRF-TOKEN",ib=new x("",{providedIn:"root",factory:()=>ob}),po=class{},sb=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=io(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(L(Pe),L(rb))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),ab=/^(?:https?:)?\/\//i;function cb(e,t){if(!E(dh)||e.method==="GET"||e.method==="HEAD"||ab.test(e.url))return t(e);let n=E(po).getToken(),r=E(ib);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Il=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Il||{});function lb(e,t){return{\u0275kind:e,\u0275providers:t}}function Tl(...e){let t=[Es,_l,Ds,{provide:Tn,useExisting:Ds},{provide:uo,useFactory:()=>E(QE,{optional:!0})??E(_l)},{provide:wl,useValue:cb,multi:!0},{provide:dh,useValue:!0},{provide:po,useClass:sb}];for(let n of e)t.push(...n.\u0275providers);return Er(t)}function Ml(e){return lb(Il.Interceptors,e.map(t=>({provide:wl,useValue:t,multi:!0})))}var fh="guitoToken";function ph(){return new URLSearchParams(window.location.search).get(fh)??""}var hh=(e,t)=>{let n=ph();return!n||!e.url.startsWith("/api")?t(e):t(e.clone({setHeaders:{"X-Guito-Token":n}}))};function mh(e){let t=new URL(e,window.location.origin),n=ph();return n&&t.searchParams.set(fh,n),t.toString()}var gh={providers:[ol({eventCoalescing:!0}),Tl(Ml([hh]))]};var xt="__working__";var jt=class e{http=E(Es);base="/api";getRepoInfo(){return this.http.get(`${this.base}/repo`)}getCommits(t,n=0){let r=new it;return t!==void 0&&(r=r.set("limit",String(t))),n>0&&(r=r.set("skip",String(n))),this.http.get(`${this.base}/commits`,{params:r})}getAllBranches(){return this.http.get(`${this.base}/branches/all`)}getCommitDiff(t){return this.http.post(`${this.base}/commit/diff`,{hash:t})}getWorkingChanges(){return this.http.get(`${this.base}/working-changes`)}getFileContent(t,n){return this.http.post(`${this.base}/file-content`,{path:t,ref:n})}fetch(){return this.http.get(`${this.base}/fetch`)}pull(t=!1){return this.http.post(`${this.base}/pull`,{rebase:t})}push(){return this.http.post(`${this.base}/push`,{})}sync(){return this.http.post(`${this.base}/sync`,{})}checkout(t){return this.http.post(`${this.base}/checkout`,{ref:t})}revert(t){return this.http.post(`${this.base}/revert`,{commit:t})}cherryPick(t){return this.http.post(`${this.base}/cherry-pick`,{commit:t})}dropCommit(t){return this.http.post(`${this.base}/commit/drop`,{commit:t})}resetToCommit(t){return this.http.post(`${this.base}/reset-commit`,{commit:t})}commit(t,n){return this.http.post(`${this.base}/commit`,{message:t,description:n})}stage(t){return this.http.post(`${this.base}/stage`,{files:t})}unstage(t){return this.http.post(`${this.base}/unstage`,{files:t})}discard(t){return this.http.post(`${this.base}/discard`,{files:t})}resetWorking(){return this.http.post(`${this.base}/reset`,{})}cleanUntracked(){return this.http.post(`${this.base}/clean`,{})}stashSave(t){return this.http.post(`${this.base}/stash/save`,{message:t})}createBranch(t,n){return this.http.post(`${this.base}/branch/create`,{name:t,startPoint:n})}deleteBranch(t,n=!1){return this.http.post(`${this.base}/branch/delete`,{name:t,force:n})}deleteRemoteBranch(t,n){return this.http.post(`${this.base}/branch/delete-remote`,{remote:t,branch:n})}renameBranch(t,n){return this.http.post(`${this.base}/branch/rename`,{oldName:t,newName:n})}merge(t){return this.http.post(`${this.base}/merge`,{branch:t})}rebase(t){return this.http.post(`${this.base}/rebase`,{branch:t})}createTag(t,n){return this.http.post(`${this.base}/tag/create`,{name:t,commit:n})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})};function vh(e){let t=[],n=[],r=o=>{let i=t.indexOf(o);return i===-1&&(i=t.indexOf(null),i===-1&&(t.push(null),i=t.length-1),t[i]=o),i};for(let o of e){let i=o.parents??[],s=t.map((c,l)=>c===o.hash?l:-1).filter(c=>c!==-1),a;if(s.length>0){a=s[0];for(let c=1;c<s.length;c++)t[s[c]]=null}else a=r(o.hash);t[a]=i[0]??null;for(let c=1;c<i.length;c++)r(i[c]);n.push({commit:o,lane:a,parents:i})}return n}var yh=["#3794ff","#4ec9b0","#d7ba7d","#c586c0","#89d185","#ce9178","#d16969","#569cd6","#b5cea8","#dcdcaa"];function ho(e){return yh[Math.abs(e)%yh.length]}function Dh(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}var bs=class e{loading=null;load(){return this.loading||(this.loading=new Promise((t,n)=>{let r=window;if(r.monaco){t(r.monaco);return}let o=document.createElement("script");o.src="vs/loader.js",o.async=!0,o.onload=()=>{let i=r.require;if(!i){n(new Error("Monaco AMD loader not found."));return}i.config({paths:{vs:"vs"}}),i(["vs/editor/editor.main"],()=>{this.applyTheme(r.monaco),t(r.monaco)})},o.onerror=()=>{this.loading=null,n(new Error("Failed to load the Monaco editor."))},document.head.appendChild(o)})),this.loading}applyTheme(t){t.editor.defineTheme("guito",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#1e1e1e","editor.foreground":"#cccccc","editorGutter.background":"#1e1e1e","editorLineNumber.foreground":"#5a5a5a","editorLineNumber.activeForeground":"#cccccc","diffEditor.insertedTextBackground":"#89d18526","diffEditor.removedTextBackground":"#f4877126","diffEditor.insertedLineBackground":"#89d1851a","diffEditor.removedLineBackground":"#f487711a","scrollbarSlider.background":"#4a4a4a80","scrollbarSlider.hoverBackground":"#5a5a5a99","editorWidget.background":"#232323","editorWidget.border":"#3c3c3c","editorSuggestWidget.background":"#232323"}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})};var ub=["host"];function db(e,t){if(e&1&&(m(0,"span",6),v(1),g()),e&2){let n=D();h(),te("+",n.file().additions)}}function fb(e,t){if(e&1&&(m(0,"span",7),v(1),g()),e&2){let n=D();h(),te("\u2212",n.file().deletions)}}function pb(e,t){e&1&&(W(),K(0,"line",11))}function hb(e,t){e&1&&(W(),K(0,"line",12))}function mb(e,t){e&1&&(m(0,"div",18),v(1,"Loading diff\u2026"),g())}function gb(e,t){if(e&1&&(m(0,"div",19),v(1),g()),e&2){let n=D();h(),U(n.error())}}function yb(e,t){e&1&&(m(0,"div",18),v(1,"Binary file not shown."),g())}var vb=0,Cs=class e{git=E(jt);monacoService=E(bs);file=X.required();originalRef=X.required();modifiedRef=X.required();closed=ce();host=os.required("host");loading=R(!0);error=R("");binary=R(!1);sideBySide=R(!0);editor=null;models=[];onEscape(){this.closed.emit()}ngAfterViewInit(){return Sn(this,null,function*(){this.loading.set(!0),this.error.set(""),this.binary.set(!1);try{let t=yield this.monacoService.load(),n=this.file(),r=n.status==="added"&&!n.oldPath?"EMPTY":this.originalRef(),[o,i]=yield Promise.all([Wo(this.git.getFileContent(n.oldPath||n.path,r)),Wo(this.git.getFileContent(n.path,this.modifiedRef()))]);if(o.binary||i.binary){this.binary.set(!0),this.loading.set(!1);return}let s=++vb,a=t.editor.createModel(o.content,void 0,t.Uri.parse(`inmemory://diff/${s}/original/${n.oldPath||n.path}`)),c=t.editor.createModel(i.content,void 0,t.Uri.parse(`inmemory://diff/${s}/modified/${n.path}`));this.models=[a,c],this.editor=t.editor.createDiffEditor(this.host().nativeElement,{theme:"guito",readOnly:!0,originalEditable:!1,renderSideBySide:this.sideBySide(),ignoreTrimWhitespace:!1,automaticLayout:!0,fontSize:12,fontFamily:"ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace",minimap:{enabled:!1},scrollBeyondLastLine:!1,renderOverviewRuler:!1,hideUnchangedRegions:{enabled:!0,contextLineCount:3},scrollbar:{verticalScrollbarSize:10,horizontalScrollbarSize:10},padding:{top:8}}),this.editor.setModel({original:a,modified:c}),this.loading.set(!1)}catch{this.error.set("Failed to load the diff."),this.loading.set(!1)}})}ngOnDestroy(){this.editor?.dispose(),this.editor=null;for(let t of this.models)t.dispose();this.models=[]}toggleLayout(){this.sideBySide.update(t=>!t),this.editor?.updateOptions({renderSideBySide:this.sideBySide()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-diff-dialog"]],viewQuery:function(n,r){n&1&&zr(r.host,ub,5),n&2&&Wr()},hostBindings:function(n,r){n&1&&ue("keydown.escape",function(){return r.onEscape()},gt)},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=ee();m(0,"div",1),P("click",function(){return j(o),B(r.closed.emit())}),g(),m(1,"div",2)(2,"header",3)(3,"span"),v(4),g(),m(5,"span",4),v(6),g(),m(7,"span",5),S(8,db,2,1,"span",6),S(9,fb,2,1,"span",7),g(),m(10,"button",8),P("click",function(){return j(o),B(r.toggleLayout())}),W(),m(11,"svg",9),K(12,"rect",10),S(13,pb,1,0,":svg:line",11)(14,hb,1,0,":svg:line",12),g()(),Ee(),m(15,"button",13),P("click",function(){return j(o),B(r.closed.emit())}),W(),m(16,"svg",9),K(17,"line",14)(18,"line",15),g()()(),Ee(),m(19,"div",16),K(20,"div",17,0),S(22,mb,2,0,"div",18)(23,gb,2,1,"div",19)(24,yb,2,0,"div",18),g()()}n&2&&(h(3),Cn("status status-"+r.file().status),h(),U(r.file().status),h(),le("title",r.file().path),h(),U(r.file().path),h(2),N(r.file().additions>0?8:-1),h(),N(r.file().deletions>0?9:-1),h(),xe("aria-label",r.sideBySide()?"Switch to inline view":"Switch to side-by-side view"),h(3),N(r.sideBySide()?13:14),h(9),N(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 Db=(e,t)=>t.path;function Eb(e,t){if(e&1&&(O(0,"span",15),v(1,"\u2022"),k(),O(2,"span"),v(3),qr(4,"date"),k(),O(5,"span",15),v(6,"\u2022"),k(),O(7,"code",16),v(8),k()),e&2){let n=D();h(3),U(Zr(4,2,n.commit().date,"d MMM y HH:mm")),h(5),U(n.commit().hash.slice(0,8))}}function bb(e,t){if(e&1&&(O(0,"pre",10),v(1),k()),e&2){let n=D();h(),U(n.commit().body)}}function Cb(e,t){e&1&&(O(0,"div",12),v(1,"Loading changes\u2026"),k())}function _b(e,t){if(e&1&&(O(0,"div",13),v(1),k()),e&2){let n=D();h(),U(n.error())}}function wb(e,t){e&1&&(O(0,"div",12),v(1,"No changes."),k())}function Ib(e,t){if(e&1&&(O(0,"span",22),v(1),k()),e&2){let n=D().$implicit;h(),te("+",n.additions)}}function Tb(e,t){if(e&1&&(O(0,"span",23),v(1),k()),e&2){let n=D().$implicit;h(),te("\u2212",n.deletions)}}function Mb(e,t){if(e&1){let n=ee();O(0,"button",19),ue("click",function(){let o=j(n).$implicit,i=D(3);return B(i.openFile(o))}),O(1,"span"),v(2),k(),O(3,"span",20),v(4),k(),O(5,"span",21),S(6,Ib,2,1,"span",22),S(7,Tb,2,1,"span",23),k(),W(),O(8,"svg",24),Ft(9,"polyline",25),k()()}if(e&2){let n=t.$implicit;h(),Cn("file-status status-"+n.status),h(),U(n.status),h(),nt("title",n.path),h(),U(n.path),h(2),N(n.additions>0?6:-1),h(),N(n.deletions>0?7:-1)}}function xb(e,t){if(e&1&&(O(0,"div",17),Se(1,Mb,10,7,"button",18,Db),k()),e&2){let n=D();h(),Ne(n.files)}}function Sb(e,t){e&1&&S(0,wb,2,0,"div",12)(1,xb,3,0,"div",17),e&2&&N(t.files.length===0?0:1)}function Nb(e,t){if(e&1){let n=ee();O(0,"app-diff-dialog",26),ue("closed",function(){j(n);let o=D();return B(o.dialogFile.set(null))}),k()}if(e&2){let n=D();nt("file",t)("originalRef",n.originalRef())("modifiedRef",n.modifiedRef())}}var _s=class e{git=E(jt);commit=X.required();closed=ce();diff=R(null);loading=R(!1);error=R("");dialogFile=R(null);workingHash=xt;isWorking=G(()=>this.commit().hash===this.workingHash);originalRef=G(()=>this.isWorking()?"HEAD":`${this.commit().hash}^`);modifiedRef=G(()=>this.isWorking()?"WORKING":this.commit().hash);initials=G(()=>{let t=this.commit().author_name.trim();if(!t)return"?";let n=t.split(/\s+/),r=n[0].charAt(0),o=n.length>1?n[n.length-1].charAt(0):"";return(r+o).toUpperCase()});avatarColor=G(()=>ho(Dh(this.commit().author_name)));constructor(){rt(()=>{this.loadDiff(this.commit().hash)})}openFile(t){this.dialogFile.set(t)}loadDiff(t){if(this.loading.set(!0),this.error.set(""),this.diff.set(null),this.dialogFile.set(null),t===xt){this.git.getWorkingChanges().subscribe({next:n=>{this.loading.set(!1),this.diff.set({hash:xt,files:n.files})},error:()=>{this.loading.set(!1),this.error.set("Failed to load the working changes.")}});return}this.git.getCommitDiff(t).subscribe({next:n=>{this.loading.set(!1),this.diff.set(n)},error:()=>{this.loading.set(!1),this.error.set("Failed to load the commit diff.")}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-commit-detail"]],inputs:{commit:[1,"commit"]},outputs:{closed:"closed"},decls:20,vars:9,consts:[[1,"detail"],[1,"detail-head"],["title","Close",1,"close-btn",3,"click"],["viewBox","0 0 24 24","aria-hidden","true"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"subject"],[1,"meta"],[1,"avatar"],[1,"author"],[1,"body"],[1,"detail-body"],[1,"state"],[1,"state","state-error"],[3,"file","originalRef","modifiedRef"],[1,"separator"],[1,"hash"],[1,"file-list"],["type","button",1,"file-row"],["type","button",1,"file-row",3,"click"],[1,"file-path",3,"title"],[1,"file-counts"],[1,"additions"],[1,"deletions"],["viewBox","0 0 24 24","aria-hidden","true",1,"chevron"],["points","9 18 15 12 9 6"],[3,"closed","file","originalRef","modifiedRef"]],template:function(n,r){if(n&1&&(O(0,"aside",0)(1,"header",1)(2,"button",2),ue("click",function(){return r.closed.emit()}),W(),O(3,"svg",3),Ft(4,"line",4)(5,"line",5),k()(),Ee(),O(6,"h2",6),v(7),k(),O(8,"div",7)(9,"span",8),v(10),k(),O(11,"span",9),v(12),k(),S(13,Eb,9,5),k(),S(14,bb,2,1,"pre",10),k(),O(15,"div",11),S(16,Cb,2,0,"div",12)(17,_b,2,1,"div",13)(18,Sb,2,1),k()(),S(19,Nb,1,3,"app-diff-dialog",14)),n&2){let o,i;h(7),U(r.commit().message),h(2),me("background",r.avatarColor()),h(),U(r.initials()),h(2),U(r.commit().author_name),h(),N(r.isWorking()?-1:13),h(),N(r.commit().body.trim()?14:-1),h(2),N(r.loading()?16:r.error()?17:(o=r.diff())?18:-1,o),h(3),N((i=r.dialogFile())?19:-1,i)}},dependencies:[Cs,oo],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 Eh(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith("HEAD -> ")?{type:"head",name:t.slice(8)}:t==="HEAD"?{type:"head",name:"HEAD"}:t.startsWith("tag: ")?{type:"tag",name:t.slice(5)}:t.includes("/")?{type:"remote",name:t}:{type:"local",name:t}):[]}function xl(e){let t=e.refs;return t?t==="HEAD"||t.startsWith("HEAD,")||t.startsWith("HEAD ->"):!1}var Ab=(e,t)=>t.hash,Rb=(e,t)=>t.commit.hash,kb=(e,t)=>t.name;function Ob(e,t){if(e&1&&(m(0,"span",29),v(1),g()),e&2){let n=D();h(),te("",n.staged.length," staged")}}function Pb(e,t){if(e&1&&(m(0,"span",30),v(1),g()),e&2){let n=D();h(),te("",n.unstaged.length," unstaged")}}function Fb(e,t){if(e&1&&(m(0,"span",31),v(1),g()),e&2){let n=D();h(),te("",n.untracked.length," untracked")}}function Lb(e,t){if(e&1&&(S(0,Ob,2,1,"span",29),S(1,Pb,2,1,"span",30),S(2,Fb,2,1,"span",31)),e&2){let n=t;N(n.staged.length>0?0:-1),h(),N(n.unstaged.length>0?1:-1),h(),N(n.untracked.length>0?2:-1)}}function jb(e,t){if(e&1){let n=ee();m(0,"div",12),P("click",function(){j(n);let o=D();return B(o.commitClick.emit(o.workingCommit()))})("contextmenu",function(o){j(n);let i=D();return B(i.onWorkingContextMenu(o))}),m(1,"div",13),W(),m(2,"svg",14),K(3,"path",15)(4,"path",16),g()(),Ee(),m(5,"div",17)(6,"span",18),W(),m(7,"svg",19),K(8,"circle",20)(9,"path",21)(10,"path",22)(11,"path",23)(12,"path",24),g(),Ee(),m(13,"span",25),v(14,"Uncommitted changes"),g()(),S(15,Lb,3,3),g(),m(16,"div",26),v(17,"\u2014"),g(),m(18,"div",27),v(19,"You"),g(),m(20,"div",28),v(21,"\u2014"),g()()}if(e&2){let n,r=D();yt("selected",r.selectedHash()===r.workingHash),h(),me("width",r.graphColumnWidth(),"px"),h(14),N((n=r.workingChanges())?15:-1,n),h(),me("width",r.columnWidths().date,"px"),h(2),me("width",r.columnWidths().author,"px"),h(2),me("width",r.columnWidths().commit,"px")}}function Bb(e,t){e&1&&(m(0,"div",11),v(1,"No commits to show"),g())}function Vb(e,t){if(e&1&&(W(),K(0,"path",33)),e&2){let n=t.$implicit;xe("d",n.d)("stroke",n.color)}}function Hb(e,t){if(e&1&&(W(),K(0,"circle",38)),e&2){let n=D().$implicit;xe("cx",n.x)("cy",n.y)("stroke",n.color)}}function $b(e,t){if(e&1&&(W(),K(0,"circle",39)),e&2){let n=D().$implicit;xe("cx",n.x)("cy",n.y)("fill",n.color)}}function Ub(e,t){if(e&1&&S(0,Hb,1,3,":svg:circle",38)(1,$b,1,3,":svg:circle",39),e&2){let n=t.$implicit;N(n.isHead?0:1)}}function Gb(e,t){e&1&&(W(),m(0,"svg",19),K(1,"line",46)(2,"circle",47)(3,"circle",48)(4,"path",49),g())}function zb(e,t){e&1&&(W(),m(0,"svg",19),K(1,"path",50)(2,"line",51),g())}function Wb(e,t){if(e&1){let n=ee();m(0,"span",45),P("contextmenu",function(o){let i=j(n).$implicit,s=D().$implicit,a=D(2);return B(a.onBranchContextMenu(o,s.commit,i))}),S(1,Gb,5,0,":svg:svg",19)(2,zb,3,0,":svg:svg",19),m(3,"span",25),v(4),g()()}if(e&2){let n=t.$implicit;Cn("badge badge-"+n.type),h(),N(n.type==="head"||n.type==="local"?1:n.type==="tag"?2:-1),h(3),U(n.name)}}function qb(e,t){if(e&1&&(m(0,"mark",52),v(1),g()),e&2){let n=D().$implicit;h(),U(n.text)}}function Zb(e,t){if(e&1&&v(0),e&2){let n=D().$implicit;te(" ",n.text," ")}}function Yb(e,t){if(e&1&&S(0,qb,2,1,"mark",52)(1,Zb,1,1),e&2){let n=t.$implicit;N(n.match?0:1)}}function Qb(e,t){if(e&1&&(m(0,"mark",52),v(1),g()),e&2){let n=D().$implicit;h(),U(n.text)}}function Kb(e,t){if(e&1&&v(0),e&2){let n=D().$implicit;te(" ",n.text," ")}}function Xb(e,t){if(e&1&&S(0,Qb,2,1,"mark",52)(1,Kb,1,1),e&2){let n=t.$implicit;N(n.match?0:1)}}function Jb(e,t){if(e&1){let n=ee();m(0,"div",40),P("click",function(){let o=j(n).$implicit,i=D(2);return B(i.commitClick.emit(o.commit))})("contextmenu",function(o){let i=j(n).$implicit,s=D(2);return B(s.onRowContextMenu(o,i.commit))}),K(1,"div",13),m(2,"div",17),Se(3,Wb,5,4,"span",41,kb),m(5,"span",42),Se(6,Yb,2,1,null,null,bn),g()(),m(8,"div",26),v(9),qr(10,"date"),g(),m(11,"div",43),Se(12,Xb,2,1,null,null,bn),g(),m(14,"div",44),v(15),g()()}if(e&2){let n=t.$implicit,r=D(2);yt("selected",n.commit.hash===r.selectedHash()),h(),me("width",r.graphColumnWidth(),"px"),h(2),Ne(r.badges(n.commit)),h(2),yt("head",r.isHead(n.commit)),h(),Ne(r.highlight(n.commit.message)),h(2),me("width",r.columnWidths().date,"px"),h(),te(" ",Zr(10,16,n.commit.date,"d MMM y HH:mm")," "),h(2),me("width",r.columnWidths().author,"px"),le("title",n.commit.author_name),h(),Ne(r.highlight(n.commit.author_name)),h(2),me("width",r.columnWidths().commit,"px"),le("title",n.commit.hash),h(),te(" ",n.commit.hash.slice(0,8)," ")}}function eC(e,t){if(e&1){let n=ee();m(0,"button",53),P("click",function(){j(n);let o=D(2);return B(o.loadMore())}),v(1),g()}if(e&2){let n=D(2);h(),te("Show ",n.remaining()," more")}}function tC(e,t){if(e&1){let n=ee();m(0,"div",36)(1,"button",53),P("click",function(){j(n);let o=D(2);return B(o.onLoadMoreCommits())}),v(2,"Load more commits"),g(),m(3,"button",53),P("click",function(){j(n);let o=D(2);return B(o.onLoadAllCommits())}),v(4),g()()}if(e&2){let n=D(2);h(4),te("Load all (",n.unloaded(),")")}}function nC(e,t){e&1&&(m(0,"div",37),v(1,"Loading history\u2026"),g())}function rC(e,t){if(e&1&&(W(),m(0,"svg",32),Se(1,Vb,1,2,":svg:path",33,bn),Se(3,Ub,2,1,null,null,Ab),g(),Se(5,Jb,16,19,"div",34,Rb),S(7,eC,2,1,"button",35),S(8,tC,5,1,"div",36),S(9,nC,2,0,"div",37)),e&2){let n=D();xe("width",n.graphWidth())("height",n.graphHeight()),h(),Ne(n.edges()),h(2),Ne(n.nodes()),h(2),Ne(n.graphCommits()),h(2),N(n.remaining()>0?7:-1),h(),N(n.unloaded()>0&&!n.historyLoading()?8:-1),h(),N(n.historyLoading()?9:-1)}}var Mn=34,Sl=14,bh=10,oC=72,ws=500,Is=class e{commits=X.required();selectedHash=X.required();search=X("");selectedBranch=X("");showRemote=X(!0);workingChanges=X(null);unloaded=X(0);historyLoading=X(!1);commitClick=ce();contextMenu=ce();loadMoreRequested=ce();loadAllRequested=ce();limit=R(ws);constructor(){rt(()=>{this.search(),this.selectedBranch(),this.limit.set(ws)})}columnWidths=R({graph:0,date:132,author:150,commit:84});displayed=G(()=>this.commits().slice(0,this.limit()));graphCommits=G(()=>vh(this.displayed()));graphWidth=G(()=>{let t=this.graphCommits().reduce((n,r)=>Math.max(n,r.lane),0)+1;return Math.max(oC,bh*2+t*Sl)});graphColumnWidth=G(()=>Math.max(this.graphWidth(),this.columnWidths().graph));graphHeight=G(()=>this.graphCommits().length*Mn);nodes=G(()=>this.graphCommits().map((t,n)=>({hash:t.commit.hash,x:this.laneX(t.lane),y:n*Mn+Mn/2,color:ho(t.lane),isHead:xl(t.commit)})));edges=G(()=>{let t=this.graphCommits(),n=new Map(t.map((s,a)=>[s.commit.hash,a])),r=new Map(t.map(s=>[s.commit.hash,s.lane])),o=this.graphHeight(),i=[];return t.forEach((s,a)=>{let c=ho(s.lane),l=this.laneX(s.lane),u=a*Mn+Mn/2;for(let d of s.parents){let p=n.get(d);if(p===void 0){i.push({d:`M ${l} ${u} L ${l} ${o}`,color:c});continue}let f=this.laneX(r.get(d)??s.lane),y=p*Mn+Mn/2;if(l===f)i.push({d:`M ${l} ${u} L ${f} ${y}`,color:c});else{let _=(u+y)/2;i.push({d:`M ${l} ${u} C ${l} ${_} ${f} ${_} ${f} ${y}`,color:c})}}}),i});remaining=G(()=>this.commits().length-this.displayed().length);hasWorkingChanges=G(()=>(this.workingChanges()?.files.length??0)>0);workingHash=xt;workingCommit=G(()=>({hash:xt,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]}));resizeState=null;startResize(t,n){n.preventDefault(),n.stopPropagation();let r=t==="graph"?this.graphColumnWidth():this.columnWidths()[t];this.resizeState={column:t,startX:n.clientX,startWidth:r},document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd)}onResizeMove=t=>{let n=this.resizeState;if(!n)return;let r=t.clientX-n.startX,o=n.column==="graph"?this.graphWidth():48,i=Math.max(o,n.startWidth+r);this.columnWidths.update(s=>ne(Z({},s),{[n.column]:i}))};onResizeEnd=()=>{this.resizeState=null,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)};ngOnDestroy(){this.onResizeEnd()}onRowContextMenu(t,n){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"commit",commit:n}})}onBranchContextMenu(t,n,r){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"branch",commit:n,branch:r}})}onWorkingContextMenu(t){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"working"}})}highlight(t){let n=this.search().trim().toLowerCase();if(!n||!t)return[{text:t,match:!1}];let r=[],o=t.toLowerCase(),i=0,s=o.indexOf(n);for(;s!==-1;)s>i&&r.push({text:t.slice(i,s),match:!1}),r.push({text:t.slice(s,s+n.length),match:!0}),i=s+n.length,s=o.indexOf(n,i);return i<t.length&&r.push({text:t.slice(i),match:!1}),r.length>0?r:[{text:t,match:!1}]}loadMore(){this.limit.set(this.limit()+ws)}onLoadMoreCommits(){this.limit.update(t=>t+ws),this.loadMoreRequested.emit()}onLoadAllCommits(){this.limit.set(Number.POSITIVE_INFINITY),this.loadAllRequested.emit()}badges(t){let n=this.selectedBranch(),r=this.showRemote();return Eh(t.refs).filter(o=>o.type==="remote"&&!r?!1:!n||o.type==="tag"?!0:o.name===n)}isHead(t){return xl(t)}laneX(t){return bh+Sl/2+t*Sl}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-commit-table"]],inputs:{commits:[1,"commits"],selectedHash:[1,"selectedHash"],search:[1,"search"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],workingChanges:[1,"workingChanges"],unloaded:[1,"unloaded"],historyLoading:[1,"historyLoading"]},outputs:{commitClick:"commitClick",contextMenu:"contextMenu",loadMoreRequested:"loadMoreRequested",loadAllRequested:"loadAllRequested"},decls:25,vars:10,consts:[[1,"table"],[1,"table-head"],[1,"head-cell","cell-graph"],[1,"head-label"],[1,"resizer",3,"mousedown"],[1,"head-cell","cell-desc"],[1,"head-cell","cell-date"],[1,"head-cell","cell-author"],[1,"head-cell","cell-commit"],[1,"row","working-row",3,"selected"],[1,"table-body"],[1,"empty"],[1,"row","working-row",3,"click","contextmenu"],[1,"cell","cell-graph"],["viewBox","0 0 24 24","aria-hidden","true",1,"working-icon"],["d","M12 20h9"],["d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"],[1,"cell","cell-desc"],[1,"badge","badge-working"],["viewBox","0 0 24 24","aria-hidden","true",1,"badge-icon"],["cx","12","cy","12","r","3"],["d","M12 2v3"],["d","M12 19v3"],["d","M2 12h3"],["d","M19 12h3"],[1,"badge-name"],[1,"cell","cell-date"],[1,"cell","cell-author"],[1,"cell","cell-commit"],[1,"count-badge","count-staged"],[1,"count-badge","count-unstaged"],[1,"count-badge","count-untracked"],["aria-hidden","true",1,"graph"],["fill","none","stroke-width","2"],[1,"row",3,"selected"],[1,"load-more"],[1,"load-actions"],[1,"history-loading"],["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&&(m(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),v(4,"Graph"),g(),m(5,"div",4),P("mousedown",function(i){return r.startResize("graph",i)}),g()(),m(6,"div",5)(7,"span",3),v(8,"Description"),g()(),m(9,"div",6)(10,"span",3),v(11,"Date"),g(),m(12,"div",4),P("mousedown",function(i){return r.startResize("date",i)}),g()(),m(13,"div",7)(14,"span",3),v(15,"Author"),g(),m(16,"div",4),P("mousedown",function(i){return r.startResize("author",i)}),g()(),m(17,"div",8)(18,"span",3),v(19,"Commit"),g(),m(20,"div",4),P("mousedown",function(i){return r.startResize("commit",i)}),g()()(),S(21,jb,22,11,"div",9),m(22,"div",10),S(23,Bb,2,0,"div",11)(24,rC,10,5),g()()),n&2&&(h(2),me("width",r.graphColumnWidth(),"px"),h(7),me("width",r.columnWidths().date,"px"),h(4),me("width",r.columnWidths().author,"px"),h(4),me("width",r.columnWidths().commit,"px"),h(4),N(r.hasWorkingChanges()?21:-1),h(2),N(r.graphCommits().length===0?23:24))},dependencies:[oo],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.table[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;width:100%;min-width:0;min-height:0}.table-head[_ngcontent-%COMP%]{display:flex;align-items:center;height:30px;flex:none;border-bottom:1px solid var(--border);background:var(--bg-alt);font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none}.head-cell[_ngcontent-%COMP%]{position:relative;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none}.head-cell.cell-desc[_ngcontent-%COMP%]{flex:1;min-width:0}.resizer[_ngcontent-%COMP%]{position:absolute;top:0;right:-3px;width:6px;height:100%;cursor:col-resize;z-index:1}.resizer[_ngcontent-%COMP%]:hover, .resizer.active[_ngcontent-%COMP%]{background:var(--accent)}.table-body[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0;overflow-y:auto}.graph[_ngcontent-%COMP%]{position:absolute;top:0;left:0;pointer-events:none}.row[_ngcontent-%COMP%]{display:flex;align-items:center;height:34px;cursor:pointer;-webkit-user-select:none;user-select:none}.row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.row.selected[_ngcontent-%COMP%]{background:#04395e}.cell[_ngcontent-%COMP%]{padding:0 10px;overflow:hidden;white-space:nowrap;color:var(--text);min-width:0}.cell-graph[_ngcontent-%COMP%]{flex:none}.cell-desc[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;gap:6px}.cell-date[_ngcontent-%COMP%]{flex:none;text-align:right;color:var(--text-dim)}.cell-author[_ngcontent-%COMP%]{flex:none;text-align:right;text-overflow:ellipsis}.cell-commit[_ngcontent-%COMP%]{flex:none;text-align:right;font-family:var(--mono);color:var(--text-dim)}.working-row[_ngcontent-%COMP%]{flex:none;border-bottom:1px solid var(--border);background:#d7ba7d0a}.working-row[_ngcontent-%COMP%]:hover{background:#d7ba7d14}.working-row.selected[_ngcontent-%COMP%]{background:#4d3a12}.working-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-left:4px;fill:none;stroke:#d7ba7d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.badge-working[_ngcontent-%COMP%]{background:#d7ba7d24;color:#d7ba7d;border-color:#d7ba7d66}.count-badge[_ngcontent-%COMP%]{flex:none;padding:1px 7px;border-radius:10px;font-size:11px;line-height:16px;white-space:nowrap}.count-staged[_ngcontent-%COMP%]{background:#89d18524;color:#89d185}.count-unstaged[_ngcontent-%COMP%]{background:#f4877124;color:#f48771}.count-untracked[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff}.hl[_ngcontent-%COMP%]{background:#613214;color:#f5c04a;border-radius:2px;padding:0 1px}.message[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-weight:400}.message.head[_ngcontent-%COMP%]{font-weight:600;color:var(--text-bright)}.badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 7px;border-radius:10px;border:1px solid transparent;font-size:11px;line-height:16px;white-space:nowrap}.badge-head[_ngcontent-%COMP%]{background:#0078d4;color:#fff}.badge-local[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff;border-color:#3794ff66}.badge-remote[_ngcontent-%COMP%]{background:#ffffff0f;color:#b8b8b8;border-color:#4a4a4a}.badge-tag[_ngcontent-%COMP%]{background:#d7ba7d1f;color:#d7ba7d;border-color:#d7ba7d66}.badge-icon[_ngcontent-%COMP%]{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.badge-name[_ngcontent-%COMP%]{max-width:160px;overflow:hidden;text-overflow:ellipsis}.empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:240px;color:var(--text-dim)}.load-more[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:transparent;border:none;border-top:1px solid var(--border);color:var(--accent);cursor:pointer;font-size:12px;font-family:inherit}.load-more[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.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}"],changeDetection:0})};function iC(e,t){e&1&&K(0,"div",2)}function sC(e,t){if(e&1){let n=ee();m(0,"button",4),P("click",function(){j(n);let o=D().$implicit,i=D(2);return B(i.onSelect(o))}),v(1),g()}if(e&2){let n=D().$implicit;yt("danger",n.danger),le("disabled",n.disabled),h(),te(" ",n.label," ")}}function aC(e,t){if(e&1&&S(0,iC,1,0,"div",2)(1,sC,2,4,"button",3),e&2){let n=t.$implicit;N(n.separator?0:1)}}function cC(e,t){if(e&1){let n=ee();m(0,"div",0),P("click",function(){j(n);let o=D();return B(o.closed.emit())})("contextmenu",function(o){j(n);let i=D();return o.preventDefault(),B(i.closed.emit())}),g(),m(1,"div",1),Se(2,aC,2,1,null,null,bn),g()}if(e&2){let n=D();h(),me("left",n.left(),"px")("top",n.top(),"px"),h(),Ne(t.items)}}var Ts=class e{menu=X.required();select=ce();closed=ce();left=G(()=>{let t=this.menu();return t?Math.max(4,Math.min(t.x,window.innerWidth-250)):0});top=G(()=>{let t=this.menu();if(!t)return 0;let n=t.items.length*30+12;return Math.max(4,Math.min(t.y,window.innerHeight-n-8))});onEscape(){this.menu()&&this.closed.emit()}onSelect(t){t.disabled||!t.action||(this.select.emit(t.action),this.closed.emit())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-context-menu"]],hostBindings:function(n,r){n&1&&ue("keydown.escape",function(){return r.onEscape()},gt)},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&&S(0,cC,4,4),n&2){let o;N((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 lC=["inputEl"];function uC(e,t){if(e&1&&(m(0,"p",4),v(1),g()),e&2){let n=D();h(),U(n.label)}}function dC(e,t){if(e&1){let n=ee();m(0,"label",8),v(1),g(),m(2,"input",9,0),P("input",function(o){j(n);let i=D(2);return B(i.onInput(o))})("keydown.enter",function(){j(n);let o=D(2);return B(o.confirm())}),g()}if(e&2){let n=D(),r=D();h(),U(n.label||n.title),h(),le("value",r.value()),xe("placeholder",n.placeholder||" ")("aria-label",n.label||n.title)}}function fC(e,t){if(e&1){let n=ee();m(0,"div",1),P("click",function(){j(n);let o=D();return B(o.cancelled.emit())}),g(),m(1,"div",2)(2,"h3",3),v(3),g(),S(4,uC,2,1,"p",4),S(5,dC,4,4),m(6,"div",5)(7,"button",6),P("click",function(){j(n);let o=D();return B(o.cancelled.emit())}),v(8,"Cancel"),g(),m(9,"button",7),P("click",function(){j(n);let o=D();return B(o.confirm())}),v(10),g()()()}if(e&2){let n=t,r=D();h(3),U(n.title),h(),N(n.label?4:-1),h(),N(n.confirmOnly?-1:5),h(4),yt("btn-danger",n.danger),le("disabled",!n.confirmOnly&&!n.allowEmpty&&!r.value().trim()),h(),te(" ",n.okLabel||"OK"," ")}}var Ms=class e{state=X.required();confirmed=ce();cancelled=ce();value=R("");inputEl=os("inputEl");constructor(){rt(()=>{let t=this.state();t&&this.value.set(t.value??"");let n=this.inputEl();t&&n&&(n.nativeElement.focus(),n.nativeElement.select())})}onEscape(){this.state()&&this.cancelled.emit()}onInput(t){this.value.set(t.target.value)}confirm(){let t=this.state();t&&(!t.confirmOnly&&!t.allowEmpty&&!this.value().trim()||this.confirmed.emit(t.confirmOnly?"":this.value().trim()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-prompt-dialog"]],viewQuery:function(n,r){n&1&&zr(r.inputEl,lC,5),n&2&&Wr()},hostBindings:function(n,r){n&1&&ue("keydown.escape",function(){return r.onEscape()},gt)},inputs:{state:[1,"state"]},outputs:{confirmed:"confirmed",cancelled:"cancelled"},decls:1,vars:1,consts:[["inputEl",""],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"dialog"],[1,"title"],[1,"label"],[1,"actions"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["for","prompt-input",1,"sr-only"],["id","prompt-input","type","text","placeholder"," ","title","Enter a value",1,"input",3,"input","keydown.enter","value"]],template:function(n,r){if(n&1&&S(0,fC,11,7),n&2){let o;N((o=r.state())?0:-1,o)}},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;z-index:400}.dialog[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 48px));padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 36px #0009;z-index:401}.title[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:600;color:var(--text-bright)}.label[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--text-dim)}.input[_ngcontent-%COMP%]{padding:7px 10px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:13px;font-family:inherit;outline:none}.input[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.btn[_ngcontent-%COMP%]{padding:6px 14px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;cursor:pointer}.btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.btn-primary[_ngcontent-%COMP%]{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#2b7cd3}.btn-danger[_ngcontent-%COMP%]{background:#a1260d;border-color:#a1260d;color:#fff}.btn-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#c42b1c}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:0})};function Ch(e){e||(e=E(Je));let t=new Q(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(Ks(t))}function _h(e,t){let n=t?.injector??E(Ye),r=new hr(1),o=rt(()=>{let i;try{i=e()}catch(s){Qr(()=>r.error(s));return}Qr(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Je).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var pC=(e,t)=>t.name;function hC(e,t){if(e&1&&(m(0,"option",5),v(1),g()),e&2){let n=t.$implicit;le("value",n.name),h(),U(n.name)}}function mC(e,t){if(e&1){let n=ee();m(0,"div",20)(1,"button",28),P("click",function(){j(n);let o=D();return B(o.chooseRemoteAction("pull"))}),v(2,"Pull"),g(),m(3,"button",28),P("click",function(){j(n);let o=D();return B(o.chooseRemoteAction("pull-rebase"))}),v(4,"Pull (rebase)"),g()()}}function gC(e,t){if(e&1){let n=ee();m(0,"div",20)(1,"button",28),P("click",function(){j(n);let o=D();return B(o.chooseRemoteAction("push"))}),v(2,"Push"),g(),m(3,"button",28),P("click",function(){j(n);let o=D();return B(o.chooseRemoteAction("sync"))}),v(4,"Sync"),g()()}}var yC=300,xs=class e{branches=X.required();selectedBranch=X.required();showRemote=X.required();busy=X.required();branchChange=ce();remoteToggle=ce();searchChange=ce();refresh=ce();remoteAction=ce();openMenu=R(null);searchValue=R("");constructor(){_h(this.searchValue).pipe(qs(yC),Zs(),Ch()).subscribe(t=>this.searchChange.emit(t))}visibleBranches=G(()=>this.branches());onBranchChange(t){this.branchChange.emit(t.target.value)}onRemoteToggle(t){this.remoteToggle.emit(t.target.checked)}onSearch(t){this.searchValue.set(t.target.value)}toggleMenu(t,n){n.stopPropagation(),this.openMenu.update(r=>r===t?null:t)}chooseRemoteAction(t){this.openMenu.set(null),this.remoteAction.emit(t)}closeMenu(){this.openMenu.set(null)}closeMenuOnEscape(){this.openMenu.set(null)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-toolbar"]],hostBindings:function(n,r){n&1&&ue("click",function(){return r.closeMenu()},gt)("keydown.escape",function(){return r.closeMenuOnEscape()},gt)},inputs:{branches:[1,"branches"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],busy:[1,"busy"]},outputs:{branchChange:"branchChange",remoteToggle:"remoteToggle",searchChange:"searchChange",refresh:"refresh",remoteAction:"remoteAction"},decls:41,vars:10,consts:[[1,"toolbar"],[1,"group"],["for","branch-select",1,"label"],["id","branch-select",1,"select",3,"change","value"],["value",""],[3,"value"],[1,"checkbox"],["type","checkbox",3,"change","checked"],[1,"search"],["viewBox","0 0 24 24","aria-hidden","true"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],["type","text","placeholder","Search commits",3,"input","value"],["title","Fetch",1,"icon-btn",3,"click","disabled"],["d","M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"],[1,"action-menu"],["title","Pull",1,"icon-btn",3,"click","disabled"],["cx","12","cy","12","r","10"],["points","8 12 12 16 16 12"],["x1","12","y1","8","x2","12","y2","16"],["role","menu",1,"remote-menu"],["title","Push",1,"icon-btn",3,"click","disabled"],["points","16 12 12 8 8 12"],["x1","12","y1","16","x2","12","y2","8"],["title","Refresh",1,"icon-btn",3,"click"],["points","23 4 23 10 17 10"],["points","1 20 1 14 7 14"],["d","M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"],["type","button","role","menuitem",3,"click"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"div",1)(2,"label",2),v(3,"Branches:"),g(),m(4,"select",3),P("change",function(i){return r.onBranchChange(i)}),m(5,"option",4),v(6,"Show All"),g(),Se(7,hC,2,2,"option",5,pC),g(),m(9,"label",6)(10,"input",7),P("change",function(i){return r.onRemoteToggle(i)}),g(),m(11,"span"),v(12,"Show Remote Branches"),g()()(),m(13,"div",1)(14,"div",8),W(),m(15,"svg",9),K(16,"circle",10)(17,"line",11),g(),Ee(),m(18,"input",12),P("input",function(i){return r.onSearch(i)}),g()(),m(19,"button",13),P("click",function(){return r.remoteAction.emit("fetch")}),W(),m(20,"svg",9),K(21,"path",14),g()(),Ee(),m(22,"div",15)(23,"button",16),P("click",function(i){return r.toggleMenu("pull",i)}),W(),m(24,"svg",9),K(25,"circle",17)(26,"polyline",18)(27,"line",19),g()(),S(28,mC,5,0,"div",20),g(),Ee(),m(29,"div",15)(30,"button",21),P("click",function(i){return r.toggleMenu("push",i)}),W(),m(31,"svg",9),K(32,"circle",17)(33,"polyline",22)(34,"line",23),g()(),S(35,gC,5,0,"div",20),g(),Ee(),m(36,"button",24),P("click",function(){return r.refresh.emit()}),W(),m(37,"svg",9),K(38,"polyline",25)(39,"polyline",26)(40,"path",27),g()()()()),n&2&&(h(4),le("value",r.selectedBranch()),h(3),Ne(r.visibleBranches()),h(3),le("checked",r.showRemote()),h(8),le("value",r.searchValue()),h(),le("disabled",r.busy()),h(4),le("disabled",r.busy()),xe("aria-expanded",r.openMenu()==="pull"),h(5),N(r.openMenu()==="pull"?28:-1),h(2),le("disabled",r.busy()),xe("aria-expanded",r.openMenu()==="push"),h(5),N(r.openMenu()==="push"?35:-1))},styles:[`.toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;height:42px;padding:0 12px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}.label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;white-space:nowrap}.select[_ngcontent-%COMP%]{appearance:none;height:26px;padding:0 26px 0 10px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23cccccc' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--text);font-size:12px;cursor:pointer;outline:none;max-width:260px;text-overflow:ellipsis}.select[_ngcontent-%COMP%]:hover{border-color:#555}.select[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;cursor:pointer;white-space:nowrap}.checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{accent-color:var(--accent);cursor:pointer}.search[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d;color:var(--text-dim)}.search[_ngcontent-%COMP%]:focus-within{border-color:var(--accent)}.search[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;border:none;outline:none;background:transparent;color:var(--text);font-size:12px}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#777}.icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer;flex:none}.action-menu[_ngcontent-%COMP%]{position:relative;display:inline-flex}.remote-menu[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;z-index:20;min-width:132px;padding:4px;background:var(--bg-alt);border:1px solid var(--border);border-radius:4px;box-shadow:0 6px 18px #00000073}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:100%;padding:6px 10px;border:none;border-radius:3px;background:transparent;color:var(--text);font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}`],changeDetection:0})};function vC(e,t){if(e&1&&(O(0,"div",12),v(1),k()),e&2){let n=D();h(),U(n.error())}}function DC(e,t){if(e&1){let n=ee();O(0,"app-commit-detail",19),ue("closed",function(){j(n);let o=D();return B(o.selectedCommit.set(null))}),k()}e&2&&nt("commit",t)}function EC(e,t){e&1&&(O(0,"div",18),Ft(1,"div",20),k())}var wh=500,Ss=class e{git=E(jt);commits=R([]);branches=R([]);selectedBranch=R("");showRemote=R(!0);search=R("");selectedCommit=R(null);loading=R(!1);busy=R(!1);error=R("");repoName=R("");workingChanges=R(null);totalCommits=R(0);historyLoading=R(!1);contextMenuState=R(null);contextMenuTarget=R(null);promptState=R(null);unloadedCommits=G(()=>Math.max(0,this.totalCommits()-this.commits().length));commitIndex=G(()=>{let t=new Map;for(let n of this.commits())t.set(n.hash,n);return t});filteredCommits=G(()=>{let t=this.commits(),n=this.selectedBranch(),r=this.branches().filter(s=>this.showRemote()||!s.remote),o=n?r.filter(s=>s.name===n):r;if(o.length>0){let s=new Set;for(let a of o)for(let c of this.ancestorsOf(a.commit))s.add(c);t=t.filter(a=>s.has(a.hash))}else t=[];let i=this.search().trim().toLowerCase();return i&&(t=t.filter(s=>s.message.toLowerCase().includes(i)||s.body.toLowerCase().includes(i)||s.author_name.toLowerCase().includes(i)||s.hash.toLowerCase().startsWith(i))),t});constructor(){this.refresh(),rt(()=>{(this.search().trim()!==""||this.selectedBranch()!=="")&&this.unloadedCommits()>0&&!this.historyLoading()&&this.loadAllCommits()})}refresh(){this.loading.set(!0),this.error.set(""),Gs({history:this.git.getCommits(wh),branches:this.git.getAllBranches(),repo:this.git.getRepoInfo(),working:this.git.getWorkingChanges().pipe(Zo(()=>Hn({files:[],staged:[],unstaged:[],untracked:[]})))}).subscribe({next:({history:t,branches:n,repo:r,working:o})=>{this.commits.set(t.commits),this.totalCommits.set(Math.max(t.total,t.commits.length)),this.branches.set(n),this.repoName.set(r.name),this.workingChanges.set(o),this.loading.set(!1)},error:t=>{this.error.set(this.errorMessage(t)),this.loading.set(!1)}})}loadMoreCommits(){this.loadHistory(this.git.getCommits(wh,this.commits().length))}loadAllCommits(){this.loadHistory(this.git.getCommits(void 0,this.commits().length))}loadHistory(t){if(this.historyLoading())return;let n=this.commits().length;this.historyLoading.set(!0),t.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.historyLoading.set(!1)}})}onRemoteToggle(t){this.showRemote.set(t)}runRemoteAction(t){this.busy.set(!0),this.error.set(""),(t==="fetch"?this.git.fetch():t==="pull"?this.git.pull():t==="pull-rebase"?this.git.pull(!0):t==="push"?this.git.push():this.git.sync()).subscribe({next:()=>{this.busy.set(!1),this.refresh()},error:r=>{this.busy.set(!1),this.error.set(this.errorMessage(r))}})}onContextMenu(t){let n=[];t.target.kind==="commit"?(n.push({label:"Add Tag...",action:"add-tag"}),n.push({label:"Create Branch...",action:"create-branch"}),n.push({separator:!0}),n.push({label:"Checkout...",action:"checkout-commit"}),n.push({label:"Cherry Pick...",action:"cherry-pick"}),n.push({label:"Revert...",action:"revert-commit",danger:!0}),n.push({label:"Drop...",action:"drop-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Merge into current branch...",action:"merge-commit"}),n.push({label:"Rebase current branch on this Commit...",action:"rebase-commit"}),n.push({label:"Reset current branch to this Commit...",action:"reset-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Copy Commit Hash to Clipboard",action:"copy-hash"}),n.push({label:"Copy Commit Subject to Clipboard",action:"copy-subject"})):t.target.kind==="branch"?(n.push({label:"Checkout Branch...",action:"checkout-branch"}),n.push({label:"Delete Remote Branch...",action:"delete-remote-branch",danger:!0}),n.push({label:"Merge into current branch...",action:"merge-branch"}),n.push({label:"Pull into current branch...",action:"pull-branch"}),n.push({separator:!0}),n.push({label:"Create Archive",action:"create-archive"}),n.push({label:"Unselect in Branches Dropdown",action:"unselect-branch"}),n.push({separator:!0}),n.push({label:"Copy Branch Name to Clipboard",action:"copy-branch-name"})):(n.push({label:"Stash uncommitted changes...",action:"stash-working"}),n.push({label:"Reset uncommitted changes...",action:"reset-working",danger:!0}),n.push({label:"Clean untracked files...",action:"clean-untracked",danger:!0}),n.push({separator:!0}),n.push({label:"Open Source Control View",action:"open-source-control"})),this.contextMenuTarget.set(t.target),this.contextMenuState.set({x:t.x,y:t.y,items:n})}onContextAction(t){let n=this.contextMenuTarget()?.commit??this.selectedCommit();switch(t){case"add-tag":this.promptState.set({title:"Add Tag",label:"Tag name",placeholder:"v1.0.0",okLabel:"Add Tag"});break;case"create-branch":this.promptState.set({title:"Create Branch",label:"Branch name",placeholder:"feature/my-branch",okLabel:"Create Branch"});break;case"checkout-commit":n&&this.git.checkout(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"cherry-pick":n&&this.git.cherryPick(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"open-commit":this.selectedCommit()===null&&this.selectedCommit.set(this.commits()[0]??null);break;case"copy-hash":n&&navigator.clipboard?.writeText(n.hash);break;case"copy-subject":n&&navigator.clipboard?.writeText(n.message);break;case"view-commit-diff":n&&this.selectedCommit.set(n);break;case"revert-commit":n&&this.git.revert(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"drop-commit":this.promptState.set({title:"Drop commit?",label:"This will reset the current branch to the commit before it.",confirmOnly:!0,okLabel:"Drop",danger:!0});break;case"merge-commit":n&&this.git.merge(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"rebase-commit":n&&this.git.rebase(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"reset-commit":this.promptState.set({title:"Reset current branch to this commit?",label:"All commits after this commit will be removed from the current branch.",confirmOnly:!0,okLabel:"Reset",danger:!0});break;case"checkout-branch":this.contextMenuTarget()?.branch?.name&&this.git.checkout(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"delete-remote-branch":{let r=this.contextMenuTarget()?.branch?.name??"",o=r.indexOf("/");o>0&&this.git.deleteRemoteBranch(r.slice(0,o),r.slice(o+1)).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});break}case"merge-branch":this.contextMenuTarget()?.branch?.name&&this.git.merge(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"pull-branch":this.git.pull().subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"create-archive":this.contextMenuTarget()?.commit?.hash&&window.open(mh(`/api/archive?ref=${encodeURIComponent(this.contextMenuTarget().commit.hash)}`),"_blank");break;case"unselect-branch":this.selectedBranch.set("");break;case"copy-branch-name":this.contextMenuTarget()?.branch?.name&&navigator.clipboard?.writeText(this.contextMenuTarget().branch.name);break;case"rename-branch":this.promptState.set({title:"Rename branch",label:"New branch name",placeholder:"feature/my-branch",okLabel:"Rename"});break;case"delete-branch":this.promptState.set({title:"Delete branch?",label:"This will delete the local branch.",confirmOnly:!0,okLabel:"Delete",danger:!0});break;case"open-working":this.selectedCommit.set({hash:xt,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]});break;case"stash-working":this.promptState.set({title:"Stash uncommitted changes",label:"Stash message (optional)",placeholder:"WIP",allowEmpty:!0,okLabel:"Stash"});break;case"reset-working":this.promptState.set({title:"Reset uncommitted changes?",label:"Tracked changes will be discarded. Untracked files will remain.",confirmOnly:!0,okLabel:"Reset",danger:!0});break;case"clean-untracked":this.promptState.set({title:"Clean untracked files?",label:"Untracked files will be permanently deleted.",confirmOnly:!0,okLabel:"Clean",danger:!0});break;case"discard-working":this.git.getWorkingChanges().subscribe({next:r=>{let o=[...r.files.map(i=>i.path),...r.untracked];o.length>0&&this.git.discard(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))})},error:r=>this.error.set(this.errorMessage(r))});break;case"refresh-status":this.refresh();break;case"open-source-control":window.open("vscode://command/workbench.view.scm","_blank");break;default:break}this.contextMenuState.set(null)}onPromptConfirm(t){let n=this.promptState();if(!n)return;this.promptState.set(null);let r=this.contextMenuTarget()?.commit;if(n.title==="Add Tag"&&r){this.git.createTag(t,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Create Branch"&&r){this.git.createBranch(t,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Drop commit?"&&r){this.git.dropCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset current branch to this commit?"&&r){this.git.resetToCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Stash uncommitted changes"){this.git.stashSave(t||void 0).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset uncommitted changes?"){this.git.resetWorking().subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Clean untracked files?"){this.git.cleanUntracked().subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Rename branch"){this.error.set("Branch rename is not available from the current menu flow.");return}if(n.title==="Delete branch?"){this.error.set("Branch deletion is not available from the current menu flow.");return}}ancestorsOf(t){let n=this.commitIndex(),r=new Set,o=[t];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(t){let n=t;return n?.status===400&&n.error?.error?n.error.error:"Failed to communicate with the Guito server."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-root"]],decls:20,vars:17,consts:[[1,"app"],[1,"titlebar"],["aria-label","Repository logo",1,"brand"],["viewBox","0 0 16 16","aria-hidden","true",1,"logo"],["d","M4.5 2.5v11","stroke","#3794ff","stroke-width","1.6","fill","none"],["d","M4.5 11.5c4.5 0 4.5-7 7.5-7","stroke","#4ec9b0","stroke-width","1.6","fill","none"],["cx","4.5","cy","3.5","r","1.7","fill","#3794ff"],["cx","4.5","cy","8","r","1.7","fill","#3794ff"],["cx","4.5","cy","12.5","r","1.7","fill","#3794ff"],["cx","12","cy","4.5","r","1.7","fill","#4ec9b0"],[1,"title"],[3,"branchChange","remoteToggle","searchChange","refresh","remoteAction","branches","selectedBranch","showRemote","busy"],[1,"error-banner"],[1,"content"],[3,"commitClick","contextMenu","loadMoreRequested","loadAllRequested","commits","selectedHash","search","selectedBranch","showRemote","workingChanges","unloaded","historyLoading"],[3,"commit"],[3,"select","closed","menu"],[3,"confirmed","cancelled","state"],[1,"loading-overlay"],[3,"closed","commit"],[1,"spinner"]],template:function(n,r){if(n&1&&(O(0,"div",0)(1,"header",1)(2,"div",2),W(),O(3,"svg",3),Ft(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9),k(),Ee(),O(10,"span",10),v(11,"Guito"),k()()(),O(12,"app-toolbar",11),ue("branchChange",function(i){return r.selectedBranch.set(i)})("remoteToggle",function(i){return r.onRemoteToggle(i)})("searchChange",function(i){return r.search.set(i)})("refresh",function(){return r.refresh()})("remoteAction",function(i){return r.runRemoteAction(i)}),k(),S(13,vC,2,1,"div",12),O(14,"main",13)(15,"app-commit-table",14),ue("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()}),k(),S(16,DC,1,1,"app-commit-detail",15),k(),O(17,"app-context-menu",16),ue("select",function(i){return r.onContextAction(i)})("closed",function(){return r.contextMenuState.set(null)}),k(),O(18,"app-prompt-dialog",17),ue("confirmed",function(i){return r.onPromptConfirm(i)})("cancelled",function(){return r.promptState.set(null)}),k(),S(19,EC,2,0,"div",18),k()),n&2){let o,i;h(12),nt("branches",r.branches())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("busy",r.busy()),h(),N(r.error()?13:-1),h(2),nt("commits",r.filteredCommits())("selectedHash",((o=r.selectedCommit())==null?null:o.hash)??"")("search",r.search())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("workingChanges",r.workingChanges())("unloaded",r.unloadedCommits())("historyLoading",r.historyLoading()),h(),N((i=r.selectedCommit())?16:-1,i),h(),nt("menu",r.contextMenuState()),h(),nt("state",r.promptState()),h(),N(r.loading()?19:-1)}},dependencies:[xs,Is,_s,Ts,Ms],styles:[".app[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;overflow:hidden}.titlebar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex:none;height:38px;padding:0 14px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.logo[_ngcontent-%COMP%]{width:18px;height:18px}.title[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--text-bright);letter-spacing:.2px}.repo[_ngcontent-%COMP%]{font-size:12px;color:var(--text-dim)}.error-banner[_ngcontent-%COMP%]{flex:none;padding:8px 14px;background:#5a1d1d;color:#f48771;border-bottom:1px solid #7a2d2d;font-size:12px}.content[_ngcontent-%COMP%]{display:flex;flex:1;min-height:0}.loading-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#1e1e1e8c;z-index:100}.spinner[_ngcontent-%COMP%]{width:28px;height:28px;border:3px solid rgba(255,255,255,.15);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"],changeDetection:0})};bl(Ss,gh).catch(e=>console.error(e));
|