var qv=Object.defineProperty,Zv=Object.defineProperties;var Yv=Object.getOwnPropertyDescriptors;var kf=Object.getOwnPropertySymbols;var Kv=Object.prototype.hasOwnProperty,Qv=Object.prototype.propertyIsEnumerable;var Ff=(e,t,n)=>t in e?qv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})Kv.call(t,n)&&Ff(e,n,t[n]);if(kf)for(var n of kf(t))Qv.call(t,n)&&Ff(e,n,t[n]);return e},A=(e,t)=>Zv(e,Yv(t));var Me=null,Xi=!1,Yc=1,Jv=null,ye=Symbol("SIGNAL");function M(e){let t=Me;return Me=e,t}function es(){return Me}var un={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Fn(e){if(Xi)throw new Error("");if(Me===null)return;Me.consumerOnSignalRead(e);let t=Me.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Me.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Me.producers,n!==void 0&&n.producer===e)){Me.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Me&&(!r||eD(o,Me)))return;let i=Ir(Me),s={producer:e,consumer:Me,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Me.producersTail=s,t!==void 0?t.nextProducer=s:Me.producers=s,i&&Bf(e,s)}function Lf(){Yc++}function Ln(e){if(!(Ir(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Yc)){if(!e.producerMustRecompute(e)&&!wo(e)){wr(e);return}e.producerRecomputeValue(e),wr(e)}}function Kc(e){if(e.consumers===void 0)return;let t=Xi;Xi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Xv(r)}}finally{Xi=t}}function Qc(){return Me?.consumerAllowSignalWrites!==!1}function Xv(e){e.dirty=!0,Kc(e),e.consumerMarkedDirty?.(e)}function wr(e){e.dirty=!1,e.lastCleanEpoch=Yc}function dn(e){return e&&jf(e),M(e)}function jf(e){e.producersTail=void 0,e.recomputing=!0}function jn(e,t){M(t),e&&Vf(e)}function Vf(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Ir(e))do n=Jc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function wo(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ln(n),r!==n.version))return!0}return!1}function Vn(e){if(Ir(e)){let t=e.producers;for(;t!==void 0;)t=Jc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Bf(e,t){let n=e.consumersTail,r=Ir(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Bf(o.producer,o)}function Jc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Ir(t)){let i=t.producers;for(;i!==void 0;)i=Jc(i)}return n}function Ir(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Io(e){Jv?.(e)}function eD(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 So(e,t){return Object.is(e,t)}function ts(e,t){let n=Object.create(tD);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ln(n),Fn(n),n.value===bt)throw n.error;return n.value};return r[ye]=n,Io(n),r}var ln=Symbol("UNSET"),kn=Symbol("COMPUTING"),bt=Symbol("ERRORED"),tD=A(y({},un),{value:ln,dirty:!0,error:null,equal:So,kind:"computed",producerMustRecompute(e){return e.value===ln||e.value===kn},producerRecomputeValue(e){if(e.value===kn)throw new Error("");let t=e.value;e.value=kn;let n=dn(e),r,o=!1;try{r=e.computation(),M(null),o=t!==ln&&t!==bt&&r!==bt&&e.equal(t,r)}catch(i){r=bt,e.error=i}finally{jn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function nD(){throw new Error}var Uf=nD;function Hf(e){Uf(e)}function Xc(e){Uf=e}var rD=null;function el(e,t){let n=Object.create(rs);n.value=e,t!==void 0&&(n.equal=t);let r=()=>$f(n);return r[ye]=n,Io(n),[r,s=>Bn(n,s),s=>ns(n,s)]}function $f(e){return Fn(e),e.value}function Bn(e,t){Qc()||Hf(e),e.equal(e.value,t)||(e.value=t,oD(e))}function ns(e,t){Qc()||Hf(e),Bn(e,t(e.value))}var rs=A(y({},un),{equal:So,value:void 0,kind:"signal"});function oD(e){e.version++,Lf(),Kc(e),rD?.(e)}var tl=A(y({},un),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function nl(e){if(e.dirty=!1,e.version>0&&!wo(e))return;e.version++;let t=dn(e);try{e.cleanup(),e.fn()}finally{jn(e,t)}}function P(e){return typeof e=="function"}function Sr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var os=Sr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Mo(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _e=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(P(r))try{r()}catch(i){t=i instanceof os?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{zf(i)}catch(s){t=t??[],s instanceof os?t=[...t,...s.errors]:t.push(s)}}if(t)throw new os(t)}}add(t){var n;if(t&&t!==this)if(this.closed)zf(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)&&Mo(n,t)}remove(t){let{_finalizers:n}=this;n&&Mo(n,t),t instanceof e&&t._removeParent(this)}};_e.EMPTY=(()=>{let e=new _e;return e.closed=!0,e})();var rl=_e.EMPTY;function is(e){return e instanceof _e||e&&"closed"in e&&P(e.remove)&&P(e.add)&&P(e.unsubscribe)}function zf(e){P(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Mr={setTimeout(e,t,...n){let{delegate:r}=Mr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Mr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ss(e){Mr.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function To(){}var Gf=ol("C",void 0,void 0);function Wf(e){return ol("E",void 0,e)}function qf(e){return ol("N",e,void 0)}function ol(e,t,n){return{kind:e,value:t,error:n}}var Un=null;function Tr(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!Un;if(t&&(Un={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Un;if(Un=null,n)throw r}}else e()}function Zf(e){ht.useDeprecatedSynchronousErrorHandling&&Un&&(Un.errorThrown=!0,Un.error=e)}var Hn=class extends _e{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,is(t)&&t.add(this)):this.destination=aD}static create(t,n,r){return new fn(t,n,r)}next(t){this.isStopped?sl(qf(t),this):this._next(t)}error(t){this.isStopped?sl(Wf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?sl(Gf,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()}}},iD=Function.prototype.bind;function il(e,t){return iD.call(e,t)}var al=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){as(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){as(r)}else as(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){as(n)}}},fn=class extends Hn{constructor(t,n,r){super();let o;if(P(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ht.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&il(t.next,i),error:t.error&&il(t.error,i),complete:t.complete&&il(t.complete,i)}):o=t}this.destination=new al(o)}};function as(e){ht.useDeprecatedSynchronousErrorHandling?Zf(e):ss(e)}function sD(e){throw e}function sl(e,t){let{onStoppedNotification:n}=ht;n&&Mr.setTimeout(()=>n(e,t))}var aD={closed:!0,next:To,error:sD,complete:To};var Ar=typeof Symbol=="function"&&Symbol.observable||"@@observable";function pt(e){return e}function cl(...e){return ll(e)}function ll(e){return e.length===0?pt:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var j=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=lD(n)?n:new fn(n,r,o);return Tr(()=>{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=Yf(r),new r((o,i)=>{let s=new fn({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)}[Ar](){return this}pipe(...n){return ll(n)(this)}toPromise(n){return n=Yf(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 Yf(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function cD(e){return e&&P(e.next)&&P(e.error)&&P(e.complete)}function lD(e){return e&&e instanceof Hn||cD(e)&&is(e)}function uD(e){return P(e?.lift)}function $(e){return t=>{if(uD(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 z(e,t,n,r,o){return new ul(e,t,n,r,o)}var ul=class extends Hn{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 Kf=Sr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var me=(()=>{class e extends j{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new cs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Kf}next(n){Tr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Tr(()=>{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(){Tr(()=>{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?rl:(this.currentObservers=null,i.push(n),new _e(()=>{this.currentObservers=null,Mo(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new j;return n.source=this,n}}return e.create=(t,n)=>new cs(t,n),e})(),cs=class extends me{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:rl}};var be=class extends me{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 we=new j(e=>e.complete());function Qf(e){return e&&P(e.schedule)}function Jf(e){return e[e.length-1]}function ls(e){return P(Jf(e))?e.pop():void 0}function hn(e){return Qf(Jf(e))?e.pop():void 0}function eh(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 Xf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $n(e){return this instanceof $n?(this.v=e,this):new $n(e)}function th(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(v){return Promise.resolve(v).then(f,d)}}function a(f,v){r[f]&&(o[f]=function(_){return new Promise(function(b,w){i.push([f,_,b,w])>1||c(f,_)})},v&&(o[f]=v(o[f])))}function c(f,v){try{l(r[f](v))}catch(_){h(i[0][3],_)}}function l(f){f.value instanceof $n?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,v){f(v),i.shift(),i.length&&c(i[0][0],i[0][1])}}function nh(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 Xf=="function"?Xf(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 us=e=>e&&typeof e.length=="number"&&typeof e!="function";function ds(e){return P(e?.then)}function fs(e){return P(e[Ar])}function hs(e){return Symbol.asyncIterator&&P(e?.[Symbol.asyncIterator])}function ps(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 dD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gs=dD();function ms(e){return P(e?.[gs])}function ys(e){return th(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield $n(n.read());if(o)return yield $n(void 0);yield yield $n(r)}}finally{n.releaseLock()}})}function vs(e){return P(e?.getReader)}function fe(e){if(e instanceof j)return e;if(e!=null){if(fs(e))return fD(e);if(us(e))return hD(e);if(ds(e))return pD(e);if(hs(e))return rh(e);if(ms(e))return gD(e);if(vs(e))return mD(e)}throw ps(e)}function fD(e){return new j(t=>{let n=e[Ar]();if(P(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hD(e){return new j(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ss)})}function gD(e){return new j(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function rh(e){return new j(t=>{yD(e,t).catch(n=>t.error(n))})}function mD(e){return rh(ys(e))}function yD(e,t){var n,r,o,i;return eh(this,void 0,void 0,function*(){try{for(n=nh(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 Fe(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 Ds(e,t=0){return $((n,r)=>{n.subscribe(z(r,o=>Fe(r,e,()=>r.next(o),t),()=>Fe(r,e,()=>r.complete(),t),o=>Fe(r,e,()=>r.error(o),t)))})}function Cs(e,t=0){return $((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function oh(e,t){return fe(e).pipe(Cs(t),Ds(t))}function ih(e,t){return fe(e).pipe(Cs(t),Ds(t))}function sh(e,t){return new j(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ah(e,t){return new j(n=>{let r;return Fe(n,t,()=>{r=e[gs](),Fe(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)}),()=>P(r?.return)&&r.return()})}function Es(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(n=>{Fe(n,t,()=>{let r=e[Symbol.asyncIterator]();Fe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ch(e,t){return Es(ys(e),t)}function lh(e,t){if(e!=null){if(fs(e))return oh(e,t);if(us(e))return sh(e,t);if(ds(e))return ih(e,t);if(hs(e))return Es(e,t);if(ms(e))return ah(e,t);if(vs(e))return ch(e,t)}throw ps(e)}function ae(e,t){return t?lh(e,t):fe(e)}function k(...e){let t=hn(e);return ae(e,t)}function dl(e,t){let n=P(e)?e:()=>e,r=o=>o.error(n());return new j(t?o=>t.schedule(r,0,o):r)}function _s(e){return!!e&&(e instanceof j||P(e.lift)&&P(e.subscribe))}var $t=Sr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function wt(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new fn({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new $t)}});e.subscribe(i)})}function W(e,t){return $((n,r)=>{let o=0;n.subscribe(z(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:vD}=Array;function DD(e,t){return vD(t)?e(...t):e(t)}function bs(e){return W(t=>DD(e,t))}var{isArray:CD}=Array,{getPrototypeOf:ED,prototype:_D,keys:bD}=Object;function ws(e){if(e.length===1){let t=e[0];if(CD(t))return{args:t,keys:null};if(wD(t)){let n=bD(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function wD(e){return e&&typeof e=="object"&&ED(e)===_D}function Is(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function fl(...e){let t=hn(e),n=ls(e),{args:r,keys:o}=ws(e);if(r.length===0)return ae([],t);let i=new j(ID(r,t,o?s=>Is(o,s):pt));return n?i.pipe(bs(n)):i}function ID(e,t,n=pt){return r=>{uh(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let l=ae(e[c],t),u=!1;l.subscribe(z(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function uh(e,t,n){e?Fe(n,e,t):t()}function dh(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=_=>l{i&&t.next(_),l++;let b=!1;fe(n(_,u++)).subscribe(z(t,w=>{o?.(w),i?f(w):t.next(w)},()=>{b=!0},void 0,()=>{if(b)try{for(l--;c.length&&lv(w)):v(w)}h()}catch(w){t.error(w)}}))};return e.subscribe(z(t,f,()=>{d=!0,h()})),()=>{a?.()}}function xe(e,t,n=1/0){return P(t)?xe((r,o)=>W((i,s)=>t(r,i,o,s))(fe(e(r,o))),n):(typeof t=="number"&&(n=t),$((r,o)=>dh(r,o,e,n)))}function fh(e=1/0){return xe(pt,e)}function hh(){return fh(1)}function Nr(...e){return hh()(ae(e,hn(e)))}function Ao(e){return new j(t=>{fe(e()).subscribe(t)})}function hl(...e){let t=ls(e),{args:n,keys:r}=ws(e),o=new j(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Is(r,a):a),i.complete())}))}});return t?o.pipe(bs(t)):o}function gt(e,t){return $((n,r)=>{let o=0;n.subscribe(z(r,i=>e.call(t,i,o++)&&r.next(i)))})}function No(e){return $((t,n)=>{let r=null,o=!1,i;r=t.subscribe(z(n,void 0,void 0,s=>{i=fe(e(s,No(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function xr(e,t){return P(t)?xe(e,t,1):xe(e,1)}function ph(e){return $((t,n)=>{let r=!1;t.subscribe(z(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function zt(e){return e<=0?()=>we:$((t,n)=>{let r=0;t.subscribe(z(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function gh(e=SD){return $((t,n)=>{let r=!1;t.subscribe(z(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function SD(){return new $t}function xo(e){return $((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Gt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?gt((o,i)=>e(o,i,r)):pt,zt(1),n?ph(t):gh(()=>new $t))}function Ss(e){return e<=0?()=>we:$((t,n)=>{let r=[];t.subscribe(z(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function pl(...e){let t=hn(e);return $((n,r)=>{(t?Nr(e,n,t):Nr(e,n)).subscribe(r)})}function Ue(e,t){return $((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(z(r,c=>{o?.unsubscribe();let l=0,u=i++;fe(e(c,u)).subscribe(o=z(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ro(e){return $((t,n)=>{fe(e).subscribe(z(n,()=>n.complete(),To)),!n.closed&&t.subscribe(n)})}function tt(e,t,n){let r=P(e)||t||n?{next:e,error:t,complete:n}:e;return r?$((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(z(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):pt}var gl;function Ms(){return gl}function It(e){let t=gl;return gl=e,t}var mh=Symbol("NotFound");function Rr(e){return e===mh||e?.name==="\u0275NotFound"}function ml(e,t,n){let r=Object.create(MD);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Ln(r),Fn(r),r.value===bt)throw r.error;return r.value};return i[ye]=r,Io(r),i}function yh(e,t){Ln(e),Bn(e,t),wr(e)}function vh(e,t){if(Ln(e),e.value===bt)throw e.error;ns(e,t),wr(e)}var MD=A(y({},un),{value:ln,dirty:!0,error:null,equal:So,kind:"linkedSignal",producerMustRecompute(e){return e.value===ln||e.value===kn},producerRecomputeValue(e){if(e.value===kn)throw new Error("");let t=e.value;e.value=kn;let n=dn(e),r;try{let o=e.source(),i=t===ln||t===bt?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=bt,e.error=o}finally{jn(e,n)}if(t!==ln&&r!==bt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Dh(e){let t=M(null);try{return e()}finally{M(t)}}var Ps="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",E=class extends Error{code;constructor(t,n){super(vn(t,n)),this.code=t}};function TD(e){return`NG0${Math.abs(e)}`}function vn(e,t){return`${TD(e)}${t?": "+t:""}`}var qt=globalThis;function G(e){for(let t in e)if(e[t]===G)return t;throw Error("")}function wh(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Vo(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Vo).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(` `);return r>=0?n.slice(0,r):n}function Al(e,t){return e?t?`${e} ${t}`:e:t||""}var AD=G({__forward_ref__:G});function Dn(e){return e.__forward_ref__=Dn,e}function Ie(e){return Nl(e)?e():e}function Nl(e){return typeof e=="function"&&e.hasOwnProperty(AD)&&e.__forward_ref__===Dn}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function mt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Bo(e){return ND(e,ks)}function xl(e){return Bo(e)!==null}function ND(e,t){return e.hasOwnProperty(t)&&e[t]||null}function xD(e){let t=e?.[ks]??null;return t||null}function vl(e){return e&&e.hasOwnProperty(As)?e[As]:null}var ks=G({\u0275prov:G}),As=G({\u0275inj:G}),I=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Rl(e){return e&&!!e.\u0275providers}var Ol=G({\u0275cmp:G}),Pl=G({\u0275dir:G}),kl=G({\u0275pipe:G}),Fl=G({\u0275mod:G}),Po=G({\u0275fac:G}),Zn=G({__NG_ELEMENT_ID__:G}),Ch=G({__NG_ENV_ID__:G});function Ll(e){return Fs(e,"@NgModule"),e[Fl]||null}function Cn(e){return Fs(e,"@Component"),e[Ol]||null}function jl(e){return Fs(e,"@Directive"),e[Pl]||null}function Ih(e){return Fs(e,"@Pipe"),e[kl]||null}function Fs(e,t){if(e==null)throw new E(-919,!1)}function Pr(e){return typeof e=="string"?e:e==null?"":String(e)}var Sh=G({ngErrorCode:G}),RD=G({ngErrorMessage:G}),OD=G({ngTokenPath:G});function Vl(e,t){return Mh("",-200,t)}function Ls(e,t){throw new E(-201,!1)}function Mh(e,t,n){let r=new E(t,e);return r[Sh]=t,r[RD]=e,n&&(r[OD]=n),r}function PD(e){return e[Sh]}var Dl;function Th(){return Dl}function Re(e){let t=Dl;return Dl=e,t}function Bl(e,t,n){let r=Bo(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;Ls(e,"")}var kD={},zn=kD,FD="__NG_DI_FLAG__",Cl=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Gn(n)||0;try{return this.injector.get(t,r&8?null:zn,r)}catch(o){if(Rr(o))return o;throw o}}};function LD(e,t=0){let n=Ms();if(n===void 0)throw new E(-203,!1);if(n===null)return Bl(e,void 0,t);{let r=jD(t),o=n.retrieve(e,r);if(Rr(o)){if(r.optional)return null;throw o}return o}}function T(e,t=0){return(Th()||LD)(Ie(e),t)}function p(e,t){return T(e,Gn(t))}function Gn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function jD(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function El(e){let t=[];for(let n=0;nArray.isArray(n)?js(n,t):t(n))}function Ul(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Uo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ah(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 Nh(e,t,n){let r=kr(e,t);return r>=0?e[r|1]=n:(r=~r,Ah(e,r,t,n)),r}function Vs(e,t){let n=kr(e,t);if(n>=0)return e[n|1]}function kr(e,t){return BD(e,t,1)}function BD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return js(t,s=>{let a=s;Ns(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Oh(o,i),n}function Oh(e,t){for(let n=0;n{t(i,r)})}}function Ns(e,t,n,r){if(e=Ie(e),!e)return!1;let o=null,i=vl(e),s=!i&&Cn(e);if(!i&&!s){let c=e.ngModule;if(i=vl(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)Ns(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;js(i.imports,u=>{Ns(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&Oh(l,t)}if(!a){let l=pn(o)||(()=>new o);t({provide:o,useFactory:l,deps:He},o),t({provide:Hl,useValue:o,multi:!0},o),t({provide:Yn,useValue:()=>T(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;zl(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function zl(e,t){for(let n of e)Rl(n)&&(n=n.\u0275providers),Array.isArray(n)?zl(n,t):t(n)}var UD=G({provide:String,useValue:G});function Ph(e){return e!==null&&typeof e=="object"&&UD in e}function HD(e){return!!(e&&e.useExisting)}function $D(e){return!!(e&&e.useFactory)}function Wn(e){return typeof e=="function"}function kh(e){return!!e.useClass}var $o=new I(""),Ts={},Eh={},yl;function zo(){return yl===void 0&&(yl=new ko),yl}var ne=class{},qn=class extends ne{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,bl(t,s=>this.processProvider(s)),this.records.set(Ho,Or(void 0,this)),o.has("environment")&&this.records.set(ne,Or(void 0,this));let i=this.records.get($o);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Hl,He,{self:!0}))}retrieve(t,n){let r=Gn(n)||0;try{return this.get(t,zn,r)}catch(o){if(Rr(o))return o;throw o}}destroy(){Oo(this),this._destroyed=!0;let t=M(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(),M(t)}}onDestroy(t){return Oo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Oo(this);let n=It(this),r=Re(void 0),o;try{return t()}finally{It(n),Re(r)}}get(t,n=zn,r){if(Oo(this),t.hasOwnProperty(Ch))return t[Ch](this);let o=Gn(r),i,s=It(this),a=Re(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=ZD(t)&&Bo(t);u&&this.injectableDefInScope(u)?l=Or(_l(t),Ts):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?zo():this.parent;return n=o&8&&n===zn?null:n,c.get(t,n)}catch(c){let l=PD(c);throw l===-200||l===-201?new E(l,null):c}finally{Re(a),It(s)}}resolveInjectorInitializers(){let t=M(null),n=It(this),r=Re(void 0),o;try{let i=this.get(Yn,He,{self:!0});for(let s of i)s()}finally{It(n),Re(r),M(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Ie(t);let n=Wn(t)?t:Ie(t&&t.provide),r=GD(t);if(!Wn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Or(void 0,Ts,!0),o.factory=()=>El(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=M(null);try{if(n.value===Eh)throw Vl("");return n.value===Ts&&(n.value=Eh,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&qD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ie(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 _l(e){let t=Bo(e),n=t!==null?t.factory:pn(e);if(n!==null)return n;if(e instanceof I)throw new E(-204,!1);if(e instanceof Function)return zD(e);throw new E(-204,!1)}function zD(e){if(e.length>0)throw new E(-204,!1);let n=xD(e);return n!==null?()=>n.factory(e):()=>new e}function GD(e){if(Ph(e))return Or(void 0,e.useValue);{let t=Gl(e);return Or(t,Ts)}}function Gl(e,t,n){let r;if(Wn(e)){let o=Ie(e);return pn(o)||_l(o)}else if(Ph(e))r=()=>Ie(e.useValue);else if($D(e))r=()=>e.useFactory(...El(e.deps||[]));else if(HD(e))r=(o,i)=>T(Ie(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Ie(e&&(e.useClass||e.provide));if(WD(e))r=()=>new o(...El(e.deps));else return pn(o)||_l(o)}return r}function Oo(e){if(e.destroyed)throw new E(-205,!1)}function Or(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function WD(e){return!!e.deps}function qD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ZD(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function bl(e,t){for(let n of e)Array.isArray(n)?bl(n,t):n&&Rl(n)?bl(n.\u0275providers,t):t(n)}function De(e,t){let n;e instanceof qn?(Oo(e),n=e):n=new Cl(e);let r,o=It(n),i=Re(void 0);try{return t()}finally{It(o),Re(i)}}function Fh(){return Th()!==void 0||Ms()!=null}var yt=0,N=1,x=2,ve=3,nt=4,rt=5,Fr=6,Lr=7,le=8,Zt=9,Mt=10,re=11,jr=12,Wl=13,Kn=14,$e=15,Qn=16,Jn=17,Xn=18,Tt=19,ql=20,Wt=21,Bs=22,gn=23,ze=24,Us=25,At=26,pe=27,Lh=1,Zl=6,bn=7,Go=8,Wo=9,ce=10;function Nt(e){return Array.isArray(e)&&typeof e[Lh]=="object"}function ot(e){return Array.isArray(e)&&e[Lh]===!0}function Yl(e){return(e.flags&4)!==0}function Yt(e){return e.componentOffset>-1}function Hs(e){return(e.flags&1)===1}function xt(e){return!!e.template}function Vr(e){return(e[x]&512)!==0}function er(e){return(e[x]&256)===256}var jh="svg",Vh="math";function it(e){for(;Array.isArray(e);)e=e[yt];return e}function Kl(e,t){return it(t[e])}function vt(e,t){return it(t[e.index])}function qo(e,t){return e.data[t]}function $s(e,t){return e[t]}function Ql(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Ge(e,t){let n=t[e];return Nt(n)?n:n[yt]}function zs(e){return(e[x]&128)===128}function Bh(e){return ot(e[ve])}function wn(e,t){return t==null?null:e[t]}function Jl(e){e[Jn]=0}function Xl(e){e[x]&1024||(e[x]|=1024,zs(e)&&Br(e))}function Uh(e,t){for(;e>0;)t=t[Kn],e--;return t}function Zo(e){return!!(e[x]&9216||e[ze]?.dirty)}function Gs(e){e[Mt].changeDetectionScheduler?.notify(8),e[x]&64&&(e[x]|=1024),Zo(e)&&Br(e)}function Br(e){e[Mt].changeDetectionScheduler?.notify(0);let t=mn(e);for(;t!==null&&!(t[x]&8192||(t[x]|=8192,!zs(t)));)t=mn(t)}function eu(e,t){if(er(e))throw new E(911,!1);e[Wt]===null&&(e[Wt]=[]),e[Wt].push(t)}function Hh(e,t){if(e[Wt]===null)return;let n=e[Wt].indexOf(t);n!==-1&&e[Wt].splice(n,1)}function mn(e){let t=e[ve];return ot(t)?t[ve]:t}function $h(e){return e[Lr]??=[]}function zh(e){return e.cleanup??=[]}var F={lFrame:cp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var wl=!1;function Gh(){return F.lFrame.elementDepthCount}function Wh(){F.lFrame.elementDepthCount++}function qh(){F.lFrame.elementDepthCount--}function Zh(){return F.bindingsEnabled}function Yh(){return F.skipHydrationRootTNode!==null}function Kh(e){return F.skipHydrationRootTNode===e}function Qh(){F.skipHydrationRootTNode=null}function V(){return F.lFrame.lView}function Te(){return F.lFrame.tView}function Q(e){return F.lFrame.contextLView=e,e[le]}function J(e){return F.lFrame.contextLView=null,e}function je(){let e=tu();for(;e!==null&&e.type===64;)e=e.parent;return e}function tu(){return F.lFrame.currentTNode}function Jh(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ur(e,t){let n=F.lFrame;n.currentTNode=e,n.isParent=t}function nu(){return F.lFrame.isParent}function Xh(){F.lFrame.isParent=!1}function ep(){return F.lFrame.contextLView}function ru(){return wl}function Fo(e){let t=wl;return wl=e,t}function Ws(){let e=F.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tp(){return F.lFrame.bindingIndex}function np(e){return F.lFrame.bindingIndex=e}function tr(){return F.lFrame.bindingIndex++}function ou(e){let t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rp(){return F.lFrame.inI18n}function op(e,t){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,qs(t)}function ip(){return F.lFrame.currentDirectiveIndex}function qs(e){F.lFrame.currentDirectiveIndex=e}function sp(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function iu(e){F.lFrame.currentQueryIndex=e}function YD(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[rt]:null}function su(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=YD(i),o===null||(i=i[Kn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=F.lFrame=ap();return r.currentTNode=t,r.lView=e,!0}function Zs(e){let t=ap(),n=e[N];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ap(){let e=F.lFrame,t=e===null?null:e.child;return t===null?cp(e):t}function cp(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 lp(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var au=lp;function Ys(){let e=lp();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 up(e){return(F.lFrame.contextLView=Uh(e,F.lFrame.contextLView))[le]}function Kt(){return F.lFrame.selectedIndex}function In(e){F.lFrame.selectedIndex=e}function Ks(){let e=F.lFrame;return qo(e.tView,e.selectedIndex)}function dp(){return F.lFrame.currentNamespace}var fp=!0;function Qs(){return fp}function Js(e){fp=e}function Il(e,t=null,n=null,r){let o=cu(e,t,n,r);return o.resolveInjectorInitializers(),o}function cu(e,t=null,n=null,r,o=new Set){let i=[n||He,Rh(e)],s;return new qn(i,t||zo(),s||null,o)}var Le=class e{static THROW_IF_NOT_FOUND=zn;static NULL=new ko;static create(t,n){if(Array.isArray(t))return Il({name:""},n,t,"");{let r=t.name??"";return Il({name:r},t.parent,t.providers,r)}}static \u0275prov=S({token:e,providedIn:"any",factory:()=>T(Ho)});static __NG_ELEMENT_ID__=-1},ue=new I(""),We=(()=>{class e{static __NG_ELEMENT_ID__=KD;static __NG_ENV_ID__=n=>n}return e})(),xs=class extends We{_lView;constructor(t){super(),this._lView=t}get destroyed(){return er(this._lView)}onDestroy(t){let n=this._lView;return eu(n,t),()=>Hh(n,t)}};function KD(){return new xs(V())}var hp=!1,pp=new I(""),Qt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new be(!1);debugTaskTracker=p(pp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new j(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),Sl=class extends me{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Fh()&&(this.destroyRef=p(We,{optional:!0})??void 0,this.pendingTasks=p(Qt,{optional:!0})??void 0)}emit(t){let n=M(null);try{super.next(t)}finally{M(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 _e&&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)}})}}},he=Sl;function Rs(...e){}function lu(e){let t,n;function r(){e=Rs;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 gp(e){return queueMicrotask(()=>e()),()=>{e=Rs}}var uu="isAngularZone",Lo=uu+"_ID",QD=0,Oe=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new he(!1);onMicrotaskEmpty=new he(!1);onStable=new he(!1);onError=new he(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=hp}=t;if(typeof Zone>"u")throw new E(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,eC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(uu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new E(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,JD,Rs,Rs);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)}},JD={};function du(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 XD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){lu(()=>{e.callbackScheduled=!1,Ml(e),e.isCheckStableRunning=!0,du(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ml(e)}function eC(e){let t=()=>{XD(e)},n=QD++;e._inner=e._inner.fork({name:"angular",properties:{[uu]:!0,[Lo]:n,[Lo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(tC(c))return r.invokeTask(i,s,a,c);try{return _h(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),bh(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return _h(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!nC(c)&&t(),bh(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ml(e),du(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 Ml(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function _h(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bh(e){e._nesting--,du(e)}var jo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new he;onMicrotaskEmpty=new he;onStable=new he;onError=new he;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 tC(e){return mp(e,"__ignore_ng_zone__")}function nC(e){return mp(e,"__scheduler_tick__")}function mp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var St=class{_console=console;handleError(t){this._console.error("ERROR",t)}},qe=new I("",{factory:()=>{let e=p(Oe),t=p(ne),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(St),n.handleError(r))})}}}),yp={provide:Yn,useValue:()=>{let e=p(St,{optional:!0})},multi:!0},rC=new I("",{factory:()=>{let e=p(ue).defaultView;if(!e)return;let t=p(qe),n=i=>{t(i.reason),i.preventDefault()},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(o):o(),p(We).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function fu(){return _n([xh(()=>{p(rC)})])}function L(e,t){let[n,r,o]=el(e,t?.equal),i=n,s=i[ye];return i.set=r,i.update=o,i.asReadonly=Xs.bind(i),i}function Xs(){let e=this[ye];if(e.readonlyFn===void 0){let t=()=>this();t[ye]=e,e.readonlyFn=t}return e.readonlyFn}var ea=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=oC}return e})();function oC(){return new ea(V(),je())}var yn=class{},Yo=new I("",{factory:()=>!0});var hu=new I(""),Ko=(()=>{class e{internalPendingTasks=p(Qt);scheduler=p(yn);errorHandler=p(qe);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),ta=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new Tl})}return e})(),Tl=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}},Os=class{[ye];constructor(t){this[ye]=t}destroy(){this[ye].destroy()}};function na(e,t){let n=t?.injector??p(Le),r=t?.manualCleanup!==!0?n.get(We):null,o,i=n.get(ea,null,{optional:!0}),s=n.get(yn);return i!==null?(o=aC(i.view,s,e),r instanceof xs&&r._lView===i.view&&(r=null)):o=cC(e,n.get(ta),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Os(o)}var vp=A(y({},tl),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Fo(!1);try{nl(this)}finally{Fo(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(e)}}}),iC=A(y({},vp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Vn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),sC=A(y({},vp),{consumerMarkedDirty(){this.view[x]|=8192,Br(this.view),this.notifier.notify(13)},destroy(){if(Vn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[gn]?.delete(this)}});function aC(e,t,n){let r=Object.create(sC);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Dp(r,n),e[gn]??=new Set,e[gn].add(r),r.consumerMarkedDirty(r),r}function cC(e,t,n){let r=Object.create(iC);return r.fn=Dp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Dp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function si(e){return{toString:e}.toString()}function mC(e){return typeof e=="function"}function Qp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ca=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},Mn=(()=>{let e=()=>Jp;return e.ngInherit=!0,e})();function Jp(e){return e.type.prototype.ngOnChanges&&(e.setInput=vC),yC}function yC(){let e=eg(this),t=e?.current;if(t){let n=e.previous;if(n===En)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function vC(e,t,n,r,o){let i=this.declaredInputs[r],s=eg(e)||DC(e,{previous:En,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new ca(l&&l.currentValue,n,c===En),Qp(e,t,o,n)}var Xp="__ngSimpleChanges__";function eg(e){return e[Xp]||null}function DC(e,t){return e[Xp]=t}var Cp=[];var Z=function(e,t=null,n){for(let r=0;r=r)break}else t[c]<0&&(e[Jn]+=65536),(a>14>16&&(e[x]&3)===t&&(e[x]+=16384,Ep(a,i)):Ep(a,i)}var $r=-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 bC(e){return(e.flags&8)!==0}function wC(e){return(e.flags&16)!==0}function IC(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function ua(e,t){let n=MC(e),r=t;for(;n>0;)r=r[Kn],n--;return r}var Su=!0;function da(e){let t=Su;return Su=e,t}var TC=256,og=TC-1,ig=5,AC=0,Rt={};function NC(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Zn)&&(r=n[Zn]),r==null&&(r=n[Zn]=AC++);let o=r&og,i=1<>ig)]|=i}function fa(e,t){let n=sg(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,gu(r.data,e),gu(t,null),gu(r.blueprint,null));let o=Yu(e,t),i=e.injectorIndex;if(rg(o)){let s=la(o),a=ua(o,t),c=a[N].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function gu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Yu(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=dg(o),r===null)return $r;if(n++,o=o[Kn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return $r}function Mu(e,t,n){NC(e,t,n)}function xC(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+u,h=o?a+u:l;for(let f=d;f=c&&v.type===n)return f}if(o){let f=s[c];if(f&&xt(f)&&f.type===n)return c}return null}function ha(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof rr){let a=i;if(a.resolving)throw Vl("");let c=da(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?Re(a.injectImpl):null,h=su(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&CC(n,s[n],t)}finally{d!==null&&Re(d),da(c),a.resolving=!1,au()}}return i}function PC(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Zn)?e[Zn]:void 0;return typeof t=="number"?t>=0?t&og:kC:t}function bp(e,t,n){let r=1<>ig)]&r)}function wp(e,t){return!(e&2)&&!(e&1&&t)}var nr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return lg(this._tNode,this._lView,t,Gn(r),n)}};function kC(){return new nr(je(),V())}function cr(e){return si(()=>{let t=e.prototype.constructor,n=t[Po]||Tu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Po]||Tu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Tu(e){return Nl(e)?()=>{let t=Tu(Ie(e));return t&&t()}:pn(e)}function FC(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[x]&2048&&!Vr(s);){let a=ug(i,s,n,r|2,Rt);if(a!==Rt)return a;let c=i.parent;if(!c){let l=s[ql];if(l){let u=l.get(n,Rt,r&-5);if(u!==Rt)return u}c=dg(s),s=s[Kn]}i=c}return o}function dg(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[rt]:null}function ai(e){return xC(je(),e)}function LC(){return Ku(je(),V())}function Ku(e,t){return new Tn(vt(e,t))}var Tn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=LC}return e})();function fg(e){return(e.flags&128)===128}var Qu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Qu||{}),hg=new Map,jC=0;function VC(){return jC++}function BC(e){hg.set(e[Tt],e)}function Au(e){hg.delete(e[Tt])}var Ip="__ngContext__";function zr(e,t){Nt(t)?(e[Ip]=t[Tt],BC(t)):e[Ip]=t}function pg(e){return mg(e[jr])}function gg(e){return mg(e[nt])}function mg(e){for(;e!==null&&!ot(e);)e=e[nt];return e}var UC;function Ju(e){UC=e}var Ia=new I("",{factory:()=>HC}),HC="ng";var Sa=new I(""),ci=new I("",{providedIn:"platform",factory:()=>"unknown"});var Ma=new I("",{factory:()=>p(ue).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var yg="r";var vg="di";var Dg=!1,Cg=new I("",{factory:()=>Dg});var $C=(e,t,n,r)=>{};function zC(e,t,n,r){$C(e,t,n,r)}function Xu(e){return(e.flags&32)===32}var GC=()=>null;function Eg(e,t,n=!1){return GC(e,t,n)}function _g(e,t){let n=e.contentQueries;if(n!==null){let r=M(null);try{for(let o=0;oe,createScript:e=>e,createScriptURL:e=>e})}catch{}return ra}function Sp(e){return WC()?.createScriptURL(e)||e}var pa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ps})`}};function Ta(e){return e instanceof pa?e.changingThisBreaksApplicationSecurity:e}function ed(e,t){let n=wg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ps})`)}return n===t}function wg(e){return e instanceof pa&&e.getTypeName()||null}var qC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ig(e){return e=String(e),e.match(qC)?e:"unsafe:"+e}function ZC(e,t){return e.createText(t)}function YC(e,t,n){e.setValue(t,n)}function Sg(e,t,n){return e.createElement(t,n)}function ga(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Mg(e,t,n){e.appendChild(t,n)}function Mp(e,t,n,r,o){r!==null?ga(e,t,n,r,o):Mg(e,t,n)}function Tg(e,t,n,r){e.removeChild(null,t,n,r)}function KC(e,t,n){e.setAttribute(t,"style",n)}function QC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Ag(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&IC(e,t,r),o!==null&&QC(e,t,o),i!==null&&KC(e,t,i)}var Aa=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(Aa||{});function Na(e){let t=xg();return t?t.sanitize(Aa.URL,e)||"":ed(e,"URL")?Ta(e):Ig(Pr(e))}function Ng(e){let t=xg();if(t)return Sp(t.sanitize(Aa.RESOURCE_URL,e)||"");if(ed(e,"ResourceURL"))return Sp(Ta(e));throw new E(904,!1)}var JC=new Set(["embed","frame","iframe","media","script"]),XC=new Set(["base","link","script"]);function eE(e,t){return t==="src"&&JC.has(e)||t==="href"&&XC.has(e)||t==="xlink:href"&&e==="script"?Ng:Na}function td(e,t,n){return eE(t,n)(e)}function xg(){let e=V();return e&&e[Mt].sanitizer}function Rg(e){return e instanceof Function?e():e}function tE(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 Og="ng-template";function nE(e,t,n,r){let o=0;if(r){for(;o-1){let i;for(;++oi?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Dt(r))return!1;s=!0}}}}return Dt(r)||s}function Dt(e){return(e&1)===0}function iE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Dt(s)&&(t+=Tp(i,o),o=""),r=s,i=i||!Dt(r);n++}return o!==""&&(t+=Tp(i,o)),t}function uE(e){return e.map(lE).join(",")}function dE(e){let t=[],n=[],r=1,o=2;for(;r=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),Ou.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function yE(e,t){let n=Ru.get(e);n?n.includes(t)||n.push(t):Ru.set(e,[t])}var Sn=new Set,ad=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ad||{}),lr=new I(""),Ap=new Set;function ur(e){Ap.has(e)||(Ap.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Lg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();var jg=new I("",{factory:()=>{let e=p(ne),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Vg(e,t,n){let r=e.get(jg);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 vE(e,t){let n=e.get(jg);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function DE(e,t){for(let[n,r]of t)Vg(e,r.animateFns)}function Np(e,t,n,r){let o=e?.[At]?.enter;t!==null&&o&&o.has(n.index)&&DE(r,o)}function xp(e,t,n,r){try{n.get(Ho)}catch{return r(!1)}let o=e?.[At],i=CE(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];Ra(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&Sn.add(e[Tt]),Vg(n,()=>EE(e,t,o||void 0,i,r),o||void 0)}function CE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[N].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent}}return r}function EE(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(e&&Ra(e,t,i),i.length>0){let s=n||e?.[At];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),_E(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&Sn.delete(e[Tt]),o(!0)})}else e&&Sn.delete(e[Tt]),o(!1)}function Ra(e,t,n){if(Yt(t)){let o=Ge(t.index,e);Rp(o,n)}else if(t.type&12){let o=e[t.index];if(ot(o))for(let i=ce;i{e[At]?.running===t&&(e[At].running=void 0,Sn.delete(e[Tt])),n(!0)})}function Hr(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;ot(o)?c=o:Nt(o)&&(l=!0,o=o[yt]);let u=it(o);e===0&&r!==null?(Np(a,r,i,n),s==null?Mg(t,r,u):ga(t,r,u,s||null,!0)):e===1&&r!==null?(Np(a,r,i,n),ga(t,r,u,s||null,!0),mE(i,u)):e===2?(a?.[At]?.leave?.has(i.index)&&yE(i,u),xp(a,i,n,d=>{if(Ou.has(u)){Ou.delete(u);return}Tg(t,u,l,d)})):e===3&&xp(a,i,n,()=>{t.destroyNode(u)}),c!=null&&PE(t,e,n,c,i,r,s)}}function bE(e,t){Bg(e,t),t[yt]=null,t[rt]=null}function wE(e,t,n,r,o,i){r[yt]=o,r[rt]=t,Pa(e,r,n,1,o,i)}function Bg(e,t){t[Mt].changeDetectionScheduler?.notify(9),Pa(e,t,t[re],2,null,null)}function IE(e){let t=e[jr];if(!t)return mu(e[N],e);for(;t;){let n=null;if(Nt(t))n=t[jr];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[nt]&&t!==e;)Nt(t)&&mu(t[N],t),t=t[ve];t===null&&(t=e),Nt(t)&&mu(t[N],t),n=t&&t[nt]}t=n}}function cd(e,t){let n=e[Wo],r=n.indexOf(t);n.splice(r,1)}function Oa(e,t){if(er(t))return;let n=t[re];n.destroyNode&&Pa(e,t,n,3,null,null),IE(t)}function mu(e,t){if(er(t))return;let n=M(null);try{t[x]&=-129,t[x]|=256,t[ze]&&Vn(t[ze]),ME(e,t),SE(e,t),t[N].type===1&&t[re].destroy();let r=t[Qn];if(r!==null&&ot(t[ve])){r!==t[ve]&&cd(r,t);let o=t[Xn];o!==null&&o.detachView(e)}Au(t)}finally{M(n)}}function SE(e,t){let n=e.cleanup,r=t[Lr];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Lr]=null);let o=t[Wt];if(o!==null){t[Wt]=null;for(let s=0;spe&&Fg(e,t,pe,!1);let a=s?U.TemplateUpdateStart:U.TemplateCreateStart;Z(a,o,n),n(r,o)}finally{In(i);let a=s?U.TemplateUpdateEnd:U.TemplateCreateEnd;Z(a,o,n)}}function $g(e,t,n){HE(e,t,n),(n.flags&64)===64&&$E(e,t,n)}function zg(e,t,n=vt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;inull;function VE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Gg(e,t,n,r,o,i){let s=t[N];if(dd(e,s,t,n,r)){Yt(e)&&UE(t,e.index);return}e.type&3&&(n=VE(n)),BE(e,t,n,r,o,i)}function BE(e,t,n,r,o,i){if(e.type&3){let s=vt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function UE(e,t){let n=Ge(t,e);n[x]&16||(n[x]|=64)}function HE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Yt(n)&&pE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||fa(n,t);let i=n.initialInputs;for(let s=r;s{Br(e.lView)},consumerOnSignalRead(){this.lView[ze]=this}});function i_(e){let t=e[ze]??Object.create(s_);return t.lView=e,t}var s_=A(y({},un),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=mn(e.lView);for(;t&&!Yg(t[N]);)t=mn(t);t&&Xl(t)},consumerOnSignalRead(){this.lView[ze]=this}});function Yg(e){return e.type!==2}function Kg(e){if(e[gn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[gn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[x]&8192)}}var a_=100;function Qg(e,t=0){let r=e[Mt].rendererFactory,o=!1;o||r.begin?.();try{c_(e,t)}finally{o||r.end?.()}}function c_(e,t){let n=ru();try{Fo(!0),ku(e,t);let r=0;for(;Zo(e);){if(r===a_)throw new E(103,!1);r++,ku(e,1)}}finally{Fo(n)}}function l_(e,t,n,r){if(er(t))return;let o=t[x],i=!1,s=!1;Zs(t);let a=!0,c=null,l=null;i||(Yg(e)?(l=t_(t),c=dn(l)):es()===null?(a=!1,l=i_(t),c=dn(l)):t[ze]&&(Vn(t[ze]),t[ze]=null));try{Jl(t),np(e.bindingStartIndex),n!==null&&Hg(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&ia(t,f,null)}else{let f=e.preOrderHooks;f!==null&&sa(t,f,0,null),pu(t,0)}if(s||u_(t),Kg(t),Jg(t,0),e.contentQueries!==null&&_g(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&ia(t,f)}else{let f=e.contentHooks;f!==null&&sa(t,f,1),pu(t,1)}f_(e,t);let d=e.components;d!==null&&em(t,d,0);let h=e.viewQuery;if(h!==null&&Nu(2,h,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&ia(t,f)}else{let f=e.viewHooks;f!==null&&sa(t,f,2),pu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Bs]){for(let f of t[Bs])f();t[Bs]=null}i||(qg(t),t[x]&=-73)}catch(u){throw i||Br(t),u}finally{l!==null&&(jn(l,c),a&&r_(l)),Ys()}}function Jg(e,t){for(let n=pg(e);n!==null;n=gg(n))for(let r=ce;r0&&(e[n-1][nt]=r[nt]);let i=Uo(e,ce+t);bE(r[N],r);let s=i[Xn];s!==null&&s.detachView(i[N]),r[ve]=null,r[nt]=null,r[x]&=-129}return r}function h_(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][nt]=t),r-1&&(ri(t,r),Uo(n,r))}this._attachedToViewContainer=!1}Oa(this._lView[N],this._lView)}onDestroy(t){eu(this._lView,t)}markForCheck(){pd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[x]&=-129}reattach(){Gs(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,Qg(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Vr(this._lView),n=this._lView[Qn];n!==null&&!t&&cd(n,this._lView),Bg(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t;let n=Vr(this._lView),r=this._lView[Qn];r!==null&&!n&&om(r,this._lView),Gs(this._lView)}};function gd(e,t,n,r,o){let i=e.data[t];if(i===null)i=p_(e,t,n,r,o),rp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Jh();i.injectorIndex=s===null?-1:s.injectorIndex}return Ur(i,!0),i}function p_(e,t,n,r,o){let i=tu(),s=nu(),a=s?i:i&&i.parent,c=e.data[t]=m_(e,a,n,t,r,o);return g_(e,c,i,s),c}function g_(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 m_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Yh()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function y_(e){let t=e[Zl]??[],r=e[ve][re],o=[];for(let i of t)i.data[vg]!==void 0?o.push(i):v_(i,r);e[Zl]=o}function v_(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[yg];for(;nnull,C_=()=>null;function Fu(e,t){return D_(e,t)}function im(e,t,n){return C_(e,t,n)}var sm=class{},Fa=class{},Lu=class{resolveComponentFactory(t){throw new E(917,!1)}},li=class{static NULL=new Lu},ir=class{},dr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>E_()}return e})();function E_(){let e=V(),t=je(),n=Ge(t.index,e);return(Nt(n)?n:e)[re]}var am=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();var aa={},ju=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,aa,r);return o!==aa||n===aa?o:this.parentInjector.get(t,n,r)}};function Pp(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&(n.directiveToIndex=new Map);for(let h=0;h0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function N_(e,t,n){if(n){if(t.exportAs)for(let r=0;rr(it(_[e.index])):e.index;hm(v,t,n,i,a,f,!1)}}return l}function O_(e){return e.startsWith("animation")||e.startsWith("transition")}function P_(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function hm(e,t,n,r,o,i,s){let a=t.firstCreatePass?zh(t):null,c=$h(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function Vp(e,t,n,r,o,i){let s=t[n],a=t[N],l=a.data[n].outputs[r],d=s[l].subscribe(i);hm(e.index,a,t,o,i,d,!0)}var Vu=Symbol("BINDING");var ma=class extends li{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Cn(t);return new Gr(n,this.ngModule)}};function k_(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&xa.SignalBased)!==0};return o&&(i.transform=o),i})}function F_(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function L_(e,t,n){let r=t instanceof ne?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ju(n,r):n}function j_(e){let t=e.get(ir,null);if(t===null)throw new E(407,!1);let n=e.get(am,null),r=e.get(yn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function V_(e,t){let n=pm(e);return Sg(t,n,n==="svg"?jh:n==="math"?Vh:null)}function pm(e){return(e.selectors[0][0]||"div").toLowerCase()}var Gr=class extends Fa{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=k_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=F_(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){Z(U.DynamicComponentStart);let a=M(null);try{let c=this.componentDef,l=B_(r,c,s,i),u=L_(c,o||this.ngModule,t),d=j_(u),h=d.rendererFactory.createRenderer(null,c),f=r?FE(h,r,c.encapsulation,u):V_(c,h),v=s?.some(Bp)||i?.some(w=>typeof w!="function"&&w.bindings.some(Bp)),_=od(null,l,null,512|Pg(c),null,null,d,h,u,null,Eg(f,u,!0));_[pe]=f,Zs(_);let b=null;try{let w=lm(pe,_,2,"#host",()=>l.directiveRegistry,!0,0);Ag(h,f,w),zr(f,_),$g(l,_,w),bg(l,w,_),um(l,w),n!==void 0&&H_(w,this.ngContentSelectors,n),b=Ge(w.index,_),_[le]=b[le],fd(l,_,null)}catch(w){throw b!==null&&Au(b),Au(_),w}finally{Z(U.DynamicComponentEnd),Ys()}return new ya(this.componentType,_,!!v)}finally{M(a)}}};function B_(e,t,n,r){let o=e?["ng-version","21.2.1"]:dE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Vu].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Bp(e){let t=e[Vu].kind;return t==="input"||t==="twoWay"}var ya=class extends sm{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=qo(n[N],pe),this.location=Ku(this._tNode,n),this.instance=Ge(this._tNode.index,n)[le],this.hostView=this.changeDetectorRef=new or(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=dd(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=Ge(r.index,o);pd(s,1)}get injector(){return new nr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function H_(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=$_}return e})();function $_(){let e=je();return G_(e,V())}var z_=ui,gm=class extends z_{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ku(this._hostTNode,this._hostLView)}get injector(){return new nr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Yu(this._hostTNode,this._hostLView);if(rg(t)){let n=ua(t,this._hostLView),r=la(t),o=n[N].data[r+8];return new nr(o,n)}else return new nr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Up(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Fu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ti(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!mC(t),l;if(c)l=n;else{let b=n||{};l=b.index,r=b.injector,o=b.projectableNodes,i=b.environmentInjector||b.ngModuleRef,s=b.directives,a=b.bindings}let u=c?t:new Gr(Cn(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let w=(c?d:this.parentInjector).get(ne,null);w&&(i=w)}let h=Cn(u.componentType??{}),f=Fu(this._lContainer,h?.id??null),v=f?.firstChild??null,_=u.create(d,o,v,i,s,a);return this.insertImpl(_.hostView,l,ti(this._hostTNode,f)),_}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Bh(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ve],l=new gm(c,c[rt],c[ve]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return ka(s,o,i,r),t.attachToViewContainerRef(),Ul(vu(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Up(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ri(this._lContainer,n);r&&(Uo(vu(this._lContainer),n),Oa(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=ri(this._lContainer,n);return r&&Uo(vu(this._lContainer),n)!=null?new or(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Up(e){return e[Go]}function vu(e){return e[Go]||(e[Go]=[])}function G_(e,t){let n,r=t[e.index];return ot(r)?n=r:(n=tm(r,t,null,e),t[e.index]=n,id(t,n)),q_(n,t,e,r),new gm(n,e,t)}function W_(e,t){let n=e[re],r=n.createComment(""),o=vt(t,e),i=n.parentNode(o);return ga(n,i,r,n.nextSibling(o),!1),r}var q_=K_,Z_=()=>!1;function Y_(e,t,n){return Z_(e,t,n)}function K_(e,t,n,r){if(e[bn])return;let o;n.type&8?o=it(r):o=W_(t,n),e[bn]=o}var sr=class{},La=class{};var va=class extends sr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ma(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Ll(t);this._bootstrapComponents=Rg(i.bootstrap),this._r3Injector=cu(t,n,[{provide:sr,useValue:this},{provide:li,useValue:this.componentFactoryResolver},...r],Vo(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Da=class extends La{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new va(this.moduleType,t,[])}};var oi=class extends sr{injector;componentFactoryResolver=new ma(this);instance=null;constructor(t){super();let n=new qn([...t.providers,{provide:sr,useValue:this},{provide:li,useValue:this.componentFactoryResolver}],t.parent||zo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function di(e,t,n=null){return new oi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Q_=(()=>{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=$l(!1,n.type),o=r.length>0?di([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=S({token:e,providedIn:"environment",factory:()=>new e(T(ne))})}return e})();function Jt(e){return si(()=>{let t=mm(e),n=A(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Qu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Q_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||He,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ur("NgStandalone"),ym(n);let r=e.dependencies;return n.directiveDefs=Hp(r,J_),n.pipeDefs=Hp(r,Ih),n.id=tb(n),n})}function J_(e){return Cn(e)||jl(e)}function kt(e){return si(()=>({type:e.type,bootstrap:e.bootstrap||He,declarations:e.declarations||He,imports:e.imports||He,exports:e.exports||He,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function X_(e,t){if(e==null)return En;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=xa.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function eb(e){if(e==null)return En;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Pe(e){return si(()=>{let t=mm(e);return ym(t),t})}function ja(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 mm(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||En,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||He,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:X_(e.inputs,t),outputs:eb(e.outputs),debugInfo:null}}function ym(e){e.features?.forEach(t=>t(e))}function Hp(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 tb(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 nb(e){return Object.getPrototypeOf(e.prototype).constructor}function Xt(e){let t=nb(e.type),n=!0,r=[e];for(;t;){let o;if(xt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new E(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Du(e.inputs),s.declaredInputs=Du(e.declaredInputs),s.outputs=Du(e.outputs);let a=o.hostBindings;a&&ab(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&ib(e,c),l&&sb(e,l),rb(e,o),wh(e.outputs,o.outputs),xt(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ei(o.hostAttrs,n=ei(n,o.hostAttrs))}}function Du(e){return e===En?{}:e===He?[]:e}function ib(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function sb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function ab(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function cb(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ei(e.mergedAttrs,e.attrs);let u=e.tView=rd(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),Ur(e,!1);let c=lb(n,t,e,r);Qs()&&ld(n,t,c,e),zr(c,t);let l=tm(c,t,c,e);t[r+pe]=l,id(t,l),Y_(l,e,t)}function Ca(e,t,n,r,o,i,s,a,c,l,u){let d=n+pe,h;if(t.firstCreatePass){if(h=gd(t,d,4,s||null,a||null),l!=null){let f=wn(t.consts,l);h.localNames=[];for(let v=0;v{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function yd(e){return typeof e=="function"&&e[ye]!==void 0}function vd(e){return yd(e)&&typeof e.set=="function"}var Dd=new I("");function An(e){return!!e&&typeof e.then=="function"}function Cd(e){return!!e&&typeof e.subscribe=="function"}var vm=new I("");var Ed=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(vm,{optional:!0})??[];injector=p(Le);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=De(this.injector,o);if(An(i))n.push(i);else if(Cd(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Va=new I("");function Dm(){Xc(()=>{let e="";throw new E(600,e)})}function Cm(e){return e.isBoundToModule}var db=10;var fr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(qe);afterRenderManager=p(Lg);zonelessEnabled=p(Yo);rootEffectScheduler=p(ta);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new me;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(Qt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(W(n=>!n))}constructor(){p(lr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(ne);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Le.NULL){return this._injector.get(Oe).run(()=>{Z(U.BootstrapComponentStart);let s=n instanceof Fa;if(!this._injector.get(Ed).done){let v="";throw new E(405,v)}let c;s?c=n:c=this._injector.get(li).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Cm(c)?void 0:this._injector.get(sr),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,f=d.injector.get(Dd,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),Xo(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),Z(U.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Z(U.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ad.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Z(U.ChangeDetectionEnd),new E(101,!1);let n=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(n),this.afterTick.next(),Z(U.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ir,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++Zo(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;Xo(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(Va,[]).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),()=>Xo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function hr(e,t,n,r){let o=V(),i=tr();if(Pt(o,i,t)){let s=Te(),a=Ks();WE(a,o,e,t,n,r)}return hr}var Bu=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 Cu(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function fb(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){M(r);let l=t.length-1;for(M(null);s<=a&&s<=l;){let u=e.at(s),d=t[s],h=Cu(s,u,s,d,n);if(h!==0){h<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),v=t[l],_=Cu(a,f,l,v,n);if(_!==0){_<0&&e.updateValue(a,v),a--,l--;continue}let b=n(s,u),w=n(a,f),K=n(s,d);if(Object.is(K,w)){let Ee=n(l,v);Object.is(Ee,b)?(e.swap(s,a),e.updateValue(a,v),l--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ea,i??=zp(e,s,a,n),Uu(e,o,s,K))e.updateValue(s,d),s++,a++;else if(i.has(K))o.set(b,e.detach(s)),a--;else{let Ee=e.create(s,t[s]);e.attach(s,Ee),s++,a++}}for(;s<=l;)$p(e,o,n,s,t[s]),s++}else if(t!=null){M(r);let l=t[Symbol.iterator]();M(null);let u=l.next();for(;!u.done&&s<=a;){let d=e.at(s),h=u.value,f=Cu(s,d,s,h,n);if(f!==0)f<0&&e.updateValue(s,h),s++,u=l.next();else{o??=new Ea,i??=zp(e,s,a,n);let v=n(s,h);if(Uu(e,o,s,v))e.updateValue(s,h),s++,a++,u=l.next();else if(!i.has(v))e.attach(s,e.create(s,h)),s++,a++,u=l.next();else{let _=n(s,d);o.set(_,e.detach(s)),a--}}}for(;!u.done;)$p(e,o,n,e.length,u.value),u=l.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l)})}function Uu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function $p(e,t,n,r,o){if(Uu(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function zp(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 Ea=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 oe(e,t,n,r,o,i,s,a){ur("NgControlFlow");let c=V(),l=Te(),u=wn(l.consts,i);return Ca(c,l,e,t,n,r,o,u,256,s,a),_d}function _d(e,t,n,r,o,i,s,a){ur("NgControlFlow");let c=V(),l=Te(),u=wn(l.consts,i);return Ca(c,l,e,t,n,r,o,u,512,s,a),_d}function ie(e,t){ur("NgControlFlow");let n=V(),r=tr(),o=n[r]!==st?n[r]:-1,i=o!==-1?_a(n,pe+o):void 0,s=0;if(Pt(n,r,e)){let a=M(null);try{if(i!==void 0&&rm(i,s),e!==-1){let c=pe+e,l=_a(n,c),u=Gu(n[N],c),d=im(l,u,n),h=hd(n,u,t,{dehydratedView:d});ka(l,h,s,ti(u,d))}}finally{M(a)}}else if(i!==void 0){let a=nm(i,s);a!==void 0&&(a[le]=t)}}var Hu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ce}};var $u=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function pr(e,t,n,r,o,i,s,a,c,l,u,d,h){ur("NgControlFlow");let f=V(),v=Te(),_=c!==void 0,b=V(),w=a?s.bind(b[$e][le]):s,K=new $u(_,w);b[pe+e]=K,Ca(f,v,e+1,t,n,r,o,wn(v.consts,i),256),_&&Ca(f,v,e+2,c,l,u,d,wn(v.consts,h),512)}var zu=class extends Bu{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-ce}at(t){return this.getLView(t)[le].$implicit}attach(t,n){let r=n[Fr];this.needsIndexUpdate||=t!==this.length,ka(this.lContainer,n,t,ti(this.templateTNode,r)),hb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,pb(this.lContainer,t),gb(this.lContainer,t)}create(t,n){let r=Fu(this.lContainer,this.templateTNode.tView.ssrId);return hd(this.hostLView,this.templateTNode,new Hu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Oa(t[N],t)}updateValue(t,n){this.getLView(t)[le].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t0){let i=r[Zt];vE(i,o),Sn.delete(r[Tt]),o.detachedLeaveAnimationFns=void 0}}function pb(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n],o=r?r[At]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function gb(e,t){return ri(e,t)}function mb(e,t){return nm(e,t)}function Gu(e,t){return qo(e,t)}function ke(e,t,n){let r=V(),o=tr();if(Pt(r,o,t)){let i=Te(),s=Ks();Gg(s,r,e,t,r[re],n)}return ke}function Gp(e,t,n,r,o){dd(t,e,n,o?"class":"style",r)}function m(e,t,n,r){let o=V(),i=o[N],s=e+pe,a=i.firstCreatePass?lm(s,o,2,t,GE,Zh(),n,r):i.data[s];if(YE(a,o,e,t,yb),Hs(a)){let c=o[N];$g(c,o,a),bg(c,a,o)}return r!=null&&zg(o,a),m}function g(){let e=Te(),t=je(),n=KE(t);return e.firstCreatePass&&um(e,n),Kh(n)&&Qh(),qh(),n.classesWithoutHost!=null&&bC(n)&&Gp(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&wC(n)&&Gp(e,n,V(),n.stylesWithoutHost,!1),g}function qr(e,t,n,r){return m(e,t,n,r),g(),qr}var yb=(e,t,n,r,o)=>(Js(!0),Sg(t[re],r,dp()));function at(){return V()}var Qo=void 0;function vb(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Db=["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"]],Qo,[["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"]],Qo,[["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\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Qo,Qo,Qo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",vb],Eu={};function Ze(e){let t=Cb(e),n=Wp(t);if(n)return n;let r=t.split("-")[0];if(n=Wp(r),n)return n;if(r==="en")return Db;throw new E(701,!1)}function Wp(e){return e in Eu||(Eu[e]=qt.ng&&qt.ng.common&&qt.ng.common.locales&&qt.ng.common.locales[e]),Eu[e]}var de=(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})(de||{});function Cb(e){return e.toLowerCase().replace(/_/g,"-")}var fi="en-US";var Eb=fi;function Em(e){typeof e=="string"&&(Eb=e.toLowerCase().replace(/_/g,"-"))}function te(e,t,n){let r=V(),o=Te(),i=je();return _m(o,r,r[re],i,e,t,n),te}function _m(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=yu(r,t,i),R_(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>17&32767}function _b(e){return(e&2)==2}function bb(e,t){return e&131071|t<<17}function Wu(e){return e|2}function Wr(e){return(e&131068)>>2}function _u(e,t){return e&-131069|t<<2}function wb(e){return(e&1)===1}function qu(e){return e|1}function Ib(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ar(s),c=Wr(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||kr(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=ar(e[a+1]);e[r+1]=oa(h,a),h!==0&&(e[h+1]=_u(e[h+1],r)),e[a+1]=bb(e[a+1],r)}else e[r+1]=oa(a,0),a!==0&&(e[a+1]=_u(e[a+1],r)),a=r;else e[r+1]=oa(c,0),a===0?a=r:e[c+1]=_u(e[c+1],r),c=r;l&&(e[r+1]=Wu(e[r+1])),qp(e,u,r,!0),qp(e,u,r,!1),Sb(t,u,e,r,i),s=oa(a,c),i?t.classBindings=s:t.styleBindings=s}function Sb(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&kr(i,t)>=0&&(n[r+1]=qu(n[r+1]))}function qp(e,t,n,r){let o=e[n+1],i=t===null,s=r?ar(o):Wr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Mb(c,t)&&(a=!0,e[s+1]=r?qu(l):Wu(l)),s=r?ar(l):Wr(l)}a&&(e[n+1]=r?Wu(o):qu(o))}function Mb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?kr(e,t)>=0:!1}function Ye(e,t){return Tb(e,t,null,!0),Ye}function Tb(e,t,n,r){let o=V(),i=Te(),s=ou(2);if(i.firstUpdatePass&&Nb(i,e,s,r),t!==st&&Pt(o,s,t)){let a=i.data[Kt()];kb(i,a,o,o[re],e,o[s+1]=Fb(t,n),r,s)}}function Ab(e,t){return t>=e.expandoStartIndex}function Nb(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Kt()],s=Ab(e,n);Lb(i,r)&&t===null&&!s&&(t=!1),t=xb(o,i,t,r),Ib(o,i,t,n,s,r)}}function xb(e,t,n,r){let o=sp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=bu(null,e,t,n,r),n=ii(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=bu(o,e,t,n,r),i===null){let c=Rb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=bu(null,e,t,c[1],r),c=ii(c,t.attrs,r),Ob(e,t,r,c))}else i=Pb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Rb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Wr(r)!==0)return e[ar(r)]}function Ob(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ar(o)]=r}function Pb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[o+1];h===st&&(h=d?He:void 0);let f=d?Vs(h,r):u===r?h:void 0;if(l&&!ba(f)&&(f=Vs(c,r)),ba(f)&&(a=f,s))return a;let v=e[o+1];o=s?ar(v):Wr(v)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Vs(c,r))}return a}function ba(e){return e!==void 0}function Fb(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Vo(Ta(e)))),e}function Lb(e,t){return(e.flags&(t?8:16))!==0}function D(e,t=""){let n=V(),r=Te(),o=e+pe,i=r.firstCreatePass?gd(r,o,1,t,null):r.data[o],s=jb(r,n,i,t);n[o]=s,Qs()&&ld(r,n,s,i),Ur(i,!1)}var jb=(e,t,n,r)=>(Js(!0),ZC(t[re],r));function Vb(e,t,n,r=""){return Pt(e,tr(),n)?t+Pr(n)+r:st}function Bb(e,t,n,r,o,i=""){let s=tp(),a=fm(e,s,n,o);return ou(2),a?t+Pr(n)+r+Pr(o)+i:st}function X(e){return ct("",e),X}function ct(e,t,n){let r=V(),o=Vb(r,e,t,n);return o!==st&&bm(r,Kt(),o),ct}function mr(e,t,n,r,o){let i=V(),s=Bb(i,e,t,n,r,o);return s!==st&&bm(i,Kt(),s),mr}function bm(e,t,n){let r=Kl(t,e);YC(e[re],r,n)}function Ke(e,t,n){vd(t)&&(t=t());let r=V(),o=tr();if(Pt(r,o,t)){let i=Te(),s=Ks();Gg(s,r,e,t,r[re],n)}return Ke}function lt(e,t){let n=vd(e);return n&&e.set(t),n}function Qe(e,t){let n=V(),r=Te(),o=je();return _m(r,n,n[re],o,e,t),Qe}function Yp(e,t,n){let r=Te();r.firstCreatePass&&wm(t,r.data,r.blueprint,xt(e),n)}function wm(e,t,n,r,o){if(e=Ie(e),Array.isArray(e))for(let i=0;i>20;if(Wn(e)||!e.multi){let f=new rr(l,o,B,null),v=Iu(c,t,o?u:u+h,d);v===-1?(Mu(fa(a,s),i,c),wu(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[v]=f,s[v]=f)}else{let f=Iu(c,t,u+h,d),v=Iu(c,t,u,u+h),_=f>=0&&n[f],b=v>=0&&n[v];if(o&&!b||!o&&!_){Mu(fa(a,s),i,c);let w=$b(o?Hb:Ub,n.length,o,r,l,e);!o&&b&&(n[v].providerFactory=w),wu(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(w),s.push(w)}else{let w=Im(n[o?v:f],l,!o&&r);wu(i,e,f>-1?f:v,w)}!o&&r&&b&&n[v].componentProviders++}}}function wu(e,t,n,r){let o=Wn(t),i=kh(t);if(o||i){let c=(i?Ie(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Im(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Iu(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>Yp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Yp(r,o?o(t):t,!0))}}function wd(e,t,n){return Mm(V(),Ws(),e,t,n)}function Sm(e,t){let n=e[t];return n===st?void 0:n}function Mm(e,t,n,r,o,i){let s=t+n;return Pt(e,s,o)?dm(e,s+1,i?r.call(i,o):r(o)):Sm(e,s+1)}function zb(e,t,n,r,o,i,s){let a=t+n;return fm(e,a,o,i)?dm(e,a+2,s?r.call(s,o,i):r(o,i)):Sm(e,a+2)}function yr(e,t){let n=Te(),r,o=e+pe;n.firstCreatePass?(r=Gb(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=pn(r.type,!0)),s,a=Re(B);try{let c=da(!1),l=i();return da(c),Ql(n,V(),o,l),l}finally{Re(a)}}function Gb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Id(e,t,n){let r=e+pe,o=V(),i=$s(o,r);return Tm(o,r)?Mm(o,Ws(),t,i.transform,n,i):i.transform(n)}function Zr(e,t,n,r){let o=e+pe,i=V(),s=$s(i,o);return Tm(i,o)?zb(i,Ws(),t,s.transform,n,r,s):s.transform(n,r)}function Tm(e,t){return e[N].data[t].pure}var wa=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Sd=(()=>{class e{compileModuleSync(n){return new Da(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Ll(n),i=Rg(o.declarations).reduce((s,a)=>{let c=Cn(a);return c&&s.push(new Gr(c)),s},[]);return new wa(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Am=(()=>{class e{applicationErrorHandler=p(qe);appRef=p(fr);taskService=p(Qt);ngZone=p(Oe);zonelessEnabled=p(Yo);tracing=p(lr,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new _e;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Lo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(hu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;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;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?gp:lu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Lo+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.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nm(){return[{provide:yn,useExisting:Am},{provide:Oe,useClass:jo},{provide:Yo,useValue:!0}]}function Wb(){return typeof $localize<"u"&&$localize.locale||fi}var pi=new I("",{factory:()=>p(pi,{optional:!0,skipSelf:!0})||Wb()});function q(e){return Dh(e)}function Se(e,t){return ts(e,t?.equal)}var qb=e=>e;function Md(e,t){if(typeof e=="function"){let n=ml(e,qb,t?.equal);return xm(n,t?.debugName)}else{let n=ml(e.source,e.computation,e.equal);return xm(n,e.debugName)}}function xm(e,t){let n=e[ye],r=e;return r.set=o=>yh(n,o),r.update=o=>vh(n,o),r.asReadonly=Xs.bind(e),r}var Om=Symbol("InputSignalNode#UNSET"),hw=A(y({},rs),{transformFn:void 0,applyValueToInputSignal(e,t){Bn(e,t)}});function Pm(e,t){let n=Object.create(hw);n.value=e,n.transformFn=t?.transform;function r(){if(Fn(n),n.value===Om){let o=null;throw new E(-950,o)}return n.value}return r[ye]=n,r}var Ua=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>ai(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function Rm(e,t){return Pm(e,t)}function pw(e){return Pm(Om,e)}var km=(Rm.required=pw,Rm);var Td=new I(""),gw=new I("");function gi(e){return!e.moduleRef}function mw(e){let t=gi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Oe);return n.run(()=>{gi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(qe),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),gi(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Td);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Td);s.add(i),e.moduleRef.onDestroy(()=>{Xo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return vw(r,n,()=>{let i=t.get(Qt),s=i.add(),a=t.get(Ed);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(pi,fi);if(Em(c||fi),!t.get(gw,!0))return gi(e)?t.get(fr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(gi(e)){let u=t.get(fr);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return yw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var yw;function vw(e,t,n){try{let r=n();return An(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Ba=null;function Dw(e=[],t){return Le.create({name:t,providers:[{provide:$o,useValue:"platform"},{provide:Td,useValue:new Set([()=>Ba=null])},...e]})}function Cw(e=[]){if(Ba)return Ba;let t=Dw(e);return Ba=t,Dm(),Ew(t),t}function Ew(e){let t=e.get(Sa,null);De(e,()=>{t?.forEach(n=>n())})}var _w=1e4;var QV=_w-1e3;var Yr=(()=>{class e{static __NG_ELEMENT_ID__=bw}return e})();function bw(e){return ww(je(),V(),(e&16)===16)}function ww(e,t,n){if(Yt(e)&&!n){let r=Ge(e.index,t);return new or(r,r)}else if(e.type&175){let r=t[$e];return new or(r,t)}return null}function Fm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;Z(U.BootstrapApplicationStart);try{let i=o?.injector??Cw(r),s=[Nm(),yp,...n||[]],a=new oi({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return mw({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{Z(U.BootstrapApplicationEnd)}}function Kr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Lm=null;function ut(){return Lm}function xd(e){Lm??=e}var mi=class{},Qr=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>p(jm),providedIn:"platform"})}return e})();var jm=(()=>{class e extends Qr{_location;_history;_doc=p(ue);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ut().getBaseHref(this._doc)}onPopState(n){let r=ut().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ut().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Um(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Vm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Nn(e){return e&&e[0]!=="?"?`?${e}`:e}var Jr=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>p(Sw),providedIn:"root"})}return e})(),Iw=new I(""),Sw=(()=>{class e extends Jr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Um(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Nn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Nn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Nn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(T(Qr),T(Iw,8))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Xr=(()=>{class e{_subject=new me;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Aw(Vm(Bm(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Nn(r))}normalize(n){return e.stripTrailingSlash(Tw(this._basePath,Bm(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Nn;static joinWithSlash=Um;static stripTrailingSlash=Vm;static \u0275fac=function(r){return new(r||e)(T(Jr))};static \u0275prov=S({token:e,factory:()=>Mw(),providedIn:"root"})}return e})();function Mw(){return new Xr(T(Jr))}function Tw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Bm(e){return e.replace(/\/index.html$/,"")}function Aw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Ae=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ae||{}),Y=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(Y||{}),Be=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Be||{}),tn={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 $m(e){return Ze(e)[de.LocaleId]}function zm(e,t,n){let r=Ze(e),o=[r[de.DayPeriodsFormat],r[de.DayPeriodsStandalone]],i=dt(o,t);return dt(i,n)}function Gm(e,t,n){let r=Ze(e),o=[r[de.DaysFormat],r[de.DaysStandalone]],i=dt(o,t);return dt(i,n)}function Wm(e,t,n){let r=Ze(e),o=[r[de.MonthsFormat],r[de.MonthsStandalone]],i=dt(o,t);return dt(i,n)}function qm(e,t){let r=Ze(e)[de.Eras];return dt(r,t)}function yi(e,t){let n=Ze(e);return dt(n[de.DateFormat],t)}function vi(e,t){let n=Ze(e);return dt(n[de.TimeFormat],t)}function Di(e,t){let r=Ze(e)[de.DateTimeFormat];return dt(r,t)}function Ci(e,t){let n=Ze(e),r=n[de.NumberSymbols][t];if(typeof r>"u"){if(t===tn.CurrencyDecimal)return n[de.NumberSymbols][tn.Decimal];if(t===tn.CurrencyGroup)return n[de.NumberSymbols][tn.Group]}return r}function Zm(e){if(!e[de.ExtraData])throw new E(2303,!1)}function Ym(e){let t=Ze(e);return Zm(t),(t[de.ExtraData][2]||[]).map(r=>typeof r=="string"?Rd(r):[Rd(r[0]),Rd(r[1])])}function Km(e,t,n){let r=Ze(e);Zm(r);let o=[r[de.ExtraData][0],r[de.ExtraData][1]],i=dt(o,t)||[];return dt(i,n)||[]}function dt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new E(2304,!1)}function Rd(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Nw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ha={},xw=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Qm(e,t,n,r){let o=Bw(e);t=en(n,t)||t;let s=[],a;for(;t;)if(a=xw.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=Xm(r,c),o=Vw(o,r));let l="";return s.forEach(u=>{let d=Lw(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function qa(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function en(e,t){let n=$m(e);if(Ha[n]??={},Ha[n][t])return Ha[n][t];let r="";switch(t){case"shortDate":r=yi(e,Be.Short);break;case"mediumDate":r=yi(e,Be.Medium);break;case"longDate":r=yi(e,Be.Long);break;case"fullDate":r=yi(e,Be.Full);break;case"shortTime":r=vi(e,Be.Short);break;case"mediumTime":r=vi(e,Be.Medium);break;case"longTime":r=vi(e,Be.Long);break;case"fullTime":r=vi(e,Be.Full);break;case"short":let o=en(e,"shortTime"),i=en(e,"shortDate");r=$a(Di(e,Be.Short),[o,i]);break;case"medium":let s=en(e,"mediumTime"),a=en(e,"mediumDate");r=$a(Di(e,Be.Medium),[s,a]);break;case"long":let c=en(e,"longTime"),l=en(e,"longDate");r=$a(Di(e,Be.Long),[c,l]);break;case"full":let u=en(e,"fullTime"),d=en(e,"fullDate");r=$a(Di(e,Be.Full),[u,d]);break}return r&&(Ha[n][t]=r),r}function $a(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Et(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.length0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Rw(a,t);let c=Ci(s,tn.MinusSign);return Et(a,t,c,r,o)}}function Ow(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 E(2301,!1)}}function ee(e,t,n=Ae.Format,r=!1){return function(o,i){return Pw(o,i,e,t,n,r)}}function Pw(e,t,n,r,o,i){switch(n){case 2:return Wm(t,o,r)[e.getMonth()];case 1:return Gm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Ym(t),u=Km(t,o,r),d=l.findIndex(h=>{if(Array.isArray(h)){let[f,v]=h,_=s>=f.hours&&a>=f.minutes,b=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Et(s,2,i)+Et(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Et(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Et(s,2,i)+":"+Et(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Et(s,2,i)+":"+Et(Math.abs(o%60),2,i);default:throw new E(2310,!1)}}}var kw=0,Wa=4;function Fw(e){let t=qa(e,kw,1).getDay();return qa(e,0,1+(t<=Wa?Wa:Wa+7)-t)}function Jm(e){let t=e.getDay(),n=t===0?-3:Wa-t;return qa(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Od(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=Jm(n),s=Fw(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Et(o,e,Ci(r,tn.MinusSign))}}function Ga(e,t=!1){return function(n,r){let i=Jm(n).getFullYear();return Et(i,e,Ci(r,tn.MinusSign),t)}}var Pd={};function Lw(e){if(Pd[e])return Pd[e];let t;switch(e){case"G":case"GG":case"GGG":t=ee(3,Y.Abbreviated);break;case"GGGG":t=ee(3,Y.Wide);break;case"GGGGG":t=ee(3,Y.Narrow);break;case"y":t=ge(0,1,0,!1,!0);break;case"yy":t=ge(0,2,0,!0,!0);break;case"yyy":t=ge(0,3,0,!1,!0);break;case"yyyy":t=ge(0,4,0,!1,!0);break;case"Y":t=Ga(1);break;case"YY":t=Ga(2,!0);break;case"YYY":t=Ga(3);break;case"YYYY":t=Ga(4);break;case"M":case"L":t=ge(1,1,1);break;case"MM":case"LL":t=ge(1,2,1);break;case"MMM":t=ee(2,Y.Abbreviated);break;case"MMMM":t=ee(2,Y.Wide);break;case"MMMMM":t=ee(2,Y.Narrow);break;case"LLL":t=ee(2,Y.Abbreviated,Ae.Standalone);break;case"LLLL":t=ee(2,Y.Wide,Ae.Standalone);break;case"LLLLL":t=ee(2,Y.Narrow,Ae.Standalone);break;case"w":t=Od(1);break;case"ww":t=Od(2);break;case"W":t=Od(1,!0);break;case"d":t=ge(2,1);break;case"dd":t=ge(2,2);break;case"c":case"cc":t=ge(7,1);break;case"ccc":t=ee(1,Y.Abbreviated,Ae.Standalone);break;case"cccc":t=ee(1,Y.Wide,Ae.Standalone);break;case"ccccc":t=ee(1,Y.Narrow,Ae.Standalone);break;case"cccccc":t=ee(1,Y.Short,Ae.Standalone);break;case"E":case"EE":case"EEE":t=ee(1,Y.Abbreviated);break;case"EEEE":t=ee(1,Y.Wide);break;case"EEEEE":t=ee(1,Y.Narrow);break;case"EEEEEE":t=ee(1,Y.Short);break;case"a":case"aa":case"aaa":t=ee(0,Y.Abbreviated);break;case"aaaa":t=ee(0,Y.Wide);break;case"aaaaa":t=ee(0,Y.Narrow);break;case"b":case"bb":case"bbb":t=ee(0,Y.Abbreviated,Ae.Standalone,!0);break;case"bbbb":t=ee(0,Y.Wide,Ae.Standalone,!0);break;case"bbbbb":t=ee(0,Y.Narrow,Ae.Standalone,!0);break;case"B":case"BB":case"BBB":t=ee(0,Y.Abbreviated,Ae.Format,!0);break;case"BBBB":t=ee(0,Y.Wide,Ae.Format,!0);break;case"BBBBB":t=ee(0,Y.Narrow,Ae.Format,!0);break;case"h":t=ge(3,1,-12);break;case"hh":t=ge(3,2,-12);break;case"H":t=ge(3,1);break;case"HH":t=ge(3,2);break;case"m":t=ge(4,1);break;case"mm":t=ge(4,2);break;case"s":t=ge(5,1);break;case"ss":t=ge(5,2);break;case"S":t=ge(6,1);break;case"SS":t=ge(6,2);break;case"SSS":t=ge(6,3);break;case"Z":case"ZZ":case"ZZZ":t=za(0);break;case"ZZZZZ":t=za(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=za(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=za(2);break;default:return null}return Pd[e]=t,t}function Xm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function jw(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Vw(e,t,n){let o=e.getTimezoneOffset(),i=Xm(t,o);return jw(e,-1*(i-o))}function Bw(e){if(Hm(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 qa(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Nw))return Uw(r)}let t=new Date(e);if(!Hm(t))throw new E(2311,!1);return t}function Uw(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 Hm(e){return e instanceof Date&&!isNaN(e.valueOf())}function Hw(e,t){return new E(2100,!1)}var $w="mediumDate",ey=new I(""),ty=new I(""),Ei=(()=>{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??$w,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Qm(n,s,i||this.locale,a)}catch(s){throw Hw(e,s.message)}}static \u0275fac=function(r){return new(r||e)(B(pi,16),B(ey,24),B(ty,24))};static \u0275pipe=ja({name:"date",type:e,pure:!0})}return e})();var kd=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=ja({name:"json",type:e,pure:!1})}return e})();var eo=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=kt({type:e});static \u0275inj=mt({})}return e})();function _i(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 vr=class{};var ny="browser";var bi=class{_doc;constructor(t){this._doc=t}manager},Za=(()=>{class e extends bi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(T(ue))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Qa=new I(""),Bd=(()=>{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 Za));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Za);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 E(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(T(Qa),T(Oe))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Ld="ng-app-id";function ry(e){for(let t of e)t.remove()}function oy(e,t){let n=t.createElement("style");return n.textContent=e,n}function Gw(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Ld}="${t}"],link[${Ld}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Ld),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 Vd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ud=(()=>{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,Gw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,oy);r?.forEach(o=>this.addUsage(o,this.external,Vd))}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&&(ry(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ry(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,oy(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Vd(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(T(ue),T(Ia),T(Ma,8),T(ci))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),jd={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"},Hd=/%COMP%/g;var sy="%COMP%",Ww=`_nghost-${sy}`,qw=`_ngcontent-${sy}`,Zw=!0,Yw=new I("",{factory:()=>Zw});function Kw(e){return qw.replace(Hd,e)}function Qw(e){return Ww.replace(Hd,e)}function ay(e,t){return t.map(n=>n.replace(Hd,e))}var $d=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;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.defaultRenderer=new wi(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Ka?o.applyToHost(n):o instanceof Ii&&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.tracingService;switch(r.encapsulation){case Ct.Emulated:i=new Ka(c,l,r,this.appId,u,s,a,d);break;case Ct.ShadowDom:return new Ya(c,n,r,s,a,this.nonce,d,l);case Ct.ExperimentalIsolatedShadowDom:return new Ya(c,n,r,s,a,this.nonce,d);default:i=new Ii(c,l,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(T(Bd),T(Ud),T(Ia),T(Yw),T(ue),T(Oe),T(Ma),T(lr,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),wi=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(jd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(iy(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(iy(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 E(-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=jd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=jd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ot.DashCase|Ot.Important)?t.style.setProperty(n,r,o&Ot.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ot.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=ut().getGlobalEventTarget(this.doc,t),!t))throw new E(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 iy(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ya=class extends wi{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=ay(r.id,l);for(let d of l){let h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}let u=r.getExternalStyles?.();if(u)for(let d of u){let h=Vd(d,o);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}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&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Ii=class extends wi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=c?ay(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Sn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ka=class extends Ii{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,l),this.contentAttr=Kw(l),this.hostAttr=Qw(l)}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 Ja=class e extends mi{supportsDOMEvents=!0;static makeCurrent(){xd(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=Jw();return n==null?null:Xw(n)}resetBaseElement(){Si=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return _i(document.cookie,t)}},Si=null;function Jw(){return Si=Si||document.head.querySelector("base"),Si?Si.getAttribute("href"):null}function Xw(e){return new URL(e,document.baseURI).pathname}var eI=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),cy=["alt","control","meta","shift"],tI={"\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"},nI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},ly=(()=>{class e extends bi{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(()=>ut().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."),cy.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=tI[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"),cy.forEach(s=>{if(s!==o){let a=nI[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(T(ue))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();async function zd(e,t,n){let r=y({rootComponent:e},rI(t,n));return Fm(r)}function rI(e,t){return{platformRef:t?.platformRef,appProviders:[...cI,...e?.providers??[]],platformProviders:aI}}function oI(){Ja.makeCurrent()}function iI(){return new St}function sI(){return Ju(document),document}var aI=[{provide:ci,useValue:ny},{provide:Sa,useValue:oI,multi:!0},{provide:ue,useFactory:sI}];var cI=[{provide:$o,useValue:"root"},{provide:St,useFactory:iI},{provide:Qa,useClass:Za,multi:!0},{provide:Qa,useClass:ly,multi:!0},$d,Ud,Bd,{provide:ir,useExisting:$d},{provide:vr,useClass:eI},[]];var Lt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var tc=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()}},nc=class{encodeKey(t){return uy(t)}encodeValue(t){return uy(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function lI(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 uI=/%(\d[a-f0-9])/gi,dI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function uy(e){return encodeURIComponent(e).replace(uI,(t,n)=>dI[n]??t)}function Xa(e){return`${e}`}var nn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new nc,t.fromString){if(t.fromObject)throw new E(2805,!1);this.map=lI(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(Xa):[Xa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Xa(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Xa(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)}};function fI(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function dy(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function fy(e){return typeof Blob<"u"&&e instanceof Blob}function hy(e){return typeof FormData<"u"&&e instanceof FormData}function hI(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Mi="Content-Type",rc="Accept",py="text/plain",gy="application/json",my=`${gy}, ${py}, */*`,to=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(fI(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 E(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new Lt,this.context??=new tc,!this.params)this.params=new nn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":acn.set(Ht,t.setHeaders[Ht]),Ee)),t.setParams&&(se=Object.keys(t.setParams).reduce((cn,Ht)=>cn.set(Ht,t.setParams[Ht]),se)),new e(n,r,b,{params:se,headers:Ee,context:an,reportProgress:K,responseType:o,withCredentials:w,transferCache:v,keepalive:i,cache:a,priority:s,timeout:_,mode:c,redirect:l,credentials:u,referrer:d,integrity:h,referrerPolicy:f})}},rn=(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})(rn||{}),no=class{headers;status;statusText;url;ok;type;redirected;responseType;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.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Ti=class e extends no{constructor(t={}){super(t)}type=rn.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})}},ro=class e extends no{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=rn.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,responseType:t.responseType??this.responseType})}},Ft=class extends no{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}},yy=200,pI=204;var gI=/^\)\]\}',?\n/,vy=new I(""),ec=(()=>{class e{fetchImpl=p(Wd,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(Oe);destroyRef=p(We);handle(n){return new j(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(qd,s=>r.error(new Ft({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort()}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let _=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,y({signal:r},i)));mI(_),o.next({type:rn.Sent}),s=await _}catch(_){o.error(new Ft({error:_,status:_.status??0,statusText:_.statusText,url:n.urlWithParams,headers:_.headers}));return}let a=new Lt(s.headers),c=s.statusText,l=s.url||n.urlWithParams,u=s.status,d=null;if(n.reportProgress&&o.next(new Ti({headers:a,status:u,statusText:c,url:l})),s.body){let _=s.headers.get("content-length"),b=[],w=s.body.getReader(),K=0,Ee,se,an=typeof Zone<"u"&&Zone.current,cn=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await w.cancel(),cn=!0;break}let{done:bo,value:Zc}=await w.read();if(bo)break;if(b.push(Zc),K+=Zc.length,n.reportProgress){se=n.responseType==="text"?(se??"")+(Ee??=new TextDecoder).decode(Zc,{stream:!0}):void 0;let Pf=()=>o.next({type:rn.DownloadProgress,total:_?+_:void 0,loaded:K,partialText:se});an?an.run(Pf):Pf()}}}),cn){o.complete();return}let Ht=this.concatChunks(b,K);try{let bo=s.headers.get(Mi)??"";d=this.parseBody(n,Ht,bo,u)}catch(bo){o.error(new Ft({error:bo,headers:new Lt(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}u===0&&(u=d?yy:0);let h=u>=200&&u<300,f=s.redirected,v=s.type;h?(o.next(new ro({body:d,headers:a,status:u,statusText:c,url:l,redirected:f,responseType:v})),o.complete()):o.error(new Ft({error:d,headers:a,status:u,statusText:c,url:l,redirected:f,responseType:v}))}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(gI,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(rc)||(r[rc]=my),!n.headers.has(Mi)){let i=n.detectContentTypeHeader();i!==null&&(r[Mi]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Wd=class{};function qd(){}function mI(e){e.then(qd,qd)}var yI=/^\)\]\}',?\n/;var Zd=(()=>{class e{xhrFactory;tracingService=p(lr,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return k(null).pipe(Ue(()=>new j(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((b,w)=>s.setRequestHeader(b,w.join(","))),n.headers.has(rc)||s.setRequestHeader(rc,my),!n.headers.has(Mi)){let b=n.detectContentTypeHeader();b!==null&&s.setRequestHeader(Mi,b)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let b=n.responseType.toLowerCase();s.responseType=b!=="json"?b:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let b=s.statusText||"OK",w=new Lt(s.getAllResponseHeaders()),K=s.responseURL||n.url;return c=new Ti({headers:w,status:s.status,statusText:b,url:K}),c},u=this.maybePropagateTrace(()=>{let{headers:b,status:w,statusText:K,url:Ee}=l(),se=null;w!==pI&&(se=typeof s.response>"u"?s.responseText:s.response),w===0&&(w=se?yy:0);let an=w>=200&&w<300;if(n.responseType==="json"&&typeof se=="string"){let cn=se;se=se.replace(yI,"");try{se=se!==""?JSON.parse(se):null}catch(Ht){se=cn,an&&(an=!1,se={error:Ht,text:se})}}an?(i.next(new ro({body:se,headers:b,status:w,statusText:K,url:Ee||void 0})),i.complete()):i.error(new Ft({error:se,headers:b,status:w,statusText:K,url:Ee||void 0}))}),d=this.maybePropagateTrace(b=>{let{url:w}=l(),K=new Ft({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:w||void 0});i.error(K)}),h=d;n.timeout&&(h=this.maybePropagateTrace(b=>{let{url:w}=l(),K=new Ft({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:w||void 0});i.error(K)}));let f=!1,v=this.maybePropagateTrace(b=>{f||(i.next(l()),f=!0);let w={type:rn.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(w.total=b.total),n.responseType==="text"&&s.responseText&&(w.partialText=s.responseText),i.next(w)}),_=this.maybePropagateTrace(b=>{let w={type:rn.UploadProgress,loaded:b.loaded};b.lengthComputable&&(w.total=b.total),i.next(w)});return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",v),a!==null&&s.upload&&s.upload.addEventListener("progress",_)),s.send(a),i.next({type:rn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",v),a!==null&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(T(vr))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vI(e,t){return t(e)}function DI(e,t,n){return(r,o)=>De(n,()=>t(r,i=>e(i,o)))}var Dy=new I("",{factory:()=>[]}),Cy=new I(""),Ey=new I("",{factory:()=>!0});var ic=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(Zd),o},providedIn:"root"})}return e})();var oc=(()=>{class e{backend;injector;chain=null;pendingTasks=p(Ko);contributeToStability=p(Ey);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Dy),...this.injector.get(Cy,[])]));this.chain=r.reduceRight((o,i)=>DI(o,i,this.injector),vI)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(xo(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(T(ic),T(ne))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(oc),o},providedIn:"root"})}return e})();function Gd(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,referrerPolicy:e.referrerPolicy}}var sc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof to)i=n;else{let c;o.headers instanceof Lt?c=o.headers:c=new Lt(o.headers);let l;o.params&&(o.params instanceof nn?l=o.params:l=new nn({fromObject:o.params})),i=new to(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,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=k(i).pipe(xr(c=>this.handler.handle(c)));if(n instanceof to||o.observe==="events")return s;let a=s.pipe(gt(c=>c instanceof ro));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(W(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new E(2806,!1);return c.body}));case"blob":return a.pipe(W(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new E(2807,!1);return c.body}));case"text":return a.pipe(W(c=>{if(c.body!==null&&typeof c.body!="string")throw new E(2808,!1);return c.body}));default:return a.pipe(W(c=>c.body))}case"response":return a;default:throw new E(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 nn().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,Gd(o,r))}post(n,r,o={}){return this.request("POST",n,Gd(o,r))}put(n,r,o={}){return this.request("PUT",n,Gd(o,r))}static \u0275fac=function(r){return new(r||e)(T(Yd))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var CI=new I("",{factory:()=>!0}),EI="XSRF-TOKEN",_I=new I("",{factory:()=>EI}),bI="X-XSRF-TOKEN",wI=new I("",{factory:()=>bI}),II=(()=>{class e{cookieName=p(_I);doc=p(ue);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=_i(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_y=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(II),o},providedIn:"root"})}return e})();function SI(e,t){if(!p(CI)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p(Qr).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=p(_y).getToken(),r=p(wI);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Kd=(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})(Kd||{});function MI(e,t){return{\u0275kind:e,\u0275providers:t}}function Qd(...e){let t=[sc,oc,{provide:Yd,useExisting:oc},{provide:ic,useFactory:()=>p(vy,{optional:!0})??p(Zd)},{provide:Dy,useValue:SI,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return _n(t)}function Jd(){return MI(Kd.Fetch,[ec,{provide:vy,useExisting:ec},{provide:ic,useExisting:ec}])}var by=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(T(ue))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var O="primary",Hi=Symbol("RouteTitle"),rf=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Cr(e){return new rf(e)}function Xd(e,t,n){for(let r=0;re.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthe.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return!Xd(i,e.slice(0,i.length),a)||!Xd(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function fc(e){return new Promise((t,n)=>{e.pipe(Gt()).subscribe({next:r=>t(r),error:r=>n(r)})})}function NI(e,t){if(e.length!==t.length)return!1;for(let n=0;nr[i]===o)}else return e===t}function xI(e){return e.length>0?e[e.length-1]:null}function br(e){return _s(e)?e:An(e)?ae(Promise.resolve(e)):k(e)}function Oy(e){return _s(e)?fc(e):Promise.resolve(e)}var RI={exact:Fy,subset:Ly},Py={exact:OI,subset:PI,ignored:()=>!0},ky={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function wy(e,t,n){return RI[n.paths](e.root,t.root,n.matrixParams)&&Py[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function OI(e,t){return jt(e,t)}function Fy(e,t,n){if(!Dr(e.segments,t.segments)||!lc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Fy(e.children[r],t.children[r],n))return!1;return!0}function PI(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Ry(e[n],t[n]))}function Ly(e,t,n){return jy(e,t,t.segments,n)}function jy(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Dr(o,n)||t.hasChildren()||!lc(o,n,r))}else if(e.segments.length===n.length){if(!Dr(e.segments,n)||!lc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Ly(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Dr(e.segments,o)||!lc(e.segments,o,r)||!e.children[O]?!1:jy(e.children[O],t,i,r)}}function lc(e,t,n){return t.every((r,o)=>Py[n](e[o].parameters,r.parameters))}var Xe=class{root;queryParams;fragment;_queryParamMap;constructor(t=new H([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Cr(this.queryParams),this._queryParamMap}toString(){return LI.serialize(this)}},H=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uc(this)}},xn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Cr(this.parameters),this._parameterMap}toString(){return By(this)}};function kI(e,t){return Dr(e,t)&&e.every((n,r)=>jt(n.parameters,t[r].parameters))}function Dr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function FI(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===O&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==O&&(n=n.concat(t(o,r)))}),n}var ho=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>new Rn,providedIn:"root"})}return e})(),Rn=class{parse(t){let n=new cf(t);return new Xe(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Ai(t.root,!0)}`,r=BI(t.queryParams),o=typeof t.fragment=="string"?`#${jI(t.fragment)}`:"";return`${n}${r}${o}`}},LI=new Rn;function uc(e){return e.segments.map(t=>By(t)).join("/")}function Ai(e,t){if(!e.hasChildren())return uc(e);if(t){let n=e.children[O]?Ai(e.children[O],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==O&&r.push(`${o}:${Ai(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=FI(e,(r,o)=>o===O?[Ai(e.children[O],!1)]:[`${o}:${Ai(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[O]!=null?`${uc(e)}/${n[0]}`:`${uc(e)}/(${n.join("//")})`}}function Vy(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ac(e){return Vy(e).replace(/%3B/gi,";")}function jI(e){return encodeURI(e)}function af(e){return Vy(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dc(e){return decodeURIComponent(e)}function Iy(e){return dc(e.replace(/\+/g,"%20"))}function By(e){return`${af(e.path)}${VI(e.parameters)}`}function VI(e){return Object.entries(e).map(([t,n])=>`;${af(t)}=${af(n)}`).join("")}function BI(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${ac(n)}=${ac(o)}`).join("&"):`${ac(n)}=${ac(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var UI=/^[^\/()?;#]+/;function ef(e){let t=e.match(UI);return t?t[0]:""}var HI=/^[^\/()?;=#]+/;function $I(e){let t=e.match(HI);return t?t[0]:""}var zI=/^[^=?&#]+/;function GI(e){let t=e.match(zI);return t?t[0]:""}var WI=/^[^&#]+/;function qI(e){let t=e.match(WI);return t?t[0]:""}var cf=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new H([],{}):new H([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new E(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,t)),(n.length>0||Object.keys(r).length>0)&&(o[O]=new H(n,r)),o}parseSegment(){let t=ef(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(t),new xn(dc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=$I(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=ef(this.remaining);o&&(r=o,this.capture(r))}t[dc(n)]=dc(r)}parseQueryParam(t){let n=GI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=qI(this.remaining);s&&(r=s,this.capture(r))}let o=Iy(n),i=Iy(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t,n){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=ef(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new E(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=O);let a=this.parseChildren(n+1);r[s??O]=Object.keys(a).length===1&&a[O]?a[O]:new H([],a),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new E(4011,!1)}};function Uy(e){return e.segments.length>0?new H([],{[O]:e}):e}function Hy(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Hy(o);if(r===O&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new H(e.segments,t);return ZI(n)}function ZI(e){if(e.numberOfChildren===1&&e.children[O]){let t=e.children[O];return new H(e.segments.concat(t.segments),t.children)}return e}function On(e){return e instanceof Xe}function $y(e,t,n=null,r=null,o=new Rn){let i=zy(e);return Gy(i,t,n,r,o)}function zy(e){let t;function n(i){let s={};for(let c of i.children){let l=n(c);s[c.outlet]=l}let a=new H(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Uy(r);return t??o}function Gy(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return tf(i,i,i,n,r,o);let s=YI(t);if(s.toRoot())return tf(i,i,new H([],{}),n,r,o);let a=KI(s,i,e),c=a.processChildren?xi(a.segmentGroup,a.index,s.commands):qy(a.segmentGroup,a.index,s.commands);return tf(i,a.segmentGroup,c,n,r,o)}function hc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Pi(e){return typeof e=="object"&&e!=null&&e.outlets}function Sy(e,t,n){e||="\u0275";let r=new Xe;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function tf(e,t,n,r,o,i){let s={};for(let[l,u]of Object.entries(r??{}))s[l]=Array.isArray(u)?u.map(d=>Sy(l,d,i)):Sy(l,u,i);let a;e===t?a=n:a=Wy(e,t,n);let c=Uy(Hy(a));return new Xe(c,s,o)}function Wy(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Wy(i,t,n)}),new H(e.segments,r)}var pc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&hc(r[0]))throw new E(4003,!1);let o=r.find(Pi);if(o&&o!==xI(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function YI(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new pc(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new pc(n,t,r)}var io=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function KI(e,t,n){if(e.isAbsolute)return new io(t,!0,0);if(!n)return new io(t,!1,NaN);if(n.parent===null)return new io(n,!0,0);let r=hc(e.commands[0])?0:1,o=n.segments.length-1+r;return QI(n,o,e.numberOfDoubleDots)}function QI(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new E(4005,!1);o=r.segments.length}return new io(r,!1,o-i)}function JI(e){return Pi(e[0])?e[0].outlets:{[O]:e}}function qy(e,t,n){if(e??=new H([],{}),e.segments.length===0&&e.hasChildren())return xi(e,t,n);let r=XI(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==O)&&e.children[O]&&e.numberOfChildren===1&&e.children[O].segments.length===0){let i=xi(e.children[O],t,n);return new H(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=qy(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new H(e.segments,o)}}function XI(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(Pi(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Ty(c,l,s))return i;r+=2}else{if(!Ty(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function lf(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=lf(new H([],{}),0,r))}),t}function My(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Ty(e,t,n){return e==n.path&&jt(t,n.parameters)}var Ri="imperative",Ce=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(Ce||{}),et=class{id;url;constructor(t,n){this.id=t,this.url=n}},Er=class extends et{type=Ce.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Bt=class extends et{urlAfterRedirects;type=Ce.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ne=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Ne||{}),ki=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ki||{}),ft=class extends et{reason;code;type=Ce.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Zy(e){return e instanceof ft&&(e.code===Ne.Redirect||e.code===Ne.SupersededByNewNavigation)}var sn=class extends et{reason;code;type=Ce.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},_r=class extends et{error;target;type=Ce.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fi=class extends et{urlAfterRedirects;state;type=Ce.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gc=class extends et{urlAfterRedirects;state;type=Ce.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mc=class extends et{urlAfterRedirects;state;shouldActivate;type=Ce.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},yc=class extends et{urlAfterRedirects;state;type=Ce.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vc=class extends et{urlAfterRedirects;state;type=Ce.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dc=class{route;type=Ce.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Cc=class{route;type=Ce.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ec=class{snapshot;type=Ce.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_c=class{snapshot;type=Ce.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bc=class{snapshot;type=Ce.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wc=class{snapshot;type=Ce.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ao=class{},Li=class{},co=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function t0(e){return!(e instanceof ao)&&!(e instanceof co)&&!(e instanceof Li)}var Ic=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new po(this.rootInjector)}},po=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Ic(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(T(ne))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Sc=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=uf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=uf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=df(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return df(t,this._root).map(n=>n.value)}};function uf(e,t){if(e===t.value)return t;for(let n of t.children){let r=uf(e,n);if(r)return r}return null}function df(e,t){if(e===t.value)return[t];for(let n of t.children){let r=df(e,n);if(r.length)return r.unshift(t),r}return[]}var Je=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function oo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ji=class extends Sc{snapshot;constructor(t,n){super(t),this.snapshot=n,Cf(this,t)}toString(){return this.snapshot.toString()}};function Yy(e,t){let n=n0(e,t),r=new be([new xn("",{})]),o=new be({}),i=new be({}),s=new be({}),a=new be(""),c=new _t(r,o,s,a,i,O,e,n.root);return c.snapshot=n.root,new ji(new Je(c,[]),n)}function n0(e,t){let n={},r={},o={},s=new lo([],n,o,"",r,O,e,null,{},t);return new Vi("",new Je(s,[]))}var _t=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(W(l=>l[Hi]))??k(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(W(t=>Cr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(W(t=>Cr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Df(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:y(y({},t.params),e.params),data:y(y({},t.data),e.data),resolve:y(y(y(y({},e.data),t.data),o?.data),e._resolvedData)}:r={params:y({},e.params),data:y({},e.data),resolve:y(y({},e.data),e._resolvedData??{})},o&&Qy(o)&&(r.resolve[Hi]=o.title),r}var lo=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Hi]}constructor(t,n,r,o,i,s,a,c,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l,this._environmentInjector=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Cr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Cr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Vi=class extends Sc{url;constructor(t,n){super(n),this.url=t,Cf(this,n)}toString(){return Ky(this._root)}};function Cf(e,t){t.value._routerState=e,t.children.forEach(n=>Cf(e,n))}function Ky(e){let t=e.children.length>0?` { ${e.children.map(Ky).join(", ")} } `:"";return`${e.value}${t}`}function nf(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,jt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),jt(t.params,n.params)||e.paramsSubject.next(n.params),NI(t.url,n.url)||e.urlSubject.next(n.url),jt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ff(e,t){let n=jt(e.params,t.params)&&kI(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||ff(e.parent,t.parent))}function Qy(e){return typeof e.title=="string"||e.title===null}var Jy=new I(""),$i=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=O;activateEvents=new he;deactivateEvents=new he;attachEvents=new he;detachEvents=new he;routerOutletData=km();parentContexts=p(po);location=p(ui);changeDetector=p(Yr);inputBinder=p(Nc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new hf(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Pe({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Mn]})}return e})(),hf=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===_t?this.route:t===po?this.childContexts:t===Jy?this.outletData:this.parent.get(t,n)}},Nc=new I("");var Ef=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Jt({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&qr(0,"router-outlet")},dependencies:[$i],encapsulation:2})}return e})();function _f(e){let t=e.children&&e.children.map(_f),n=t?A(y({},e),{children:t}):y({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==O&&(n.component=Ef),n}function r0(e,t,n){let r=Bi(e,t._root,n?n._root:void 0);return new ji(r,t)}function Bi(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=o0(e,t,n);return new Je(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Bi(e,a)),s}}let r=i0(t.value),o=t.children.map(i=>Bi(e,i));return new Je(r,o)}}function o0(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Bi(e,r,o);return Bi(e,r)})}function i0(e){return new _t(new be(e.url),new be(e.params),new be(e.queryParams),new be(e.fragment),new be(e.data),e.outlet,e.component,e)}var uo=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Xy="ngNavigationCancelingError";function Mc(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=On(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=ev(!1,Ne.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function ev(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Xy]=!0,n.cancellationCode=t,n}function s0(e){return tv(e)&&On(e.url)}function tv(e){return!!e&&e[Xy]}var pf=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),nf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=oo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=oo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=oo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=oo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new wc(i.value.snapshot))}),t.children.length&&this.forwardEvent(new _c(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(nf(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),nf(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Tc=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},so=class{component;route;constructor(t,n){this.component=t,this.route=n}};function a0(e,t,n){let r=e._root,o=t?t._root:null;return Ni(r,o,n,[r.value])}function c0(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function go(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!xl(e)?e:t.get(e):r}function Ni(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=oo(t);return e.children.forEach(s=>{l0(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Oi(a,n.getContext(s),o)),o}function l0(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=u0(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Tc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Ni(e,t,a?a.children:null,r,o):Ni(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new so(a.outlet.component,s))}else s&&Oi(t,a,o),o.canActivateChecks.push(new Tc(r)),i.component?Ni(e,null,a?a.children:null,r,o):Ni(e,null,n,r,o);return o}function u0(e,t,n){if(typeof n=="function")return De(t._environmentInjector,()=>n(e,t));switch(n){case"pathParamsChange":return!Dr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dr(e.url,t.url)||!jt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ff(e,t)||!jt(e.queryParams,t.queryParams);default:return!ff(e,t)}}function Oi(e,t,n){let r=oo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Oi(s,t.children.getContext(i),n):Oi(s,null,n):Oi(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new so(t.outlet.component,o)):n.canDeactivateChecks.push(new so(null,o)):n.canDeactivateChecks.push(new so(null,o))}function zi(e){return typeof e=="function"}function d0(e){return typeof e=="boolean"}function f0(e){return e&&zi(e.canLoad)}function h0(e){return e&&zi(e.canActivate)}function p0(e){return e&&zi(e.canActivateChild)}function g0(e){return e&&zi(e.canDeactivate)}function m0(e){return e&&zi(e.canMatch)}function nv(e){return e instanceof $t||e?.name==="EmptyError"}var cc=Symbol("INITIAL_VALUE");function fo(){return Ue(e=>fl(e.map(t=>t.pipe(zt(1),pl(cc)))).pipe(W(t=>{for(let n of t)if(n!==!0){if(n===cc)return cc;if(n===!1||y0(n))return n}return!0}),gt(t=>t!==cc),zt(1)))}function y0(e){return On(e)||e instanceof uo}function rv(e){return e.aborted?k(void 0).pipe(zt(1)):new j(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function ov(e){return Ro(rv(e))}function v0(e){return xe(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?k(A(y({},t),{guardsResult:!0})):D0(i,n,r).pipe(xe(s=>s&&d0(s)?C0(n,o,e):k(s)),W(s=>A(y({},t),{guardsResult:s})))})}function D0(e,t,n){return ae(e).pipe(xe(r=>I0(r.component,r.route,n,t)),Gt(r=>r!==!0,!0))}function C0(e,t,n){return ae(t).pipe(xr(r=>Nr(_0(r.route.parent,n),E0(r.route,n),w0(e,r.path),b0(e,r.route))),Gt(r=>r!==!0,!0))}function E0(e,t){return e!==null&&t&&t(new bc(e)),k(!0)}function _0(e,t){return e!==null&&t&&t(new Ec(e)),k(!0)}function b0(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return k(!0);let r=n.map(o=>Ao(()=>{let i=t._environmentInjector,s=go(o,i),a=h0(s)?s.canActivate(t,e):De(i,()=>s(t,e));return br(a).pipe(Gt())}));return k(r).pipe(fo())}function w0(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>c0(i)).filter(i=>i!==null).map(i=>Ao(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,l=go(a,c),u=p0(l)?l.canActivateChild(n,e):De(c,()=>l(n,e));return br(u).pipe(Gt())});return k(s).pipe(fo())}));return k(o).pipe(fo())}function I0(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return k(!0);let i=o.map(s=>{let a=t._environmentInjector,c=go(s,a),l=g0(c)?c.canDeactivate(e,t,n,r):De(a,()=>c(e,t,n,r));return br(l).pipe(Gt())});return k(i).pipe(fo())}function S0(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return k(!0);let s=i.map(a=>{let c=go(a,e),l=f0(c)?c.canLoad(t,n):De(e,()=>c(t,n)),u=br(l);return o?u.pipe(ov(o)):u});return k(s).pipe(fo(),iv(r))}function iv(e){return cl(tt(t=>{if(typeof t!="boolean")throw Mc(e,t)}),W(t=>t===!0))}function M0(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return k(!0);let a=s.map(c=>{let l=go(c,e),u=m0(l)?l.canMatch(t,n,o):De(e,()=>l(t,n,o));return br(u).pipe(ov(i))});return k(a).pipe(fo(),iv(r))}var on=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype)}},Ui=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype)}};function T0(e){throw new E(4e3,!1)}function A0(e){throw ev(!1,Ne.GuardRejected)}var gf=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}async lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[O])throw T0(`${t.redirectTo}`);o=o.children[O]}}async applyRedirectCommands(t,n,r,o,i){let s=await N0(n,o,i);if(s instanceof Xe)throw new Ui(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new Ui(a);return a}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Xe(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new H(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new E(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function N0(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return fc(br(De(n,()=>r(t))))}function x0(e,t){return e.providers&&!e._injector&&(e._injector=di(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Vt(e){return e.outlet||O}function R0(e,t){let n=e.filter(r=>Vt(r)===t);return n.push(...e.filter(r=>Vt(r)!==t)),n}var mf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sv(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function O0(e,t,n,r,o,i,s){let a=av(e,t,n);if(!a.matched)return k(a);let c=sv(i(a));return r=x0(t,r),M0(r,t,n,o,c,s).pipe(W(l=>l===!0?a:y({},mf)))}function av(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?y({},mf):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||xy)(n,e,t);if(!o)return y({},mf);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?y(y({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Ay(e,t,n,r){return n.length>0&&F0(e,n,r)?{segmentGroup:new H(t,k0(r,new H(n,e.children))),slicedSegments:[]}:n.length===0&&L0(e,n,r)?{segmentGroup:new H(e.segments,P0(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new H(e.segments,e.children),slicedSegments:n}}function P0(e,t,n,r){let o={};for(let i of n)if(xc(e,t,i)&&!r[Vt(i)]){let s=new H([],{});o[Vt(i)]=s}return y(y({},r),o)}function k0(e,t){let n={};n[O]=t;for(let r of e)if(r.path===""&&Vt(r)!==O){let o=new H([],{});n[Vt(r)]=o}return n}function F0(e,t,n){return n.some(r=>xc(e,t,r)&&Vt(r)!==O)}function L0(e,t,n){return n.some(r=>xc(e,t,r))}function xc(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function j0(e,t,n){return t.length===0&&!e.children[n]}var yf=class{};async function V0(e,t,n,r,o,i,s="emptyOnly",a){return new vf(e,t,n,r,o,s,i,a).recognize()}var B0=31,vf=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new gf(this.urlSerializer,this.urlTree)}noMatchError(t){return new E(4002,`'${t.segmentGroup}'`)}async recognize(){let t=Ay(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(t),o=new Je(r,n),i=new Vi("",o),s=$y(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(t){let n=new lo([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),O,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,t,O,n),rootSnapshot:n}}catch(r){if(r instanceof Ui)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof on?this.noMatchError(r):r}}async processSegmentGroup(t,n,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=await this.processSegment(t,n,r,r.segments,o,!0,i);return s instanceof Je?[s]:[]}async processChildren(t,n,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let l=r.children[c],u=R0(n,c),d=await this.processSegmentGroup(t,u,l,c,o);s.push(...d)}let a=cv(s);return U0(a),a}async processSegment(t,n,r,o,i,s,a){for(let c of n)try{return await this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(l){if(l instanceof on||nv(l))continue;throw l}if(j0(r,o,i))return new yf;throw new on(r)}async processSegmentAgainstRoute(t,n,r,o,i,s,a,c){if(Vt(r)!==s&&(s===O||!xc(o,i,r)))throw new on(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new on(o)}async expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=av(n,o,i);if(!c)throw new on(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>B0&&(this.allowRedirects=!1));let f=this.createSnapshot(t,o,i,l,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let v=await this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,sv(f),t),_=await this.applyRedirects.lineralizeSegments(o,v);return this.processSegment(t,r,n,_.concat(h),s,!1,a)}createSnapshot(t,n,r,o,i){let s=new lo(r,o,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,$0(n),Vt(n),n.component??n._loadedComponent??null,n,z0(n),t),a=Df(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(t,n,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Ee=>this.createSnapshot(t,r,Ee.consumedSegments,Ee.parameters,s),c=await fc(O0(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new on(n);t=r._injector??t;let{routes:l}=await this.getChildConfig(t,r,o),u=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,v=this.createSnapshot(t,r,h,d,s),{segmentGroup:_,slicedSegments:b}=Ay(n,h,f,l);if(b.length===0&&_.hasChildren()){let Ee=await this.processChildren(u,l,_,v);return new Je(v,Ee)}if(l.length===0&&b.length===0)return new Je(v,[]);let w=Vt(r)===i,K=await this.processSegment(u,l,_,b,w?O:i,!0,v);return new Je(v,K instanceof Je?[K]:[])}async getChildConfig(t,n,r){if(n.children)return{routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await fc(S0(t,n,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw A0(n)}return{routes:[],injector:t}}};function U0(e){e.sort((t,n)=>t.value.outlet===O?-1:n.value.outlet===O?1:t.value.outlet.localeCompare(n.value.outlet))}function H0(e){let t=e.value.routeConfig;return t&&t.path===""}function cv(e){let t=[],n=new Set;for(let r of e){if(!H0(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=cv(r.children);t.push(new Je(r.value,o))}return t.filter(r=>!n.has(r))}function $0(e){return e.data||{}}function z0(e){return e.resolve||{}}function G0(e,t,n,r,o,i,s){return xe(async a=>{let{state:c,tree:l}=await V0(e,t,n,r,a.extractedUrl,o,i,s);return A(y({},a),{targetSnapshot:c,urlAfterRedirects:l})})}function W0(e){return xe(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return k(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of lv(a))i.add(c);let s=0;return ae(i).pipe(xr(a=>o.has(a)?q0(a,n,e):(a.data=Df(a,a.parent,e).resolve,k(void 0))),tt(()=>s++),Ss(1),xe(a=>s===i.size?k(t):we))})}function lv(e){let t=e.children.map(n=>lv(n)).flat();return[e,...t]}function q0(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!Qy(r)&&(o[Hi]=r.title),Ao(()=>(e.data=Df(e,e.parent,n).resolve,Z0(o,e,t).pipe(W(i=>(e._resolvedData=i,e.data=y(y({},e.data),i),null)))))}function Z0(e,t,n){let r=of(e);if(r.length===0)return k({});let o={};return ae(r).pipe(xe(i=>Y0(e[i],t,n).pipe(Gt(),tt(s=>{if(s instanceof uo)throw Mc(new Rn,s);o[i]=s}))),Ss(1),W(()=>o),No(i=>nv(i)?we:dl(i)))}function Y0(e,t,n){let r=t._environmentInjector,o=go(e,r),i=o.resolve?o.resolve(t,n):De(r,()=>o(t,n));return br(i)}function Ny(e){return Ue(t=>{let n=e(t);return n?ae(n).pipe(W(()=>t)):k(t)})}var bf=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===O);return r}getResolvedTitleForRoute(n){return n.data[Hi]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>p(uv),providedIn:"root"})}return e})(),uv=(()=>{class e extends bf{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(T(by))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mo=new I("",{factory:()=>({})}),Gi=new I(""),dv=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Sd);async loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await Oy(De(n,()=>r.loadComponent())),s=await pv(hv(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await fv(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function fv(e,t,n,r){let o=await Oy(De(n,()=>e.loadChildren())),i=await pv(hv(o)),s;i instanceof La||Array.isArray(i)?s=i:s=await t.compileModuleAsync(i),r&&r(e);let a,c,l=!1,u;return Array.isArray(s)?(c=s,l=!0):(a=s.create(n).injector,u=s,c=a.get(Gi,[],{optional:!0,self:!0}).flat()),{routes:c.map(_f),injector:a,factory:u}}function K0(e){return e&&typeof e=="object"&&"default"in e}function hv(e){return K0(e)?e.default:e}async function pv(e){return e}var Rc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>p(Q0),providedIn:"root"})}return e})(),Q0=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gv=new I("");var J0=()=>{},mv=new I(""),yv=(()=>{class e{currentNavigation=L(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=L(null);events=new me;transitionAbortWithErrorSubject=new me;configLoader=p(dv);environmentInjector=p(ne);destroyRef=p(We);urlSerializer=p(ho);rootContexts=p(po);location=p(Xr);inputBindingEnabled=p(Nc,{optional:!0})!==null;titleStrategy=p(bf);options=p(mo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Rc);createViewTransition=p(gv,{optional:!0});navigationErrorHandler=p(mv,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>k(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Dc(o)),r=o=>this.events.next(new Cc(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;q(()=>{this.transitions?.next(A(y({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(n){return this.transitions=new be(null),this.transitions.pipe(gt(r=>r!==null),Ue(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return k(r).pipe(Ue(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Ne.SupersededByNewNavigation),we;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?A(y({},c),{previousNavigation:null}):null,abort:()=>i.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&u!=="reload")return this.events.next(new sn(a.id,this.urlSerializer.serialize(a.rawUrl),"",ki.IgnoredSameUrlNavigation)),a.resolve(!1),we;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return k(a).pipe(Ue(d=>(this.events.next(new Er(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?we:Promise.resolve(d))),G0(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),tt(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=d.urlAfterRedirects,h)),this.events.next(new Li)}),Ue(d=>ae(r.routesRecognizeHandler.deferredHandle??k(void 0)).pipe(W(()=>d))),tt(()=>{let d=new Fi(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:v,extras:_}=a,b=new Er(d,this.urlSerializer.serialize(h),f,v);this.events.next(b);let w=Yy(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=A(y({},a),{targetSnapshot:w,urlAfterRedirects:h,extras:A(y({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(K=>(K.finalUrl=h,K)),k(r)}else return this.events.next(new sn(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ki.IgnoredByUrlHandlingStrategy)),a.resolve(!1),we}),W(a=>{let c=new gc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=A(y({},a),{guards:a0(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),v0(a=>this.events.next(a)),Ue(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Mc(this.urlSerializer,a.guardsResult);let c=new mc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return we;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Ne.GuardRejected),we;if(a.guards.canActivateChecks.length===0)return k(a);let l=new yc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!s())return we;let u=!1;return k(a).pipe(W0(this.paramsInheritanceStrategy),tt({next:()=>{u=!0;let d=new vc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{u||this.cancelNavigationTransition(a,"",Ne.NoDataFromResolver)}}))}),Ny(a=>{let c=u=>{let d=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let h=u._environmentInjector;d.push(this.configLoader.loadComponent(h,u.routeConfig).then(f=>{u.component=f}))}for(let h of u.children)d.push(...c(h));return d},l=c(a.targetSnapshot.root);return l.length===0?k(a):ae(Promise.all(l).then(()=>a))}),Ny(()=>this.afterPreactivation()),Ue(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?ae(l).pipe(W(()=>r)):k(r)}),zt(1),Ue(a=>{let c=r0(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=A(y({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new ao);let l=r.beforeActivateHandler.deferredHandle;return l?ae(l.then(()=>a)):k(a)}),tt(a=>{new pf(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(c=>(c.abort=J0,c)),this.lastSuccessfulNavigation.set(q(this.currentNavigation)),this.events.next(new Bt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Ro(rv(i.signal).pipe(gt(()=>!o&&!r.targetRouterState),tt(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",Ne.Aborted)}))),tt({complete:()=>{o=!0}}),Ro(this.transitionAbortWithErrorSubject.pipe(tt(a=>{throw a}))),xo(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",Ne.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),No(a=>{if(o=!0,this.destroyed)return r.resolve(!1),we;if(tv(a))this.events.next(new ft(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),s0(a)?this.events.next(new co(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new _r(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let l=De(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof uo){let{message:u,cancellationCode:d}=Mc(this.urlSerializer,l);this.events.next(new ft(r.id,this.urlSerializer.serialize(r.extractedUrl),u,d)),this.events.next(new co(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return we}))}))}cancelNavigationTransition(n,r,o){let i=new ft(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=q(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function X0(e){return e!==Ri}var vv=new I("");var Dv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>p(eS),providedIn:"root"})}return e})(),Ac=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return!0}},eS=(()=>{class e extends Ac{static \u0275fac=(()=>{let n;return function(o){return(n||(n=cr(e)))(o||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oc=(()=>{class e{urlSerializer=p(ho);options=p(mo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Xr);urlHandlingStrategy=p(Rc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Xe;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Xe?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=Yy(null,p(ne));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>p(tS),providedIn:"root"})}return e})(),tS=(()=>{class e extends Oc{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(n,r){n instanceof Er?this.updateStateMemento():n instanceof sn?this.commitTransition(r):n instanceof Fi?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof ao?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof ft&&!Zy(n)?this.restoreHistory(r):n instanceof _r?this.restoreHistory(r,!0):n instanceof Bt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=y(y({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=y(y({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=cr(e)))(o||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wf(e,t){e.events.pipe(gt(n=>n instanceof Bt||n instanceof ft||n instanceof _r||n instanceof sn),W(n=>n instanceof Bt||n instanceof sn?0:(n instanceof ft?n.code===Ne.Redirect||n.code===Ne.SupersededByNewNavigation:!1)?2:1),gt(n=>n!==2),zt(1)).subscribe(()=>{t()})}var Ut=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(md);stateManager=p(Oc);options=p(mo,{optional:!0})||{};pendingTasks=p(Qt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(yv);urlSerializer=p(ho);location=p(Xr);urlHandlingStrategy=p(Rc);injector=p(ne);_events=new me;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Dv);injectorCleanup=p(vv,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Gi,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Nc,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=q(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof ft&&r.code!==Ne.Redirect&&r.code!==Ne.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Bt)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof co){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=y({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||X0(o.source)},s);this.scheduleNavigation(a,Ri,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}t0(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ri,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i)})}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null;if(o){let c=y({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(qe)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return q(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(_f),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=y(y({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=zy(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Gy(d,n,u,l??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=On(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ri,null,r)}navigate(n,r={skipLocationChange:!1}){return nS(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.console.warn(vn(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=y({},ky):r===!1?o=y({},sf):o=y(y({},sf),r),On(n))return wy(this.currentUrlTree,n,o);let i=this.parseUrl(n);return wy(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,h)=>{a=d,c=h});let u=this.pendingTasks.add();return wf(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nS(e){for(let t=0;t{class e{router=p(Ut);stateManager=p(Oc);fragment=L("");queryParams=L({});path=L("");serializer=p(ho);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof Bt&&this.updateState()})}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new Xe(r)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yo=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Ua("href"),{optional:!0});reactiveHref=Md(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return q(this.reactiveHref)}set href(n){this.reactiveHref.set(n)}set target(n){this._target.set(n)}get target(){return q(this._target)}_target=L(void 0);set queryParams(n){this._queryParams.set(n)}get queryParams(){return q(this._queryParams)}_queryParams=L(void 0,{equal:()=>!1});set fragment(n){this._fragment.set(n)}get fragment(){return q(this._fragment)}_fragment=L(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n)}get queryParamsHandling(){return q(this._queryParamsHandling)}_queryParamsHandling=L(void 0);set state(n){this._state.set(n)}get state(){return q(this._state)}_state=L(void 0,{equal:()=>!1});set info(n){this._info.set(n)}get info(){return q(this._info)}_info=L(void 0,{equal:()=>!1});set relativeTo(n){this._relativeTo.set(n)}get relativeTo(){return q(this._relativeTo)}_relativeTo=L(void 0);set preserveFragment(n){this._preserveFragment.set(n)}get preserveFragment(){return q(this._preserveFragment)}_preserveFragment=L(!1);set skipLocationChange(n){this._skipLocationChange.set(n)}get skipLocationChange(){return q(this._skipLocationChange)}_skipLocationChange=L(!1);set replaceUrl(n){this._replaceUrl.set(n)}get replaceUrl(){return q(this._replaceUrl)}_replaceUrl=L(!1);isAnchorElement;onChanges=new me;applicationErrorHandler=p(qe);options=p(mo,{optional:!0});reactiveRouterState=p(iS);constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.onChanges.next(this)}routerLinkInput=L(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(On(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(Array.isArray(n)?n:[n]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}_urlTree=Se(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:On(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return q(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(B(Ut),B(_t),ai("tabindex"),B(dr),B(Tn),B(Jr))};static \u0275dir=Pe({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&te("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&hr("href",o.reactiveHref(),td)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Kr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Kr],replaceUrl:[2,"replaceUrl","replaceUrl",Kr],routerLink:"routerLink"},features:[Mn]})}return e})();var sS=new I("");function If(e,...t){return _n([{provide:Gi,multi:!0,useValue:e},[],{provide:_t,useFactory:aS},{provide:Va,multi:!0,useFactory:cS},t.map(n=>n.\u0275providers)])}function aS(){return p(Ut).routerState.root}function cS(){let e=p(Le);return t=>{let n=e.get(fr);if(t!==n.components[0])return;let r=e.get(Ut),o=e.get(lS);e.get(uS)===1&&r.initialNavigation(),e.get(dS,null,{optional:!0})?.setUpPreloading(),e.get(sS,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var lS=new I("",{factory:()=>new me}),uS=new I("",{factory:()=>1});var dS=new I("");var Mv=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(B(dr),B(Tn))};static \u0275dir=Pe({type:e})}return e})(),fS=(()=>{class e extends Mv{static \u0275fac=(()=>{let n;return function(o){return(n||(n=cr(e)))(o||e)}})();static \u0275dir=Pe({type:e,features:[Xt]})}return e})(),Tv=new I("");var hS={provide:Tv,useExisting:Dn(()=>Eo),multi:!0};function pS(){let e=ut()?ut().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var gS=new I(""),Eo=(()=>{class e extends Mv{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!pS())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(B(dr),B(Tn),B(gS,8))};static \u0275dir=Pe({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&te("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[hi([hS]),Xt]})}return e})();var Av=new I(""),Nv=new I("");function xv(e){return e!=null}function Rv(e){return An(e)?ae(e):e}function Ov(e){let t={};return e.forEach(n=>{t=n!=null?y(y({},t),n):t}),Object.keys(t).length===0?null:t}function Pv(e,t){return t.map(n=>n(e))}function mS(e){return!e.validate}function kv(e){return e.map(t=>mS(t)?t:n=>t.validate(n))}function yS(e){if(!e)return null;let t=e.filter(xv);return t.length==0?null:function(n){return Ov(Pv(n,t))}}function Tf(e){return e!=null?yS(kv(e)):null}function vS(e){if(!e)return null;let t=e.filter(xv);return t.length==0?null:function(n){let r=Pv(n,t).map(Rv);return hl(r).pipe(W(Ov))}}function Af(e){return e!=null?vS(kv(e)):null}function Cv(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function DS(e){return e._rawValidators}function CS(e){return e._rawAsyncValidators}function Sf(e){return e?Array.isArray(e)?e:[e]:[]}function kc(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ev(e,t){let n=Sf(t);return Sf(e).forEach(o=>{kc(n,o)||n.push(o)}),n}function _v(e,t){return Sf(t).filter(n=>!kc(e,n))}var Fc=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Tf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Af(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control?.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Co=class extends Fc{name;get formDirective(){return null}get path(){return null}},Qi=class extends Fc{_parent=null;name=null;valueAccessor=null},Lc=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Hc=(()=>{class e extends Lc{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(B(Qi,2))};static \u0275dir=Pe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ye("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Xt]})}return e})(),Fv=(()=>{class e extends Lc{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(B(Co,10))};static \u0275dir=Pe({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Ye("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[Xt]})}return e})();var Wi="VALID",Pc="INVALID",vo="PENDING",qi="DISABLED",Pn=class{},jc=class extends Pn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Yi=class extends Pn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Ki=class extends Pn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Do=class extends Pn{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Mf=class extends Pn{source;constructor(t){super(),this.source=t}},Vc=class extends Pn{source;constructor(t){super(),this.source=t}};function Lv(e){return($c(e)?e.validators:e)||null}function ES(e){return Array.isArray(e)?Tf(e):e||null}function jv(e,t){return($c(t)?t.asyncValidators:e)||null}function _S(e){return Array.isArray(e)?Af(e):e||null}function $c(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function bS(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new E(1e3,"");if(!r[n])throw new E(1001,"")}function wS(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new E(1002,"")})}var Bc=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return q(this.statusReactive)}set status(t){q(()=>this.statusReactive.set(t))}_status=Se(()=>this.statusReactive());statusReactive=L(void 0);get valid(){return this.status===Wi}get invalid(){return this.status===Pc}get pending(){return this.status==vo}get disabled(){return this.status===qi}get enabled(){return this.status!==qi}errors;get pristine(){return q(this.pristineReactive)}set pristine(t){q(()=>this.pristineReactive.set(t))}_pristine=Se(()=>this.pristineReactive());pristineReactive=L(!0);get dirty(){return!this.pristine}get touched(){return q(this.touchedReactive)}set touched(t){q(()=>this.touchedReactive.set(t))}_touched=Se(()=>this.touchedReactive());touchedReactive=L(!1);get untouched(){return!this.touched}_events=new me;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ev(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ev(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(_v(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(_v(t,this._rawAsyncValidators))}hasValidator(t){return kc(this._rawValidators,t)}hasAsyncValidator(t){return kc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(A(y({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Ki(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Ki(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(A(y({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Yi(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Yi(!0,r))}markAsPending(t={}){this.status=vo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Do(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(A(y({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=qi,this.errors=null,this._forEachChild(o=>{o.disable(A(y({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new jc(this.value,r)),this._events.next(new Do(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(y({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Wi,this._forEachChild(r=>{r.enable(A(y({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(A(y({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},n),this._parent?._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wi||this.status===vo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new jc(this.value,n)),this._events.next(new Do(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(A(y({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?qi:Wi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=vo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=Rv(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r?.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Do(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new he,this.statusChanges=new he}_calculateStatus(){return this._allControlsDisabled()?qi:this.errors?Pc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vo)?vo:this._anyControlsHaveStatus(Pc)?Pc:Wi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new Yi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ki(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$c(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=ES(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=_S(this._rawAsyncValidators)}},Uc=class extends Bc{constructor(t,n,r){super(Lv(n),jv(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){wS(this,!0,t),Object.keys(t).forEach(r=>{bS(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,A(y({},n),{onlySelf:!0}))}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n),n?.emitEvent!==!1&&this._events.next(new Vc(this))}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var Nf=new I("",{factory:()=>xf}),xf="always";function IS(e,t){return[...t.path,e]}function Vv(e,t,n=xf){Bv(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),MS(e,t),AS(e,t),TS(e,t),SS(e,t)}function bv(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function SS(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Bv(e,t){let n=DS(e);t.validator!==null?e.setValidators(Cv(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=CS(e);t.asyncValidator!==null?e.setAsyncValidators(Cv(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();bv(t._rawValidators,o),bv(t._rawAsyncValidators,o)}function MS(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Uv(e,t)})}function TS(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Uv(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Uv(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function AS(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function NS(e,t){e==null,Bv(e,t)}function xS(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function RS(e){return Object.getPrototypeOf(e.constructor)===fS}function OS(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function PS(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Eo?n=i:RS(i)?r=i:o=i}),o||r||n||null}var kS={provide:Co,useExisting:Dn(()=>Rf)},Zi=Promise.resolve(),Rf=(()=>{class e extends Co{callSetDisabledState;get submitted(){return q(this.submittedReactive)}_submitted=Se(()=>this.submittedReactive());submittedReactive=L(!1);_directives=new Set;form;ngSubmit=new he;options;constructor(n,r,o){super(),this.callSetDisabledState=o,this.form=new Uc({},Tf(n),Af(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Zi.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Vv(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Zi.then(()=>{this._findContainer(n.path)?.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Zi.then(()=>{let r=this._findContainer(n.path),o=new Uc({});NS(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Zi.then(()=>{this._findContainer(n.path)?.removeControl?.(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Zi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),OS(this.form,this._directives),this.ngSubmit.emit(n),this.form._events.next(new Mf(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static \u0275fac=function(r){return new(r||e)(B(Av,10),B(Nv,10),B(Nf,8))};static \u0275dir=Pe({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&te("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[hi([kS]),Xt]})}return e})();function wv(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Iv(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var FS=class extends Bc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Lv(n),jv(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$c(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Iv(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new Vc(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){wv(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wv(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Iv(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var LS={provide:Qi,useExisting:Dn(()=>Ji)},Sv=Promise.resolve(),Ji=(()=>{class e extends Qi{_changeDetectorRef;callSetDisabledState;control=new FS;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new he;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=PS(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),xS(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Vv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Sv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Kr(r);Sv.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?IS(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(B(Co,9),B(Av,10),B(Nv,10),B(Tv,10),B(Yr,8),B(Nf,8))};static \u0275dir=Pe({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[hi([LS]),Xt,Mn]})}return e})();var Hv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=Pe({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var jS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=kt({type:e});static \u0275inj=mt({})}return e})();var zc=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Nf,useValue:n.callSetDisabledState??xf}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=kt({type:e});static \u0275inj=mt({imports:[jS]})}return e})();var _o=class e{constructor(t){this.http=t;this.token()&&this.currentUser()&&queueMicrotask(()=>{this.restoreSession()})}serverUrl=L(this.readStorage("privatechat.serverUrl")??"http://localhost:3000");currentUser=L(this.readUserStorage());accessKeys=L([]);peers=L([]);activePeerId=L(null);messages=L([]);status=L("Disconnected from signaling server.");error=L(null);webAuthnSupported=L(typeof window<"u"&&typeof window.PublicKeyCredential<"u"&&typeof navigator<"u"&&typeof navigator.credentials?.create=="function"&&typeof navigator.credentials?.get=="function");selectedPeer=Se(()=>this.peers().find(t=>t.id===this.activePeerId())??null);conversation=Se(()=>{let t=this.activePeerId();return t?this.messages().filter(n=>n.peerId===t):[]});isSelectedPeerReady=Se(()=>this.selectedPeer()?.channelState==="open");token=L(this.readStorage("privatechat.token"));peerBundles=new Map;incomingFiles=new Map;websocket=null;async register(t,n,r){await this.authenticate("/api/auth/register",{username:t,password:n,displayName:r.trim()||void 0})}async login(t,n){await this.authenticate("/api/auth/login",{username:t,password:n})}async loginWithAccessKey(t){if(!this.webAuthnSupported()){this.error.set("This browser does not support WebAuthn access keys.");return}this.error.set(null);try{let n=await wt(this.http.post(`${this.serverUrl()}/api/webauthn/authenticate/options`,{username:t.trim()||void 0})),r=await navigator.credentials.get({publicKey:this.toPublicKeyRequestOptions(n)});if(!(r instanceof PublicKeyCredential)){this.error.set("The browser did not return a valid access key credential.");return}let o=await wt(this.http.post(`${this.serverUrl()}/api/webauthn/authenticate/verify`,{attemptId:n.attemptId,credential:this.serializeAuthenticationCredential(r)}));await this.applyAuthenticatedSession(o)}catch(n){this.error.set(this.extractErrorMessage(n,"Access key login failed or was cancelled."))}}async logout(){let t=this.token();try{t&&await wt(this.http.post(`${this.serverUrl()}/api/auth/logout`,{},{headers:{Authorization:`Bearer ${t}`}}))}catch{}finally{this.clearLocalAuth("Logged out.")}}setServerUrl(t){let n=t.trim().replace(/\/+$/,"");n&&(this.serverUrl.set(n),this.writeStorage("privatechat.serverUrl",n),this.currentUser()&&this.connectWebSocket())}selectPeer(t){this.activePeerId.set(t)}async connectToPeer(t){if(!this.websocket||this.websocket.readyState!==WebSocket.OPEN){this.error.set("You must be connected to signaling before opening a peer session.");return}let n=this.ensurePeerBundle(t,!0);if(n.channel?.readyState==="open"||n.pc.signalingState!=="stable")return;this.patchPeer(t,{connectionState:"connecting",channelState:"connecting"}),this.addSystemMessage(t,"Opening WebRTC data channel.");let r=await n.pc.createOffer();await n.pc.setLocalDescription(r),this.sendSignal(t,{type:"sdp",description:n.pc.localDescription.toJSON()})}async registerAccessKey(t){if(!this.webAuthnSupported()){this.error.set("This browser does not support WebAuthn access keys.");return}let n=this.token();if(!n){this.error.set("Sign in before registering an access key.");return}this.error.set(null);try{let r=await wt(this.http.post(`${this.serverUrl()}/api/webauthn/register/options`,{label:t.trim()||void 0},{headers:{Authorization:`Bearer ${n}`}})),o=await navigator.credentials.create({publicKey:this.toPublicKeyCreationOptions(r)});if(!(o instanceof PublicKeyCredential)){this.error.set("The browser did not return a valid access key credential.");return}await wt(this.http.post(`${this.serverUrl()}/api/webauthn/register/verify`,{credential:this.serializeRegistrationCredential(o)},{headers:{Authorization:`Bearer ${n}`}})),await this.loadAccessKeys(),this.status.set("Access key registered.")}catch(r){this.error.set(this.extractErrorMessage(r,"Access key registration failed or was cancelled."))}}async sendText(t,n){let r=n.trim();if(!r)return;let o=this.requireOpenChannel(t);if(!o)return;let i={type:"text",id:crypto.randomUUID(),body:r,authorId:this.currentUser().id,authorName:this.currentUser().displayName,sentAt:Date.now()};o.send(JSON.stringify(i)),this.pushMessage({id:i.id,peerId:t,direction:"outgoing",kind:"text",createdAt:i.sentAt,authorLabel:"You",text:r})}async sendJson(t,n){if(!n.trim())return;let r=this.requireOpenChannel(t);if(!r)return;let o;try{o=JSON.parse(n)}catch{this.error.set("JSON payload is not valid.");return}let i={type:"json",id:crypto.randomUUID(),body:o,authorId:this.currentUser().id,authorName:this.currentUser().displayName,sentAt:Date.now()};r.send(JSON.stringify(i)),this.pushMessage({id:i.id,peerId:t,direction:"outgoing",kind:"json",createdAt:i.sentAt,authorLabel:"You",payload:o})}async sendFile(t,n){let r=this.requireOpenChannel(t);if(!r)return;let o=crypto.randomUUID(),i=Date.now(),s=await n.arrayBuffer(),a=16*1024;r.send(JSON.stringify({type:"file-meta",id:o,name:n.name,mimeType:n.type||"application/octet-stream",size:n.size,authorId:this.currentUser().id,authorName:this.currentUser().displayName,sentAt:i}));for(let c=0;c{this.status.set("Connected to signaling server.")},n.onmessage=r=>{let o=JSON.parse(r.data);this.handleServerEvent(o)},n.onerror=()=>{this.error.set("The signaling socket encountered an error.")},n.onclose=()=>{this.status.set("Signaling connection closed."),this.websocket=null,this.peers.update(r=>r.map(o=>A(y({},o),{connectionState:"disconnected",channelState:"closed"})))}}disconnectWebSocket(){this.websocket&&(this.websocket.close(),this.websocket=null)}async handleServerEvent(t){switch(t.type){case"presence":this.mergePresence(t.peers);break;case"peer-joined":this.mergePresence([...this.peers().map(n=>n),A(y({},t.peer),{connectionState:"disconnected",channelState:"closed"})]);break;case"peer-left":this.releasePeerBundle(t.peerId,!1),this.peers.update(n=>n.filter(r=>r.id!==t.peerId)),this.activePeerId()===t.peerId&&this.activePeerId.set(this.peers()[0]?.id??null),this.addSystemMessage(t.peerId,"Peer disconnected from signaling.");break;case"signal":await this.handleSignal(t.from,t.signal);break;case"error":this.error.set(t.message),/auth|session/i.test(t.message)&&this.clearLocalAuth("Session expired. Sign in again.");break}}async restoreSession(){let t=this.token();if(t){this.status.set("Restoring saved session."),this.error.set(null);try{let n=await wt(this.http.get(`${this.serverUrl()}/api/auth/session`,{headers:{Authorization:`Bearer ${t}`}}));this.currentUser.set(n.user),this.writeStorage("privatechat.user",JSON.stringify(n.user)),await this.loadAccessKeys(),await this.connectWebSocket()}catch{this.clearLocalAuth("Saved session expired. Sign in again.")}}}mergePresence(t){let n=new Map(this.peers().map(o=>[o.id,o])),r=t.map(o=>{let i=n.get(o.id);return{id:o.id,username:o.username,displayName:o.displayName,connectionState:i?.connectionState??"disconnected",channelState:i?.channelState??"closed"}}).filter((o,i,s)=>s.findIndex(a=>a.id===o.id)===i).sort((o,i)=>o.displayName.localeCompare(i.displayName));this.peers.set(r),!this.activePeerId()&&r.length>0&&this.activePeerId.set(r[0].id)}async handleSignal(t,n){if(n.type==="ice-candidate"){let i=this.ensurePeerBundle(t,!1);i.pc.remoteDescription?await i.pc.addIceCandidate(n.candidate):i.pendingCandidates.push(n.candidate);return}let r=this.ensurePeerBundle(t,!1),o=n.description;if(o.type==="offer"){let i=r.pc.signalingState!=="stable",s=this.isPolitePeer(t);if(i){if(!s)return;await r.pc.setLocalDescription({type:"rollback"})}await r.pc.setRemoteDescription(o),await this.flushPendingCandidates(r);let a=await r.pc.createAnswer();await r.pc.setLocalDescription(a),this.sendSignal(t,{type:"sdp",description:r.pc.localDescription.toJSON()});return}await r.pc.setRemoteDescription(o),await this.flushPendingCandidates(r)}ensurePeerBundle(t,n){let r=this.peerBundles.get(t);if(r&&r.pc.connectionState!=="closed"&&r.pc.connectionState!=="failed"){if(n&&!r.channel){let i=r.pc.createDataChannel("privatechat");this.attachDataChannel(t,i,r)}return r}this.releasePeerBundle(t,!1);let o={pc:new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"}]}),pendingCandidates:[]};if(o.pc.onicecandidate=i=>{i.candidate&&this.sendSignal(t,{type:"ice-candidate",candidate:i.candidate.toJSON()})},o.pc.onconnectionstatechange=()=>{let i=this.mapConnectionState(o.pc.connectionState);this.patchPeer(t,{connectionState:i}),i==="connected"&&this.addSystemMessage(t,"Peer connection established."),(o.pc.connectionState==="closed"||o.pc.connectionState==="failed")&&this.releasePeerBundle(t,!0)},o.pc.ondatachannel=i=>{this.attachDataChannel(t,i.channel,o)},n){let i=o.pc.createDataChannel("privatechat");this.attachDataChannel(t,i,o)}return this.peerBundles.set(t,o),this.patchPeer(t,{connectionState:"connecting"}),o}attachDataChannel(t,n,r){n.binaryType="arraybuffer",r.channel=n,this.patchPeer(t,{channelState:n.readyState==="open"?"open":"connecting"}),n.onopen=()=>{this.patchPeer(t,{connectionState:"connected",channelState:"open"}),this.addSystemMessage(t,"Secure data channel is open.")},n.onclose=()=>{this.patchPeer(t,{channelState:"closed"})},n.onerror=()=>{this.patchPeer(t,{channelState:"closed",connectionState:"failed"}),this.error.set("A peer data channel failed.")},n.onmessage=o=>{if(typeof o.data=="string"){this.handleChannelEnvelope(t,JSON.parse(o.data));return}this.handleBinaryChunk(t,o.data)}}handleChannelEnvelope(t,n){switch(n.type){case"text":this.pushMessage({id:n.id,peerId:t,direction:"incoming",kind:"text",createdAt:n.sentAt,authorLabel:n.authorName,text:n.body});break;case"json":this.pushMessage({id:n.id,peerId:t,direction:"incoming",kind:"json",createdAt:n.sentAt,authorLabel:n.authorName,payload:n.body});break;case"file-meta":this.incomingFiles.set(t,{id:n.id,name:n.name,mimeType:n.mimeType,size:n.size,sentAt:n.sentAt,authorName:n.authorName,chunks:[],receivedBytes:0}),this.addSystemMessage(t,`Receiving file ${n.name}.`);break;case"file-complete":this.finalizeIncomingFile(t,n.id);break}}async handleBinaryChunk(t,n){let r=this.incomingFiles.get(t);if(!r)return;let o=n instanceof Blob?await n.arrayBuffer():n;r.chunks.push(o),r.receivedBytes+=o.byteLength}finalizeIncomingFile(t,n){let r=this.incomingFiles.get(t);if(!r||r.id!==n)return;let o=new Blob(r.chunks,{type:r.mimeType}),i=URL.createObjectURL(o);this.pushMessage({id:r.id,peerId:t,direction:"incoming",kind:"file",createdAt:r.sentAt,authorLabel:r.authorName,fileName:r.name,fileSize:r.size,downloadUrl:i}),this.incomingFiles.delete(t)}async flushPendingCandidates(t){for(;t.pendingCandidates.length>0;){let n=t.pendingCandidates.shift();n&&await t.pc.addIceCandidate(n)}}sendSignal(t,n){!this.websocket||this.websocket.readyState!==WebSocket.OPEN||this.websocket.send(JSON.stringify({type:"signal",to:t,signal:n}))}requireOpenChannel(t){let n=this.peerBundles.get(t)?.channel;return!n||n.readyState!=="open"?(this.error.set("Open a peer connection before sending data."),null):n}async waitForBufferedAmount(t,n){for(;t.bufferedAmount>n;)await new Promise(r=>window.setTimeout(r,25))}releasePeerBundle(t,n){let r=this.peerBundles.get(t);r&&(r.channel?.close(),r.pc.close(),this.peerBundles.delete(t),this.incomingFiles.delete(t),n&&this.patchPeer(t,{connectionState:"disconnected",channelState:"closed"}))}resetPeerConnections(){for(let t of this.peerBundles.keys())this.releasePeerBundle(t,!0)}patchPeer(t,n){this.peers.update(r=>r.map(o=>o.id===t?y(y({},o),n):o))}pushMessage(t){this.messages.update(n=>[...n,t].sort((r,o)=>r.createdAt-o.createdAt))}addSystemMessage(t,n){this.pushMessage({id:crypto.randomUUID(),peerId:t,direction:"system",kind:"system",createdAt:Date.now(),authorLabel:"System",text:n})}isPolitePeer(t){return(this.currentUser()?.id??"")>t}mapConnectionState(t){switch(t){case"connected":return"connected";case"connecting":case"new":return"connecting";case"failed":return"failed";default:return"disconnected"}}clearLocalAuth(t){this.disconnectWebSocket(),this.resetPeerConnections(),this.currentUser.set(null),this.token.set(null),this.peers.set([]),this.accessKeys.set([]),this.activePeerId.set(null),this.messages.set([]),this.error.set(null),this.status.set(t),this.removeStorage("privatechat.token"),this.removeStorage("privatechat.user")}toWebSocketUrl(t,n){let r=new URL(t);return r.protocol=r.protocol==="https:"?"wss:":"ws:",r.pathname="/ws",r.search=`token=${encodeURIComponent(n)}`,r.toString()}toPublicKeyCreationOptions(t){return A(y({},t),{challenge:this.base64UrlToBuffer(t.challenge),user:A(y({},t.user),{id:this.base64UrlToBuffer(t.user.id)}),excludeCredentials:t.excludeCredentials?.map(n=>A(y({},n),{id:this.base64UrlToBuffer(n.id),transports:n.transports}))})}toPublicKeyRequestOptions(t){return{challenge:this.base64UrlToBuffer(t.challenge),timeout:t.timeout,rpId:t.rpId,userVerification:t.userVerification,allowCredentials:t.allowCredentials?.map(n=>A(y({},n),{id:this.base64UrlToBuffer(n.id),transports:n.transports})),extensions:t.extensions}}serializeRegistrationCredential(t){let n=t.response;return{id:t.id,rawId:this.bufferToBase64Url(t.rawId),response:{clientDataJSON:this.bufferToBase64Url(n.clientDataJSON),attestationObject:this.bufferToBase64Url(n.attestationObject),transports:n.getTransports?.()},clientExtensionResults:t.getClientExtensionResults(),type:t.type,authenticatorAttachment:t.authenticatorAttachment??void 0}}serializeAuthenticationCredential(t){let n=t.response;return{id:t.id,rawId:this.bufferToBase64Url(t.rawId),response:{clientDataJSON:this.bufferToBase64Url(n.clientDataJSON),authenticatorData:this.bufferToBase64Url(n.authenticatorData),signature:this.bufferToBase64Url(n.signature),userHandle:n.userHandle?this.bufferToBase64Url(n.userHandle):void 0},clientExtensionResults:t.getClientExtensionResults(),type:t.type,authenticatorAttachment:t.authenticatorAttachment??void 0}}base64UrlToBuffer(t){let n="=".repeat((4-t.length%4)%4),r=(t+n).replace(/-/g,"+").replace(/_/g,"/"),o=atob(r),i=new Uint8Array(o.length);for(let s=0;st.id;function BS(e,t){if(e&1&&(m(0,"h1",12),D(1),g(),m(2,"p",13),D(3),g()),e&2){let n=t;C(),X(n.displayName),C(2),mr(" Text chat. Connection: ",n.connectionState,". Channel: ",n.channelState,". ")}}function US(e,t){e&1&&(m(0,"h1",12),D(1,"Peer not available"),g(),m(2,"p",13),D(3,"Return to the dashboard and select another peer."),g())}function HS(e,t){if(e&1){let n=at();m(0,"button",14),te("click",function(){Q(n);let o=R();return J(o.ensureConnection())}),D(1),g()}if(e&2){let n=t;ke("disabled",n.channelState==="open"),C(),ct(" ",n.channelState==="open"?"Connected":"Open channel"," ")}}function $S(e,t){e&1&&(m(0,"div",7),D(1," No text messages yet. The chat page is ready as soon as the peer channel opens. "),g())}function zS(e,t){if(e&1&&(m(0,"article",15)(1,"div",16)(2,"span"),D(3),g(),m(4,"time"),D(5),yr(6,"date"),g()(),m(7,"p",17),D(8),g()()),e&2){let n=t.$implicit;Ye("bubble-incoming",n.direction==="incoming")("bubble-outgoing",n.direction==="outgoing")("bubble-system",n.direction==="system"),C(3),X(n.authorLabel),C(2),X(Zr(6,9,n.createdAt,"shortTime")),C(3),X(n.text)}}var Gc=class e{constructor(t){this.session=t;let n=this.peerId();n&&(this.session.selectPeer(n),this.session.connectToPeer(n)),this.session.currentUser()||this.router.navigateByUrl("/")}route=p(_t);router=p(Ut);messageText="";peerId=Se(()=>this.route.snapshot.paramMap.get("peerId")??"");peer=Se(()=>this.session.peers().find(t=>t.id===this.peerId())??null);textConversation=Se(()=>this.session.messages().filter(t=>t.peerId===this.peerId()&&(t.kind==="text"||t.kind==="system")));async ensureConnection(){let t=this.peerId();t&&(this.session.selectPeer(t),await this.session.connectToPeer(t))}async sendMessage(){let t=this.peerId();t&&(await this.session.sendText(t,this.messageText),this.messageText="")}static \u0275fac=function(n){return new(n||e)(B(_o))};static \u0275cmp=Jt({type:e,selectors:[["app-chat-page"]],decls:18,vars:6,consts:[[1,"chat-shell","py-4"],[1,"container-lg"],[1,"chat-page","panel","p-3","p-lg-4"],[1,"chat-header","d-flex","flex-column","flex-lg-row","justify-content-between","align-items-start","align-items-lg-center","gap-3","mb-4"],["routerLink","/",1,"back-link"],["type","button",1,"btn","btn-outline-light",3,"disabled"],[1,"conversation"],[1,"empty-chat"],[1,"bubble",3,"bubble-incoming","bubble-outgoing","bubble-system"],[1,"composer"],["rows","3","placeholder","Write a text message to your peer",1,"form-control","composer-textarea",3,"ngModelChange","ngModel","disabled"],["type","button","title","Send message","aria-label","Send message",1,"send-emoji",3,"click","disabled"],[1,"h3","mb-1","mt-2"],[1,"small","text-secondary","mb-0"],["type","button",1,"btn","btn-outline-light",3,"click","disabled"],[1,"bubble"],[1,"bubble-meta"],[1,"mb-0"]],template:function(n,r){if(n&1&&(m(0,"main",0)(1,"div",1)(2,"section",2)(3,"div",3)(4,"div")(5,"a",4),D(6,"\u2190 Back to dashboard"),g(),oe(7,BS,4,3)(8,US,4,0),g(),oe(9,HS,2,2,"button",5),g(),m(10,"div",6),oe(11,$S,2,0,"div",7),pr(12,zS,9,12,"article",8,VS),g(),m(14,"div",9)(15,"textarea",10),Qe("ngModelChange",function(i){return lt(r.messageText,i)||(r.messageText=i),i}),g(),m(16,"button",11),te("click",function(){return r.sendMessage()}),D(17," \u2705 "),g()()()()()),n&2){let o,i;C(7),ie((o=r.peer())?7:8,o),C(2),ie((i=r.peer())?9:-1,i),C(2),ie(r.textConversation().length===0?11:-1),C(),gr(r.textConversation()),C(3),Ke("ngModel",r.messageText),ke("disabled",!r.session.isSelectedPeerReady()),C(),ke("disabled",!r.session.isSelectedPeerReady())}},dependencies:[eo,zc,Eo,Hc,Ji,yo,Ei],styles:["[_nghost-%COMP%]{display:block;min-height:100dvh;color:#eff3ff}.chat-shell[_ngcontent-%COMP%]{min-height:100dvh}.panel[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.12);border-radius:1.75rem;background:#09101ccc;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 20px 60px #00000047}.back-link[_ngcontent-%COMP%]{color:#9bd5ff;text-decoration:none}.conversation[_ngcontent-%COMP%]{display:grid;gap:.85rem;min-height:24rem;max-height:calc(100dvh - 22rem);overflow:auto;padding:.5rem 0}.bubble[_ngcontent-%COMP%]{max-width:min(75%,34rem);padding:.9rem 1rem;border-radius:1.2rem;box-shadow:0 12px 30px #00000024}.bubble-incoming[_ngcontent-%COMP%]{justify-self:start;color:#0f2540;background:#dcefff}.bubble-outgoing[_ngcontent-%COMP%]{justify-self:end;color:#153420;background:#def7dd}.bubble-system[_ngcontent-%COMP%]{justify-self:center;max-width:90%;color:#eff3ffd6;background:#ffffff14}.bubble-meta[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.35rem;font-size:.78rem;opacity:.7}.composer[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.9rem;align-items:end;padding-top:1rem;margin-top:1rem;border-top:1px solid rgba(255,255,255,.08)}.composer-textarea[_ngcontent-%COMP%], .composer-textarea[_ngcontent-%COMP%]:focus{color:#eff3ff;background-color:#ffffff0f;border-color:#ffffff29;box-shadow:none}.composer-textarea[_ngcontent-%COMP%]::placeholder{color:#eff3ff80}.send-emoji[_ngcontent-%COMP%]{width:3.25rem;height:3.25rem;border:0;border-radius:999px;font-size:1.35rem;background:linear-gradient(135deg,#def7dd,#9bd5ff)}.empty-chat[_ngcontent-%COMP%]{padding:1.25rem;border:1px dashed rgba(255,255,255,.16);border-radius:1rem;color:#e7eef9b8;text-align:center}.h3[_ngcontent-%COMP%], .small[_ngcontent-%COMP%]{color:#eff3ff}@media(max-width:767.98px){.bubble[_ngcontent-%COMP%]{max-width:88%}}"]})};var GS=e=>["/chat",e],Of=(e,t)=>t.id;function WS(e,t){if(e&1){let n=at();m(0,"div",10)(1,"div",11),D(2,"Signed in"),g(),m(3,"div",12),D(4),g(),m(5,"div",13),D(6),g(),m(7,"div",14),D(8),g(),m(9,"button",15),te("click",function(){Q(n);let o=R(2);return J(o.logout())}),D(10,"Log out"),g()()}if(e&2){let n=t,r=R(2);C(4),X(n.displayName),C(2),X(n.username),C(2),X(r.session.status())}}function qS(e,t){if(e&1&&(m(0,"section",3)(1,"div",5)(2,"div",6)(3,"span",7),D(4,"WebRTC Private Chat"),g(),m(5,"h1",8),D(6,"Authenticated peer messaging without routing chat payloads through the server."),g(),m(7,"p",9),D(8," Fastify handles identity and signaling. After discovery, peers exchange text, JSON, and files over a direct WebRTC data channel. "),g()(),oe(9,WS,11,3,"div",10),g()()),e&2){let n,r=R();C(9),ie((n=r.session.currentUser())?9:-1,n)}}function ZS(e,t){e&1&&(m(0,"section",16)(1,"h2",18),D(2,"Open Settings to sign in"),g(),m(3,"p",19),D(4," This embedded client expects authentication and backend configuration from the native app settings. "),g()())}function YS(e,t){if(e&1){let n=at();m(0,"div")(1,"label",41),D(2,"Display name"),g(),m(3,"input",42),Qe("ngModelChange",function(o){Q(n);let i=R(3);return lt(i.displayName,o)||(i.displayName=o),J(o)}),g()()}if(e&2){let n=R(3);C(3),Ke("ngModel",n.displayName)}}function KS(e,t){if(e&1){let n=at();m(0,"div",43),D(1,"or"),g(),m(2,"button",44),te("click",function(){Q(n);let o=R(3);return J(o.loginWithAccessKey())}),D(3," \u{1F511} Use access key "),g(),m(4,"div",45),D(5," Leave the username blank to choose from discoverable passkeys, or enter it to target one account. "),g()}}function QS(e,t){if(e&1&&(m(0,"div",36),D(1),g()),e&2){let n=R(3);C(),X(n.session.error())}}function JS(e,t){if(e&1){let n=at();m(0,"section",17)(1,"div",20)(2,"div",21)(3,"div",22)(4,"div")(5,"h2",23),D(6,"Connect to the signaling backend"),g(),m(7,"p",19),D(8,"Use the Fastify server for authentication and peer discovery."),g()(),m(9,"span",24),D(10,"Angular + Bootstrap"),g()(),m(11,"div",25)(12,"label",26),D(13,"Backend URL"),g(),m(14,"input",27),Qe("ngModelChange",function(o){Q(n);let i=R(2);return lt(i.serverUrl,o)||(i.serverUrl=o),J(o)}),g()(),m(15,"div",28)(16,"button",29),te("click",function(){Q(n);let o=R(2);return J(o.authMode="login")}),D(17," Log in "),g(),m(18,"button",29),te("click",function(){Q(n);let o=R(2);return J(o.authMode="register")}),D(19," Register "),g()(),m(20,"form",30),te("ngSubmit",function(){Q(n);let o=R(2);return J(o.submitAuth())}),oe(21,YS,4,1,"div"),m(22,"div")(23,"label",31),D(24,"Username"),g(),m(25,"input",32),Qe("ngModelChange",function(o){Q(n);let i=R(2);return lt(i.username,o)||(i.username=o),J(o)}),g()(),m(26,"div")(27,"label",33),D(28,"Password"),g(),m(29,"input",34),Qe("ngModelChange",function(o){Q(n);let i=R(2);return lt(i.password,o)||(i.password=o),J(o)}),g()(),m(30,"button",35),D(31),g(),oe(32,KS,6,0),g(),oe(33,QS,2,1,"div",36),g()(),m(34,"div",20)(35,"div",37)(36,"h2",18),D(37,"Transport model"),g(),m(38,"div",38)(39,"article")(40,"div",39),D(41,"1. Authenticate"),g(),m(42,"p",40),D(43,"Register or log in against the Fastify API to receive a JWT."),g()(),m(44,"article")(45,"div",39),D(46,"2. Discover peers"),g(),m(47,"p",40),D(48,"Open the WebSocket signaling session and receive the online peer list."),g()(),m(49,"article")(50,"div",39),D(51,"3. Exchange data directly"),g(),m(52,"p",40),D(53,"Create a WebRTC data channel and send text, JSON, or files peer-to-peer."),g()()()()()()}if(e&2){let n=R(2);C(14),Ke("ngModel",n.serverUrl),C(2),Ye("btn-primary",n.authMode==="login")("btn-outline-primary",n.authMode!=="login"),C(2),Ye("btn-primary",n.authMode==="register")("btn-outline-primary",n.authMode!=="register"),C(3),ie(n.authMode==="register"?21:-1),C(4),Ke("ngModel",n.username),hr("autocomplete",n.authMode==="login"?"username webauthn":"username"),C(4),Ke("ngModel",n.password),C(2),ct(" ",n.authMode==="login"?"Enter chat":"Create account"," "),C(),ie(n.authMode==="login"&&n.session.webAuthnSupported()?32:-1),C(),ie(n.session.error()?33:-1)}}function XS(e,t){if(e&1&&oe(0,ZS,5,0,"section",16)(1,JS,54,16,"section",17),e&2){let n=R();ie(n.embeddedMode?0:1)}}function eM(e,t){if(e&1){let n=at();m(0,"label",57),D(1,"Backend URL"),g(),m(2,"div",58)(3,"input",59),Qe("ngModelChange",function(o){Q(n);let i=R(2);return lt(i.serverUrl,o)||(i.serverUrl=o),J(o)}),te("blur",function(){Q(n);let o=R(2);return J(o.applyServerUrl())}),g(),m(4,"button",60),te("click",function(){Q(n);let o=R(2);return J(o.applyServerUrl())}),D(5,"Apply"),g()()}if(e&2){let n=R(2);C(3),Ke("ngModel",n.serverUrl)}}function tM(e,t){e&1&&(m(0,"div",51),D(1," No other authenticated users are online yet. "),g())}function nM(e,t){if(e&1){let n=at();m(0,"article",61)(1,"button",62),te("click",function(){let o=Q(n).$implicit,i=R(2);return J(i.selectPeer(o.id))}),m(2,"div",63)(3,"div")(4,"div",64),D(5),g(),m(6,"div",45),D(7),g()(),m(8,"span",65),D(9),g()(),m(10,"div",66),D(11),g()(),m(12,"a",67),te("click",function(o){return o.stopPropagation()}),D(13," \u{1F4AC} "),g()()}if(e&2){let n=t.$implicit,r=R(2);Ye("peer-tile-active",r.session.activePeerId()===n.id),C(5),X(n.displayName),C(2),X(n.username),C(),Ye("text-bg-success",n.channelState==="open")("text-bg-warning",n.channelState==="connecting")("text-bg-secondary",n.channelState==="closed"),C(),ct(" ",n.channelState," "),C(2),ct("Peer connection: ",n.connectionState),C(),ke("routerLink",wd(13,GS,n.id))}}function rM(e,t){if(e&1){let n=at();m(0,"div",58)(1,"input",74),Qe("ngModelChange",function(o){Q(n);let i=R(3);return lt(i.accessKeyLabel,o)||(i.accessKeyLabel=o),J(o)}),g(),m(2,"button",75),te("click",function(){Q(n);let o=R(3);return J(o.registerAccessKey())}),D(3,"Add key"),g()()}if(e&2){let n=R(3);C(),Ke("ngModel",n.accessKeyLabel)}}function oM(e,t){e&1&&(m(0,"div",70),D(1,"This browser does not expose WebAuthn registration APIs."),g())}function iM(e,t){e&1&&(m(0,"div",72),D(1,"No access keys registered yet."),g())}function sM(e,t){if(e&1&&(m(0,"article",73)(1,"div",64),D(2),g(),m(3,"div",45),D(4),g(),m(5,"div",45),D(6),g(),m(7,"div",45),D(8),yr(9,"date"),g()()),e&2){let n=t.$implicit;C(2),X(n.label),C(2),mr("Device: ",n.deviceType,"",n.backedUp?" / backed up":""),C(2),ct("Transports: ",n.transports.length>0?n.transports.join(", "):"unspecified"),C(2),ct("Added: ",Zr(9,5,n.createdAt,"medium"))}}function aM(e,t){if(e&1&&(m(0,"section",53)(1,"div",48)(2,"div")(3,"h3",68),D(4,"Access keys"),g(),m(5,"p",69),D(6,"Register one or more WebAuthn credentials for this account."),g()(),m(7,"span",24),D(8),g()(),oe(9,rM,4,1,"div",58)(10,oM,2,0,"div",70),m(11,"div",71),oe(12,iM,2,0,"div",72),pr(13,sM,10,8,"article",73,Of),g()()),e&2){let n=R(2);C(8),X(n.session.accessKeys().length),C(),ie(n.session.webAuthnSupported()?9:10),C(3),ie(n.session.accessKeys().length===0?12:-1),C(),gr(n.session.accessKeys())}}function cM(e,t){if(e&1&&(m(0,"div",54),D(1),g()),e&2){let n=R(2);C(),X(n.session.error())}}function lM(e,t){e&1&&(m(0,"div",51),D(1," No messages yet. Open a direct channel to start exchanging data. "),g())}function uM(e,t){if(e&1&&(m(0,"p",40),D(1),g()),e&2){let n=R().$implicit;C(),X(n.text)}}function dM(e,t){if(e&1&&(m(0,"pre",93),D(1),yr(2,"json"),g()),e&2){let n=R().$implicit;C(),X(Id(2,1,n.payload))}}function fM(e,t){if(e&1&&(m(0,"a",95),D(1,"Download"),g()),e&2){let n=R(2).$implicit;ke("href",n.downloadUrl,Na)("download",n.fileName)}}function hM(e,t){if(e&1&&(m(0,"div",94)(1,"div")(2,"div",64),D(3),g(),m(4,"div",45),D(5),g()(),oe(6,fM,2,2,"a",95),g()),e&2){let n=R().$implicit,r=R(3);C(3),X(n.fileName),C(2),X(r.formatBytes(n.fileSize??0)),C(),ie(n.downloadUrl?6:-1)}}function pM(e,t){if(e&1&&(m(0,"p",40),D(1),g()),e&2){let n=R().$implicit;C(),X(n.text)}}function gM(e,t){if(e&1&&(m(0,"article",91)(1,"div",92)(2,"span",64),D(3),g(),m(4,"time",45),D(5),yr(6,"date"),g()(),oe(7,uM,2,1,"p",40)(8,dM,3,3,"pre",93)(9,hM,7,3,"div",94)(10,pM,2,1,"p",40),g()),e&2){let n,r=t.$implicit;Ye("message-card-outgoing",r.direction==="outgoing")("message-card-system",r.direction==="system"),C(3),X(r.authorLabel),C(2),X(Zr(6,7,r.createdAt,"shortTime")),C(2),ie((n=r.kind)==="text"?7:n==="json"?8:n==="file"?9:10)}}function mM(e,t){if(e&1){let n=at();m(0,"div",76)(1,"div")(2,"h2",23),D(3),g(),m(4,"p",19),D(5),g()(),m(6,"button",77),te("click",function(){let o=Q(n),i=R(2);return J(i.openPeerConnection(o.id))}),D(7),g()(),m(8,"div",78),oe(9,lM,2,0,"div",51),pr(10,gM,11,10,"article",79,Of),g(),m(12,"div",80)(13,"section",81)(14,"label",82),D(15,"Text message"),g(),m(16,"textarea",83),Qe("ngModelChange",function(o){Q(n);let i=R(2);return lt(i.textMessage,o)||(i.textMessage=o),J(o)}),g(),m(17,"button",84),te("click",function(){let o=Q(n),i=R(2);return J(i.sendText(o.id))}),D(18," Send text "),g()(),m(19,"section",81)(20,"label",85),D(21,"JSON payload"),g(),m(22,"textarea",86),Qe("ngModelChange",function(o){Q(n);let i=R(2);return lt(i.jsonPayload,o)||(i.jsonPayload=o),J(o)}),g(),m(23,"button",87),te("click",function(){let o=Q(n),i=R(2);return J(i.sendJson(o.id))}),D(24," Send JSON "),g()(),m(25,"section",81)(26,"label",88),D(27,"File transfer"),g(),m(28,"input",89,0),te("change",function(){let o=Q(n),i=bd(29),s=R(2);return J(s.sendFile(o.id,i))}),g(),m(30,"p",90),D(31,"Files are chunked over the data channel and never stored on the signaling server."),g()()()}if(e&2){let n=t,r=R(2);C(3),X(n.displayName),C(2),mr(" Signal state: ",n.connectionState,". Data channel: ",n.channelState,". "),C(),ke("disabled",n.channelState==="open"),C(),ct(" ",n.channelState==="open"?"Channel ready":"Open direct channel"," "),C(2),ie(r.session.conversation().length===0?9:-1),C(),gr(r.session.conversation()),C(6),Ke("ngModel",r.textMessage),ke("disabled",!r.session.isSelectedPeerReady()),C(),ke("disabled",!r.session.isSelectedPeerReady()),C(5),Ke("ngModel",r.jsonPayload),ke("disabled",!r.session.isSelectedPeerReady()),C(),ke("disabled",!r.session.isSelectedPeerReady()),C(5),ke("disabled",!r.session.isSelectedPeerReady())}}function yM(e,t){e&1&&(m(0,"div",56),D(1," Choose an online peer to start a direct session. "),g())}function vM(e,t){if(e&1&&(m(0,"section",4)(1,"div",46)(2,"div",47)(3,"div")(4,"div",48)(5,"div")(6,"h2",23),D(7,"Peers"),g(),m(8,"p",19),D(9,"Direct sessions available through signaling."),g()(),m(10,"span",49),D(11),g()(),oe(12,eM,6,1),g(),m(13,"div",50),oe(14,tM,2,0,"div",51),pr(15,nM,14,15,"article",52,Of),g(),oe(17,aM,15,3,"section",53),oe(18,cM,2,1,"div",54),g()(),m(19,"div",55)(20,"div",47),oe(21,mM,32,13)(22,yM,2,0,"div",56),g()()()),e&2){let n,r=R();C(11),X(r.session.status()),C(),ie(r.embeddedMode?-1:12),C(2),ie(r.session.peers().length===0?14:-1),C(),gr(r.session.peers()),C(2),ie(r.embeddedMode?-1:17),C(),ie(r.session.error()?18:-1),C(3),ie((n=r.session.selectedPeer())?21:22,n)}}var Wc=class e{constructor(t){this.session=t;this.serverUrl=t.serverUrl(),this.embeddedMode&&na(()=>{let n=this.session.currentUser(),r=this.session.activePeerId();!n||!r||this.router.navigate(["/chat",r],{replaceUrl:!0})})}router=p(Ut);authMode="login";embeddedMode=typeof window<"u"&&window.localStorage.getItem("privatechat.embeddedMode")==="1";serverUrl="";displayName="";username="";password="";accessKeyLabel="";textMessage="";jsonPayload=`{ "kind": "example", "sentAt": "now" }`;async submitAuth(){if(this.applyServerUrl(),this.authMode==="register"){await this.session.register(this.username,this.password,this.displayName);return}await this.session.login(this.username,this.password)}applyServerUrl(){this.session.setServerUrl(this.serverUrl)}async logout(){await this.session.logout(),this.authMode="login",this.displayName="",this.password="",this.textMessage=""}async loginWithAccessKey(){this.applyServerUrl(),await this.session.loginWithAccessKey(this.username),this.password=""}async registerAccessKey(){await this.session.registerAccessKey(this.accessKeyLabel),this.accessKeyLabel=""}selectPeer(t){this.session.selectPeer(t)}async openPeerConnection(t){await this.session.connectToPeer(t)}async sendText(t){await this.session.sendText(t,this.textMessage),this.textMessage=""}async sendJson(t){await this.session.sendJson(t,this.jsonPayload)}async sendFile(t,n){let r=n.files?.item(0);r&&(await this.session.sendFile(t,r),n.value="")}formatBytes(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}static \u0275fac=function(n){return new(n||e)(B(_o))};static \u0275cmp=Jt({type:e,selectors:[["app-home-page"]],decls:5,vars:2,consts:[["fileInput",""],[1,"shell","py-4","py-lg-5"],[1,"container-xl"],[1,"hero-panel","mb-4","mb-lg-5","p-4","p-lg-5"],[1,"row","g-4","app-grid"],[1,"d-flex","flex-column","flex-lg-row","align-items-start","align-items-lg-center","justify-content-between","gap-4"],[1,"hero-copy"],[1,"eyebrow"],[1,"display-5","fw-semibold","mb-3"],[1,"lead","mb-0","text-body-secondary"],[1,"session-card","p-3","p-lg-4"],[1,"text-uppercase","small","text-secondary","mb-2"],[1,"h4","mb-1"],[1,"text-secondary","mb-3"],[1,"small","status-pill","mb-3"],["type","button",1,"btn","btn-outline-light","w-100",3,"click"],[1,"panel","p-4","p-lg-5","text-center"],[1,"row","g-4","align-items-stretch"],[1,"h3","mb-3"],[1,"text-secondary","mb-0"],[1,"col-lg-6"],[1,"panel","p-4","h-100"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"h3","mb-1"],[1,"badge","rounded-pill","text-bg-dark"],[1,"mb-3"],["for","serverUrl",1,"form-label"],["id","serverUrl","name","serverUrl","placeholder","http://localhost:3000",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],["role","group","aria-label","Authentication mode",1,"btn-group","mb-4","w-100"],["type","button",1,"btn",3,"click"],[1,"d-grid","gap-3",3,"ngSubmit"],["for","username",1,"form-label"],["id","username","name","username","placeholder","alice",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],["for","password",1,"form-label"],["id","password","name","password","type","password","placeholder","At least 8 characters","autocomplete","current-password",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],["type","submit",1,"btn","btn-accent","btn-lg","mt-2"],[1,"alert","alert-danger","mt-4","mb-0"],[1,"panel","panel-muted","p-4","h-100"],[1,"info-rail","d-grid","gap-3"],[1,"small","text-uppercase","text-secondary","mb-2"],[1,"mb-0"],["for","displayName",1,"form-label"],["id","displayName","name","displayName","placeholder","Operator One",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],[1,"text-center","small","text-secondary","mt-1"],["type","button",1,"btn","btn-outline-light","btn-lg",3,"click"],[1,"small","text-secondary"],[1,"col-xl-4"],[1,"panel","p-4","h-100","d-flex","flex-column","gap-4"],[1,"d-flex","justify-content-between","align-items-start","gap-3","mb-3"],[1,"small","status-pill"],[1,"peer-list","d-grid","gap-2"],[1,"empty-state","p-4","text-center","text-secondary"],[1,"peer-tile",3,"peer-tile-active"],[1,"access-key-panel"],[1,"alert","alert-danger","mb-0"],[1,"col-xl-8"],[1,"empty-state","h-100","d-flex","align-items-center","justify-content-center","text-center","text-secondary","p-5"],["for","connectedServerUrl",1,"form-label"],[1,"input-group","mb-3"],["id","connectedServerUrl",1,"form-control",3,"ngModelChange","blur","ngModel"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"peer-tile"],["type","button",1,"peer-tile-main","text-start",3,"click"],[1,"d-flex","justify-content-between","align-items-start","gap-3"],[1,"fw-semibold"],[1,"badge","rounded-pill"],[1,"small","text-secondary","mt-2"],["title","Open text chat","aria-label","Open text chat",1,"chat-emoji",3,"click","routerLink"],[1,"h5","mb-1"],[1,"small","text-secondary","mb-0"],[1,"alert","alert-warning","mb-3"],[1,"d-grid","gap-2"],[1,"empty-state","p-3","text-center","text-secondary"],[1,"access-key-card","p-3"],["placeholder","Laptop passkey",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-outline-light",3,"click"],[1,"d-flex","flex-column","flex-lg-row","justify-content-between","align-items-start","align-items-lg-center","gap-3"],["type","button",1,"btn","btn-accent",3,"click","disabled"],[1,"chat-log","flex-grow-1"],[1,"message-card",3,"message-card-outgoing","message-card-system"],[1,"composer-grid"],[1,"composer-card","p-3"],["for","messageText",1,"form-label"],["id","messageText","rows","3","placeholder","Send a direct text message over WebRTC",1,"form-control",3,"ngModelChange","ngModel","disabled"],["type","button",1,"btn","btn-accent","mt-3",3,"click","disabled"],["for","jsonPayload",1,"form-label"],["id","jsonPayload","rows","3","placeholder",'{"kind":"note","value":42}',1,"form-control","font-monospace",3,"ngModelChange","ngModel","disabled"],["type","button",1,"btn","btn-outline-light","mt-3",3,"click","disabled"],["for","fileInput",1,"form-label"],["id","fileInput","type","file",1,"form-control",3,"change","disabled"],[1,"small","text-secondary","mt-3","mb-0"],[1,"message-card"],[1,"d-flex","justify-content-between","align-items-center","gap-3","mb-2"],[1,"json-block","mb-0"],[1,"d-flex","flex-column","gap-2"],[1,"btn","btn-sm","btn-outline-light","align-self-start",3,"href","download"]],template:function(n,r){n&1&&(m(0,"main",1)(1,"div",2),oe(2,qS,10,1,"section",3),oe(3,XS,2,1)(4,vM,23,6,"section",4),g()()),n&2&&(C(2),ie(r.embeddedMode?-1:2),C(),ie(r.session.currentUser()?4:3))},dependencies:[eo,zc,Hv,Eo,Hc,Fv,Ji,Rf,yo,kd,Ei],styles:["[_nghost-%COMP%]{display:block;min-height:100dvh;color:#eff3ff}.shell[_ngcontent-%COMP%]{min-height:100dvh}.hero-panel[_ngcontent-%COMP%], .panel[_ngcontent-%COMP%], .session-card[_ngcontent-%COMP%], .peer-tile[_ngcontent-%COMP%], .message-card[_ngcontent-%COMP%], .composer-card[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.12);background:#09101cc7;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 20px 60px #00000047}.hero-panel[_ngcontent-%COMP%]{border-radius:2rem}.panel[_ngcontent-%COMP%]{border-radius:1.5rem}.panel-muted[_ngcontent-%COMP%]{background:#0f1b2cc7}.hero-copy[_ngcontent-%COMP%]{max-width:52rem}.eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;padding:.45rem .85rem;border-radius:999px;margin-bottom:1rem;letter-spacing:.14em;text-transform:uppercase;font-size:.72rem;font-weight:700;color:#81f4d7;background:#81f4d71a}.session-card[_ngcontent-%COMP%]{min-width:min(100%,18rem);border-radius:1.5rem}.status-pill[_ngcontent-%COMP%]{display:inline-flex;padding:.45rem .8rem;border-radius:999px;background:#ffffff14}.btn-accent[_ngcontent-%COMP%]{color:#06111d;border:0;background:linear-gradient(135deg,#81f4d7,#55a8ff)}.btn-accent[_ngcontent-%COMP%]:hover, .btn-accent[_ngcontent-%COMP%]:focus-visible{color:#06111d;background:linear-gradient(135deg,#9bf7e0,#7abaff)}.peer-list[_ngcontent-%COMP%]{max-height:30rem;overflow:auto}.access-key-panel[_ngcontent-%COMP%]{padding:1rem;border-radius:1rem;background:#ffffff0a}.access-key-card[_ngcontent-%COMP%]{border-radius:.9rem;border:1px solid rgba(255,255,255,.08);background:#080e17b3}.peer-tile[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center;padding:1rem;border-radius:1rem;transition:transform .16s ease,border-color .16s ease,background .16s ease}.peer-tile[_ngcontent-%COMP%]:hover, .peer-tile[_ngcontent-%COMP%]:focus-within, .peer-tile-active[_ngcontent-%COMP%]{transform:translateY(-1px);border-color:#81f4d766;background:#101e31f2}.peer-tile-main[_ngcontent-%COMP%]{width:100%;padding:0;border:0;color:inherit;background:transparent}.chat-emoji[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:999px;font-size:1.2rem;text-decoration:none;background:#81f4d724;box-shadow:inset 0 0 0 1px #81f4d733}.chat-log[_ngcontent-%COMP%]{display:grid;gap:.9rem;min-height:20rem;max-height:32rem;overflow:auto;padding-right:.25rem}.message-card[_ngcontent-%COMP%]{padding:1rem;border-radius:1rem}.message-card-outgoing[_ngcontent-%COMP%]{background:linear-gradient(135deg,#55a8ff47,#81f4d72e)}.message-card-system[_ngcontent-%COMP%]{border-style:dashed;background:#ffffff0a}.composer-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.composer-card[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{border-radius:1.25rem}.json-block[_ngcontent-%COMP%]{padding:.9rem;border-radius:.85rem;margin:0;color:#d7e7ff;background:#050b14b8}.info-rail[_ngcontent-%COMP%] article[_ngcontent-%COMP%]{padding:1rem 1.1rem;border-radius:1rem;background:#ffffff0d}.form-control[_ngcontent-%COMP%], .form-control[_ngcontent-%COMP%]:focus{color:#eff3ff;background-color:#ffffff0f;border-color:#ffffff29;box-shadow:none}.form-control[_ngcontent-%COMP%]::placeholder{color:#eff3ff80}.form-label[_ngcontent-%COMP%], .h3[_ngcontent-%COMP%], .h4[_ngcontent-%COMP%], .display-5[_ngcontent-%COMP%], .fw-semibold[_ngcontent-%COMP%], .fw-bold[_ngcontent-%COMP%]{color:#f8fbff}.text-secondary[_ngcontent-%COMP%], .lead[_ngcontent-%COMP%], .small[_ngcontent-%COMP%]{color:#e7eef9b8!important}@media(max-width:1199.98px){.composer-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};var Gv=[{path:"",component:Wc},{path:"chat/:peerId",component:Gc},{path:"**",redirectTo:""}];var Wv={providers:[fu(),Qd(Jd()),If(Gv)]};var qc=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Jt({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){n&1&&qr(0,"router-outlet")},dependencies:[$i],styles:["[_nghost-%COMP%]{display:block;min-height:100dvh}"]})};zd(qc,Wv).catch(e=>console.error(e));