Files
Metacase/dist/form_metacase/browser/main-WVXBXA3M.js
T
2026-08-24 22:28:00 +01:00

55 lines
458 KiB
JavaScript

var I0=Object.defineProperty,M0=Object.defineProperties;var S0=Object.getOwnPropertyDescriptors;var Xp=Object.getOwnPropertySymbols;var T0=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable;var eh=(e,t,n)=>t in e?I0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||={})T0.call(t,n)&&eh(e,n,t[n]);if(Xp)for(var n of Xp(t))A0.call(t,n)&&eh(e,n,t[n]);return e},k=(e,t)=>M0(e,S0(t));var Le=null,Ms=!1,Vl=1,O0=null,Ee=Symbol("SIGNAL");function V(e){let t=Le;return Le=e,t}function Ss(){return Le}var Ln={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 fr(e){if(Ms)throw new Error("");if(Le===null)return;Le.consumerOnSignalRead(e);let t=Le.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Le.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Le.producers,n!==void 0&&n.producer===e)){Le.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Le&&(!r||P0(o,Le)))return;let i=Yr(Le),s={producer:e,consumer:Le,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Le.producersTail=s,t!==void 0?t.nextProducer=s:Le.producers=s,i&&oh(e,s)}function th(){Vl++}function pr(e){if(!(Yr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Vl)){if(!e.producerMustRecompute(e)&&!Yo(e)){Qr(e);return}e.producerRecomputeValue(e),Qr(e)}}function Bl(e){if(e.consumers===void 0)return;let t=Ms;Ms=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||N0(r)}}finally{Ms=t}}function Ul(){return Le?.consumerAllowSignalWrites!==!1}function N0(e){e.dirty=!0,Bl(e),e.consumerMarkedDirty?.(e)}function Qr(e){e.dirty=!1,e.lastCleanEpoch=Vl}function jn(e){return e&&nh(e),V(e)}function nh(e){e.producersTail=void 0,e.recomputing=!0}function hr(e,t){V(t),e&&rh(e)}function rh(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Yr(e))do n=Hl(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Yo(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(pr(n),r!==n.version))return!0}return!1}function gr(e){if(Yr(e)){let t=e.producers;for(;t!==void 0;)t=Hl(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function oh(e,t){let n=e.consumersTail,r=Yr(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)oh(o.producer,o)}function Hl(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,!Yr(t)){let i=t.producers;for(;i!==void 0;)i=Hl(i)}return n}function Yr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ko(e){O0?.(e)}function P0(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 Jo(e,t){return Object.is(e,t)}function Ts(e,t){let n=Object.create(R0);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(pr(n),fr(n),n.value===Ht)throw n.error;return n.value};return r[Ee]=n,Ko(n),r}var Fn=Symbol("UNSET"),dr=Symbol("COMPUTING"),Ht=Symbol("ERRORED"),R0=k(b({},Ln),{value:Fn,dirty:!0,error:null,equal:Jo,kind:"computed",producerMustRecompute(e){return e.value===Fn||e.value===dr},producerRecomputeValue(e){if(e.value===dr)throw new Error("");let t=e.value;e.value=dr;let n=jn(e),r,o=!1;try{r=e.computation(),V(null),o=t!==Fn&&t!==Ht&&r!==Ht&&e.equal(t,r)}catch(i){r=Ht,e.error=i}finally{hr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function k0(){throw new Error}var ih=k0;function sh(e){ih(e)}function $l(e){ih=e}var F0=null;function zl(e,t){let n=Object.create(Os);n.value=e,t!==void 0&&(n.equal=t);let r=()=>ah(n);return r[Ee]=n,Ko(n),[r,s=>mr(n,s),s=>As(n,s)]}function ah(e){return fr(e),e.value}function mr(e,t){Ul()||sh(e),e.equal(e.value,t)||(e.value=t,L0(e))}function As(e,t){Ul()||sh(e),mr(e,t(e.value))}var Os=k(b({},Ln),{equal:Jo,value:void 0,kind:"signal"});function L0(e){e.version++,th(),Bl(e),F0?.(e)}var ql=k(b({},Ln),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Gl(e){if(e.dirty=!1,e.version>0&&!Yo(e))return;e.version++;let t=jn(e);try{e.cleanup(),e.fn()}finally{hr(e,t)}}function U(e){return typeof e=="function"}function Vn(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 Ns=Vn(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 vr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var be=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(U(r))try{r()}catch(i){t=i instanceof Ns?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ch(i)}catch(s){t=t??[],s instanceof Ns?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ns(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ch(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)&&vr(n,t)}remove(t){let{_finalizers:n}=this;n&&vr(n,t),t instanceof e&&t._removeParent(this)}};be.EMPTY=(()=>{let e=new be;return e.closed=!0,e})();var Wl=be.EMPTY;function Ps(e){return e instanceof be||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function ch(e){U(e)?e():e.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Kr={setTimeout(e,t,...n){let{delegate:r}=Kr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Kr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Rs(e){Kr.setTimeout(()=>{let{onUnhandledError:t}=St;if(t)t(e);else throw e})}function Xo(){}var lh=Zl("C",void 0,void 0);function uh(e){return Zl("E",void 0,e)}function dh(e){return Zl("N",e,void 0)}function Zl(e,t,n){return{kind:e,value:t,error:n}}var yr=null;function Jr(e){if(St.useDeprecatedSynchronousErrorHandling){let t=!yr;if(t&&(yr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=yr;if(yr=null,n)throw r}}else e()}function fh(e){St.useDeprecatedSynchronousErrorHandling&&yr&&(yr.errorThrown=!0,yr.error=e)}var _r=class extends be{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ps(t)&&t.add(this)):this.destination=B0}static create(t,n,r){return new Xr(t,n,r)}next(t){this.isStopped?Yl(dh(t),this):this._next(t)}error(t){this.isStopped?Yl(uh(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Yl(lh,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()}}},j0=Function.prototype.bind;function Ql(e,t){return j0.call(e,t)}var Kl=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ks(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ks(r)}else ks(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ks(n)}}},Xr=class extends _r{constructor(t,n,r){super();let o;if(U(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&St.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ql(t.next,i),error:t.error&&Ql(t.error,i),complete:t.complete&&Ql(t.complete,i)}):o=t}this.destination=new Kl(o)}};function ks(e){St.useDeprecatedSynchronousErrorHandling?fh(e):Rs(e)}function V0(e){throw e}function Yl(e,t){let{onStoppedNotification:n}=St;n&&Kr.setTimeout(()=>n(e,t))}var B0={closed:!0,next:Xo,error:V0,complete:Xo};var eo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Tt(e){return e}function Jl(...e){return Xl(e)}function Xl(e){return e.length===0?Tt:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var q=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=H0(n)?n:new Xr(n,r,o);return Jr(()=>{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=ph(r),new r((o,i)=>{let s=new Xr({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)}[eo](){return this}pipe(...n){return Xl(n)(this)}toPromise(n){return n=ph(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 ph(e){var t;return(t=e??St.Promise)!==null&&t!==void 0?t:Promise}function U0(e){return e&&U(e.next)&&U(e.error)&&U(e.complete)}function H0(e){return e&&e instanceof _r||U0(e)&&Ps(e)}function $0(e){return U(e?.lift)}function Z(e){return t=>{if($0(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 Q(e,t,n,r,o){return new eu(e,t,n,r,o)}var eu=class extends _r{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 hh=Vn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ve=(()=>{class e extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Fs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new hh}next(n){Jr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Jr(()=>{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(){Jr(()=>{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?Wl:(this.currentObservers=null,i.push(n),new be(()=>{this.currentObservers=null,vr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new q;return n.source=this,n}}return e.create=(t,n)=>new Fs(t,n),e})(),Fs=class extends ve{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:Wl}};var Te=class extends ve{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 tu={now(){return(tu.delegate||Date).now()},delegate:void 0};var Ls=class extends be{constructor(t,n){super()}schedule(t,n=0){return this}};var ei={setInterval(e,t,...n){let{delegate:r}=ei;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=ei;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var js=class extends Ls{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return ei.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&ei.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,vr(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var to=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};to.now=tu.now;var Vs=class extends to{constructor(t,n=to.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var gh=new Vs(js);var Ae=new q(e=>e.complete());function mh(e){return e&&U(e.schedule)}function vh(e){return e[e.length-1]}function Bs(e){return U(vh(e))?e.pop():void 0}function Bn(e){return mh(vh(e))?e.pop():void 0}function _h(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(p){s(p)}}function c(u){try{l(r.throw(u))}catch(p){s(p)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function yh(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 br(e){return this instanceof br?(this.v=e,this):new br(e)}function bh(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(v){return function(E){return Promise.resolve(E).then(v,p)}}function a(v,E){r[v]&&(o[v]=function(A){return new Promise(function(M,I){i.push([v,A,M,I])>1||c(v,A)})},E&&(o[v]=E(o[v])))}function c(v,E){try{l(r[v](E))}catch(A){y(i[0][3],A)}}function l(v){v.value instanceof br?Promise.resolve(v.value.v).then(u,p):y(i[0][2],v)}function u(v){c("next",v)}function p(v){c("throw",v)}function y(v,E){v(E),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ch(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 yh=="function"?yh(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 Hs(e){return U(e?.then)}function $s(e){return U(e[eo])}function zs(e){return Symbol.asyncIterator&&U(e?.[Symbol.asyncIterator])}function qs(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 z0(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Gs=z0();function Ws(e){return U(e?.[Gs])}function Zs(e){return bh(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield br(n.read());if(o)return yield br(void 0);yield yield br(r)}}finally{n.releaseLock()}})}function Qs(e){return U(e?.getReader)}function de(e){if(e instanceof q)return e;if(e!=null){if($s(e))return q0(e);if(Us(e))return G0(e);if(Hs(e))return W0(e);if(zs(e))return Dh(e);if(Ws(e))return Z0(e);if(Qs(e))return Q0(e)}throw qs(e)}function q0(e){return new q(t=>{let n=e[eo]();if(U(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function G0(e){return new q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function W0(e){return new q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Rs)})}function Z0(e){return new q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Dh(e){return new q(t=>{Y0(e,t).catch(n=>t.error(n))})}function Q0(e){return Dh(Zs(e))}function Y0(e,t){var n,r,o,i;return _h(this,void 0,void 0,function*(){try{for(n=Ch(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function je(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ys(e,t=0){return Z((n,r)=>{n.subscribe(Q(r,o=>je(r,e,()=>r.next(o),t),()=>je(r,e,()=>r.complete(),t),o=>je(r,e,()=>r.error(o),t)))})}function Ks(e,t=0){return Z((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Eh(e,t){return de(e).pipe(Ks(t),Ys(t))}function wh(e,t){return de(e).pipe(Ks(t),Ys(t))}function xh(e,t){return new q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ih(e,t){return new q(n=>{let r;return je(n,t,()=>{r=e[Gs](),je(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>U(r?.return)&&r.return()})}function Js(e,t){if(!e)throw new Error("Iterable cannot be null");return new q(n=>{je(n,t,()=>{let r=e[Symbol.asyncIterator]();je(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Mh(e,t){return Js(Zs(e),t)}function Sh(e,t){if(e!=null){if($s(e))return Eh(e,t);if(Us(e))return xh(e,t);if(Hs(e))return wh(e,t);if(zs(e))return Js(e,t);if(Ws(e))return Ih(e,t);if(Qs(e))return Mh(e,t)}throw qs(e)}function fe(e,t){return t?Sh(e,t):de(e)}function $(...e){let t=Bn(e);return fe(e,t)}function nu(e,t){let n=U(e)?e:()=>e,r=o=>o.error(n());return new q(t?o=>t.schedule(r,0,o):r)}function Xs(e){return!!e&&(e instanceof q||U(e.lift)&&U(e.subscribe))}var Cr=Vn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Th(e){return e instanceof Date&&!isNaN(e)}var K0=Vn(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function ti(e,t){let{first:n,each:r,with:o=J0,scheduler:i=t??gh,meta:s=null}=Th(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return Z((a,c)=>{let l,u,p=null,y=0,v=E=>{u=je(c,i,()=>{try{l.unsubscribe(),de(o({meta:s,lastValue:p,seen:y})).subscribe(c)}catch(A){c.error(A)}},E)};l=a.subscribe(Q(c,E=>{u?.unsubscribe(),y++,c.next(p=E),r>0&&v(r)},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),p=null})),!y&&v(n!=null?typeof n=="number"?n:+n-i.now():r)})}function J0(e){throw new K0(e)}function Y(e,t){return Z((n,r)=>{let o=0;n.subscribe(Q(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:X0}=Array;function eb(e,t){return X0(t)?e(...t):e(t)}function ea(e){return Y(t=>eb(e,t))}var{isArray:tb}=Array,{getPrototypeOf:nb,prototype:rb,keys:ob}=Object;function ta(e){if(e.length===1){let t=e[0];if(tb(t))return{args:t,keys:null};if(ib(t)){let n=ob(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function ib(e){return e&&typeof e=="object"&&nb(e)===rb}function na(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ru(...e){let t=Bn(e),n=Bs(e),{args:r,keys:o}=ta(e);if(r.length===0)return fe([],t);let i=new q(sb(r,t,o?s=>na(o,s):Tt));return n?i.pipe(ea(n)):i}function sb(e,t,n=Tt){return r=>{Ah(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Ah(t,()=>{let l=fe(e[c],t),u=!1;l.subscribe(Q(r,p=>{i[c]=p,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ah(e,t,n){e?je(n,e,t):t()}function Oh(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,p=!1,y=()=>{p&&!c.length&&!l&&t.complete()},v=A=>l<r?E(A):c.push(A),E=A=>{i&&t.next(A),l++;let M=!1;de(n(A,u++)).subscribe(Q(t,I=>{o?.(I),i?v(I):t.next(I)},()=>{M=!0},void 0,()=>{if(M)try{for(l--;c.length&&l<r;){let I=c.shift();s?je(t,s,()=>E(I)):E(I)}y()}catch(I){t.error(I)}}))};return e.subscribe(Q(t,v,()=>{p=!0,y()})),()=>{a?.()}}function Ge(e,t,n=1/0){return U(t)?Ge((r,o)=>Y((i,s)=>t(r,i,o,s))(de(e(r,o))),n):(typeof t=="number"&&(n=t),Z((r,o)=>Oh(r,o,e,n)))}function Nh(e=1/0){return Ge(Tt,e)}function Ph(){return Nh(1)}function no(...e){return Ph()(fe(e,Bn(e)))}function ni(e){return new q(t=>{de(e()).subscribe(t)})}function ou(...e){let t=Bs(e),{args:n,keys:r}=ta(e),o=new q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let p=!1;de(n[u]).subscribe(Q(i,y=>{p||(p=!0,l--),a[u]=y},()=>c--,void 0,()=>{(!c||!p)&&(l||i.next(r?na(r,a):a),i.complete())}))}});return t?o.pipe(ea(t)):o}function At(e,t){return Z((n,r)=>{let o=0;n.subscribe(Q(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ri(e){return Z((t,n)=>{let r=null,o=!1,i;r=t.subscribe(Q(n,void 0,void 0,s=>{i=de(e(s,ri(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function ro(e,t){return U(t)?Ge(e,t,1):Ge(e,1)}function Rh(e){return Z((t,n)=>{let r=!1;t.subscribe(Q(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function ln(e){return e<=0?()=>Ae:Z((t,n)=>{let r=0;t.subscribe(Q(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function kh(e=ab){return Z((t,n)=>{let r=!1;t.subscribe(Q(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function ab(){return new Cr}function ft(e){return Z((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function un(e,t){let n=arguments.length>=2;return r=>r.pipe(e?At((o,i)=>e(o,i,r)):Tt,ln(1),n?Rh(t):kh(()=>new Cr))}function ra(e){return e<=0?()=>Ae:Z((t,n)=>{let r=[];t.subscribe(Q(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function iu(...e){let t=Bn(e);return Z((n,r)=>{(t?no(e,n,t):no(e,n)).subscribe(r)})}function Je(e,t){return Z((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Q(r,c=>{o?.unsubscribe();let l=0,u=i++;de(e(c,u)).subscribe(o=Q(r,p=>r.next(t?t(c,p,u,l++):p),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function oi(e){return Z((t,n)=>{de(e).subscribe(Q(n,()=>n.complete(),Xo)),!n.closed&&t.subscribe(n)})}function pt(e,t,n){let r=U(e)||t||n?{next:e,error:t,complete:n}:e;return r?Z((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(Q(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)}))}):Tt}var su;function oa(){return su}function $t(e){let t=su;return su=e,t}var Fh=Symbol("NotFound");function oo(e){return e===Fh||e?.name==="\u0275NotFound"}function au(e,t,n){let r=Object.create(cb);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(pr(r),fr(r),r.value===Ht)throw r.error;return r.value};return i[Ee]=r,Ko(r),i}function Lh(e,t){pr(e),mr(e,t),Qr(e)}function jh(e,t){if(pr(e),e.value===Ht)throw e.error;As(e,t),Qr(e)}var cb=k(b({},Ln),{value:Fn,dirty:!0,error:null,equal:Jo,kind:"linkedSignal",producerMustRecompute(e){return e.value===Fn||e.value===dr},producerRecomputeValue(e){if(e.value===dr)throw new Error("");let t=e.value;e.value=dr;let n=jn(e),r;try{let o=e.source(),i=t===Fn||t===Ht?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=Ht,e.error=o}finally{hr(e,n)}if(t!==Fn&&r!==Ht&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Vh(e){let t=V(null);try{return e()}finally{V(t)}}var da="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",C=class extends Error{code;constructor(t,n){super(pn(t,n)),this.code=t}};function lb(e){return`NG0${Math.abs(e)}`}function pn(e,t){return`${lb(e)}${t?": "+t:""}`}var ht=globalThis;function ee(e){for(let t in e)if(e[t]===ee)return t;throw Error("")}function zh(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function di(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(di).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 bu(e,t){return e?t?`${e} ${t}`:e:t||""}var ub=ee({__forward_ref__:ee});function et(e){return e.__forward_ref__=et,e}function Oe(e){return Cu(e)?e():e}function Cu(e){return typeof e=="function"&&e.hasOwnProperty(ub)&&e.__forward_ref__===et}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function fi(e){return db(e,fa)}function Du(e){return fi(e)!==null}function db(e,t){return e.hasOwnProperty(t)&&e[t]||null}function fb(e){let t=e?.[fa]??null;return t||null}function lu(e){return e&&e.hasOwnProperty(sa)?e[sa]:null}var fa=ee({\u0275prov:ee}),sa=ee({\u0275inj:ee}),x=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Eu(e){return e&&!!e.\u0275providers}var wu=ee({\u0275cmp:ee}),xu=ee({\u0275dir:ee}),Iu=ee({\u0275pipe:ee}),Mu=ee({\u0275mod:ee}),si=ee({\u0275fac:ee}),Ir=ee({__NG_ELEMENT_ID__:ee}),Bh=ee({__NG_ENV_ID__:ee});function Su(e){return pa(e,"@NgModule"),e[Mu]||null}function zn(e){return pa(e,"@Component"),e[wu]||null}function Tu(e){return pa(e,"@Directive"),e[xu]||null}function qh(e){return pa(e,"@Pipe"),e[Iu]||null}function pa(e,t){if(e==null)throw new C(-919,!1)}function zt(e){return typeof e=="string"?e:e==null?"":String(e)}var Gh=ee({ngErrorCode:ee}),pb=ee({ngErrorMessage:ee}),hb=ee({ngTokenPath:ee});function Au(e,t){return Wh("",-200,t)}function ha(e,t){throw new C(-201,!1)}function Wh(e,t,n){let r=new C(t,e);return r[Gh]=t,r[pb]=e,n&&(r[hb]=n),r}function gb(e){return e[Gh]}var uu;function Zh(){return uu}function We(e){let t=uu;return uu=e,t}function Ou(e,t,n){let r=fi(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;ha(e,"")}var mb={},Dr=mb,vb="__NG_DI_FLAG__",du=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Er(n)||0;try{return this.injector.get(t,r&8?null:Dr,r)}catch(o){if(oo(o))return o;throw o}}};function yb(e,t=0){let n=oa();if(n===void 0)throw new C(-203,!1);if(n===null)return Ou(e,void 0,t);{let r=_b(t),o=n.retrieve(e,r);if(oo(o)){if(r.optional)return null;throw o}return o}}function O(e,t=0){return(Zh()||yb)(Oe(e),t)}function m(e,t){return O(e,Er(t))}function Er(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function _b(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function fu(e){let t=[];for(let n=0;n<e.length;n++){let r=Oe(e[n]);if(Array.isArray(r)){if(r.length===0)throw new C(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=bb(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(O(o,i))}else t.push(O(r))}return t}function bb(e){return e[vb]}function Un(e,t){let n=e.hasOwnProperty(si);return n?e[si]:null}function Qh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Yh(e){return e.flat(Number.POSITIVE_INFINITY)}function ga(e,t){e.forEach(n=>Array.isArray(n)?ga(n,t):t(n))}function Nu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function pi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Kh(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 Jh(e,t,n){let r=so(e,t);return r>=0?e[r|1]=n:(r=~r,Kh(e,r,t,n)),r}function ma(e,t){let n=so(e,t);if(n>=0)return e[n|1]}function so(e,t){return Cb(e,t,1)}function Cb(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var qn={},Xe=[],Gn=new x(""),hi=new x("",-1),Pu=new x(""),ai=class{get(t,n=Dr){if(n===Dr){let o=Wh("",-201);throw o.name="\u0275NotFound",o}return n}};function hn(e){return{\u0275providers:e}}function Xh(e){return hn([{provide:Gn,multi:!0,useValue:e}])}function eg(...e){return{\u0275providers:Ru(!0,e),\u0275fromNgModule:!0}}function Ru(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ga(t,s=>{let a=s;aa(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&tg(o,i),n}function tg(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ku(o,i=>{t(i,r)})}}function aa(e,t,n,r){if(e=Oe(e),!e)return!1;let o=null,i=lu(e),s=!i&&zn(e);if(!i&&!s){let c=e.ngModule;if(i=lu(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)aa(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;ga(i.imports,u=>{aa(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&tg(l,t)}if(!a){let l=Un(o)||(()=>new o);t({provide:o,useFactory:l,deps:Xe},o),t({provide:Pu,useValue:o,multi:!0},o),t({provide:Gn,useValue:()=>O(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;ku(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function ku(e,t){for(let n of e)Eu(n)&&(n=n.\u0275providers),Array.isArray(n)?ku(n,t):t(n)}var Db=ee({provide:String,useValue:ee});function ng(e){return e!==null&&typeof e=="object"&&Db in e}function Eb(e){return!!(e&&e.useExisting)}function wb(e){return!!(e&&e.useFactory)}function wr(e){return typeof e=="function"}function rg(e){return!!e.useClass}var gi=new x(""),ia={},Uh={},cu;function mi(){return cu===void 0&&(cu=new ai),cu}var le=class{},xr=class extends le{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,hu(t,s=>this.processProvider(s)),this.records.set(hi,io(void 0,this)),o.has("environment")&&this.records.set(le,io(void 0,this));let i=this.records.get(gi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Pu,Xe,{self:!0}))}retrieve(t,n){let r=Er(n)||0;try{return this.get(t,Dr,r)}catch(o){if(oo(o))return o;throw o}}destroy(){ii(this),this._destroyed=!0;let t=V(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(),V(t)}}onDestroy(t){return ii(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ii(this);let n=$t(this),r=We(void 0),o;try{return t()}finally{$t(n),We(r)}}get(t,n=Dr,r){if(ii(this),t.hasOwnProperty(Bh))return t[Bh](this);let o=Er(r),i,s=$t(this),a=We(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=Tb(t)&&fi(t);u&&this.injectableDefInScope(u)?l=io(pu(t),ia):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?mi():this.parent;return n=o&8&&n===Dr?null:n,c.get(t,n)}catch(c){let l=gb(c);throw l===-200||l===-201?new C(l,null):c}finally{We(a),$t(s)}}resolveInjectorInitializers(){let t=V(null),n=$t(this),r=We(void 0),o;try{let i=this.get(Gn,Xe,{self:!0});for(let s of i)s()}finally{$t(n),We(r),V(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Oe(t);let n=wr(t)?t:Oe(t&&t.provide),r=Ib(t);if(!wr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=io(void 0,ia,!0),o.factory=()=>fu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=V(null);try{if(n.value===Uh)throw Au("");return n.value===ia&&(n.value=Uh,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Sb(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{V(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Oe(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 pu(e){let t=fi(e),n=t!==null?t.factory:Un(e);if(n!==null)return n;if(e instanceof x)throw new C(-204,!1);if(e instanceof Function)return xb(e);throw new C(-204,!1)}function xb(e){if(e.length>0)throw new C(-204,!1);let n=fb(e);return n!==null?()=>n.factory(e):()=>new e}function Ib(e){if(ng(e))return io(void 0,e.useValue);{let t=Fu(e);return io(t,ia)}}function Fu(e,t,n){let r;if(wr(e)){let o=Oe(e);return Un(o)||pu(o)}else if(ng(e))r=()=>Oe(e.useValue);else if(wb(e))r=()=>e.useFactory(...fu(e.deps||[]));else if(Eb(e))r=(o,i)=>O(Oe(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Oe(e&&(e.useClass||e.provide));if(Mb(e))r=()=>new o(...fu(e.deps));else return Un(o)||pu(o)}return r}function ii(e){if(e.destroyed)throw new C(-205,!1)}function io(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Mb(e){return!!e.deps}function Sb(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Tb(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function hu(e,t){for(let n of e)Array.isArray(n)?hu(n,t):n&&Eu(n)?hu(n.\u0275providers,t):t(n)}function xe(e,t){let n;e instanceof xr?(ii(e),n=e):n=new du(e);let r,o=$t(n),i=We(void 0);try{return t()}finally{$t(o),We(i)}}function og(){return Zh()!==void 0||oa()!=null}var Pt=0,N=1,F=2,we=3,gt=4,mt=5,vi=6,ao=7,Ve=8,Wn=9,qt=10,ue=11,co=12,Lu=13,Mr=14,vt=15,Zn=16,Sr=17,Gt=18,gn=19,ju=20,dn=21,va=22,Hn=23,tt=24,Tr=25,Qn=26,Pe=27,ig=1;var Yn=7,yi=8,Ar=9,Be=10;function Wt(e){return Array.isArray(e)&&typeof e[ig]=="object"}function yt(e){return Array.isArray(e)&&e[ig]===!0}function Vu(e){return(e.flags&4)!==0}function mn(e){return e.componentOffset>-1}function lo(e){return(e.flags&1)===1}function Zt(e){return!!e.template}function uo(e){return(e[F]&512)!==0}function Or(e){return(e[F]&256)===256}var Bu="svg",sg="math";function _t(e){for(;Array.isArray(e);)e=e[Pt];return e}function Uu(e,t){return _t(t[e])}function Rt(e,t){return _t(t[e.index])}function ya(e,t){return e.data[t]}function Hu(e,t){return e[t]}function $u(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function nt(e,t){let n=t[e];return Wt(n)?n:n[Pt]}function ag(e){return(e[F]&4)===4}function _a(e){return(e[F]&128)===128}function cg(e){return yt(e[we])}function _i(e,t){return t==null?null:e[t]}function zu(e){e[Sr]=0}function qu(e){e[F]&1024||(e[F]|=1024,_a(e)&&Nr(e))}function lg(e,t){for(;e>0;)t=t[Mr],e--;return t}function bi(e){return!!(e[F]&9216||e[tt]?.dirty)}function ba(e){e[qt].changeDetectionScheduler?.notify(8),e[F]&64&&(e[F]|=1024),bi(e)&&Nr(e)}function Nr(e){e[qt].changeDetectionScheduler?.notify(0);let t=$n(e);for(;t!==null&&!(t[F]&8192||(t[F]|=8192,!_a(t)));)t=$n(t)}function Gu(e,t){if(Or(e))throw new C(911,!1);e[dn]===null&&(e[dn]=[]),e[dn].push(t)}function ug(e,t){if(e[dn]===null)return;let n=e[dn].indexOf(t);n!==-1&&e[dn].splice(n,1)}function $n(e){let t=e[we];return yt(t)?t[we]:t}function Wu(e){return e[ao]??=[]}function Zu(e){return e.cleanup??=[]}function dg(e,t,n,r){let o=Wu(t);o.push(n),e.firstCreatePass&&Zu(e).push(r,o.length-1)}var H={lFrame:Mg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var gu=!1;function fg(){return H.lFrame.elementDepthCount}function pg(){H.lFrame.elementDepthCount++}function hg(){H.lFrame.elementDepthCount--}function Ca(){return H.bindingsEnabled}function gg(){return H.skipHydrationRootTNode!==null}function mg(e){return H.skipHydrationRootTNode===e}function vg(){H.skipHydrationRootTNode=null}function z(){return H.lFrame.lView}function Re(){return H.lFrame.tView}function K(e){return H.lFrame.contextLView=e,e[Ve]}function J(e){return H.lFrame.contextLView=null,e}function Ue(){let e=Qu();for(;e!==null&&e.type===64;)e=e.parent;return e}function Qu(){return H.lFrame.currentTNode}function yg(){let e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function fo(e,t){let n=H.lFrame;n.currentTNode=e,n.isParent=t}function Yu(){return H.lFrame.isParent}function _g(){H.lFrame.isParent=!1}function bg(){return H.lFrame.contextLView}function Ku(){return gu}function ci(e){let t=gu;return gu=e,t}function Ju(){let e=H.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Xu(){return H.lFrame.bindingIndex}function Cg(e){return H.lFrame.bindingIndex=e}function Ci(){return H.lFrame.bindingIndex++}function Da(e){let t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Dg(){return H.lFrame.inI18n}function Eg(e,t){let n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ea(t)}function wg(){return H.lFrame.currentDirectiveIndex}function Ea(e){H.lFrame.currentDirectiveIndex=e}function xg(e){let t=H.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ed(){return H.lFrame.currentQueryIndex}function wa(e){H.lFrame.currentQueryIndex=e}function Ab(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[mt]:null}function td(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Ab(i),o===null||(i=i[Mr],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=H.lFrame=Ig();return r.currentTNode=t,r.lView=e,!0}function xa(e){let t=Ig(),n=e[N];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ig(){let e=H.lFrame,t=e===null?null:e.child;return t===null?Mg(e):t}function Mg(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 Sg(){let e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var nd=Sg;function Ia(){let e=Sg();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 Tg(e){return(H.lFrame.contextLView=lg(e,H.lFrame.contextLView))[Ve]}function vn(){return H.lFrame.selectedIndex}function Kn(e){H.lFrame.selectedIndex=e}function Ma(){let e=H.lFrame;return ya(e.tView,e.selectedIndex)}function Sa(){H.lFrame.currentNamespace=Bu}function Ta(){Ob()}function Ob(){H.lFrame.currentNamespace=null}function Ag(){return H.lFrame.currentNamespace}var Og=!0;function Aa(){return Og}function Di(e){Og=e}function mu(e,t=null,n=null,r){let o=rd(e,t,n,r);return o.resolveInjectorInitializers(),o}function rd(e,t=null,n=null,r,o=new Set){let i=[n||Xe,eg(e)],s;return new xr(i,t||mi(),s||null,o)}var Ne=class e{static THROW_IF_NOT_FOUND=Dr;static NULL=new ai;static create(t,n){if(Array.isArray(t))return mu({name:""},n,t,"");{let r=t.name??"";return mu({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>O(hi)});static __NG_ELEMENT_ID__=-1},pe=new x(""),ke=(()=>{class e{static __NG_ELEMENT_ID__=Nb;static __NG_ENV_ID__=n=>n}return e})(),ca=class extends ke{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Or(this._lView)}onDestroy(t){let n=this._lView;return Gu(n,t),()=>ug(n,t)}};function Nb(){return new ca(z())}var Ng=!1,Pg=new x(""),yn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Te(!1);debugTaskTracker=m(Pg,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new q(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),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=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),vu=class extends ve{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,og()&&(this.destroyRef=m(ke,{optional:!0})??void 0,this.pendingTasks=m(yn,{optional:!0})??void 0)}emit(t){let n=V(null);try{super.next(t)}finally{V(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 be&&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)}})}}},ye=vu;function la(...e){}function od(e){let t,n;function r(){e=la;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 Rg(e){return queueMicrotask(()=>e()),()=>{e=la}}var id="isAngularZone",li=id+"_ID",Pb=0,Ze=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ye(!1);onMicrotaskEmpty=new ye(!1);onStable=new ye(!1);onError=new ye(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ng}=t;if(typeof Zone>"u")throw new C(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,Fb(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(id)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(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,Rb,la,la);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)}},Rb={};function sd(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 kb(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){od(()=>{e.callbackScheduled=!1,yu(e),e.isCheckStableRunning=!0,sd(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),yu(e)}function Fb(e){let t=()=>{kb(e)},n=Pb++;e._inner=e._inner.fork({name:"angular",properties:{[id]:!0,[li]:n,[li+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Lb(c))return r.invokeTask(i,s,a,c);try{return Hh(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),$h(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Hh(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!jb(c)&&t(),$h(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,yu(e),sd(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 yu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Hh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $h(e){e._nesting--,sd(e)}var ui=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ye;onMicrotaskEmpty=new ye;onStable=new ye;onError=new ye;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 Lb(e){return kg(e,"__ignore_ng_zone__")}function jb(e){return kg(e,"__scheduler_tick__")}function kg(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ot=class{_console=console;handleError(t){this._console.error("ERROR",t)}},rt=new x("",{factory:()=>{let e=m(Ze),t=m(le),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Ot),n.handleError(r))})}}}),Fg={provide:Gn,useValue:()=>{let e=m(Ot,{optional:!0})},multi:!0},Vb=new x("",{factory:()=>{let e=m(pe).defaultView;if(!e)return;let t=m(rt),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(),m(ke).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function ad(){return hn([Xh(()=>{m(Vb)})])}function L(e,t){let[n,r,o]=zl(e,t?.equal),i=n,s=i[Ee];return i.set=r,i.update=o,i.asReadonly=Oa.bind(i),i}function Oa(){let e=this[Ee];if(e.readonlyFn===void 0){let t=()=>this();t[Ee]=e,e.readonlyFn=t}return e.readonlyFn}var Ei=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Bb}return e})();function Bb(){return new Ei(z(),Ue())}var fn=class{},wi=new x("",{factory:()=>!0});var cd=new x(""),po=(()=>{class e{internalPendingTasks=m(yn);scheduler=m(fn);errorHandler=m(rt);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=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),Na=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new _u})}return e})(),_u=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}},ua=class{[Ee];constructor(t){this[Ee]=t}destroy(){this[Ee].destroy()}};function xi(e,t){let n=t?.injector??m(Ne),r=t?.manualCleanup!==!0?n.get(ke):null,o,i=n.get(Ei,null,{optional:!0}),s=n.get(fn);return i!==null?(o=$b(i.view,s,e),r instanceof ca&&r._lView===i.view&&(r=null)):o=zb(e,n.get(Na),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new ua(o)}var Lg=k(b({},ql),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=ci(!1);try{Gl(this)}finally{ci(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=V(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],V(e)}}}),Ub=k(b({},Lg),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(gr(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Hb=k(b({},Lg),{consumerMarkedDirty(){this.view[F]|=8192,Nr(this.view),this.notifier.notify(13)},destroy(){if(gr(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Hn]?.delete(this)}});function $b(e,t,n){let r=Object.create(Hb);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=jg(r,n),e[Hn]??=new Set,e[Hn].add(r),r.consumerMarkedDirty(r),r}function zb(e,t,n){let r=Object.create(Ub);return r.fn=jg(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 jg(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Ri(e){return{toString:e}.toString()}function Yb(e){return typeof e=="function"}function Cm(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ua=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},Cn=(()=>{let e=()=>Dm;return e.ngInherit=!0,e})();function Dm(e){return e.type.prototype.ngOnChanges&&(e.setInput=Jb),Kb}function Kb(){let e=wm(this),t=e?.current;if(t){let n=e.previous;if(n===qn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Jb(e,t,n,r,o){let i=this.declaredInputs[r],s=wm(e)||Xb(e,{previous:qn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Ua(l&&l.currentValue,n,c===qn),Cm(e,t,o,n)}var Em="__ngSimpleChanges__";function wm(e){return e[Em]||null}function Xb(e,t){return e[Em]=t}var Vg=[];var te=function(e,t=null,n){for(let r=0;r<Vg.length;r++){let o=Vg[r];o(e,t,n)}},W=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(W||{});function eC(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Dm(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function xm(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function La(e,t,n){Im(e,t,3,n)}function ja(e,t,n,r){(e[F]&3)===n&&Im(e,t,n,r)}function ld(e,t){let n=e[F];(n&3)===t&&(n&=16383,n+=1,e[F]=n)}function Im(e,t,n,r){let o=r!==void 0?e[Sr]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Sr]+=65536),(a<i||i==-1)&&(tC(e,n,t,c),e[Sr]=(e[Sr]&4294901760)+c+2),c++}function Bg(e,t){te(W.LifecycleHookStart,e,t);let n=V(null);try{t.call(e)}finally{V(n),te(W.LifecycleHookEnd,e,t)}}function tC(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[F]>>14<e[Sr]>>16&&(e[F]&3)===t&&(e[F]+=16384,Bg(a,i)):Bg(a,i)}var go=-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 nC(e){return(e.flags&8)!==0}function rC(e){return(e.flags&16)!==0}function oC(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];iC(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Mm(e){return e===3||e===4||e===6}function iC(e){return e.charCodeAt(0)===64}function Ti(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Ug(e,n,o,null,t[++r]):Ug(e,n,o,null,null))}}return e}function Ug(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Sm(e){return e!==go}function Ha(e){return e&32767}function sC(e){return e>>16}function $a(e,t){let n=sC(e),r=t;for(;n>0;)r=r[Mr],n--;return r}var bd=!0;function za(e){let t=bd;return bd=e,t}var aC=256,Tm=aC-1,Am=5,cC=0,Qt={};function lC(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ir)&&(r=n[Ir]),r==null&&(r=n[Ir]=cC++);let o=r&Tm,i=1<<o;t.data[e+(o>>Am)]|=i}function qa(e,t){let n=Om(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,ud(r.data,e),ud(t,null),ud(r.blueprint,null));let o=Jd(e,t),i=e.injectorIndex;if(Sm(o)){let s=Ha(o),a=$a(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 ud(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Om(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Jd(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=Fm(o),r===null)return go;if(n++,o=o[Mr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return go}function Cd(e,t,n){lC(e,t,n)}function uC(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Mm(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function Nm(e,t,n){if(n&8||e!==void 0)return e;ha(t,"NodeInjector")}function Pm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Wn],i=We(void 0);try{return o?o.get(t,r,n&8):Ou(t,r,n&8)}finally{We(i)}}return Nm(r,t,n)}function Rm(e,t,n,r=0,o){if(e!==null){if(t[F]&2048&&!(r&2)){let s=hC(e,t,n,r,Qt);if(s!==Qt)return s}let i=km(e,t,n,r,Qt);if(i!==Qt)return i}return Pm(t,n,r,o)}function km(e,t,n,r,o){let i=fC(n);if(typeof i=="function"){if(!td(t,e,r))return r&1?Nm(o,n,r):Pm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ha(n);else return s}finally{nd()}}else if(typeof i=="number"){let s=null,a=Om(e,t),c=go,l=r&1?t[vt][mt]:null;for((a===-1||r&4)&&(c=a===-1?Jd(e,t):t[a+8],c===go||!$g(r,!1)?a=-1:(s=t[N],a=Ha(c),t=$a(c,t)));a!==-1;){let u=t[N];if(Hg(i,a,u.data)){let p=dC(a,t,n,s,r,l);if(p!==Qt)return p}c=t[a+8],c!==go&&$g(r,t[N].data[a+8]===l)&&Hg(i,a,t)?(s=u,a=Ha(c),t=$a(c,t)):a=-1}}return o}function dC(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?mn(a)&&bd:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Va(a,s,n,c,l);return u!==null?Ai(t,s,u,a,o):Qt}function Va(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,p=r?a:a+u,y=o?a+u:l;for(let v=p;v<y;v++){let E=s[v];if(v<c&&n===E||v>=c&&E.type===n)return v}if(o){let v=s[c];if(v&&Zt(v)&&v.type===n)return c}return null}function Ai(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Rr){let a=i;if(a.resolving)throw Au("");let c=za(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,p=a.injectImpl?We(a.injectImpl):null,y=td(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&eC(n,s[n],t)}finally{p!==null&&We(p),za(c),a.resolving=!1,nd()}}return i}function fC(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ir)?e[Ir]:void 0;return typeof t=="number"?t>=0?t&Tm:pC:t}function Hg(e,t,n){let r=1<<e;return!!(n[t+(e>>Am)]&r)}function $g(e,t){return!(e&2)&&!(e&1&&t)}var Pr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Rm(this._tNode,this._lView,t,Er(r),n)}};function pC(){return new Pr(Ue(),z())}function bt(e){return Ri(()=>{let t=e.prototype.constructor,n=t[si]||Dd(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[si]||Dd(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Dd(e){return Cu(e)?()=>{let t=Dd(Oe(e));return t&&t()}:Un(e)}function hC(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[F]&2048&&!uo(s);){let a=km(i,s,n,r|2,Qt);if(a!==Qt)return a;let c=i.parent;if(!c){let l=s[ju];if(l){let u=l.get(n,Qt,r&-5);if(u!==Qt)return u}c=Fm(s),s=s[Mr]}i=c}return o}function Fm(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[mt]:null}function ki(e){return uC(Ue(),e)}function gC(){return _o(Ue(),z())}function _o(e,t){return new ot(Rt(e,t))}var ot=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=gC}return e})();function mC(e){return e instanceof ot?e.nativeElement:e}function vC(){return this._results[Symbol.iterator]()}var Ga=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ve}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Yh(t);(this._changesDetected=!Qh(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=vC};function Lm(e){return(e.flags&128)===128}var Xd=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Xd||{}),jm=new Map,yC=0;function _C(){return yC++}function bC(e){jm.set(e[gn],e)}function Ed(e){jm.delete(e[gn])}var zg="__ngContext__";function mo(e,t){Wt(t)?(e[zg]=t[gn],bC(t)):e[zg]=t}function Vm(e){return Um(e[co])}function Bm(e){return Um(e[gt])}function Um(e){for(;e!==null&&!yt(e);)e=e[gt];return e}var wd;function ef(e){wd=e}function Hm(){if(wd!==void 0)return wd;if(typeof document<"u")return document;throw new C(210,!1)}var tc=new x("",{factory:()=>CC}),CC="ng";var nc=new x(""),Fi=new x("",{providedIn:"platform",factory:()=>"unknown"});var rc=new x("",{factory:()=>m(pe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var $m=!1,zm=new x("",{factory:()=>$m});var DC=(e,t,n,r)=>{};function EC(e,t,n,r){DC(e,t,n,r)}function tf(e){return(e.flags&32)===32}var wC=()=>null;function qm(e,t,n=!1){return wC(e,t,n)}function Gm(e,t){let n=e.contentQueries;if(n!==null){let r=V(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];wa(i),a.contentQueries(2,t[s],s)}}}finally{V(r)}}}function xd(e,t,n){wa(0);let r=V(null);try{t(e,n)}finally{V(r)}}function nf(e,t,n){if(Vu(t)){let r=V(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{V(r)}}}var Ft=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Ft||{});var Pa;function xC(){if(Pa===void 0&&(Pa=null,ht.trustedTypes))try{Pa=ht.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pa}function oc(e){return xC()?.createHTML(e)||e}var Ra;function Wm(){if(Ra===void 0&&(Ra=null,ht.trustedTypes))try{Ra=ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ra}function qg(e){return Wm()?.createHTML(e)||e}function Gg(e){return Wm()?.createScriptURL(e)||e}var _n=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${da})`}},Id=class extends _n{getTypeName(){return"HTML"}},Md=class extends _n{getTypeName(){return"Style"}},Sd=class extends _n{getTypeName(){return"Script"}},Td=class extends _n{getTypeName(){return"URL"}},Ad=class extends _n{getTypeName(){return"ResourceURL"}};function Lt(e){return e instanceof _n?e.changingThisBreaksApplicationSecurity:e}function Kt(e,t){let n=Zm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${da})`)}return n===t}function Zm(e){return e instanceof _n&&e.getTypeName()||null}function rf(e){return new Id(e)}function of(e){return new Md(e)}function sf(e){return new Sd(e)}function af(e){return new Td(e)}function cf(e){return new Ad(e)}function IC(e){let t=new Nd(e);return MC()?new Od(t):t}var Od=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(oc(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Nd=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=oc(t),n}};function MC(){try{return!!new window.DOMParser().parseFromString(oc(""),"text/html")}catch{return!1}}var SC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Li(e){return e=String(e),e.match(SC)?e:"unsafe:"+e}function Dn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function ji(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Qm=Dn("area,br,col,hr,img,wbr"),Ym=Dn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Km=Dn("rp,rt"),TC=ji(Km,Ym),AC=ji(Ym,Dn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),OC=ji(Km,Dn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Wg=ji(Qm,AC,OC,TC),Jm=Dn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),NC=Dn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),PC=Dn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),RC=ji(Jm,NC,PC),kC=Dn("script,style,template"),Pd=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=jC(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=LC(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Zg(t).toLowerCase();if(!Wg.hasOwnProperty(n))return this.sanitizedSomething=!0,!kC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!RC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Jm[a]&&(c=Li(c)),this.buf.push(" ",s,'="',Qg(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=Zg(t).toLowerCase();Wg.hasOwnProperty(n)&&!Qm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Qg(t))}};function FC(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LC(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Xm(t);return t}function jC(e){let t=e.firstChild;if(t&&FC(e,t))throw Xm(t);return t}function Zg(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Xm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var VC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BC=/([^\#-~ |!])/g;function Qg(e){return e.replace(/&/g,"&amp;").replace(VC,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(BC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var ka;function ic(e,t){let n=null;try{ka=ka||IC(e);let r=t?String(t):"";n=ka.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ka.getInertBodyElement(r)}while(r!==i);let a=new Pd().sanitizeChildren(Yg(n)||n);return oc(a)}finally{if(n){let r=Yg(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Yg(e){return"content"in e&&UC(e)?e.content:null}function UC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var HC=/^>|^->|<!--|-->|--!>|<!-$/g,$C=/(<|>)/g,zC="\u200B$1\u200B";function qC(e){return e.replace(HC,t=>t.replace($C,zC))}function GC(e,t){return e.createText(t)}function WC(e,t,n){e.setValue(t,n)}function ZC(e,t){return e.createComment(qC(t))}function ev(e,t,n){return e.createElement(t,n)}function Wa(e,t,n,r,o){e.insertBefore(t,n,r,o)}function tv(e,t,n){e.appendChild(t,n)}function Kg(e,t,n,r,o){r!==null?Wa(e,t,n,r,o):tv(e,t,n)}function QC(e,t,n,r){e.removeChild(null,t,n,r)}function YC(e,t,n){e.setAttribute(t,"style",n)}function KC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function nv(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&oC(e,t,r),o!==null&&KC(e,t,o),i!==null&&YC(e,t,i)}var Ct=(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})(Ct||{});function er(e){let t=uf();return t?qg(t.sanitize(Ct.HTML,e)||""):Kt(e,"HTML")?qg(Lt(e)):ic(Hm(),zt(e))}function ge(e){let t=uf();return t?t.sanitize(Ct.URL,e)||"":Kt(e,"URL")?Lt(e):Li(zt(e))}function sc(e){let t=uf();if(t)return Gg(t.sanitize(Ct.RESOURCE_URL,e)||"");if(Kt(e,"ResourceURL"))return Gg(Lt(e));throw new C(904,!1)}var JC=new Set(["embed","frame","iframe","media","script"]),XC=new Set(["base","link","script"]);function eD(e,t){return t==="src"&&JC.has(e)||t==="href"&&XC.has(e)||t==="xlink:href"&&e==="script"?sc:ge}function lf(e,t,n){return eD(t,n)(e)}function uf(){let e=z();return e&&e[qt].sanitizer}function bo(e){return e.ownerDocument.defaultView}function rv(e){return e instanceof Function?e():e}function tD(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 ov="ng-template";function nD(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&tD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(df(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function df(e){return e.type===4&&e.value!==ov}function rD(e,t,n){let r=e.type===4&&!n?ov:e.value;return t===r}function oD(e,t,n){let r=4,o=e.attrs,i=o!==null?aD(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!kt(r)&&!kt(c))return!1;if(s&&kt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!rD(e,c,n)||c===""&&t.length===1){if(kt(r))return!1;s=!0}}else if(r&8){if(o===null||!nD(e,o,c,n)){if(kt(r))return!1;s=!0}}else{let l=t[++a],u=iD(c,o,df(e),n);if(u===-1){if(kt(r))return!1;s=!0;continue}if(l!==""){let p;if(u>i?p="":p=o[u+1].toLowerCase(),r&2&&l!==p){if(kt(r))return!1;s=!0}}}}return kt(r)||s}function kt(e){return(e&1)===0}function iD(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return cD(t,e)}function sD(e,t,n=!1){for(let r=0;r<t.length;r++)if(oD(e,t[r],n))return!0;return!1}function aD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Mm(n))return t}return e.length}function cD(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Jg(e,t){return e?":not("+t.trim()+")":t}function lD(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!kt(s)&&(t+=Jg(i,o),o=""),r=s,i=i||!kt(r);n++}return o!==""&&(t+=Jg(i,o)),t}function uD(e){return e.map(lD).join(",")}function dD(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!kt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var it={};function ff(e,t,n,r,o,i,s,a,c,l,u){let p=Pe+r,y=p+o,v=fD(p,y),E=typeof l=="function"?l():l;return v[N]={type:e,blueprint:v,template:n,queries:null,viewQuery:a,declTNode:t,data:v.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:E,incompleteFirstPass:!1,ssrId:u}}function fD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:it);return n}function pD(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ff(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function pf(e,t,n,r,o,i,s,a,c,l,u){let p=t.blueprint.slice();return p[Pt]=o,p[F]=r|4|128|8|64|1024,(l!==null||e&&e[F]&2048)&&(p[F]|=2048),zu(p),p[we]=p[Mr]=e,p[Ve]=n,p[qt]=s||e&&e[qt],p[ue]=a||e&&e[ue],p[Wn]=c||e&&e[Wn]||null,p[mt]=i,p[gn]=_C(),p[vi]=u,p[ju]=l,p[vt]=t.type==2?e[vt]:p,p}function hD(e,t,n){let r=Rt(t,e),o=pD(n),i=e[qt].rendererFactory,s=hf(e,pf(e,o,null,iv(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function iv(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function sv(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function hf(e,t){return e[co]?e[Lu][gt]=t:e[co]=t,e[Lu]=t,t}function h(e=1){av(Re(),z(),vn()+e,!1)}function av(e,t,n,r){if(!r)if((t[F]&3)===3){let i=e.preOrderCheckHooks;i!==null&&La(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ja(t,i,0,n)}Kn(n)}var ac=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(ac||{});function Rd(e,t,n,r){let o=V(null);try{let[i,s,a]=e.inputs[n],c=null;(s&ac.SignalBased)!==0&&(c=t[i][Ee]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Cm(t,c,i,r)}finally{V(o)}}var Yt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Yt||{}),gD;function gf(e,t){return gD(e,t)}var AF=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var kd=new WeakMap,Fd=new WeakSet;function mD(e,t){let n=kd.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),Fd.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 vD(e,t){let n=kd.get(e);n?n.includes(t)||n.push(t):kd.set(e,[t])}var kr=new Set,cc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(cc||{}),En=new x(""),Xg=new Set;function lc(e){Xg.has(e)||(Xg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var mf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),cv=[0,1,2,3],lv=(()=>{class e{ngZone=m(Ze);scheduler=m(fn);errorHandler=m(Ot,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){m(En,{optional:!0})}execute(){let n=this.sequences.size>0;n&&te(W.AfterRenderHooksStart),this.executing=!0;for(let r of cv)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&te(W.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[Tr]??=[]).push(n),Nr(r),r[F]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(cc.AFTER_NEXT_RENDER,n):n()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),Za=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Tr];t&&(this.view[Tr]=t.filter(n=>n!==this))}};function Vi(e,t){let n=t?.injector??m(Ne);return lc("NgAfterNextRender"),_D(e,n,t,!0)}function yD(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function _D(e,t,n,r){let o=t.get(mf);o.impl??=t.get(lv);let i=t.get(En,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(ke):null,a=t.get(Ei,null,{optional:!0}),c=new Za(o.impl,yD(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var bD=new x("",{factory:()=>{let e=m(le),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function uv(e,t,n){let r=e.get(bD);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 CD(e,t){for(let[n,r]of t)uv(e,r.animateFns)}function em(e,t,n,r){let o=e?.[Qn]?.enter;t!==null&&o&&o.has(n.index)&&CD(r,o)}function tm(e,t,n,r){try{n.get(hi)}catch{return r(!1)}let o=e?.[Qn],i=DD(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];uc(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&kr.add(e[gn]),uv(n,()=>ED(e,t,o||void 0,i,r),o||void 0)}function DD(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 ED(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&&uc(e,t,i),i.length>0){let s=n||e?.[Qn];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),wD(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&kr.delete(e[gn]),o(!0)})}else e&&kr.delete(e[gn]),o(!1)}function uc(e,t,n){if(mn(t)){let o=nt(t.index,e);nm(o,n)}else if(t.type&12){let o=e[t.index];if(yt(o))for(let i=Be;i<o.length;i++){let s=o[i];nm(s,n)}}let r=t.child;for(;r;)uc(e,r,n),r=r.next}function nm(e,t){let n=e[Qn];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s)}let r=e[N].firstChild;for(;r;)uc(e,r,t),r=r.next}function wD(e,t,n){t.then(()=>{e[Qn]?.running===t&&(e[Qn].running=void 0,kr.delete(e[gn])),n(!0)})}function ho(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;yt(o)?c=o:Wt(o)&&(l=!0,o=o[Pt]);let u=_t(o);e===0&&r!==null?(em(a,r,i,n),s==null?tv(t,r,u):Wa(t,r,u,s||null,!0)):e===1&&r!==null?(em(a,r,i,n),Wa(t,r,u,s||null,!0),mD(i,u)):e===2?(a?.[Qn]?.leave?.has(i.index)&&vD(i,u),tm(a,i,n,p=>{if(Fd.has(u)){Fd.delete(u);return}QC(t,u,l,p)})):e===3&&tm(a,i,n,()=>{t.destroyNode(u)}),c!=null&&FD(t,e,n,c,i,r,s)}}function xD(e,t){dv(e,t),t[Pt]=null,t[mt]=null}function ID(e,t,n,r,o,i){r[Pt]=o,r[mt]=t,dc(e,r,n,1,o,i)}function dv(e,t){t[qt].changeDetectionScheduler?.notify(9),dc(e,t,t[ue],2,null,null)}function MD(e){let t=e[co];if(!t)return dd(e[N],e);for(;t;){let n=null;if(Wt(t))n=t[co];else{let r=t[Be];r&&(n=r)}if(!n){for(;t&&!t[gt]&&t!==e;)Wt(t)&&dd(t[N],t),t=t[we];t===null&&(t=e),Wt(t)&&dd(t[N],t),n=t&&t[gt]}t=n}}function vf(e,t){let n=e[Ar],r=n.indexOf(t);n.splice(r,1)}function fv(e,t){if(Or(t))return;let n=t[ue];n.destroyNode&&dc(e,t,n,3,null,null),MD(t)}function dd(e,t){if(Or(t))return;let n=V(null);try{t[F]&=-129,t[F]|=256,t[tt]&&gr(t[tt]),TD(e,t),SD(e,t),t[N].type===1&&t[ue].destroy();let r=t[Zn];if(r!==null&&yt(t[we])){r!==t[we]&&vf(r,t);let o=t[Gt];o!==null&&o.detachView(e)}Ed(t)}finally{V(n)}}function SD(e,t){let n=e.cleanup,r=t[ao];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ao]=null);let o=t[dn];if(o!==null){t[dn]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Hn];if(i!==null){t[Hn]=null;for(let s of i)s.destroy()}}function TD(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Rr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];te(W.LifecycleHookStart,a,c);try{c.call(a)}finally{te(W.LifecycleHookEnd,a,c)}}else{te(W.LifecycleHookStart,o,i);try{i.call(o)}finally{te(W.LifecycleHookEnd,o,i)}}}}}function AD(e,t,n){return OD(e,t.parent,n)}function OD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Pt];if(mn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ft.None||o===Ft.Emulated)return null}return Rt(r,n)}function ND(e,t,n){return RD(e,t,n)}function PD(e,t,n){return e.type&40?Rt(e,n):null}var RD=PD,rm;function yf(e,t,n,r){let o=AD(e,r,t),i=t[ue],s=r.parent||t[mt],a=ND(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Kg(i,o,n[c],a,!1);else Kg(i,o,n,a,!1);rm!==void 0&&rm(i,r,t,n,o)}function Mi(e,t){if(t!==null){let n=t.type;if(n&3)return Rt(t,e);if(n&4)return Ld(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Mi(e,r);{let o=e[t.index];return yt(o)?Ld(-1,o):_t(o)}}else{if(n&128)return Mi(e,t.next);if(n&32)return gf(t,e)()||_t(e[t.index]);{let r=pv(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=$n(e[vt]);return Mi(o,r)}else return Mi(e,t.next)}}}return null}function pv(e,t){if(t!==null){let r=e[vt][mt],o=t.projection;return r.projection[o]}return null}function Ld(e,t){let n=Be+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return Mi(r,o)}return t[Yn]}function _f(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Wn];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&mo(_t(c),r),n.flags|=2),!tf(n))if(l&8)_f(e,t,n.child,r,o,i,!1),ho(t,e,a,o,c,n,i,r);else if(l&32){let u=gf(n,r),p;for(;p=u();)ho(t,e,a,o,p,n,i,r);ho(t,e,a,o,c,n,i,r)}else l&16?kD(e,t,r,n,o,i):ho(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function dc(e,t,n,r,o,i){_f(n,r,e.firstChild,t,o,i,!1)}function kD(e,t,n,r,o,i){let s=n[vt],c=s[mt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];ho(t,e,n[Wn],o,u,r,i,n)}else{let l=c,u=s[we];Lm(r)&&(l.flags|=128),_f(e,t,l,u,o,i,!0)}}function FD(e,t,n,r,o,i,s){let a=r[Yn],c=_t(r);a!==c&&ho(t,e,n,i,a,o,s);for(let l=Be;l<r.length;l++){let u=r[l];dc(u[N],u,e,t,i,a)}}function LD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Yt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Yt.Important),e.setStyle(n,r,o,i))}}function hv(e,t,n,r,o){let i=vn(),s=r&2;try{Kn(-1),s&&t.length>Pe&&av(e,t,Pe,!1);let a=s?W.TemplateUpdateStart:W.TemplateCreateStart;te(a,o,n),n(r,o)}finally{Kn(i);let a=s?W.TemplateUpdateEnd:W.TemplateCreateEnd;te(a,o,n)}}function fc(e,t,n){zD(e,t,n),(n.flags&64)===64&&qD(e,t,n)}function bf(e,t,n=Rt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function jD(e,t,n,r){let i=r.get(zm,$m)||n===Ft.ShadowDom||n===Ft.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return VD(s),s}function VD(e){BD(e)}var BD=()=>null;function UD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function gv(e,t,n,r,o,i){let s=t[N];if(Df(e,s,t,n,r)){mn(e)&&$D(t,e.index);return}e.type&3&&(n=UD(n)),HD(e,t,n,r,o,i)}function HD(e,t,n,r,o,i){if(e.type&3){let s=Rt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function $D(e,t){let n=nt(t,e);n[F]&16||(n[F]|=64)}function zD(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mn(n)&&hD(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||qa(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Ai(t,e,s,n);if(mo(c,t),i!==null&&QD(t,s-r,c,a,n,i),Zt(a)){let l=nt(n.index,t);l[Ve]=Ai(t,e,s,n)}}}function qD(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=wg();try{Kn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Ea(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&GD(c,l)}}finally{Kn(-1),Ea(s)}}function GD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Cf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];sD(t,i.selectors,!1)&&(r??=[],Zt(i)?r.unshift(i):r.push(i))}return r}function WD(e,t,n,r,o,i){let s=Rt(e,t);ZD(t[ue],s,i,e.value,n,r,o)}function ZD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?zt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function QD(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Rd(r,n,c,l)}}function mv(e,t,n,r,o){let i=Pe+n,s=t[N],a=o(s,t,e,r,n);t[i]=a,fo(e,!0);let c=e.type===2;return c?(nv(t[ue],a,e),(fg()===0||lo(e))&&mo(a,t),pg()):mo(a,t),Aa()&&(!c||!tf(e))&&yf(s,t,a,e),e}function vv(e){let t=e;return Yu()?_g():(t=t.parent,fo(t,!1)),t}function YD(e,t){let n=e[Wn];if(!n)return;let r;try{r=n.get(rt,null)}catch{r=null}r?.(t)}function Df(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],p=t.data[l];Rd(p,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];Rd(u,l,r,o),a=!0}return a}function KD(e,t){let n=nt(t,e),r=n[N];JD(r,n);let o=n[Pt];o!==null&&n[vi]===null&&(n[vi]=qm(o,n[Wn])),te(W.ComponentStart);try{Ef(r,n,n[Ve])}finally{te(W.ComponentEnd,n[Ve])}}function JD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Ef(e,t,n){xa(t);try{let r=e.viewQuery;r!==null&&xd(1,r,n);let o=e.template;o!==null&&hv(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Gt]?.finishViewCreation(e),e.staticContentQueries&&Gm(e,t),e.staticViewQueries&&xd(2,e.viewQuery,n);let i=e.components;i!==null&&XD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[F]&=-5,Ia()}}function XD(e,t){for(let n=0;n<t.length;n++)KD(e,t[n])}function eE(e,t,n,r){let o=V(null);try{let i=t.tView,a=e[F]&4096?4096:16,c=pf(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Zn]=l;let u=e[Gt];return u!==null&&(c[Gt]=u.createEmbeddedView(i)),Ef(i,c,n),c}finally{V(o)}}function om(e,t){return!t||t.firstChild===null||Lm(e)}function Oi(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(_t(i)),yt(i)&&yv(i,r);let s=n.type;if(s&8)Oi(e,t,n.child,r);else if(s&32){let a=gf(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=pv(t,n);if(Array.isArray(a))r.push(...a);else{let c=$n(t[vt]);Oi(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function yv(e,t){for(let n=Be;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&Oi(r[N],r,o,t)}e[Yn]!==e[Pt]&&t.push(e[Yn])}function _v(e){if(e[Tr]!==null){for(let t of e[Tr])t.impl.addSequence(t);e[Tr].length=0}}var bv=[];function tE(e){return e[tt]??nE(e)}function nE(e){let t=bv.pop()??Object.create(oE);return t.lView=e,t}function rE(e){e.lView[tt]!==e&&(e.lView=null,bv.push(e))}var oE=k(b({},Ln),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Nr(e.lView)},consumerOnSignalRead(){this.lView[tt]=this}});function iE(e){let t=e[tt]??Object.create(sE);return t.lView=e,t}var sE=k(b({},Ln),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=$n(e.lView);for(;t&&!Cv(t[N]);)t=$n(t);t&&qu(t)},consumerOnSignalRead(){this.lView[tt]=this}});function Cv(e){return e.type!==2}function Dv(e){if(e[Hn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Hn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[F]&8192)}}var aE=100;function Ev(e,t=0){let r=e[qt].rendererFactory,o=!1;o||r.begin?.();try{cE(e,t)}finally{o||r.end?.()}}function cE(e,t){let n=Ku();try{ci(!0),jd(e,t);let r=0;for(;bi(e);){if(r===aE)throw new C(103,!1);r++,jd(e,1)}}finally{ci(n)}}function lE(e,t,n,r){if(Or(t))return;let o=t[F],i=!1,s=!1;xa(t);let a=!0,c=null,l=null;i||(Cv(e)?(l=tE(t),c=jn(l)):Ss()===null?(a=!1,l=iE(t),c=jn(l)):t[tt]&&(gr(t[tt]),t[tt]=null));try{zu(t),Cg(e.bindingStartIndex),n!==null&&hv(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let v=e.preOrderCheckHooks;v!==null&&La(t,v,null)}else{let v=e.preOrderHooks;v!==null&&ja(t,v,0,null),ld(t,0)}if(s||uE(t),Dv(t),wv(t,0),e.contentQueries!==null&&Gm(e,t),!i)if(u){let v=e.contentCheckHooks;v!==null&&La(t,v)}else{let v=e.contentHooks;v!==null&&ja(t,v,1),ld(t,1)}fE(e,t);let p=e.components;p!==null&&Iv(t,p,0);let y=e.viewQuery;if(y!==null&&xd(2,y,r),!i)if(u){let v=e.viewCheckHooks;v!==null&&La(t,v)}else{let v=e.viewHooks;v!==null&&ja(t,v,2),ld(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[va]){for(let v of t[va])v();t[va]=null}i||(_v(t),t[F]&=-73)}catch(u){throw i||Nr(t),u}finally{l!==null&&(hr(l,c),a&&rE(l)),Ia()}}function wv(e,t){for(let n=Vm(e);n!==null;n=Bm(n))for(let r=Be;r<n.length;r++){let o=n[r];xv(o,t)}}function uE(e){for(let t=Vm(e);t!==null;t=Bm(t)){if(!(t[F]&2))continue;let n=t[Ar];for(let r=0;r<n.length;r++){let o=n[r];qu(o)}}}function dE(e,t,n){te(W.ComponentStart);let r=nt(t,e);try{xv(r,n)}finally{te(W.ComponentEnd,r[Ve])}}function xv(e,t){_a(e)&&jd(e,t)}function jd(e,t){let r=e[N],o=e[F],i=e[tt],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Yo(i)),s||=!1,i&&(i.dirty=!1),e[F]&=-9217,s)lE(r,e,r.template,e[Ve]);else if(o&8192){let a=V(null);try{Dv(e),wv(e,1);let c=r.components;c!==null&&Iv(e,c,1),_v(e)}finally{V(a)}}}function Iv(e,t,n){for(let r=0;r<t.length;r++)dE(e,t[r],n)}function fE(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Kn(~o);else{let i=o,s=n[++r],a=n[++r];Eg(s,i);let c=t[i];te(W.HostBindingsUpdateStart,c);try{a(2,c)}finally{te(W.HostBindingsUpdateEnd,c)}}}}finally{Kn(-1)}}function wf(e,t){let n=Ku()?64:1088;for(e[qt].changeDetectionScheduler?.notify(t);e;){e[F]|=n;let r=$n(e);if(uo(e)&&!r)return e;e=r}return null}function Mv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function pE(e,t,n,r=!0){let o=t[N];if(hE(o,t,e,n),r){let s=Ld(n,e),a=t[ue],c=a.parentNode(e[Yn]);c!==null&&ID(o,e[mt],a,t,c,s)}let i=t[vi];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Vd(e,t){if(e.length<=Be)return;let n=Be+t,r=e[n];if(r){let o=r[Zn];o!==null&&o!==e&&vf(o,r),t>0&&(e[n-1][gt]=r[gt]);let i=pi(e,Be+t);xD(r[N],r);let s=i[Gt];s!==null&&s.detachView(i[N]),r[we]=null,r[gt]=null,r[F]&=-129}return r}function hE(e,t,n,r){let o=Be+r,i=n.length;r>0&&(n[o-1][gt]=t),r<i-Be?(t[gt]=n[o],Nu(n,Be+r,t)):(n.push(t),t[gt]=null),t[we]=n;let s=t[Zn];s!==null&&n!==s&&Sv(s,t);let a=t[Gt];a!==null&&a.insertView(e),ba(t),t[F]|=128}function Sv(e,t){let n=e[Ar],r=t[we];if(Wt(r))e[F]|=2;else{let o=r[we][vt];t[vt]!==o&&(e[F]|=2)}n===null?e[Ar]=[t]:n.push(t)}var Jn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[N];return Oi(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[Ve]}set context(t){this._lView[Ve]=t}get destroyed(){return Or(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[we];if(yt(t)){let n=t[yi],r=n?n.indexOf(this):-1;r>-1&&(Vd(t,r),pi(n,r))}this._attachedToViewContainer=!1}fv(this._lView[N],this._lView)}onDestroy(t){Gu(this._lView,t)}markForCheck(){wf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){ba(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,Ev(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=uo(this._lView),n=this._lView[Zn];n!==null&&!t&&vf(n,this._lView),dv(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t;let n=uo(this._lView),r=this._lView[Zn];r!==null&&!n&&Sv(r,this._lView),ba(this._lView)}};var Xn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=gE;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=eE(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Jn(i)}}return e})();function gE(){return pc(Ue(),z())}function pc(e,t){return e.type&4?new Xn(t,e,_o(e,t)):null}function xf(e,t,n,r,o){let i=e.data[t];if(i===null)i=mE(e,t,n,r,o),Dg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=yg();i.injectorIndex=s===null?-1:s.injectorIndex}return fo(i,!0),i}function mE(e,t,n,r,o){let i=Qu(),s=Yu(),a=s?i:i&&i.parent,c=e.data[t]=yE(e,a,n,t,r,o);return vE(e,c,i,s),c}function vE(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 yE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return gg()&&(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}}var _E=()=>null;function im(e,t){return _E(e,t)}var Tv=class{},hc=class{},Bd=class{resolveComponentFactory(t){throw new C(917,!1)}},Bi=class{static NULL=new Bd},Fr=class{},wn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>bE()}return e})();function bE(){let e=z(),t=Ue(),n=nt(t.index,e);return(Wt(n)?n:e)[ue]}var Av=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();var Ba={},Ud=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Ba,r);return o!==Ba||n===Ba?o:this.parentInjector.get(t,n,r)}};function sm(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=bu(o,a);else if(i==2){let c=a,l=t[++s];r=bu(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function T(e,t=0){let n=z();if(n===null)return O(e,t);let r=Ue();return Rm(r,n,Oe(e),t)}function Ov(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}EE(e,t,n,a,i,c,l)}i!==null&&r!==null&&CE(n,r,i)}function CE(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new C(-301,!1);r.push(t[o],i)}}function DE(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function EE(e,t,n,r,o,i,s){let a=r.length,c=null;for(let y=0;y<a;y++){let v=r[y];c===null&&Zt(v)&&(c=v,DE(e,n,y)),Cd(qa(n,t),e,v.type)}TE(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let y=0;y<a;y++){let v=r[y];v.providersResolver&&v.providersResolver(v)}let l=!1,u=!1,p=sv(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let v=r[y];if(n.mergedAttrs=Ti(n.mergedAttrs,v.hostAttrs),xE(e,n,t,p,v),SE(p,v,o),s!==null&&s.has(v)){let[A,M]=s.get(v);n.directiveToIndex.set(v.type,[p,A+n.directiveStart,M+n.directiveStart])}else(i===null||!i.has(v))&&n.directiveToIndex.set(v.type,p);v.contentQueries!==null&&(n.flags|=4),(v.hostBindings!==null||v.hostAttrs!==null||v.hostVars!==0)&&(n.flags|=64);let E=v.type.prototype;!l&&(E.ngOnChanges||E.ngOnInit||E.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(E.ngOnChanges||E.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),p++}wE(e,n,i)}function wE(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))am(0,t,o,r),am(1,t,o,r),lm(t,r,!1);else{let i=n.get(o);cm(0,t,i,r),cm(1,t,i,r),lm(t,r,!0)}}}function am(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Nv(t,i)}}function cm(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Nv(t,s)}}function Nv(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function lm(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||df(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function xE(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Un(o.type,!0)),s=new Rr(i,Zt(o),T,null);e.blueprint[r]=s,n[r]=s,IE(e,t,r,sv(e,n,o.hostVars,it),o)}function IE(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;ME(s)!=a&&s.push(a),s.push(n,r,i)}}function ME(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function SE(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Zt(t)&&(n[""]=e)}}function TE(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function If(e,t,n,r,o,i,s,a){let c=t[N],l=c.consts,u=_i(l,s),p=xf(c,e,n,r,u);return i&&Ov(c,t,p,_i(l,a),o),p.mergedAttrs=Ti(p.mergedAttrs,p.attrs),p.attrs!==null&&sm(p,p.attrs,!1),p.mergedAttrs!==null&&sm(p,p.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,p),p}function Mf(e,t){xm(e,t),Vu(t)&&e.queries.elementEnd(t)}function Sf(e){return Rv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Pv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Rv(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function kv(e,t,n){return e[t]=n}function bn(e,t,n){if(n===it)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Tf(e,t,n,r){let o=bn(e,t,n);return bn(e,t+1,r)||o}function AE(e,t,n,r,o){let i=Tf(e,t,n,r);return bn(e,t+2,o)||i}function fd(e,t,n){return function r(o){let i=mn(e)?nt(e.index,t):t;wf(i,5);let s=t[Ve],a=um(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=um(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function um(e,t,n,r){let o=V(null);try{return te(W.OutputStart,t,n),n(r)!==!1}catch(i){return YD(e,i),!1}finally{te(W.OutputEnd,t,n),V(o)}}function OE(e,t,n,r,o,i,s,a){let c=lo(e),l=!1,u=null;if(!r&&c&&(u=PE(t,n,i,e.index)),u!==null){let p=u.__ngLastListenerFn__||u;p.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let p=Rt(e,n),y=r?r(p):p;EC(n,y,i,a);let v=o.listen(y,i,a);if(!NE(i)){let E=r?A=>r(_t(A[e.index])):e.index;Fv(E,t,n,i,a,v,!1)}}return l}function NE(e){return e.startsWith("animation")||e.startsWith("transition")}function PE(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ao],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Fv(e,t,n,r,o,i,s){let a=t.firstCreatePass?Zu(t):null,c=Wu(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function dm(e,t,n,r,o,i){let s=t[n],a=t[N],l=a.data[n].outputs[r],p=s[l].subscribe(i);Fv(e.index,a,t,o,i,p,!0)}var Hd=Symbol("BINDING");var Qa=class extends Bi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=zn(t);return new vo(n,this.ngModule)}};function RE(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ac.SignalBased)!==0};return o&&(i.transform=o),i})}function kE(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function FE(e,t,n){let r=t instanceof le?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ud(n,r):n}function LE(e){let t=e.get(Fr,null);if(t===null)throw new C(407,!1);let n=e.get(Av,null),r=e.get(fn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function jE(e,t){let n=Lv(e);return ev(t,n,n==="svg"?Bu:n==="math"?sg:null)}function Lv(e){return(e.selectors[0][0]||"div").toLowerCase()}var vo=class extends hc{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=RE(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=kE(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uD(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){te(W.DynamicComponentStart);let a=V(null);try{let c=this.componentDef,l=VE(r,c,s,i),u=FE(c,o||this.ngModule,t),p=LE(u),y=p.rendererFactory.createRenderer(null,c),v=r?jD(y,r,c.encapsulation,u):jE(c,y),E=s?.some(fm)||i?.some(I=>typeof I!="function"&&I.bindings.some(fm)),A=pf(null,l,null,512|iv(c),null,null,p,y,u,null,qm(v,u,!0));A[Pe]=v,xa(A);let M=null;try{let I=If(Pe,A,2,"#host",()=>l.directiveRegistry,!0,0);nv(y,v,I),mo(v,A),fc(l,A,I),nf(l,I,A),Mf(l,I),n!==void 0&&UE(I,this.ngContentSelectors,n),M=nt(I.index,A),A[Ve]=M[Ve],Ef(l,A,null)}catch(I){throw M!==null&&Ed(M),Ed(A),I}finally{te(W.DynamicComponentEnd),Ia()}return new Ya(this.componentType,A,!!E)}finally{V(a)}}};function VE(e,t,n,r){let o=e?["ng-version","21.2.1"]:dD(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Hd].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let p=r[u];if(typeof p!="function")for(let y of p.bindings){a+=y[Hd].requiredVars;let v=u+1;y.create&&(y.targetIdx=v,(i??=[]).push(y)),y.update&&(y.targetIdx=v,(s??=[]).push(y))}}let c=[t];if(r)for(let u of r){let p=typeof u=="function"?u:u.type,y=Tu(p);c.push(y)}return ff(0,null,BE(i,s),1,a,c,null,null,null,[o],null)}function BE(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function fm(e){let t=e[Hd].kind;return t==="input"||t==="twoWay"}var Ya=class extends Tv{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ya(n[N],Pe),this.location=_o(this._tNode,n),this.instance=nt(this._tNode.index,n)[Ve],this.hostView=this.changeDetectorRef=new Jn(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=Df(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=nt(r.index,o);wf(s,1)}get injector(){return new Pr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function UE(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var xn=(()=>{class e{static __NG_ELEMENT_ID__=HE}return e})();function HE(){let e=Ue();return Vv(e,z())}var $E=xn,jv=class extends $E{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return _o(this._hostTNode,this._hostLView)}get injector(){return new Pr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Jd(this._hostTNode,this._hostLView);if(Sm(t)){let n=$a(t,this._hostLView),r=Ha(t),o=n[N].data[r+8];return new Pr(o,n)}else return new Pr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=pm(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Be}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=im(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,om(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Yb(t),l;if(c)l=n;else{let M=n||{};l=M.index,r=M.injector,o=M.projectableNodes,i=M.environmentInjector||M.ngModuleRef,s=M.directives,a=M.bindings}let u=c?t:new vo(zn(t)),p=r||this.parentInjector;if(!i&&u.ngModule==null){let I=(c?p:this.parentInjector).get(le,null);I&&(i=I)}let y=zn(u.componentType??{}),v=im(this._lContainer,y?.id??null),E=v?.firstChild??null,A=u.create(p,o,E,i,s,a);return this.insertImpl(A.hostView,l,om(this._hostTNode,v)),A}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(cg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[we],l=new jv(c,c[mt],c[we]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return pE(s,o,i,r),t.attachToViewContainerRef(),Nu(pd(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=pm(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Vd(this._lContainer,n);r&&(pi(pd(this._lContainer),n),fv(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=Vd(this._lContainer,n);return r&&pi(pd(this._lContainer),n)!=null?new Jn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function pm(e){return e[yi]}function pd(e){return e[yi]||(e[yi]=[])}function Vv(e,t){let n,r=t[e.index];return yt(r)?n=r:(n=Mv(r,t,null,e),t[e.index]=n,hf(t,n)),qE(n,t,e,r),new jv(n,e,t)}function zE(e,t){let n=e[ue],r=n.createComment(""),o=Rt(t,e),i=n.parentNode(o);return Wa(n,i,r,n.nextSibling(o),!1),r}var qE=ZE,GE=()=>!1;function WE(e,t,n){return GE(e,t,n)}function ZE(e,t,n,r){if(e[Yn])return;let o;n.type&8?o=_t(r):o=zE(t,n),e[Yn]=o}var $d=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},zd=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Af(t,n).matches!==null&&this.queries[n].setDirty()}},qd=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=nw(t):this.predicate=t}},Gd=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Wd=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,QE(n,i)),this.matchTNodeWithReadOption(t,n,Va(n,t,i,!1,!1))}else r===Xn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Va(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===ot||o===xn||o===Xn&&n.type&4)this.addMatch(n.index,-2);else{let i=Va(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function QE(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function YE(e,t){return e.type&11?_o(e,t):e.type&4?pc(e,t):null}function KE(e,t,n,r){return n===-1?YE(t,e):n===-2?JE(e,t,r):Ai(e,e[N],n,t)}function JE(e,t,n){if(n===ot)return _o(t,e);if(n===Xn)return pc(t,e);if(n===xn)return Vv(t,e)}function Bv(e,t,n,r){let o=t[Gt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(KE(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Zd(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Bv(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let p=Be;p<u.length;p++){let y=u[p];y[Zn]===y[we]&&Zd(y[N],y,l,r)}if(u[Ar]!==null){let p=u[Ar];for(let y=0;y<p.length;y++){let v=p[y];Zd(v[N],v,l,r)}}}}}return r}function XE(e,t){return e[Gt].queries[t].queryList}function ew(e,t,n){let r=new Ga((n&4)===4);return dg(e,t,r,r.destroy),(t[Gt]??=new zd).queries.push(new $d(r))-1}function tw(e,t,n){let r=Re();return r.firstCreatePass&&(rw(r,new qd(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),ew(r,z(),t)}function nw(e){return e.split(",").map(t=>t.trim())}function rw(e,t,n){e.queries===null&&(e.queries=new Gd),e.queries.track(new Wd(t,n))}function Af(e,t){return e.queries.getByIndex(t)}function ow(e,t){let n=e[N],r=Af(n,t);return r.crossesNgTemplate?Zd(n,e,t,[]):Bv(n,e,r,t)}var Lr=class{},gc=class{};var Ka=class extends Lr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Qa(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Su(t);this._bootstrapComponents=rv(i.bootstrap),this._r3Injector=rd(t,n,[{provide:Lr,useValue:this},{provide:Bi,useValue:this.componentFactoryResolver},...r],di(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)}},Ja=class extends gc{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ka(this.moduleType,t,[])}};var Ni=class extends Lr{injector;componentFactoryResolver=new Qa(this);instance=null;constructor(t){super();let n=new xr([...t.providers,{provide:Lr,useValue:this},{provide:Bi,useValue:this.componentFactoryResolver}],t.parent||mi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ui(e,t,n=null){return new Ni({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var iw=(()=>{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=Ru(!1,n.type),o=r.length>0?Ui([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=w({token:e,providedIn:"environment",factory:()=>new e(O(le))})}return e})();function ie(e){return Ri(()=>{let t=Uv(e),n=k(b({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Xd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(iw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ft.Emulated,styles:e.styles||Xe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&lc("NgStandalone"),Hv(n);let r=e.dependencies;return n.directiveDefs=hm(r,sw),n.pipeDefs=hm(r,qh),n.id=lw(n),n})}function sw(e){return zn(e)||Tu(e)}function Jt(e){return Ri(()=>({type:e.type,bootstrap:e.bootstrap||Xe,declarations:e.declarations||Xe,imports:e.imports||Xe,exports:e.exports||Xe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function aw(e,t){if(e==null)return qn;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=ac.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function cw(e){if(e==null)return qn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function se(e){return Ri(()=>{let t=Uv(e);return Hv(t),t})}function Of(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 Uv(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||qn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Xe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:aw(e.inputs,t),outputs:cw(e.outputs),debugInfo:null}}function Hv(e){e.features?.forEach(t=>t(e))}function hm(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 lw(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 uw(e){return Object.getPrototypeOf(e.prototype).constructor}function Qe(e){let t=uw(e.type),n=!0,r=[e];for(;t;){let o;if(Zt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=hd(e.inputs),s.declaredInputs=hd(e.declaredInputs),s.outputs=hd(e.outputs);let a=o.hostBindings;a&&gw(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&pw(e,c),l&&hw(e,l),dw(e,o),zh(e.outputs,o.outputs),Zt(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<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Qe&&(n=!1)}}t=Object.getPrototypeOf(t)}fw(r)}function dw(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function fw(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ti(o.hostAttrs,n=Ti(n,o.hostAttrs))}}function hd(e){return e===qn?{}:e===Xe?[]:e}function pw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function hw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function gw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function mw(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Ti(e.mergedAttrs,e.attrs);let u=e.tView=ff(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),fo(e,!1);let c=yw(n,t,e,r);Aa()&&yf(n,t,c,e),mo(c,t);let l=Mv(c,t,c,e);t[r+Pe]=l,hf(t,l),WE(l,e,t)}function vw(e,t,n,r,o,i,s,a,c,l,u){let p=n+Pe,y;return t.firstCreatePass?(y=xf(t,p,4,s||null,a||null),Ca()&&Ov(t,e,y,_i(t.consts,l),Cf),xm(t,y)):y=t.data[p],mw(y,e,t,n,r,o,i,c),lo(y)&&fc(t,e,y),l!=null&&bf(e,y,u),y}function j(e,t,n,r,o,i,s,a){let c=z(),l=Re(),u=_i(l.consts,i);return vw(c,l,e,t,n,r,o,u,void 0,s,a),j}var yw=_w;function _w(e,t,n,r){return Di(!0),t[ue].createComment("")}var mc=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Nf(e){return typeof e=="function"&&e[Ee]!==void 0}function Pf(e){return Nf(e)&&typeof e.set=="function"}var Rf=new x("");function tr(e){return!!e&&typeof e.then=="function"}function kf(e){return!!e&&typeof e.subscribe=="function"}var $v=new x("");var Ff=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=m($v,{optional:!0})??[];injector=m(Ne);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=xe(this.injector,o);if(tr(i))n.push(i);else if(kf(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vc=new x("");function zv(){$l(()=>{let e="";throw new C(600,e)})}function qv(e){return e.isBoundToModule}var bw=10;var In=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=m(rt);afterRenderManager=m(mf);zonelessEnabled=m(wi);rootEffectScheduler=m(Na);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ve;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=m(yn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Y(n=>!n))}constructor(){m(En,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=m(le);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ne.NULL){return this._injector.get(Ze).run(()=>{te(W.BootstrapComponentStart);let s=n instanceof hc;if(!this._injector.get(Ff).done){let E="";throw new C(405,E)}let c;s?c=n:c=this._injector.get(Bi).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=qv(c)?void 0:this._injector.get(Lr),u=r||c.selector,p=c.create(o,[],u,l),y=p.location.nativeElement,v=p.injector.get(Rf,null);return v?.registerApplication(y),p.onDestroy(()=>{this.detachView(p.hostView),Si(this.components,p),v?.unregisterApplication(y)}),this._loadComponent(p),te(W.BootstrapComponentEnd,p),p})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){te(W.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(cc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw te(W.ChangeDetectionEnd),new C(101,!1);let n=V(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,V(n),this.afterTick.next(),te(W.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Fr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<bw;){te(W.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{te(W.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!bi(o))continue;let i=r&&!this.zonelessEnabled?0:1;Ev(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>bi(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;Si(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(vc,[]).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),()=>Si(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Si(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Xt(e,t,n,r){let o=z(),i=Ci();if(bn(o,i,t)){let s=Re(),a=Ma();WD(a,o,e,t,n,r)}return Xt}function _(e,t,n){let r=z(),o=Ci();if(bn(r,o,t)){let i=Re(),s=Ma();gv(s,r,e,t,r[ue],n)}return _}function gm(e,t,n,r,o){Df(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=z(),i=o[N],s=e+Pe,a=i.firstCreatePass?If(s,o,2,t,Cf,Ca(),n,r):i.data[s];if(mv(a,o,e,t,Cw),lo(a)){let c=o[N];fc(c,o,a),nf(c,a,o)}return r!=null&&bf(o,a),d}function f(){let e=Re(),t=Ue(),n=vv(t);return e.firstCreatePass&&Mf(e,n),mg(n)&&vg(),hg(),n.classesWithoutHost!=null&&nC(n)&&gm(e,n,z(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&rC(n)&&gm(e,n,z(),n.stylesWithoutHost,!1),f}function R(e,t,n,r){return d(e,t,n,r),f(),R}var Cw=(e,t,n,r,o)=>(Di(!0),ev(t[ue],r,Ag()));function Co(e,t,n){let r=z(),o=r[N],i=e+Pe,s=o.firstCreatePass?If(i,r,8,"ng-container",Cf,Ca(),t,n):o.data[i];if(mv(s,r,e,"ng-container",Dw),lo(s)){let a=r[N];fc(a,r,s),nf(a,s,r)}return n!=null&&bf(r,s),Co}function Do(){let e=Re(),t=Ue(),n=vv(t);return e.firstCreatePass&&Mf(e,n),Do}var Dw=(e,t,n,r,o)=>(Di(!0),ZC(t[ue],""));function he(){return z()}var Ii=void 0;function Ew(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var ww=["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"]],Ii,[["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"]],Ii,[["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}",Ii,Ii,Ii],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Ew],gd={};function st(e){let t=xw(e),n=mm(t);if(n)return n;let r=t.split("-")[0];if(n=mm(r),n)return n;if(r==="en")return ww;throw new C(701,!1)}function mm(e){return e in gd||(gd[e]=ht.ng&&ht.ng.common&&ht.ng.common.locales&&ht.ng.common.locales[e]),gd[e]}var me=(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})(me||{});function xw(e){return e.toLowerCase().replace(/_/g,"-")}var Hi="en-US";var Iw=Hi;function Gv(e){typeof e=="string"&&(Iw=e.toLowerCase().replace(/_/g,"-"))}function S(e,t,n){let r=z(),o=Re(),i=Ue();return Wv(o,r,r[ue],i,e,t,n),S}function Wv(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=fd(r,t,i),OE(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 p=0;p<u.length;p+=2){let y=u[p],v=u[p+1];c??=fd(r,t,i),dm(r,t,y,v,o,c)}if(l&&l.length)for(let p of l)c??=fd(r,t,i),dm(r,t,p,o,o,c)}}function D(e=1){return Tg(e)}function Eo(e,t,n){return tw(e,t,n),Eo}function wo(e){let t=z(),n=Re(),r=ed();wa(r+1);let o=Af(n,r);if(e.dirty&&ag(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=ow(t,r);e.reset(i,mC),e.notifyOnChanges()}return!0}return!1}function xo(){return XE(z(),ed())}function Mn(e){let t=bg();return Hu(t,Pe+e)}function Fa(e,t){return e<<17|t<<2}function jr(e){return e>>17&32767}function Mw(e){return(e&2)==2}function Sw(e,t){return e&131071|t<<17}function Qd(e){return e|2}function yo(e){return(e&131068)>>2}function md(e,t){return e&-131069|t<<2}function Tw(e){return(e&1)===1}function Yd(e){return e|1}function Aw(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=jr(s),c=yo(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let p=n;u=p[1],(u===null||so(p,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let y=jr(e[a+1]);e[r+1]=Fa(y,a),y!==0&&(e[y+1]=md(e[y+1],r)),e[a+1]=Sw(e[a+1],r)}else e[r+1]=Fa(a,0),a!==0&&(e[a+1]=md(e[a+1],r)),a=r;else e[r+1]=Fa(c,0),a===0?a=r:e[c+1]=md(e[c+1],r),c=r;l&&(e[r+1]=Qd(e[r+1])),vm(e,u,r,!0),vm(e,u,r,!1),Ow(t,u,e,r,i),s=Fa(a,c),i?t.classBindings=s:t.styleBindings=s}function Ow(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&so(i,t)>=0&&(n[r+1]=Yd(n[r+1]))}function vm(e,t,n,r){let o=e[n+1],i=t===null,s=r?jr(o):yo(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Nw(c,t)&&(a=!0,e[s+1]=r?Yd(l):Qd(l)),s=r?jr(l):yo(l)}a&&(e[n+1]=r?Qd(o):Yd(o))}function Nw(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?so(e,t)>=0:!1}function en(e,t,n){return Zv(e,t,n,!1),en}function ce(e,t){return Zv(e,t,null,!0),ce}function Zv(e,t,n,r){let o=z(),i=Re(),s=Da(2);if(i.firstUpdatePass&&Rw(i,e,s,r),t!==it&&bn(o,s,t)){let a=i.data[vn()];Vw(i,a,o,o[ue],e,o[s+1]=Bw(t,n),r,s)}}function Pw(e,t){return t>=e.expandoStartIndex}function Rw(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[vn()],s=Pw(e,n);Uw(i,r)&&t===null&&!s&&(t=!1),t=kw(o,i,t,r),Aw(o,i,t,n,s,r)}}function kw(e,t,n,r){let o=xg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=vd(null,e,t,n,r),n=Pi(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=vd(o,e,t,n,r),i===null){let c=Fw(e,t,r);c!==void 0&&Array.isArray(c)&&(c=vd(null,e,t,c[1],r),c=Pi(c,t.attrs,r),Lw(e,t,r,c))}else i=jw(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Fw(e,t,n){let r=n?t.classBindings:t.styleBindings;if(yo(r)!==0)return e[jr(r)]}function Lw(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[jr(o)]=r}function jw(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Pi(r,s,n)}return Pi(r,t.attrs,n)}function vd(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Pi(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Pi(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Jh(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Vw(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=Tw(l)?ym(c,t,n,o,yo(l),s):void 0;if(!Xa(u)){Xa(i)||Mw(l)&&(i=ym(c,null,n,o,a,s));let p=Uu(vn(),n);LD(r,s,p,o,i)}}function ym(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,p=u===null,y=n[o+1];y===it&&(y=p?Xe:void 0);let v=p?ma(y,r):u===r?y:void 0;if(l&&!Xa(v)&&(v=ma(c,r)),Xa(v)&&(a=v,s))return a;let E=e[o+1];o=s?jr(E):yo(E)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ma(c,r))}return a}function Xa(e){return e!==void 0}function Bw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=di(Lt(e)))),e}function Uw(e,t){return(e.flags&(t?8:16))!==0}function g(e,t=""){let n=z(),r=Re(),o=e+Pe,i=r.firstCreatePass?xf(r,o,1,t,null):r.data[o],s=Hw(r,n,i,t);n[o]=s,Aa()&&yf(r,n,s,i),fo(i,!1)}var Hw=(e,t,n,r)=>(Di(!0),GC(t[ue],r));function $w(e,t,n,r=""){return bn(e,Ci(),n)?t+zt(n)+r:it}function zw(e,t,n,r,o,i=""){let s=Xu(),a=Tf(e,s,n,o);return Da(2),a?t+zt(n)+r+zt(o)+i:it}function qw(e,t,n,r,o,i,s,a=""){let c=Xu(),l=AE(e,c,n,o,s);return Da(3),l?t+zt(n)+r+zt(o)+i+zt(s)+a:it}function P(e){return G("",e),P}function G(e,t,n){let r=z(),o=$w(r,e,t,n);return o!==it&&Lf(r,vn(),o),G}function jt(e,t,n,r,o){let i=z(),s=zw(i,e,t,n,r,o);return s!==it&&Lf(i,vn(),s),jt}function yc(e,t,n,r,o,i,s){let a=z(),c=qw(a,e,t,n,r,o,i,s);return c!==it&&Lf(a,vn(),c),yc}function Lf(e,t,n){let r=Uu(t,e);WC(e[ue],r,n)}function Dt(e,t,n){Pf(t)&&(t=t());let r=z(),o=Ci();if(bn(r,o,t)){let i=Re(),s=Ma();gv(s,r,e,t,r[ue],n)}return Dt}function Vt(e,t){let n=Pf(e);return n&&e.set(t),n}function Et(e,t){let n=z(),r=Re(),o=Ue();return Wv(r,n,n[ue],o,e,t),Et}function _m(e,t,n){let r=Re();r.firstCreatePass&&Qv(t,r.data,r.blueprint,Zt(e),n)}function Qv(e,t,n,r,o){if(e=Oe(e),Array.isArray(e))for(let i=0;i<e.length;i++)Qv(e[i],t,n,r,o);else{let i=Re(),s=z(),a=Ue(),c=wr(e)?e:Oe(e.provide),l=Fu(e),u=a.providerIndexes&1048575,p=a.directiveStart,y=a.providerIndexes>>20;if(wr(e)||!e.multi){let v=new Rr(l,o,T,null),E=_d(c,t,o?u:u+y,p);E===-1?(Cd(qa(a,s),i,c),yd(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(v),s.push(v)):(n[E]=v,s[E]=v)}else{let v=_d(c,t,u+y,p),E=_d(c,t,u,u+y),A=v>=0&&n[v],M=E>=0&&n[E];if(o&&!M||!o&&!A){Cd(qa(a,s),i,c);let I=Zw(o?Ww:Gw,n.length,o,r,l,e);!o&&M&&(n[E].providerFactory=I),yd(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=Yv(n[o?E:v],l,!o&&r);yd(i,e,v>-1?v:E,I)}!o&&r&&M&&n[E].componentProviders++}}}function yd(e,t,n,r){let o=wr(t),i=rg(t);if(o||i){let c=(i?Oe(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 Yv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function _d(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function Gw(e,t,n,r,o){return Kd(this.multi,[])}function Ww(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Ai(r,r[N],this.providerFactory.index,o);s=c.slice(0,a),Kd(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Kd(i,s);return s}function Kd(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Zw(e,t,n,r,o,i){let s=new Rr(e,n,T,null);return s.multi=[],s.index=t,s.componentProviders=0,Yv(s,o,r&&!n),s}function tn(e,t){return n=>{n.providersResolver=(r,o)=>_m(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>_m(r,o?o(t):t,!0))}}function nr(e,t,n){return Qw(z(),Ju(),e,t,n)}function Kv(e,t){let n=e[t];return n===it?void 0:n}function Qw(e,t,n,r,o,i){let s=t+n;return bn(e,s,o)?kv(e,s+1,i?r.call(i,o):r(o)):Kv(e,s+1)}function Yw(e,t,n,r,o,i,s){let a=t+n;return Tf(e,a,o,i)?kv(e,a+2,s?r.call(s,o,i):r(o,i)):Kv(e,a+2)}function jf(e,t){let n=Re(),r,o=e+Pe;n.firstCreatePass?(r=Kw(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=Un(r.type,!0)),s,a=We(T);try{let c=za(!1),l=i();return za(c),$u(n,z(),o,l),l}finally{We(a)}}function Kw(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Vf(e,t,n,r){let o=e+Pe,i=z(),s=Hu(i,o);return Jw(i,o)?Yw(i,Ju(),t,s.transform,n,r,s):s.transform(n,r)}function Jw(e,t){return e[N].data[t].pure}function Vr(e,t){return pc(e,t)}var ec=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Bf=(()=>{class e{compileModuleSync(n){return new Ja(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Su(n),i=rv(o.declarations).reduce((s,a)=>{let c=zn(a);return c&&s.push(new vo(c)),s},[]);return new ec(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Jv=(()=>{class e{applicationErrorHandler=m(rt);appRef=m(In);taskService=m(yn);ngZone=m(Ze);zonelessEnabled=m(wi);tracing=m(En,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new be;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(li):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(cd,{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?Rg:od;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(li+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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xv(){return[{provide:fn,useExisting:Jv},{provide:Ze,useClass:ui},{provide:wi,useValue:!0}]}function Xw(){return typeof $localize<"u"&&$localize.locale||Hi}var $i=new x("",{factory:()=>m($i,{optional:!0,skipSelf:!0})||Xw()});function ne(e){return Vh(e)}function Ce(e,t){return Ts(e,t?.equal)}var ex=e=>e;function Uf(e,t){if(typeof e=="function"){let n=au(e,ex,t?.equal);return ey(n,t?.debugName)}else{let n=au(e.source,e.computation,e.equal);return ey(n,e.debugName)}}function ey(e,t){let n=e[Ee],r=e;return r.set=o=>Lh(n,o),r.update=o=>jh(n,o),r.asReadonly=Oa.bind(e),r}var sy=Symbol("InputSignalNode#UNSET"),_x=k(b({},Os),{transformFn:void 0,applyValueToInputSignal(e,t){mr(e,t)}});function ay(e,t){let n=Object.create(_x);n.value=e,n.transformFn=t?.transform;function r(){if(fr(n),n.value===sy){let o=null;throw new C(-950,o)}return n.value}return r[Ee]=n,r}var bc=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>ki(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function ty(e,t){return ay(e,t)}function bx(e){return ay(sy,e)}var cy=(ty.required=bx,ty);var Hf=new x(""),Cx=new x("");function zi(e){return!e.moduleRef}function Dx(e){let t=zi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ze);return n.run(()=>{zi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(rt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),zi(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Hf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Hf);s.add(i),e.moduleRef.onDestroy(()=>{Si(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return wx(r,n,()=>{let i=t.get(yn),s=i.add(),a=t.get(Ff);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get($i,Hi);if(Gv(c||Hi),!t.get(Cx,!0))return zi(e)?t.get(In):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(zi(e)){let u=t.get(In);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return Ex?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var Ex;function wx(e,t,n){try{let r=n();return tr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var _c=null;function xx(e=[],t){return Ne.create({name:t,providers:[{provide:gi,useValue:"platform"},{provide:Hf,useValue:new Set([()=>_c=null])},...e]})}function Ix(e=[]){if(_c)return _c;let t=xx(e);return _c=t,zv(),Mx(t),t}function Mx(e){let t=e.get(nc,null);xe(e,()=>{t?.forEach(n=>n())})}var Sx=1e4;var HU=Sx-1e3;var Sn=(()=>{class e{static __NG_ELEMENT_ID__=Tx}return e})();function Tx(e){return Ax(Ue(),z(),(e&16)===16)}function Ax(e,t,n){if(mn(e)&&!n){let r=nt(e.index,t);return new Jn(r,r)}else if(e.type&175){let r=t[vt];return new Jn(r,t)}return null}var $f=class{supports(t){return Sf(t)}create(t){return new zf(t)}},Ox=(e,t)=>t,zf=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Ox}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<ny(r,o,i)?n:r,a=ny(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let y=0;y<l;y++){let v=y<i.length?i[y]:i[y]=0,E=v+y;u<=E&&E<l&&(i[y]=v+1)}let p=s.previousIndex;i[p]=u-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Sf(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Pv(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new qf(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Cc),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Cc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},qf=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Gf=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Cc=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Gf,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ny(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function ry(){return new Wf([new $f])}var Wf=(()=>{class e{factories;static \u0275prov=w({token:e,providedIn:"root",factory:ry});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=m(e,{optional:!0,skipSelf:!0});return e.create(n,r||ry())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new C(901,!1)}}return e})();function ly(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;te(W.BootstrapApplicationStart);try{let i=o?.injector??Ix(r),s=[Xv(),Fg,...n||[]],a=new Ni({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return Dx({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{te(W.BootstrapApplicationEnd)}}function Br(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var uy=null;function wt(){return uy}function Zf(e){uy??=e}var qi=class{},Io=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>m(dy),providedIn:"platform"})}return e})();var dy=(()=>{class e extends Io{_location;_history;_doc=m(pe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wt().getBaseHref(this._doc)}onPopState(n){let r=wt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=wt().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=w({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function hy(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function fy(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function rr(e){return e&&e[0]!=="?"?`?${e}`:e}var Mo=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>m(Px),providedIn:"root"})}return e})(),Nx=new x(""),Px=(()=>{class e extends Mo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??m(pe).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 hy(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+rr(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+rr(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+rr(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)(O(Io),O(Nx,8))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var So=(()=>{class e{_subject=new ve;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Fx(fy(py(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+rr(r))}normalize(n){return e.stripTrailingSlash(kx(this._basePath,py(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+rr(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+rr(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=rr;static joinWithSlash=hy;static stripTrailingSlash=fy;static \u0275fac=function(r){return new(r||e)(O(Mo))};static \u0275prov=w({token:e,factory:()=>Rx(),providedIn:"root"})}return e})();function Rx(){return new So(O(Mo))}function kx(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function py(e){return e.replace(/\/index.html$/,"")}function Fx(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var He=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(He||{}),re=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(re||{}),Ye=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ye||{}),An={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 yy(e){return st(e)[me.LocaleId]}function _y(e,t,n){let r=st(e),o=[r[me.DayPeriodsFormat],r[me.DayPeriodsStandalone]],i=xt(o,t);return xt(i,n)}function by(e,t,n){let r=st(e),o=[r[me.DaysFormat],r[me.DaysStandalone]],i=xt(o,t);return xt(i,n)}function Cy(e,t,n){let r=st(e),o=[r[me.MonthsFormat],r[me.MonthsStandalone]],i=xt(o,t);return xt(i,n)}function Dy(e,t){let r=st(e)[me.Eras];return xt(r,t)}function Gi(e,t){let n=st(e);return xt(n[me.DateFormat],t)}function Wi(e,t){let n=st(e);return xt(n[me.TimeFormat],t)}function Zi(e,t){let r=st(e)[me.DateTimeFormat];return xt(r,t)}function Qi(e,t){let n=st(e),r=n[me.NumberSymbols][t];if(typeof r>"u"){if(t===An.CurrencyDecimal)return n[me.NumberSymbols][An.Decimal];if(t===An.CurrencyGroup)return n[me.NumberSymbols][An.Group]}return r}function Ey(e){if(!e[me.ExtraData])throw new C(2303,!1)}function wy(e){let t=st(e);return Ey(t),(t[me.ExtraData][2]||[]).map(r=>typeof r=="string"?Qf(r):[Qf(r[0]),Qf(r[1])])}function xy(e,t,n){let r=st(e);Ey(r);let o=[r[me.ExtraData][0],r[me.ExtraData][1]],i=xt(o,t)||[];return xt(i,n)||[]}function xt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new C(2304,!1)}function Qf(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Lx=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Dc={},jx=/((?:[^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 Iy(e,t,n,r){let o=Wx(e);t=Tn(n,t)||t;let s=[],a;for(;t;)if(a=jx.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=Sy(r,c),o=Gx(o,r));let l="";return s.forEach(u=>{let p=zx(u);l+=p?p(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Mc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Tn(e,t){let n=yy(e);if(Dc[n]??={},Dc[n][t])return Dc[n][t];let r="";switch(t){case"shortDate":r=Gi(e,Ye.Short);break;case"mediumDate":r=Gi(e,Ye.Medium);break;case"longDate":r=Gi(e,Ye.Long);break;case"fullDate":r=Gi(e,Ye.Full);break;case"shortTime":r=Wi(e,Ye.Short);break;case"mediumTime":r=Wi(e,Ye.Medium);break;case"longTime":r=Wi(e,Ye.Long);break;case"fullTime":r=Wi(e,Ye.Full);break;case"short":let o=Tn(e,"shortTime"),i=Tn(e,"shortDate");r=Ec(Zi(e,Ye.Short),[o,i]);break;case"medium":let s=Tn(e,"mediumTime"),a=Tn(e,"mediumDate");r=Ec(Zi(e,Ye.Medium),[s,a]);break;case"long":let c=Tn(e,"longTime"),l=Tn(e,"longDate");r=Ec(Zi(e,Ye.Long),[c,l]);break;case"full":let u=Tn(e,"fullTime"),p=Tn(e,"fullDate");r=Ec(Zi(e,Ye.Full),[u,p]);break}return r&&(Dc[n][t]=r),r}function Ec(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ut(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Vx(e,t){return Ut(e,3).substring(0,t)}function _e(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Bx(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Vx(a,t);let c=Qi(s,An.MinusSign);return Ut(a,t,c,r,o)}}function Bx(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 C(2301,!1)}}function oe(e,t,n=He.Format,r=!1){return function(o,i){return Ux(o,i,e,t,n,r)}}function Ux(e,t,n,r,o,i){switch(n){case 2:return Cy(t,o,r)[e.getMonth()];case 1:return by(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=wy(t),u=xy(t,o,r),p=l.findIndex(y=>{if(Array.isArray(y)){let[v,E]=y,A=s>=v.hours&&a>=v.minutes,M=s<E.hours||s===E.hours&&a<E.minutes;if(v.hours<E.hours){if(A&&M)return!0}else if(A||M)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(p!==-1)return u[p]}return _y(t,o,r)[s<12?0:1];case 3:return Dy(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new C(2302,!1)}}function wc(e){return function(t,n,r){let o=-1*r,i=Qi(n,An.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Ut(s,2,i)+Ut(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Ut(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Ut(s,2,i)+":"+Ut(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Ut(s,2,i)+":"+Ut(Math.abs(o%60),2,i);default:throw new C(2310,!1)}}}var Hx=0,Ic=4;function $x(e){let t=Mc(e,Hx,1).getDay();return Mc(e,0,1+(t<=Ic?Ic:Ic+7)-t)}function My(e){let t=e.getDay(),n=t===0?-3:Ic-t;return Mc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Yf(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=My(n),s=$x(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ut(o,e,Qi(r,An.MinusSign))}}function xc(e,t=!1){return function(n,r){let i=My(n).getFullYear();return Ut(i,e,Qi(r,An.MinusSign),t)}}var Kf={};function zx(e){if(Kf[e])return Kf[e];let t;switch(e){case"G":case"GG":case"GGG":t=oe(3,re.Abbreviated);break;case"GGGG":t=oe(3,re.Wide);break;case"GGGGG":t=oe(3,re.Narrow);break;case"y":t=_e(0,1,0,!1,!0);break;case"yy":t=_e(0,2,0,!0,!0);break;case"yyy":t=_e(0,3,0,!1,!0);break;case"yyyy":t=_e(0,4,0,!1,!0);break;case"Y":t=xc(1);break;case"YY":t=xc(2,!0);break;case"YYY":t=xc(3);break;case"YYYY":t=xc(4);break;case"M":case"L":t=_e(1,1,1);break;case"MM":case"LL":t=_e(1,2,1);break;case"MMM":t=oe(2,re.Abbreviated);break;case"MMMM":t=oe(2,re.Wide);break;case"MMMMM":t=oe(2,re.Narrow);break;case"LLL":t=oe(2,re.Abbreviated,He.Standalone);break;case"LLLL":t=oe(2,re.Wide,He.Standalone);break;case"LLLLL":t=oe(2,re.Narrow,He.Standalone);break;case"w":t=Yf(1);break;case"ww":t=Yf(2);break;case"W":t=Yf(1,!0);break;case"d":t=_e(2,1);break;case"dd":t=_e(2,2);break;case"c":case"cc":t=_e(7,1);break;case"ccc":t=oe(1,re.Abbreviated,He.Standalone);break;case"cccc":t=oe(1,re.Wide,He.Standalone);break;case"ccccc":t=oe(1,re.Narrow,He.Standalone);break;case"cccccc":t=oe(1,re.Short,He.Standalone);break;case"E":case"EE":case"EEE":t=oe(1,re.Abbreviated);break;case"EEEE":t=oe(1,re.Wide);break;case"EEEEE":t=oe(1,re.Narrow);break;case"EEEEEE":t=oe(1,re.Short);break;case"a":case"aa":case"aaa":t=oe(0,re.Abbreviated);break;case"aaaa":t=oe(0,re.Wide);break;case"aaaaa":t=oe(0,re.Narrow);break;case"b":case"bb":case"bbb":t=oe(0,re.Abbreviated,He.Standalone,!0);break;case"bbbb":t=oe(0,re.Wide,He.Standalone,!0);break;case"bbbbb":t=oe(0,re.Narrow,He.Standalone,!0);break;case"B":case"BB":case"BBB":t=oe(0,re.Abbreviated,He.Format,!0);break;case"BBBB":t=oe(0,re.Wide,He.Format,!0);break;case"BBBBB":t=oe(0,re.Narrow,He.Format,!0);break;case"h":t=_e(3,1,-12);break;case"hh":t=_e(3,2,-12);break;case"H":t=_e(3,1);break;case"HH":t=_e(3,2);break;case"m":t=_e(4,1);break;case"mm":t=_e(4,2);break;case"s":t=_e(5,1);break;case"ss":t=_e(5,2);break;case"S":t=_e(6,1);break;case"SS":t=_e(6,2);break;case"SSS":t=_e(6,3);break;case"Z":case"ZZ":case"ZZZ":t=wc(0);break;case"ZZZZZ":t=wc(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=wc(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=wc(2);break;default:return null}return Kf[e]=t,t}function Sy(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function qx(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Gx(e,t,n){let o=e.getTimezoneOffset(),i=Sy(t,o);return qx(e,-1*(i-o))}function Wx(e){if(gy(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 Mc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Lx))return Zx(r)}let t=new Date(e);if(!gy(t))throw new C(2311,!1);return t}function Zx(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 gy(e){return e instanceof Date&&!isNaN(e.valueOf())}var Sc=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},$e=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Sc(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),my(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);my(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(T(xn),T(Xn),T(Wf))};static \u0275dir=se({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function my(e,t){e.context.$implicit=t.item}var at=(()=>{class e{_viewContainer;_context=new Tc;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){vy(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){vy(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(T(xn),T(Xn))};static \u0275dir=se({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Tc=class{$implicit=null;ngIf=null};function vy(e,t){if(e&&!e.createEmbeddedView)throw new C(2020,!1)}function Qx(e,t){return new C(2100,!1)}var Yx="mediumDate",Ty=new x(""),Ay=new x(""),Jf=(()=>{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??Yx,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Iy(n,s,i||this.locale,a)}catch(s){throw Qx(e,s.message)}}static \u0275fac=function(r){return new(r||e)(T($i,16),T(Ty,24),T(Ay,24))};static \u0275pipe=Of({name:"date",type:e,pure:!0})}return e})();var Ie=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Jt({type:e});static \u0275inj=Nt({})}return e})();function Yi(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 Ur=class{};var Oy="browser";var Ki=class{_doc;constructor(t){this._doc=t}manager},Ac=(()=>{class e extends Ki{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)(O(pe))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Pc=new x(""),np=(()=>{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 Ac));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ac);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 C(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(O(Pc),O(Ze))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Xf="ng-app-id";function Ny(e){for(let t of e)t.remove()}function Py(e,t){let n=t.createElement("style");return n.textContent=e,n}function Kx(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Xf}="${t}"],link[${Xf}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Xf),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 tp(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var rp=(()=>{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,Kx(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Py);r?.forEach(o=>this.addUsage(o,this.external,tp))}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&&(Ny(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Ny(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Py(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,tp(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)(O(pe),O(tc),O(rc,8),O(Fi))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ep={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"},op=/%COMP%/g;var ky="%COMP%",Jx=`_nghost-${ky}`,Xx=`_ngcontent-${ky}`,eI=!0,tI=new x("",{factory:()=>eI});function nI(e){return Xx.replace(op,e)}function rI(e){return Jx.replace(op,e)}function Fy(e,t){return t.map(n=>n.replace(op,e))}var ip=(()=>{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 Ji(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Nc?o.applyToHost(n):o instanceof Xi&&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,p=this.tracingService;switch(r.encapsulation){case Ft.Emulated:i=new Nc(c,l,r,this.appId,u,s,a,p);break;case Ft.ShadowDom:return new Oc(c,n,r,s,a,this.nonce,p,l);case Ft.ExperimentalIsolatedShadowDom:return new Oc(c,n,r,s,a,this.nonce,p);default:i=new Xi(c,l,r,u,s,a,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(O(np),O(rp),O(tc),O(tI),O(pe),O(Ze),O(rc),O(En,8))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Ji=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(ep[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ry(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ry(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 C(-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=ep[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ep[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&(Yt.DashCase|Yt.Important)?t.style.setProperty(n,r,o&Yt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Yt.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=wt().getGlobalEventTarget(this.doc,t),!t))throw new C(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 Ry(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Oc=class extends Ji{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=Fy(r.id,l);for(let p of l){let y=document.createElement("style");s&&y.setAttribute("nonce",s),y.textContent=p,this.shadowRoot.appendChild(y)}let u=r.getExternalStyles?.();if(u)for(let p of u){let y=tp(p,o);s&&y.setAttribute("nonce",s),this.shadowRoot.appendChild(y)}}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)}},Xi=class extends Ji{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?Fy(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Nc=class extends Xi{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=nI(l),this.hostAttr=rI(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 Rc=class e extends qi{supportsDOMEvents=!0;static makeCurrent(){Zf(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=oI();return n==null?null:iI(n)}resetBaseElement(){es=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Yi(document.cookie,t)}},es=null;function oI(){return es=es||document.head.querySelector("base"),es?es.getAttribute("href"):null}function iI(e){return new URL(e,document.baseURI).pathname}var sI=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Ly=["alt","control","meta","shift"],aI={"\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"},cI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},jy=(()=>{class e extends Ki{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(()=>wt().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."),Ly.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=aI[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"),Ly.forEach(s=>{if(s!==o){let a=cI[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)(O(pe))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();async function sp(e,t,n){let r=b({rootComponent:e},lI(t,n));return ly(r)}function lI(e,t){return{platformRef:t?.platformRef,appProviders:[...hI,...e?.providers??[]],platformProviders:pI}}function uI(){Rc.makeCurrent()}function dI(){return new Ot}function fI(){return ef(document),document}var pI=[{provide:Fi,useValue:Oy},{provide:nc,useValue:uI,multi:!0},{provide:pe,useFactory:fI}];var hI=[{provide:gi,useValue:"root"},{provide:Ot,useFactory:dI},{provide:Pc,useClass:Ac,multi:!0},{provide:Pc,useClass:jy,multi:!0},ip,rp,np,{provide:Fr,useExisting:ip},{provide:Ur,useClass:sI},[]];var rn=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 Fc=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()}},Lc=class{encodeKey(t){return Vy(t)}encodeValue(t){return Vy(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function gI(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 mI=/%(\d[a-f0-9])/gi,vI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vy(e){return encodeURIComponent(e).replace(mI,(t,n)=>vI[n]??t)}function kc(e){return`${e}`}var Nn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Lc,t.fromString){if(t.fromObject)throw new C(2805,!1);this.map=gI(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(kc):[kc(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(kc(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(kc(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 yI(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function By(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Uy(e){return typeof Blob<"u"&&e instanceof Blob}function Hy(e){return typeof FormData<"u"&&e instanceof FormData}function _I(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var $y="Content-Type",zy="Accept",qy="text/plain",Gy="application/json",bI=`${Gy}, ${qy}, */*`,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(yI(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 C(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 rn,this.context??=new Fc,!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?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||By(this.body)||Uy(this.body)||Hy(this.body)||_I(this.body)?this.body:this.body instanceof Nn?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Hy(this.body)?null:Uy(this.body)?this.body.type||null:By(this.body)?null:typeof this.body=="string"?qy:this.body instanceof Nn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Gy:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,p=t.referrer||this.referrer,y=t.integrity||this.integrity,v=t.referrerPolicy||this.referrerPolicy,E=t.transferCache??this.transferCache,A=t.timeout??this.timeout,M=t.body!==void 0?t.body:this.body,I=t.withCredentials??this.withCredentials,Fe=t.reportProgress??this.reportProgress,Mt=t.headers||this.headers,De=t.params||this.params,Zo=t.context??this.context;return t.setHeaders!==void 0&&(Mt=Object.keys(t.setHeaders).reduce((Qo,ur)=>Qo.set(ur,t.setHeaders[ur]),Mt)),t.setParams&&(De=Object.keys(t.setParams).reduce((Qo,ur)=>Qo.set(ur,t.setParams[ur]),De)),new e(n,r,M,{params:De,headers:Mt,context:Zo,reportProgress:Fe,responseType:o,withCredentials:I,transferCache:E,keepalive:i,cache:a,priority:s,timeout:A,mode:c,redirect:l,credentials:u,referrer:p,integrity:y,referrerPolicy:v})}},Hr=(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})(Hr||{}),Ao=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new rn,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}},jc=class e extends Ao{constructor(t={}){super(t)}type=Hr.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})}},ts=class e extends Ao{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Hr.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})}},nn=class extends Ao{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}},CI=200,DI=204;var EI=new x("");var wI=/^\)\]\}',?\n/;var cp=(()=>{class e{xhrFactory;tracingService=m(En,{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 C(-2800,!1);let r=this.xhrFactory;return $(null).pipe(Je(()=>new q(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((M,I)=>s.setRequestHeader(M,I.join(","))),n.headers.has(zy)||s.setRequestHeader(zy,bI),!n.headers.has($y)){let M=n.detectContentTypeHeader();M!==null&&s.setRequestHeader($y,M)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let M=n.responseType.toLowerCase();s.responseType=M!=="json"?M:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let M=s.statusText||"OK",I=new rn(s.getAllResponseHeaders()),Fe=s.responseURL||n.url;return c=new jc({headers:I,status:s.status,statusText:M,url:Fe}),c},u=this.maybePropagateTrace(()=>{let{headers:M,status:I,statusText:Fe,url:Mt}=l(),De=null;I!==DI&&(De=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=De?CI:0);let Zo=I>=200&&I<300;if(n.responseType==="json"&&typeof De=="string"){let Qo=De;De=De.replace(wI,"");try{De=De!==""?JSON.parse(De):null}catch(ur){De=Qo,Zo&&(Zo=!1,De={error:ur,text:De})}}Zo?(i.next(new ts({body:De,headers:M,status:I,statusText:Fe,url:Mt||void 0})),i.complete()):i.error(new nn({error:De,headers:M,status:I,statusText:Fe,url:Mt||void 0}))}),p=this.maybePropagateTrace(M=>{let{url:I}=l(),Fe=new nn({error:M,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});i.error(Fe)}),y=p;n.timeout&&(y=this.maybePropagateTrace(M=>{let{url:I}=l(),Fe=new nn({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:I||void 0});i.error(Fe)}));let v=!1,E=this.maybePropagateTrace(M=>{v||(i.next(l()),v=!0);let I={type:Hr.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(I.total=M.total),n.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),i.next(I)}),A=this.maybePropagateTrace(M=>{let I={type:Hr.UploadProgress,loaded:M.loaded};M.lengthComputable&&(I.total=M.total),i.next(I)});return s.addEventListener("load",u),s.addEventListener("error",p),s.addEventListener("timeout",y),s.addEventListener("abort",p),n.reportProgress&&(s.addEventListener("progress",E),a!==null&&s.upload&&s.upload.addEventListener("progress",A)),s.send(a),i.next({type:Hr.Sent}),()=>{s.removeEventListener("error",p),s.removeEventListener("abort",p),s.removeEventListener("load",u),s.removeEventListener("timeout",y),n.reportProgress&&(s.removeEventListener("progress",E),a!==null&&s.upload&&s.upload.removeEventListener("progress",A)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(O(Ur))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xI(e,t){return t(e)}function II(e,t,n){return(r,o)=>xe(n,()=>t(r,i=>e(i,o)))}var Wy=new x("",{factory:()=>[]}),Zy=new x(""),Qy=new x("",{factory:()=>!0});var lp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=O(cp),o},providedIn:"root"})}return e})();var Vc=(()=>{class e{backend;injector;chain=null;pendingTasks=m(po);contributeToStability=m(Qy);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Wy),...this.injector.get(Zy,[])]));this.chain=r.reduceRight((o,i)=>II(o,i,this.injector),xI)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ft(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(O(lp),O(le))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),up=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=O(Vc),o},providedIn:"root"})}return e})();function ap(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 or=(()=>{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 rn?c=o.headers:c=new rn(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=$(i).pipe(ro(c=>this.handler.handle(c)));if(n instanceof To||o.observe==="events")return s;let a=s.pipe(At(c=>c instanceof ts));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Y(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new C(2806,!1);return c.body}));case"blob":return a.pipe(Y(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new C(2807,!1);return c.body}));case"text":return a.pipe(Y(c=>{if(c.body!==null&&typeof c.body!="string")throw new C(2808,!1);return c.body}));default:return a.pipe(Y(c=>c.body))}case"response":return a;default:throw new C(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,ap(o,r))}post(n,r,o={}){return this.request("POST",n,ap(o,r))}put(n,r,o={}){return this.request("PUT",n,ap(o,r))}static \u0275fac=function(r){return new(r||e)(O(up))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var MI=new x("",{factory:()=>!0}),SI="XSRF-TOKEN",TI=new x("",{factory:()=>SI}),AI="X-XSRF-TOKEN",OI=new x("",{factory:()=>AI}),NI=(()=>{class e{cookieName=m(TI);doc=m(pe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Yi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=O(NI),o},providedIn:"root"})}return e})();function PI(e,t){if(!m(MI)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=m(Io).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=m(Yy).getToken(),r=m(OI);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function dp(...e){let t=[or,Vc,{provide:up,useExisting:Vc},{provide:lp,useFactory:()=>m(EI,{optional:!0})??m(cp)},{provide:Wy,useValue:PI,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return hn(t)}var Ky=(()=>{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)(O(pe))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var fp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=O(RI),o},providedIn:"root"})}return e})(),RI=(()=>{class e extends fp{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Ct.NONE:return r;case Ct.HTML:return Kt(r,"HTML")?Lt(r):ic(this._doc,String(r)).toString();case Ct.STYLE:return Kt(r,"Style")?Lt(r):r;case Ct.SCRIPT:if(Kt(r,"Script"))return Lt(r);throw new C(5200,!1);case Ct.URL:return Kt(r,"URL")?Lt(r):Li(String(r));case Ct.RESOURCE_URL:if(Kt(r,"ResourceURL"))return Lt(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return rf(n)}bypassSecurityTrustStyle(n){return of(n)}bypassSecurityTrustScript(n){return sf(n)}bypassSecurityTrustUrl(n){return af(n)}bypassSecurityTrustResourceUrl(n){return cf(n)}static \u0275fac=function(r){return new(r||e)(O(pe))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var B="primary",gs=Symbol("RouteTitle"),vp=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 zr(e){return new vp(e)}function pp(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return!1}return!0}function i_(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},l=e.slice(0,r.length);return pp(r,l,c)?{consumed:l,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return!pp(i,e.slice(0,i.length),a)||!pp(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function qc(e){return new Promise((t,n)=>{e.pipe(un()).subscribe({next:r=>t(r),error:r=>n(r)})})}function FI(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!on(e[n],t[n]))return!1;return!0}function on(e,t){let n=e?yp(e):void 0,r=t?yp(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!s_(e[o],t[o]))return!1;return!0}function yp(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function s_(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function LI(e){return e.length>0?e[e.length-1]:null}function Wr(e){return Xs(e)?e:tr(e)?fe(Promise.resolve(e)):$(e)}function a_(e){return Xs(e)?qc(e):Promise.resolve(e)}var jI={exact:u_,subset:d_},c_={exact:VI,subset:BI,ignored:()=>!0},l_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_p={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Jy(e,t,n){return jI[n.paths](e.root,t.root,n.matrixParams)&&c_[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function VI(e,t){return on(e,t)}function u_(e,t,n){if(!$r(e.segments,t.segments)||!Hc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!u_(e.children[r],t.children[r],n))return!1;return!0}function BI(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>s_(e[n],t[n]))}function d_(e,t,n){return f_(e,t,t.segments,n)}function f_(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!$r(o,n)||t.hasChildren()||!Hc(o,n,r))}else if(e.segments.length===n.length){if(!$r(e.segments,n)||!Hc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!d_(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!$r(e.segments,o)||!Hc(e.segments,o,r)||!e.children[B]?!1:f_(e.children[B],t,i,r)}}function Hc(e,t,n){return t.every((r,o)=>c_[n](e[o].parameters,r.parameters))}var lt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new X([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=zr(this.queryParams),this._queryParamMap}toString(){return $I.serialize(this)}},X=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 $c(this)}},ir=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=zr(this.parameters),this._parameterMap}toString(){return h_(this)}};function UI(e,t){return $r(e,t)&&e.every((n,r)=>on(n.parameters,t[r].parameters))}function $r(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function HI(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===B&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==B&&(n=n.concat(t(o,r)))}),n}var Vo=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new sr,providedIn:"root"})}return e})(),sr=class{parse(t){let n=new Cp(t);return new lt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${ns(t.root,!0)}`,r=GI(t.queryParams),o=typeof t.fragment=="string"?`#${zI(t.fragment)}`:"";return`${n}${r}${o}`}},$I=new sr;function $c(e){return e.segments.map(t=>h_(t)).join("/")}function ns(e,t){if(!e.hasChildren())return $c(e);if(t){let n=e.children[B]?ns(e.children[B],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==B&&r.push(`${o}:${ns(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=HI(e,(r,o)=>o===B?[ns(e.children[B],!1)]:[`${o}:${ns(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[B]!=null?`${$c(e)}/${n[0]}`:`${$c(e)}/(${n.join("//")})`}}function p_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bc(e){return p_(e).replace(/%3B/gi,";")}function zI(e){return encodeURI(e)}function bp(e){return p_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zc(e){return decodeURIComponent(e)}function Xy(e){return zc(e.replace(/\+/g,"%20"))}function h_(e){return`${bp(e.path)}${qI(e.parameters)}`}function qI(e){return Object.entries(e).map(([t,n])=>`;${bp(t)}=${bp(n)}`).join("")}function GI(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Bc(n)}=${Bc(o)}`).join("&"):`${Bc(n)}=${Bc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var WI=/^[^\/()?;#]+/;function hp(e){let t=e.match(WI);return t?t[0]:""}var ZI=/^[^\/()?;=#]+/;function QI(e){let t=e.match(ZI);return t?t[0]:""}var YI=/^[^=?&#]+/;function KI(e){let t=e.match(YI);return t?t[0]:""}var JI=/^[^&#]+/;function XI(e){let t=e.match(JI);return t?t[0]:""}var Cp=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new X([],{}):new X([],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 C(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[B]=new X(n,r)),o}parseSegment(){let t=hp(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new ir(zc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=QI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=hp(this.remaining);o&&(r=o,this.capture(r))}t[zc(n)]=zc(r)}parseQueryParam(t){let n=KI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=XI(this.remaining);s&&(r=s,this.capture(r))}let o=Xy(n),i=Xy(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=hp(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=B);let a=this.parseChildren(n+1);r[s??B]=Object.keys(a).length===1&&a[B]?a[B]:new X([],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 C(4011,!1)}};function g_(e){return e.segments.length>0?new X([],{[B]:e}):e}function m_(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=m_(o);if(r===B&&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 X(e.segments,t);return eM(n)}function eM(e){if(e.numberOfChildren===1&&e.children[B]){let t=e.children[B];return new X(e.segments.concat(t.segments),t.children)}return e}function ar(e){return e instanceof lt}function v_(e,t,n=null,r=null,o=new sr){let i=y_(e);return __(i,t,n,r,o)}function y_(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 X(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=g_(r);return t??o}function __(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return gp(i,i,i,n,r,o);let s=tM(t);if(s.toRoot())return gp(i,i,new X([],{}),n,r,o);let a=nM(s,i,e),c=a.processChildren?os(a.segmentGroup,a.index,s.commands):C_(a.segmentGroup,a.index,s.commands);return gp(i,a.segmentGroup,c,n,r,o)}function Gc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function as(e){return typeof e=="object"&&e!=null&&e.outlets}function e_(e,t,n){e||="\u0275";let r=new lt;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function gp(e,t,n,r,o,i){let s={};for(let[l,u]of Object.entries(r??{}))s[l]=Array.isArray(u)?u.map(p=>e_(l,p,i)):e_(l,u,i);let a;e===t?a=n:a=b_(e,t,n);let c=g_(m_(a));return new lt(c,s,o)}function b_(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=b_(i,t,n)}),new X(e.segments,r)}var Wc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Gc(r[0]))throw new C(4003,!1);let o=r.find(as);if(o&&o!==LI(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function tM(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Wc(!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 Wc(n,t,r)}var No=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function nM(e,t,n){if(e.isAbsolute)return new No(t,!0,0);if(!n)return new No(t,!1,NaN);if(n.parent===null)return new No(n,!0,0);let r=Gc(e.commands[0])?0:1,o=n.segments.length-1+r;return rM(n,o,e.numberOfDoubleDots)}function rM(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new No(r,!1,o-i)}function oM(e){return as(e[0])?e[0].outlets:{[B]:e}}function C_(e,t,n){if(e??=new X([],{}),e.segments.length===0&&e.hasChildren())return os(e,t,n);let r=iM(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new X(e.segments.slice(0,r.pathIndex),{});return i.children[B]=new X(e.segments.slice(r.pathIndex),e.children),os(i,0,o)}else return r.match&&o.length===0?new X(e.segments,{}):r.match&&!e.hasChildren()?Dp(e,t,n):r.match?os(e,0,o):Dp(e,t,n)}function os(e,t,n){if(n.length===0)return new X(e.segments,{});{let r=oM(n),o={};if(Object.keys(r).some(i=>i!==B)&&e.children[B]&&e.numberOfChildren===1&&e.children[B].segments.length===0){let i=os(e.children[B],t,n);return new X(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=C_(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new X(e.segments,o)}}function iM(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(as(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!n_(c,l,s))return i;r+=2}else{if(!n_(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Dp(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(as(i)){let c=sM(i.outlets);return new X(r,c)}if(o===0&&Gc(n[0])){let c=e.segments[t];r.push(new ir(c.path,t_(n[0]))),o++;continue}let s=as(i)?i.outlets[B]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Gc(a)?(r.push(new ir(s,t_(a))),o+=2):(r.push(new ir(s,{})),o++)}return new X(r,{})}function sM(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Dp(new X([],{}),0,r))}),t}function t_(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function n_(e,t,n){return e==n.path&&on(t,n.parameters)}var is="imperative",Me=(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})(Me||{}),ut=class{id;url;constructor(t,n){this.id=t,this.url=n}},qr=class extends ut{type=Me.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}')`}},an=class extends ut{urlAfterRedirects;type=Me.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ze=(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})(ze||{}),cs=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(cs||{}),It=class extends ut{reason;code;type=Me.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 D_(e){return e instanceof It&&(e.code===ze.Redirect||e.code===ze.SupersededByNewNavigation)}var Rn=class extends ut{reason;code;type=Me.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},Gr=class extends ut{error;target;type=Me.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})`}},ls=class extends ut{urlAfterRedirects;state;type=Me.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})`}},Zc=class extends ut{urlAfterRedirects;state;type=Me.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})`}},Qc=class extends ut{urlAfterRedirects;state;shouldActivate;type=Me.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 ut{urlAfterRedirects;state;type=Me.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})`}},Kc=class extends ut{urlAfterRedirects;state;type=Me.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})`}},Jc=class{route;type=Me.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Xc=class{route;type=Me.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},el=class{snapshot;type=Me.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tl=class{snapshot;type=Me.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nl=class{snapshot;type=Me.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rl=class{snapshot;type=Me.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ro=class{},us=class{},ko=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function aM(e){return!(e instanceof Ro)&&!(e instanceof ko)&&!(e instanceof us)}var ol=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 Bo(this.rootInjector)}},Bo=(()=>{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 ol(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(O(le))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),il=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=Ep(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Ep(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=wp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return wp(t,this._root).map(n=>n.value)}};function Ep(e,t){if(e===t.value)return t;for(let n of t.children){let r=Ep(e,n);if(r)return r}return null}function wp(e,t){if(e===t.value)return[t];for(let n of t.children){let r=wp(e,n);if(r.length)return r.unshift(t),r}return[]}var ct=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 ds=class extends il{snapshot;constructor(t,n){super(t),this.snapshot=n,Pp(this,t)}toString(){return this.snapshot.toString()}};function E_(e,t){let n=cM(e,t),r=new Te([new ir("",{})]),o=new Te({}),i=new Te({}),s=new Te({}),a=new Te(""),c=new dt(r,o,s,a,i,B,e,n.root);return c.snapshot=n.root,new ds(new ct(c,[]),n)}function cM(e,t){let n={},r={},o={},s=new Fo([],n,o,"",r,B,e,null,{},t);return new fs("",new ct(s,[]))}var dt=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(Y(l=>l[gs]))??$(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(Y(t=>zr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Y(t=>zr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Np(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:b(b({},t.params),e.params),data:b(b({},t.data),e.data),resolve:b(b(b(b({},e.data),t.data),o?.data),e._resolvedData)}:r={params:b({},e.params),data:b({},e.data),resolve:b(b({},e.data),e._resolvedData??{})},o&&x_(o)&&(r.resolve[gs]=o.title),r}var Fo=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[gs]}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??=zr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=zr(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}')`}},fs=class extends il{url;constructor(t,n){super(n),this.url=t,Pp(this,n)}toString(){return w_(this._root)}};function Pp(e,t){t.value._routerState=e,t.children.forEach(n=>Pp(e,n))}function w_(e){let t=e.children.length>0?` { ${e.children.map(w_).join(", ")} } `:"";return`${e.value}${t}`}function mp(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,on(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),on(t.params,n.params)||e.paramsSubject.next(n.params),FI(t.url,n.url)||e.urlSubject.next(n.url),on(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function xp(e,t){let n=on(e.params,t.params)&&UI(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||xp(e.parent,t.parent))}function x_(e){return typeof e.title=="string"||e.title===null}var I_=new x(""),ms=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=B;activateEvents=new ye;deactivateEvents=new ye;attachEvents=new ye;detachEvents=new ye;routerOutletData=cy();parentContexts=m(Bo);location=m(xn);changeDetector=m(Sn);inputBinder=m(ll,{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 C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(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 C(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Ip(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=se({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Cn]})}return e})(),Ip=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===dt?this.route:t===Bo?this.childContexts:t===I_?this.outletData:this.parent.get(t,n)}},ll=new x("");var Rp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=ie({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&R(0,"router-outlet")},dependencies:[ms],encapsulation:2})}return e})();function kp(e){let t=e.children&&e.children.map(kp),n=t?k(b({},e),{children:t}):b({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==B&&(n.component=Rp),n}function lM(e,t,n){let r=ps(e,t._root,n?n._root:void 0);return new ds(r,t)}function ps(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=uM(e,t,n);return new ct(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=>ps(e,a)),s}}let r=dM(t.value),o=t.children.map(i=>ps(e,i));return new ct(r,o)}}function uM(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ps(e,r,o);return ps(e,r)})}function dM(e){return new dt(new Te(e.url),new Te(e.params),new Te(e.queryParams),new Te(e.fragment),new Te(e.data),e.outlet,e.component,e)}var Lo=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},M_="ngNavigationCancelingError";function sl(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=ar(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=S_(!1,ze.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function S_(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[M_]=!0,n.cancellationCode=t,n}function fM(e){return T_(e)&&ar(e.url)}function T_(e){return!!e&&e[M_]}var Mp=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),mp(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 rl(i.value.snapshot))}),t.children.length&&this.forwardEvent(new tl(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(mp(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),mp(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)}},al=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Po=class{component;route;constructor(t,n){this.component=t,this.route=n}};function pM(e,t,n){let r=e._root,o=t?t._root:null;return rs(r,o,n,[r.value])}function hM(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Uo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Du(e)?e:t.get(e):r}function rs(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Oo(t);return e.children.forEach(s=>{gM(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ss(a,n.getContext(s),o)),o}function gM(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=mM(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new al(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?rs(e,t,a?a.children:null,r,o):rs(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Po(a.outlet.component,s))}else s&&ss(t,a,o),o.canActivateChecks.push(new al(r)),i.component?rs(e,null,a?a.children:null,r,o):rs(e,null,n,r,o);return o}function mM(e,t,n){if(typeof n=="function")return xe(t._environmentInjector,()=>n(e,t));switch(n){case"pathParamsChange":return!$r(e.url,t.url);case"pathParamsOrQueryParamsChange":return!$r(e.url,t.url)||!on(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xp(e,t)||!on(e.queryParams,t.queryParams);default:return!xp(e,t)}}function ss(e,t,n){let r=Oo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?ss(s,t.children.getContext(i),n):ss(s,null,n):ss(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Po(t.outlet.component,o)):n.canDeactivateChecks.push(new Po(null,o)):n.canDeactivateChecks.push(new Po(null,o))}function vs(e){return typeof e=="function"}function vM(e){return typeof e=="boolean"}function yM(e){return e&&vs(e.canLoad)}function _M(e){return e&&vs(e.canActivate)}function bM(e){return e&&vs(e.canActivateChild)}function CM(e){return e&&vs(e.canDeactivate)}function DM(e){return e&&vs(e.canMatch)}function A_(e){return e instanceof Cr||e?.name==="EmptyError"}var Uc=Symbol("INITIAL_VALUE");function jo(){return Je(e=>ru(e.map(t=>t.pipe(ln(1),iu(Uc)))).pipe(Y(t=>{for(let n of t)if(n!==!0){if(n===Uc)return Uc;if(n===!1||EM(n))return n}return!0}),At(t=>t!==Uc),ln(1)))}function EM(e){return ar(e)||e instanceof Lo}function O_(e){return e.aborted?$(void 0).pipe(ln(1)):new q(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function N_(e){return oi(O_(e))}function wM(e){return Ge(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?$(k(b({},t),{guardsResult:!0})):xM(i,n,r).pipe(Ge(s=>s&&vM(s)?IM(n,o,e):$(s)),Y(s=>k(b({},t),{guardsResult:s})))})}function xM(e,t,n){return fe(e).pipe(Ge(r=>OM(r.component,r.route,n,t)),un(r=>r!==!0,!0))}function IM(e,t,n){return fe(t).pipe(ro(r=>no(SM(r.route.parent,n),MM(r.route,n),AM(e,r.path),TM(e,r.route))),un(r=>r!==!0,!0))}function MM(e,t){return e!==null&&t&&t(new nl(e)),$(!0)}function SM(e,t){return e!==null&&t&&t(new el(e)),$(!0)}function TM(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return $(!0);let r=n.map(o=>ni(()=>{let i=t._environmentInjector,s=Uo(o,i),a=_M(s)?s.canActivate(t,e):xe(i,()=>s(t,e));return Wr(a).pipe(un())}));return $(r).pipe(jo())}function AM(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>hM(i)).filter(i=>i!==null).map(i=>ni(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,l=Uo(a,c),u=bM(l)?l.canActivateChild(n,e):xe(c,()=>l(n,e));return Wr(u).pipe(un())});return $(s).pipe(jo())}));return $(o).pipe(jo())}function OM(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return $(!0);let i=o.map(s=>{let a=t._environmentInjector,c=Uo(s,a),l=CM(c)?c.canDeactivate(e,t,n,r):xe(a,()=>c(e,t,n,r));return Wr(l).pipe(un())});return $(i).pipe(jo())}function NM(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return $(!0);let s=i.map(a=>{let c=Uo(a,e),l=yM(c)?c.canLoad(t,n):xe(e,()=>c(t,n)),u=Wr(l);return o?u.pipe(N_(o)):u});return $(s).pipe(jo(),P_(r))}function P_(e){return Jl(pt(t=>{if(typeof t!="boolean")throw sl(e,t)}),Y(t=>t===!0))}function PM(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return $(!0);let a=s.map(c=>{let l=Uo(c,e),u=DM(l)?l.canMatch(t,n,o):xe(e,()=>l(t,n,o));return Wr(u).pipe(N_(i))});return $(a).pipe(jo(),P_(r))}var Pn=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype)}},hs=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype)}};function RM(e){throw new C(4e3,!1)}function kM(e){throw S_(!1,ze.GuardRejected)}var Sp=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[B])throw RM(`${t.redirectTo}`);o=o.children[B]}}async applyRedirectCommands(t,n,r,o,i){let s=await FM(n,o,i);if(s instanceof lt)throw new hs(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new hs(a);return a}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new lt(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 X(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 C(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 FM(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return qc(Wr(xe(n,()=>r(t))))}function LM(e,t){return e.providers&&!e._injector&&(e._injector=Ui(e.providers,t,`Route: ${e.path}`)),e._injector??t}function sn(e){return e.outlet||B}function jM(e,t){let n=e.filter(r=>sn(r)===t);return n.push(...e.filter(r=>sn(r)!==t)),n}var Tp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function R_(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 VM(e,t,n,r,o,i,s){let a=k_(e,t,n);if(!a.matched)return $(a);let c=R_(i(a));return r=LM(t,r),PM(r,t,n,o,c,s).pipe(Y(l=>l===!0?a:b({},Tp)))}function k_(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?b({},Tp):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||i_)(n,e,t);if(!o)return b({},Tp);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?b(b({},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 r_(e,t,n,r){return n.length>0&&HM(e,n,r)?{segmentGroup:new X(t,UM(r,new X(n,e.children))),slicedSegments:[]}:n.length===0&&$M(e,n,r)?{segmentGroup:new X(e.segments,BM(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new X(e.segments,e.children),slicedSegments:n}}function BM(e,t,n,r){let o={};for(let i of n)if(ul(e,t,i)&&!r[sn(i)]){let s=new X([],{});o[sn(i)]=s}return b(b({},r),o)}function UM(e,t){let n={};n[B]=t;for(let r of e)if(r.path===""&&sn(r)!==B){let o=new X([],{});n[sn(r)]=o}return n}function HM(e,t,n){return n.some(r=>ul(e,t,r)&&sn(r)!==B)}function $M(e,t,n){return n.some(r=>ul(e,t,r))}function ul(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function zM(e,t,n){return t.length===0&&!e.children[n]}var Ap=class{};async function qM(e,t,n,r,o,i,s="emptyOnly",a){return new Op(e,t,n,r,o,s,i,a).recognize()}var GM=31,Op=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 Sp(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,`'${t.segmentGroup}'`)}async recognize(){let t=r_(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(t),o=new ct(r,n),i=new fs("",o),s=v_(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 Fo([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),B,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,t,B,n),rootSnapshot:n}}catch(r){if(r instanceof hs)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Pn?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 ct?[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=jM(n,c),p=await this.processSegmentGroup(t,u,l,c,o);s.push(...p)}let a=F_(s);return WM(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 Pn||A_(l))continue;throw l}if(zM(r,o,i))return new Ap;throw new Pn(r)}async processSegmentAgainstRoute(t,n,r,o,i,s,a,c){if(sn(r)!==s&&(s===B||!ul(o,i,r)))throw new Pn(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 Pn(o)}async expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:p,remainingSegments:y}=k_(n,o,i);if(!c)throw new Pn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>GM&&(this.allowRedirects=!1));let v=this.createSnapshot(t,o,i,l,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let E=await this.applyRedirects.applyRedirectCommands(u,o.redirectTo,p,R_(v),t),A=await this.applyRedirects.lineralizeSegments(o,E);return this.processSegment(t,r,n,A.concat(y),s,!1,a)}createSnapshot(t,n,r,o,i){let s=new Fo(r,o,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,QM(n),sn(n),n.component??n._loadedComponent??null,n,YM(n),t),a=Np(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=Mt=>this.createSnapshot(t,r,Mt.consumedSegments,Mt.parameters,s),c=await qc(VM(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new Pn(n);t=r._injector??t;let{routes:l}=await this.getChildConfig(t,r,o),u=r._loadedInjector??t,{parameters:p,consumedSegments:y,remainingSegments:v}=c,E=this.createSnapshot(t,r,y,p,s),{segmentGroup:A,slicedSegments:M}=r_(n,y,v,l);if(M.length===0&&A.hasChildren()){let Mt=await this.processChildren(u,l,A,E);return new ct(E,Mt)}if(l.length===0&&M.length===0)return new ct(E,[]);let I=sn(r)===i,Fe=await this.processSegment(u,l,A,M,I?B:i,!0,E);return new ct(E,Fe instanceof ct?[Fe]:[])}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 qc(NM(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 kM(n)}return{routes:[],injector:t}}};function WM(e){e.sort((t,n)=>t.value.outlet===B?-1:n.value.outlet===B?1:t.value.outlet.localeCompare(n.value.outlet))}function ZM(e){let t=e.value.routeConfig;return t&&t.path===""}function F_(e){let t=[],n=new Set;for(let r of e){if(!ZM(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=F_(r.children);t.push(new ct(r.value,o))}return t.filter(r=>!n.has(r))}function QM(e){return e.data||{}}function YM(e){return e.resolve||{}}function KM(e,t,n,r,o,i,s){return Ge(async a=>{let{state:c,tree:l}=await qM(e,t,n,r,a.extractedUrl,o,i,s);return k(b({},a),{targetSnapshot:c,urlAfterRedirects:l})})}function JM(e){return Ge(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return $(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 L_(a))i.add(c);let s=0;return fe(i).pipe(ro(a=>o.has(a)?XM(a,n,e):(a.data=Np(a,a.parent,e).resolve,$(void 0))),pt(()=>s++),ra(1),Ge(a=>s===i.size?$(t):Ae))})}function L_(e){let t=e.children.map(n=>L_(n)).flat();return[e,...t]}function XM(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!x_(r)&&(o[gs]=r.title),ni(()=>(e.data=Np(e,e.parent,n).resolve,eS(o,e,t).pipe(Y(i=>(e._resolvedData=i,e.data=b(b({},e.data),i),null)))))}function eS(e,t,n){let r=yp(e);if(r.length===0)return $({});let o={};return fe(r).pipe(Ge(i=>tS(e[i],t,n).pipe(un(),pt(s=>{if(s instanceof Lo)throw sl(new sr,s);o[i]=s}))),ra(1),Y(()=>o),ri(i=>A_(i)?Ae:nu(i)))}function tS(e,t,n){let r=t._environmentInjector,o=Uo(e,r),i=o.resolve?o.resolve(t,n):xe(r,()=>o(t,n));return Wr(i)}function o_(e){return Je(t=>{let n=e(t);return n?fe(n).pipe(Y(()=>t)):$(t)})}var Fp=(()=>{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===B);return r}getResolvedTitleForRoute(n){return n.data[gs]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>m(j_),providedIn:"root"})}return e})(),j_=(()=>{class e extends Fp{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)(O(Ky))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ho=new x("",{factory:()=>({})}),ys=new x(""),V_=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=m(Bf);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 a_(xe(n,()=>r.loadComponent())),s=await H_(U_(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 B_(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function B_(e,t,n,r){let o=await a_(xe(n,()=>e.loadChildren())),i=await H_(U_(o)),s;i instanceof gc||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(ys,[],{optional:!0,self:!0}).flat()),{routes:c.map(kp),injector:a,factory:u}}function nS(e){return e&&typeof e=="object"&&"default"in e}function U_(e){return nS(e)?e.default:e}async function H_(e){return e}var dl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>m(rS),providedIn:"root"})}return e})(),rS=(()=>{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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$_=new x("");var oS=()=>{},z_=new x(""),q_=(()=>{class e{currentNavigation=L(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=L(null);events=new ve;transitionAbortWithErrorSubject=new ve;configLoader=m(V_);environmentInjector=m(le);destroyRef=m(ke);urlSerializer=m(Vo);rootContexts=m(Bo);location=m(So);inputBindingEnabled=m(ll,{optional:!0})!==null;titleStrategy=m(Fp);options=m(Ho,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=m(dl);createViewTransition=m($_,{optional:!0});navigationErrorHandler=m(z_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>$(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Jc(o)),r=o=>this.events.next(new Xc(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;ne(()=>{this.transitions?.next(k(b({},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 Te(null),this.transitions.pipe(At(r=>r!==null),Je(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return $(r).pipe(Je(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",ze.SupersededByNewNavigation),Ae;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?k(b({},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 Rn(a.id,this.urlSerializer.serialize(a.rawUrl),"",cs.IgnoredSameUrlNavigation)),a.resolve(!1),Ae;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return $(a).pipe(Je(p=>(this.events.next(new qr(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?Ae:Promise.resolve(p))),KM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),pt(p=>{r.targetSnapshot=p.targetSnapshot,r.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=p.urlAfterRedirects,y)),this.events.next(new us)}),Je(p=>fe(r.routesRecognizeHandler.deferredHandle??$(void 0)).pipe(Y(()=>p))),pt(()=>{let p=new ls(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:v,restoredState:E,extras:A}=a,M=new qr(p,this.urlSerializer.serialize(y),v,E);this.events.next(M);let I=E_(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=k(b({},a),{targetSnapshot:I,urlAfterRedirects:y,extras:k(b({},A),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Fe=>(Fe.finalUrl=y,Fe)),$(r)}else return this.events.next(new Rn(a.id,this.urlSerializer.serialize(a.extractedUrl),"",cs.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Ae}),Y(a=>{let c=new Zc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=k(b({},a),{guards:pM(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),wM(a=>this.events.next(a)),Je(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw sl(this.urlSerializer,a.guardsResult);let c=new Qc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return Ae;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",ze.GuardRejected),Ae;if(a.guards.canActivateChecks.length===0)return $(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 Ae;let u=!1;return $(a).pipe(JM(this.paramsInheritanceStrategy),pt({next:()=>{u=!0;let p=new Kc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>{u||this.cancelNavigationTransition(a,"",ze.NoDataFromResolver)}}))}),o_(a=>{let c=u=>{let p=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let y=u._environmentInjector;p.push(this.configLoader.loadComponent(y,u.routeConfig).then(v=>{u.component=v}))}for(let y of u.children)p.push(...c(y));return p},l=c(a.targetSnapshot.root);return l.length===0?$(a):fe(Promise.all(l).then(()=>a))}),o_(()=>this.afterPreactivation()),Je(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?fe(l).pipe(Y(()=>r)):$(r)}),ln(1),Je(a=>{let c=lM(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=k(b({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ro);let l=r.beforeActivateHandler.deferredHandle;return l?fe(l.then(()=>a)):$(a)}),pt(a=>{new Mp(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=oS,c)),this.lastSuccessfulNavigation.set(ne(this.currentNavigation)),this.events.next(new an(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),oi(O_(i.signal).pipe(At(()=>!o&&!r.targetRouterState),pt(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",ze.Aborted)}))),pt({complete:()=>{o=!0}}),oi(this.transitionAbortWithErrorSubject.pipe(pt(a=>{throw a}))),ft(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",ze.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ri(a=>{if(o=!0,this.destroyed)return r.resolve(!1),Ae;if(T_(a))this.events.next(new It(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),fM(a)?this.events.next(new ko(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new Gr(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let l=xe(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Lo){let{message:u,cancellationCode:p}=sl(this.urlSerializer,l);this.events.next(new It(r.id,this.urlSerializer.serialize(r.extractedUrl),u,p)),this.events.next(new ko(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return Ae}))}))}cancelNavigationTransition(n,r,o){let i=new It(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=ne(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iS(e){return e!==is}var G_=new x("");var W_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>m(sS),providedIn:"root"})}return e})(),cl=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}},sS=(()=>{class e extends cl{static \u0275fac=(()=>{let n;return function(o){return(n||(n=bt(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fl=(()=>{class e{urlSerializer=m(Vo);options=m(Ho,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=m(So);urlHandlingStrategy=m(dl);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new lt;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 lt?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=E_(null,m(le));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=w({token:e,factory:()=>m(aS),providedIn:"root"})}return e})(),aS=(()=>{class e extends fl{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 qr?this.updateStateMemento():n instanceof Rn?this.commitTransition(r):n instanceof ls?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Ro?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof It&&!D_(n)?this.restoreHistory(r):n instanceof Gr?this.restoreHistory(r,!0):n instanceof an&&(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=b(b({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=b(b({},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=bt(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Lp(e,t){e.events.pipe(At(n=>n instanceof an||n instanceof It||n instanceof Gr||n instanceof Rn),Y(n=>n instanceof an||n instanceof Rn?0:(n instanceof It?n.code===ze.Redirect||n.code===ze.SupersededByNewNavigation:!1)?2:1),At(n=>n!==2),ln(1)).subscribe(()=>{t()})}var Se=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=m(mc);stateManager=m(fl);options=m(Ho,{optional:!0})||{};pendingTasks=m(yn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=m(q_);urlSerializer=m(Vo);location=m(So);urlHandlingStrategy=m(dl);injector=m(le);_events=new ve;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=m(W_);injectorCleanup=m(G_,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=m(ys,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!m(ll,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new be;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=ne(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof It&&r.code!==ze.Redirect&&r.code!==ze.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof an)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof ko){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=b({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||iS(o.source)},s);this.scheduleNavigation(a,is,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}aM(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),is,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=b({},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(rt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return ne(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(kp),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=b(b({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let p;try{let y=o?o.snapshot:this.routerState.snapshot.root;p=y_(y)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),p=this.currentUrlTree.root}return __(p,n,u,l??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=ar(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,is,null,r)}navigate(n,r={skipLocationChange:!1}){return cS(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(pn(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=b({},l_):r===!1?o=b({},_p):o=b(b({},_p),r),ar(n))return Jy(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Jy(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((p,y)=>{a=p,c=y});let u=this.pendingTasks.add();return Lp(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cS(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new C(4008,!1)}var dS=(()=>{class e{router=m(Se);stateManager=m(fl);fragment=L("");queryParams=L({});path=L("");serializer=m(Vo);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof an&&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 lt(r)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cn=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=m(new bc("href"),{optional:!0});reactiveHref=Uf(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return ne(this.reactiveHref)}set href(n){this.reactiveHref.set(n)}set target(n){this._target.set(n)}get target(){return ne(this._target)}_target=L(void 0);set queryParams(n){this._queryParams.set(n)}get queryParams(){return ne(this._queryParams)}_queryParams=L(void 0,{equal:()=>!1});set fragment(n){this._fragment.set(n)}get fragment(){return ne(this._fragment)}_fragment=L(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n)}get queryParamsHandling(){return ne(this._queryParamsHandling)}_queryParamsHandling=L(void 0);set state(n){this._state.set(n)}get state(){return ne(this._state)}_state=L(void 0,{equal:()=>!1});set info(n){this._info.set(n)}get info(){return ne(this._info)}_info=L(void 0,{equal:()=>!1});set relativeTo(n){this._relativeTo.set(n)}get relativeTo(){return ne(this._relativeTo)}_relativeTo=L(void 0);set preserveFragment(n){this._preserveFragment.set(n)}get preserveFragment(){return ne(this._preserveFragment)}_preserveFragment=L(!1);set skipLocationChange(n){this._skipLocationChange.set(n)}get skipLocationChange(){return ne(this._skipLocationChange)}_skipLocationChange=L(!1);set replaceUrl(n){this._replaceUrl.set(n)}get replaceUrl(){return ne(this._replaceUrl)}_replaceUrl=L(!1);isAnchorElement;onChanges=new ve;applicationErrorHandler=m(rt);options=m(Ho,{optional:!0});reactiveRouterState=m(dS);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)):(ar(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=Ce(()=>{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:ar(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 ne(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)(T(Se),T(dt),ki("tabindex"),T(wn),T(ot),T(Mo))};static \u0275dir=se({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&S("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Xt("href",o.reactiveHref(),lf)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Br],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Br],replaceUrl:[2,"replaceUrl","replaceUrl",Br],routerLink:"routerLink"},features:[Cn]})}return e})();var fS=new x("");function jp(e,...t){return hn([{provide:ys,multi:!0,useValue:e},[],{provide:dt,useFactory:pS},{provide:vc,multi:!0,useFactory:hS},t.map(n=>n.\u0275providers)])}function pS(){return m(Se).routerState.root}function hS(){let e=m(Ne);return t=>{let n=e.get(In);if(t!==n.components[0])return;let r=e.get(Se),o=e.get(gS);e.get(mS)===1&&r.initialNavigation(),e.get(vS,null,{optional:!0})?.setUpPreloading(),e.get(fS,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var gS=new x("",{factory:()=>new ve}),mS=new x("",{factory:()=>1});var vS=new x("");var Bp=[{slug:"formacao-plataforma",category:"Formacao",categoryIcons:["/categorias/extratos.svg","/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg","/categorias/tesouraria.svg"],title:"Metacase Learning Hub",description:"Tutorial de funcionamento da plataforma das forma\xE7\xF5es base do ecosistema TargetOne.",summary:`O Metacase Learning Hub \xE9 a plataforma oficial de aprendizagem e capacita\xE7\xE3o dedicada ao ecossistema Target One, concebida para apoiar utilizadores, parceiros e equipas t\xE9cnicas no dom\xEDnio completo das funcionalidades, processos e boas pr\xE1ticas associadas a este programa.
A plataforma Target One, desenvolvida pela MetaCase, constitui um conjunto de componentes especializados destinados \xE0 gest\xE3o integrada dos fluxos financeiros das organiza\xE7\xF5es, permitindo centralizar opera\xE7\xF5es, automatizar processos e fornecer informa\xE7\xE3o fi\xE1vel para suporte \xE0 tomada de decis\xE3o. Neste contexto, o Metacase Learning Hub surge como um ambiente digital estruturado de forma\xE7\xE3o cont\xEDnua que re\xFAne conte\xFAdos program\xE1ticos, cursos especializados e recursos t\xE9cnicos que permitem compreender e explorar todo o potencial da plataforma Target One.
Inspirado nos modelos de academias tecnol\xF3gicas globais, o Metacase Learning Hub funciona como um reposit\xF3rio centralizado de conhecimento.`,topics:["Gest\xE3o de fluxos financeiros","Reconcilia\xE7\xF5es banc\xE1rias","Gest\xE3o de pagamentos e cobran\xE7as","Integra\xE7\xE3o com sistemas ERP","Previs\xE3o de tesouraria e liquidez","Processos operacionais, estrat\xE9gicos e de controlo financeiro"],level:"Iniciante",duration:"1h 00min",language:"Portugu\xEAs",format:"Aut\xF3nomo",image:"imagenscursos/learninghub.png",focusAreas:["Navegacao da plataforma","Pesquisa e filtros","Operacoes do dia a dia"],prerequisites:["Nenhum"],audience:["Todos os utilizadores"],objectives:["Conhecer a plataforma da Metacase Learning Hub","Iniciar a forma\xE7\xE3o","Validar conhecimentos"],outcomes:["Compreensao do fluxo base de trabalho","Autonomia para consultas e operacoes simples","Conhecimento das melhores praticas de utilizacao"],modules:[{title:"Vis\xE3o geral da plataforma",duration:"15 min",description:"Mapa funcional da aplica\xE7\xE3o Metacase Learning Hub."},{title:"Detalhe das p\xE1ginas da forma\xE7\xE3o",duration:"20 min",description:"Descri\xE7\xE3o da forma\xE7\xE3o, desde compet\xEAncias a adquirir objetivos espec\xEDficos da mesma e tempo de dura\xE7\xE3o."},{title:"Estrutura das forma\xE7\xF5es",duration:"10 min",description:"Execu\xE7\xE3o das forma\xE7\xF5es per si, divis\xE3o de conte\xFAdos program\xE1ticos, desde texto a intera\xE7\xF5es de v\xEDdeo."},{title:"Perguntas de valida\xE7\xE3o",duration:"15 min",description:"Detalhe dos v\xE1rios tipos de perguntas de cariz validativo, que podem complementar a forma\xE7\xE3o."}],lessonSections:[{title:"Vis\xE3o geral da plataforma",paragraphs:[`<strong>Aprendizagem estruturada e orientada \xE0 pr\xE1tica</strong>
O Metacase Learning Hub foi concebido para proporcionar uma experi\xEAncia de aprendizagem progressiva e pr\xE1tica. Cada curso aborda cen\xE1rios reais de utiliza\xE7\xE3o do Target One, permitindo aos participantes compreender n\xE3o apenas as funcionalidades t\xE9cnicas da plataforma, mas tamb\xE9m os processos de neg\xF3cio que esta suporta.
A organiza\xE7\xE3o dos conte\xFAdos segue uma l\xF3gica modular, permitindo que cada utilizador construa o seu pr\xF3prio percurso de aprendizagem, evoluindo desde conceitos fundamentais at\xE9 n\xEDveis mais avan\xE7ados de configura\xE7\xE3o, integra\xE7\xE3o e otimiza\xE7\xE3o de processos.
<strong> Capacita\xE7\xE3o para utilizadores, parceiros e especialistas </strong>
A plataforma desempenha tamb\xE9m um papel estrat\xE9gico no onboarding e capacita\xE7\xE3o de novos utilizadores e parceiros, garantindo que todas as equipas que trabalham com o Target One possuem um entendimento consistente da arquitetura, das funcionalidades e das melhores pr\xE1ticas de utiliza\xE7\xE3o. Ao consolidar conhecimento, documenta\xE7\xE3o e forma\xE7\xE3o num \xFAnico ambiente digital, o Metacase Learning Hub promove:`],bullets:["Maior autonomia dos utilizadores na opera\xE7\xE3o da plataforma","Maior rapidez na ado\xE7\xE3o de novas funcionalidades","Padroniza\xE7\xE3o de processos e boas pr\xE1ticas","Desenvolvimento cont\xEDnuo de compet\xEAncias no ecossistema Target One"],paragraphs2:[`<strong>Um centro de conhecimento para inova\xE7\xE3o financeira</strong>
Mais do que um simples portal de forma\xE7\xE3o, o Metacase Learning Hub posiciona-se como um centro de conhecimento e capacita\xE7\xE3o tecnol\xF3gica, permitindo que organiza\xE7\xF5es e profissionais tirem o m\xE1ximo partido das capacidades da plataforma Target One e das solu\xE7\xF5es de gest\xE3o de fluxos financeiros desenvolvidas pela MetaCase. Ao combinar aprendizagem estruturada, conte\xFAdos t\xE9cnicos especializados e uma abordagem orientada \xE0 pr\xE1tica, o Metacase Learning Hub contribui para acelerar a ado\xE7\xE3o do Target One e para maximizar o valor que esta plataforma pode trazer \xE0 gest\xE3o financeira das organiza\xE7\xF5es.
`],imagem:"/screenshots/Pagina Principal.jpg",paragraphs3:[""],paragraphs4:[""],paragraphs5:[""]},{title:"Detalhe das p\xE1ginas da forma\xE7\xE3o",paragraphs:[`O Metacase Learning Hub \xE9 estruturado, na sua base, como uma biblioteca centralizada de cursos, apresentados na p\xE1gina principal da plataforma. Estes cursos representam componentes essenciais para a correta utiliza\xE7\xE3o e compreens\xE3o do ecossistema TargetOne, reunindo conte\xFAdos formativos que abordam os principais processos, funcionalidades e contextos operacionais associados \xE0 plataforma.
Cada curso encontra-se representado atrav\xE9s de um cart\xE3o informativo, onde \xE9 disponibilizada uma descri\xE7\xE3o sucinta do conte\xFAdo formativo, a \xE1rea tem\xE1tica a que se refere e a respetiva dura\xE7\xE3o estimada em horas. O acesso a cada forma\xE7\xE3o \xE9 efetuado atrav\xE9s do bot\xE3o \u201CEntrar\u201D, dispon\xEDvel em cada cart\xE3o, permitindo ao utilizador iniciar diretamente o percurso de aprendizagem associado ao curso selecionado.
Esta abordagem permite organizar os conte\xFAdos de forma clara e intuitiva, facilitando a navega\xE7\xE3o e o acesso r\xE1pido \xE0s diferentes forma\xE7\xF5es dispon\xEDveis no portal.`],paragraphs2:[`Adicionalmente, no canto superior direito da interface, encontra-se disponibilizado um link de acesso r\xE1pido para a p\xE1gina principal da MetaCase, permitindo aos utilizadores navegar facilmente entre o portal de forma\xE7\xE3o e o website institucional da empresa. Esta funcionalidade refor\xE7a a integra\xE7\xE3o do Metacase Learning Hub no ecossistema digital da organiza\xE7\xE3o e facilita o acesso a informa\xE7\xE3o adicional sobre a empresa, os seus produtos e as solu\xE7\xF5es associadas \xE0 plataforma TargetOne.
`],paragraphs3:[`Ao aceder a um curso atrav\xE9s do bot\xE3o \u201CEntrar\u201D, o utilizador \xE9 direcionado para a p\xE1gina de descri\xE7\xE3o do curso selecionado, onde s\xE3o apresentadas as informa\xE7\xF5es essenciais sobre a forma\xE7\xE3o e a respetiva estrutura de conte\xFAdos. Esta p\xE1gina encontra-se organizada numa estrutura bipartida verticalmente, permitindo separar de forma clara a informa\xE7\xE3o geral da forma\xE7\xE3o da descri\xE7\xE3o detalhada dos seus conte\xFAdos.
<Strong>Primeira sec\xE7\xE3o \u2013 Informa\xE7\xE3o geral da forma\xE7\xE3o</strong>
Na primeira \xE1rea da p\xE1gina (vis\xEDvel na parte superior da interface), \xE9 apresentada uma vis\xE3o geral do curso, incluindo a sua designa\xE7\xE3o, uma descri\xE7\xE3o introdut\xF3ria e os principais elementos informativos associados \xE0 forma\xE7\xE3o.`],bullets2:["Descri\xE7\xE3o geral da forma\xE7\xE3o, que contextualiza o objetivo do curso e a sua rela\xE7\xE3o com o ecossistema TargetOne;","Dura\xE7\xE3o total estimada, permitindo ao utilizador compreender o tempo necess\xE1rio para concluir a forma\xE7\xE3o;","Formato da forma\xE7\xE3o, indicando se o percurso \xE9 realizado de forma Aut\xF3noma, Instructor-led, Live Online, Blended Learning, Microlearning ou ainda Certifica\xE7\xE3o;","N\xFAmero total de m\xF3dulos que comp\xF5em o curso."],paragraphs4:["Adicionalmente, \xE9 disponibilizado um bloco de informa\xE7\xE3o complementar da forma\xE7\xE3o, onde s\xE3o apresentados:"],bullets3:["N\xEDvel de dificuldade do curso;","Idioma em que a forma\xE7\xE3o \xE9 disponibilizada;","Formato de aprendizagem;.","Pr\xE9-requisitos necess\xE1rios para frequentar o curso;","P\xFAblico-alvo a quem a forma\xE7\xE3o se destina."],paragraphs5:[`Nesta mesma \xE1rea encontra-se tamb\xE9m um painel lateral de a\xE7\xE3o, que permite ao utilizador iniciar diretamente a forma\xE7\xE3o atrav\xE9s do bot\xE3o \u201CIniciar forma\xE7\xE3o\u201D, bem como regressar rapidamente ao menu principal das forma\xE7\xF5es.
`],imagem:"/screenshots/Descricaopgprincipal.jpg",imagem2:"/screenshots/detalhecurso.jpg",bullets4:["T\xEDtulo do m\xF3dulo;","Breve descri\xE7\xE3o do conte\xFAdo abordado;","Dura\xE7\xE3o estimada de cada unidade;.","compet\xEAncias a adequirir."],imagem3:"/screenshots/detalhecurso2.jpg",paragraphs6:[`
<strong>Segunda sec\xE7\xE3o \u2013 Estrutura e compet\xEAncias da forma\xE7\xE3o</strong>
Na segunda parte da p\xE1gina \xE9 apresentada uma descri\xE7\xE3o mais detalhada da estrutura pedag\xF3gica da forma\xE7\xE3o, permitindo ao utilizador compreender de forma clara os conte\xFAdos que ser\xE3o abordados ao longo da forma\xE7\xE3o. Adicionalmente na coluna direita s\xE3o apesentadas as compet\xEAncias expect\xE1veis de serem adequiridas no final da forma\xE7\xE3o.
Nesta \xE1rea \xE9 exibida a estrutura da forma\xE7\xE3o, organizada por li\xE7\xF5es ou m\xF3dulos, onde cada unidade apresenta:`]},{title:"Estrutura das forma\xE7\xF5es",paragraphs:[`Ao iniciar uma forma\xE7\xE3o, o utilizador \xE9 direcionado para a p\xE1gina principal do curso, que foi desenvolvida com base numa Single Page Application (SPA). Esta abordagem permite que todos os conte\xFAdos da forma\xE7\xE3o sejam apresentados de forma cont\xEDnua e fluida, sem necessidade de navegar entre m\xFAltiplas p\xE1ginas.
A forma\xE7\xE3o inicia-se com uma sec\xE7\xE3o de contextualiza\xE7\xE3o dos temas, onde \xE9 apresentado o enquadramento geral do curso, seguindo-se posteriormente os m\xF3dulos espec\xEDficos que comp\xF5em o percurso formativo.
A navega\xE7\xE3o entre os diferentes m\xF3dulos pode ser realizada atrav\xE9s de duas formas complementares. Por um lado, existe um menu lateral localizado no lado esquerdo da interface, que permite ao formando aceder diretamente aos diferentes m\xF3dulos da forma\xE7\xE3o. Por outro lado, \xE9 disponibilizada uma barra de progress\xE3o situada na parte superior direita da p\xE1gina, que permite acompanhar o progresso ao longo do curso e facilitar a navega\xE7\xE3o entre as diferentes sec\xE7\xF5es.
A Single Page Application foi concebida para proporcionar uma experi\xEAncia de aprendizagem sequencial e intuitiva, permitindo que o formando percorra os conte\xFAdos de forma cont\xEDnua. Assim, o utilizador pode simplesmente avan\xE7ar na leitura da forma\xE7\xE3o, uma vez que os m\xF3dulos foram organizados de forma sequencial e l\xF3gica, acompanhando a progress\xE3o natural dos temas abordados ao longo do curso.
`],paragraphs2:[],paragraphs3:[`As imagens, gr\xE1ficos e organigramas apresentados ao longo das forma\xE7\xF5es s\xE3o interativos, permitindo ao utilizador visualizar os conte\xFAdos com maior detalhe. Para tal, basta clicar sobre o elemento pretendido, sendo automaticamente aberta uma visualiza\xE7\xE3o ampliada.
Nesta visualiza\xE7\xE3o, \xE9 disponibilizado no canto superior um conjunto de ferramentas de intera\xE7\xE3o, que permitem ao utilizador explorar o conte\xFAdo apresentado. Entre estas funcionalidades incluem-se, por exemplo, op\xE7\xF5es de zoom, que permitem ampliar ou reduzir a imagem para uma melhor an\xE1lise, bem como o bot\xE3o de fecho, que possibilita regressar facilmente \xE0 p\xE1gina da forma\xE7\xE3o.`],paragraphs4:[""],imagem:"/screenshots/Curso.jpg",imagem2:"/screenshots/Curso1.2.jpg",paragraphs5:['Para al\xE9m dos videos, imagens e conte\xFAdo interativo, existe ainda as apresenta\xE7\xF5es interativas. Estas apresenta\xE7\xF5es t\xEAm a finalidade de permitir ao utilizar navegar entre um conjunto de informa\xE7\xE3o disponivel sobre uma mat\xE9ria e funciona da mesma forma que o explicado anteriormente para as imagens. Adicionalmente nestes casos quando estas apresenta\xE7\xF5es interativas surgem nos m\xF3dulos, permitem ao utilizador passar entre informa\xE7\xE3o atrav\xE9s de dois bot\xF5es de "Seguinte" para passar para o proximo slide e de "Anterior" para voltar ao slide anterior. No caso de o user quiser apenas o foco nestes slides basta clicar na imagem da apresenta\xE7\xE3o que esta foca o conteudo e os bot\xF5es de navega\xE7\xE3o passam para o canto superior direito junto ao zoom e ao bot\xE3o de fechar j\xE1 l\xE1 existentes.'],presentationImages:["/screenshots/Curso1.3.jpg","/screenshots/Curso1.4.jpg"]},{title:"Perguntas de valida\xE7\xE3o",paragraphs:[`No final de cada m\xF3dulo encontra-se disponibilizada uma sec\xE7\xE3o dedicada \xE0 valida\xE7\xE3o de conhecimentos, destinada a avaliar a compreens\xE3o dos conte\xFAdos abordados ao longo do m\xF3dulo. Esta avalia\xE7\xE3o \xE9 realizada atrav\xE9s de um conjunto de perguntas de escolha m\xFAltipla, sendo apresentadas tr\xEAs op\xE7\xF5es de resposta para cada quest\xE3o, das quais apenas uma \xE9 correta.
As perguntas s\xE3o selecionadas a partir de uma pool de quest\xF5es associadas \xE0 forma\xE7\xE3o, permitindo que estas variem entre diferentes tentativas. Desta forma, caso o formando repita o curso ou volte a realizar a avalia\xE7\xE3o, a probabilidade de encontrar exatamente as mesmas perguntas \xE9 reduzida, contribuindo para uma avalia\xE7\xE3o mais consistente dos conhecimentos adquiridos.
Adicionalmente, nos cursos que incluem mecanismos de certifica\xE7\xE3o, encontra-se definido um limiar m\xEDnimo de aprova\xE7\xE3o de 80% de respostas corretas. Caso o formando n\xE3o atinja este valor, o curso n\xE3o poder\xE1 ser conclu\xEDdo, sendo apresentada apenas a op\xE7\xE3o de repetir a forma\xE7\xE3o. Por outro lado, caso o formando obtenha uma pontua\xE7\xE3o igual ou superior a 80% de respostas corretas, a forma\xE7\xE3o \xE9 considerada conclu\xEDda, ficando dispon\xEDvel a op\xE7\xE3o de finalizar o curso.
Atualmente, todas as forma\xE7\xF5es est\xE3o configuradas para apresentar cinco perguntas no momento de valida\xE7\xE3o final, sendo estas selecionadas e apresentadas de forma aleat\xF3ria a partir da pool de quest\xF5es definida para cada curso.`],paragraphs2:[`A resposta \xE0s perguntas de valida\xE7\xE3o de conhecimentos \xE9 realizada atrav\xE9s da sele\xE7\xE3o da op\xE7\xE3o que o formando considera correta. Ap\xF3s a escolha da resposta, o sistema fornece feedback imediato, informando se a resposta selecionada est\xE1 correta ou incorreta.
Caso a resposta esteja correta, a op\xE7\xE3o escolhida \xE9 destacada com um contorno verde, indicando que a sele\xE7\xE3o foi acertada. Por outro lado, se a resposta estiver incorreta, a op\xE7\xE3o selecionada pelo formando \xE9 assinalada a vermelho, sendo simultaneamente destacada a verde a op\xE7\xE3o correspondente \xE0 resposta correta, permitindo assim ao utilizador identificar imediatamente a solu\xE7\xE3o correta para a quest\xE3o apresentada.
`],paragraphs3:[],paragraphs4:[""],imagem:"/screenshots/Curso2.jpg",paragraphs5:[""]}],questions:[{prompt:"Qual das seguintes \xE1reas faz parte das funcionalidades abordadas na plataforma Target One?",options:["Gest\xE3o de redes sociais corporativas.","Gest\xE3o de fluxos financeiros.","Desenvolvimento de aplica\xE7\xF5es m\xF3veis para clientes."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"Qual \xE9 o principal objetivo do Metacase Learning Hub?",options:["Servir apenas como reposit\xF3rio de documenta\xE7\xE3o t\xE9cnica do Target One.","Substituir completamente os sistemas ERP utilizados pelas organiza\xE7\xF5es.","Disponibilizar uma plataforma de aprendizagem e capacita\xE7\xE3o para utilizadores, parceiros e equipas t\xE9cnicas que trabalham com o ecossistema Target One."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2},{prompt:"Qual \xE9 o principal objetivo do Metacase Learning Hub?",options:["Servir como plataforma de gest\xE3o financeira para empresas.","Centralizar conte\xFAdos formativos e capacitar utilizadores no ecossistema TargetOne.","Substituir o website institucional da MetaCase."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2},{prompt:"Como s\xE3o apresentados os cursos na p\xE1gina principal da plataforma?",options:["Atrav\xE9s de cart\xF5es informativos com descri\xE7\xE3o, tema e dura\xE7\xE3o da forma\xE7\xE3o.","Atrav\xE9s de listas t\xE9cnicas sem qualquer descri\xE7\xE3o.","Atrav\xE9s de documentos PDF descarreg\xE1veis."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"O que acontece quando o utilizador seleciona o bot\xE3o \u201CEntrar\u201D num curso?",options:["\xC9 direcionado para a p\xE1gina de descri\xE7\xE3o detalhada da forma\xE7\xE3o selecionada.","\xC9 automaticamente inscrito em todas as forma\xE7\xF5es dispon\xEDveis.","\xC9 redirecionado para o website institucional da MetaCase."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Como est\xE1 organizada a p\xE1gina de descri\xE7\xE3o de um curso?",options:["Em tr\xEAs \xE1reas independentes sem liga\xE7\xE3o entre si.","Numa estrutura bipartida que separa informa\xE7\xE3o geral da estrutura da forma\xE7\xE3o.","Apenas numa lista simples de m\xF3dulos."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2},{prompt:"De que forma o utilizador pode navegar entre os m\xF3dulos da forma\xE7\xE3o?",options:["Apenas atrav\xE9s do bot\xE3o \u201Cvoltar atr\xE1s\u201D do navegador.","Atrav\xE9s do menu lateral e da barra de progress\xE3o da forma\xE7\xE3o.","Apenas utilizando um motor de pesquisa interno."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2}]},{slug:"Target One",category:"Formacao",categoryIcons:["/categorias/operacoes-financeiras.svg","/categorias/tesouraria.svg","/categorias/reconciliacoes-bancarias.svg"],pdfPath:"/Powerpoints/Manual%20Metacase.pdf",pdfTitle:"Manual Apresenta\xE7\xE3o Target One",pdfDescription:"Manual Apresenta\xE7\xE3o Target One",pdfDownloadName:"Manual Metacase.pdf",title:"Target One",description:"Descrimina\xE7\xE3o completa da plataforma base, para novos utilizadores.",summary:"A Plataforma Target One, desenvolvida pela MetaCase, \xE9 uma solu\xE7\xE3o integrada para a gest\xE3o e controlo dos fluxos financeiros de empresas e grupos empresariais. Atrav\xE9s da centraliza\xE7\xE3o da informa\xE7\xE3o financeira e da integra\xE7\xE3o com ERPs, sistemas internos e institui\xE7\xF5es financeiras, permite apoiar a tomada de decis\xE3o com dados fi\xE1veis em tempo real. O seu ecossistema \xE9 composto por diversas componentes interligadas que suportam processos essenciais de tesouraria, pagamentos, reconcilia\xE7\xF5es e opera\xE7\xF5es financeiras, garantindo efici\xEAncia, seguran\xE7a e escalabilidade na gest\xE3o financeira das organiza\xE7\xF5es.",topics:[],level:"Avancado",duration:"55 min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/targetone.png",focusAreas:["Plataforma Target One","T Painel de Controlo","T Par\xE2metros","T Extratos","T Reconcilia\xE7\xF5es","T Contabiliza\xE7\xE3o","T Tesouraria","T Pagamentos","T Cobran\xE7as & Recebimentos","T Caixas","T Opera\xE7\xF5es Financeiras","T Or\xE7amento"],prerequisites:["Metacase Learning Hub","Acesso ao Target One"],audience:["Todos"],objectives:["Compreender a plataforma Target One","Entender as no\xE7\xF5es b\xE1sicas das componentos do ecossistema Target One"],outcomes:["Maior dominio do fluxo financeiro","Melhor leitura dos movimentos e extratos","Mais rapidez no controlo e validacao diarios"],modules:[{title:"Plataforma Target One",duration:"5 min",description:"Explica\xE7\xE3o do programa Target One"},{title:"Descri\xE7\xE3o das Componentes do Target One",duration:"50 min",description:"Explica\xE7\xE3o das v\xE1rias componentes da plataforma."}],lessonSections:[{title:"TargetOne",paragraphs:[`A Target One \xE9 uma plataforma desenvolvida pela MetaCase para otimizar e controlar os fluxos financeiros de empresas e grupos, garantindo efici\xEAncia, seguran\xE7a e integra\xE7\xE3o com sistemas existentes. <strong>
Principais vantagens:
</strong>`],paragraphs2:[""],bullets:["Decis\xE3o informada com acesso a dados fi\xE1veis em tempo real;","Integra\xE7\xE3o global com ERPs, sistemas internos e institui\xE7\xF5es financeiras;","Seguran\xE7a e auditoria (SOX Compliance) com hist\xF3rico de altera\xE7\xF5es e controlo de acessos;","Flexibilidade e escalabilidade, permitindo integrar novas funcionalidades conforme as necessidades do neg\xF3cio;"],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Componentes TargetOne",paragraphs:["O ecossistema TargetOne \xE9 constitu\xEDdo por um conjunto de componentes que suportam a gest\xE3o integrada dos fluxos financeiros, nomeadamente o Painel de Controlo, Par\xE2metros, Extratos, Reconcilia\xE7\xF5es, Contabiliza\xE7\xE3o, Tesouraria, Pagamentos, Cobran\xE7as & Recebimentos, Caixas, Opera\xE7\xF5es Financeiras e Opera\xE7\xF5es de Or\xE7amento."],paragraphs2:[],presentationImages:["/Powerpoints/TargetOne/Diapositivo1.PNG","/Powerpoints/TargetOne/Diapositivo2.PNG","/Powerpoints/TargetOne/Diapositivo3.PNG","/Powerpoints/TargetOne/Diapositivo4.PNG","/Powerpoints/TargetOne/Diapositivo5.PNG","/Powerpoints/TargetOne/Diapositivo6.PNG","/Powerpoints/TargetOne/Diapositivo7.PNG","/Powerpoints/TargetOne/Diapositivo8.PNG","/Powerpoints/TargetOne/Diapositivo9.PNG","/Powerpoints/TargetOne/Diapositivo10.PNG","/Powerpoints/TargetOne/Diapositivo11.PNG","/Powerpoints/TargetOne/Diapositivo12.PNG","/Powerpoints/TargetOne/Diapositivo13.PNG","/Powerpoints/TargetOne/Diapositivo1.PNG"],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Conhecimentos a consolidar",paragraphs:["Usa esta secao para reforcar a interpretacao de desvios, excecoes e fecho diario.","Se quiseres, mais tarde podes acrescentar imagens, tabelas ou exemplos de casos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Qual \xE9 o principal objetivo da plataforma Target One?",options:["Gerir exclusivamente recursos humanos das empresas.","Permitir uma gest\xE3o eficaz, rigorosa e otimizada dos fluxos financeiros das empresas e grupos.","Substituir completamente os sistemas ERP das empresas."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"Uma das principais vantagens da plataforma Target One \xE9:",options:["Tomada de decis\xE3o baseada em informa\xE7\xF5es fi\xE1veis e em tempo \xFAtil.","Substitui\xE7\xE3o de todos os sistemas financeiros existentes.","Gest\xE3o exclusiva de contas banc\xE1rias pessoais."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"A conectividade da plataforma Target One permite:",options:["Integra\xE7\xE3o com ERPs, sistemas das empresas e institui\xE7\xF5es financeiras.","Liga\xE7\xE3o apenas a bases de dados locais.","Liga\xE7\xE3o apenas a sistemas de contabilidade offline."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite o acesso \xE0s v\xE1rias funcionalidades da plataforma e a gest\xE3o de permiss\xF5es?",options:["Tesouraria","Painel de Controlo","Opera\xE7\xF5es Financeiras"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"O componente T Par\xE2metros \xE9 utilizado principalmente para:",options:["Configura\xE7\xE3o e manuten\xE7\xE3o de cadastro transversal.","Execu\xE7\xE3o de pagamentos banc\xE1rios.","Cria\xE7\xE3o de contratos financeiros."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite a auditoria e gest\xE3o de informa\xE7\xE3o dos extratos banc\xE1rios?",options:["Extratos","Or\xE7amento","Caixas"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"A reconcilia\xE7\xE3o banc\xE1ria na plataforma Target One pode ser realizada de que forma?",options:["Apenas manualmente.","Autom\xE1tica e manual.","Apenas atrav\xE9s do ERP."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"O m\xF3dulo de Contabiliza\xE7\xE3o permite:",options:["Classifica\xE7\xE3o e contabiliza\xE7\xE3o autom\xE1tica de fluxos financeiros.","Gest\xE3o de recursos humanos.","Gest\xE3o de invent\xE1rio."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite obter uma vis\xE3o global da posi\xE7\xE3o de tesouraria da empresa?",options:["Tesouraria","Cobran\xE7as & Recebimentos","Caixas"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"O m\xF3dulo T Pagamentos permite:",options:["Apenas visualizar saldos banc\xE1rios.","Criar, aprovar e enviar propostas de pagamento para os bancos.","Gerir invent\xE1rio de produtos."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"Qual componente \xE9 respons\xE1vel pela gest\xE3o de cobran\xE7as e recebimentos das empresas?",options:["Cobran\xE7as & Recebimentos","Tesouraria","Par\xE2metros"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"O m\xF3dulo T Caixas permite:",options:["Gerir fechos de caixa e presta\xE7\xF5es de contas.","Gerir contratos financeiros.","Criar or\xE7amentos financeiros."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite gerir contratos associados a instrumentos financeiros?",options:["Opera\xE7\xF5es Financeiras","Pagamentos","Extratos"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"O m\xF3dulo T Or\xE7amento permite:",options:["Gest\xE3o do or\xE7amento de tesouraria e an\xE1lise de desvios.","Gest\xE3o de contas de clientes.","Gest\xE3o de sal\xE1rios."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual funcionalidade permite acompanhar o estado das propostas enviadas aos bancos?",options:["Reconcilia\xE7\xF5es","Pagamentos","Par\xE2metros"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1}]},{slug:"T Extratos",category:"Extratos",categoryIcons:["/categorias/operacoes-financeiras.svg","/categorias/tesouraria.svg","/categorias/reconciliacoes-bancarias.svg"],title:"T Extratos",description:"Forma\xE7\xE3o especifica para a componente de T Estratos do ecosistema Target One.",summary:"Formacao focada nas rotinas de tesouraria para utilizadores que precisam de acompanhar movimentos, validar consistencia e garantir controlo sobre o ciclo financeiro diario.",topics:[],level:"Avancado",duration:"7h 30min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/Extratos.png",focusAreas:["Operacoes financeiras","Movimentos e extratos","Reconciliacao bancaria"],prerequisites:["Acesso \xE0 Plataforma Target One","Acesso \xE0 Componente T Extractos"],audience:["Equipas de Extractos","Clientes T Extratos"],objectives:["Compreender o papel da Componente T Extractos","Gest\xE3o e integra\xE7\xE3o de extratos banc\xE1rios","Normaliza\xE7\xE3o de fluxos banc\xE1rio","Valida\xE7\xE3o e controlo de extratos","Auditoria e monitoriza\xE7\xE3o da informa\xE7\xE3o banc\xE1ria","Utiliza\xE7\xE3o operacional da componente"],outcomes:["Maior dominio do fluxo financeiro","Melhor leitura dos movimentos e extratos","Mais rapidez no controlo e validacao diarios"],modules:[{title:"Contextualiza\xE7\xE3o da componente T Extractos",duration:"5 min",description:"Explica\xE7\xE3o sum\xE1ria da componente da forma\xE7\xE3o."},{title:"Menus",duration:"25 min",description:"Explora\xE7\xE3o dos menus bases existentes."},{title:"Fun\xE7\xF5es Gerais da Componente",duration:"30 min",description:"Explica\xE7\xE3o das Teclas de atalho, icons e fun\xE7\xF5es das mesmas."},{title:"Outras Funcionalidades",duration:"60 min",description:"Funcionalidades complementares dentro da componente T Extratos."},{title:"Rece\xE7\xE3o de Extratos Banc\xE1rios - Integra\xE7\xE3o",duration:"90 min",description:"Visualiza\xE7\xE3o de todos os extratos banc\xE1rios atrav\xE9s de diferentes modos de integra\xE7\xE3o, e an\xE1lise das diferentes situa\xE7\xF5es."},{title:"An\xE1lises/Reports",duration:"90 min",description:"Consulta e an\xE1lise dos dados dos extratos banc\xE1rios integrados no sistema."},{title:"Consulta de Estat\xEDsticas dos Extratos",duration:"30 min",description:"Visualiza\xE7\xE3o de saldos m\xE9dios por c\xF3digo de extrato."},{title:"Configura\xE7\xE3o - Aplica\xE7\xE3o",duration:"90 min",description:"Aceder e configurar os par\xE2metros relacionados com a gest\xE3o de extratos banc\xE1rios."}],lessonSections:[{title:"Contextualiza\xE7\xE3o da componente T Extractos",paragraphs:["A Componente T Extractos \xE9 especializada na auditoria, gest\xE3o e controlo de extratos banc\xE1rios, independentemente das institui\xE7\xF5es financeiras com as quais a sociedade ou grupo empresarial opere.","Os extratos banc\xE1rios podem ser integrados na plataforma atrav\xE9s de diferentes origens, nomeadamente:."],bullets:["Rece\xE7\xE3o atrav\xE9s do Canal Multibanc\xE1rio","Importa\xE7\xE3o atrav\xE9s de template Excel","Inser\xE7\xE3o manual de extratos"],paragraphs2:[],paragraphs3:[`Todos os extratos integrados s\xE3o armazenados na plataforma por per\xEDodo ilimitado, permitindo a sua gest\xE3o, manuten\xE7\xE3o e consulta hist\xF3rica atrav\xE9s desta componente.Nesta componente s\xE3o tamb\xE9m definidas codifica\xE7\xF5es e descri\xE7\xF5es personalizadas, designadas por C\xF3digos de Extrato. Estes c\xF3digos podem ser associados \xE0 informa\xE7\xE3o presente nas opera\xE7\xF5es de cada extrato banc\xE1rio, permitindo uniformizar e organizar os diferentes fluxos banc\xE1rios. Esta normaliza\xE7\xE3o \xE9 particularmente relevante, uma vez que os mesmos tipos de movimentos podem apresentar c\xF3digos e descri\xE7\xF5es distintos entre diferentes institui\xE7\xF5es banc\xE1rias.
Atrav\xE9s desta codifica\xE7\xE3o atribu\xEDda a cada movimento de extrato, \xE9 poss\xEDvel estruturar e normalizar a informa\xE7\xE3o banc\xE1ria, facilitando a an\xE1lise, controlo e gest\xE3o dos fluxos financeiros.
Adicionalmente, a componente integra mecanismos autom\xE1ticos de valida\xE7\xE3o e controlo dos extratos banc\xE1rios, os quais verificam a sequencialidade dos saldos, a coer\xEAncia das datas e a consist\xEAncia do conte\xFAdo de cada extrato. Estes mecanismos permitem identificar eventuais irregularidades, tais como extratos duplicados ou incoerentes, procedendo automaticamente \xE0 sua rejei\xE7\xE3o, garantindo assim a integridade e fiabilidade da informa\xE7\xE3o registada na plataforma.`],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Menus",paragraphs:[`A Componente T Extractos disponibiliza um conjunto de menus que permitem ao utilizador executar as diferentes opera\xE7\xF5es associadas \xE0 integra\xE7\xE3o, consulta, an\xE1lise e configura\xE7\xE3o de extratos banc\xE1rios.
O menu Integra\xE7\xE3o permite efetuar a integra\xE7\xE3o de extratos banc\xE1rios na plataforma, bem como consultar o hist\xF3rico das integra\xE7\xF5es realizadas e verificar o respetivo estado.
No menu An\xE1lises/Reports, encontram-se dispon\xEDveis funcionalidades de consulta e an\xE1lise dos extratos banc\xE1rios integrados com sucesso. Neste menu \xE9 poss\xEDvel consultar os movimentos banc\xE1rios por extrato, por tipo de movimento e/ou por intervalos de datas. Adicionalmente, \xE9 tamb\xE9m atrav\xE9s deste menu que se encontra dispon\xEDvel a funcionalidade de controlo de contas, permitindo acompanhar a evolu\xE7\xE3o e consist\xEAncia dos movimentos banc\xE1rios.
O menu Estat\xEDsticas disponibiliza ferramentas de an\xE1lise estat\xEDstica relacionadas com os extratos banc\xE1rios. Neste menu \xE9 poss\xEDvel consultar informa\xE7\xE3o agregada por c\xF3digo de extrato, bem como analisar saldos m\xE9dios, permitindo uma vis\xE3o consolidada da atividade banc\xE1ria.
Atrav\xE9s do menu Configura\xE7\xE3o, o utilizador pode proceder \xE0 parametriza\xE7\xE3o dos c\xF3digos de extrato, \xE0 inicializa\xE7\xE3o de contas e \xE0 defini\xE7\xE3o de outras configura\xE7\xF5es necess\xE1rias ao correto funcionamento da componente.
O menu Janela apresenta a listagem de todas as janelas que se encontram abertas ou ativas na aplica\xE7\xE3o, permitindo ao utilizador alternar facilmente entre diferentes \xE1reas de trabalho.
Por fim, o menu Sair permite terminar a sess\xE3o na componente, encerrando a sua utiliza\xE7\xE3o na plataforma.`],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Conhecimentos a consolidar",paragraphs:["Usa esta secao para reforcar a interpretacao de desvios, excecoes e fecho diario.","Se quiseres, mais tarde podes acrescentar imagens, tabelas ou exemplos de casos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: qual deve ser o foco principal na leitura de um extrato bancario nesta licao?",options:["Validar movimentos e desvios","Alterar a estrutura da conta","Criar um novo utilizador"],note:"Substitui este texto com a explicacao da resposta certa.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: o que pretendes confirmar antes do fecho diario?",options:["Consistencia dos indicadores e pendentes","Apenas a cor dos estados","Somente a imagem do dashboard"],note:"Este bloco fica preparado para adicionares perguntas reais do percurso.",correctOptionIndex:0}]},{slug:"T segurancas",category:"T segurancas",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"T Seguran\xE7as",description:"Formacao especifica para a componente de T Seguran\xE7as do ecosistema Target One.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as validacoes, reconciliacoes e checkpoints do servico.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/Seguran\xE7as.png",focusAreas:["Fluxos EDP","Validacao operacional","Controlo e reconciliacao"],prerequisites:["Conhecimento basico da plataforma","Acesso aos modulos operacionais do outsourcing","Contexto funcional do processo EDP"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Executar o fluxo completo do outsourcing EDP","Validar dados criticos antes de fecho","Reconciliar diferencas operacionais","Escalar desvios com a informacao certa"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Enquadramento do servico",duration:"35 min",description:"Contexto do outsourcing EDP, responsabilidades e pontos de controlo ao longo do processo."},{title:"Operacao assistida",duration:"65 min",description:"Execucao do fluxo principal na plataforma com os passos, regras e verificacoes associados."},{title:"Reconciliacao e controlo",duration:"70 min",description:"Analise de divergencias, conciliacao de informacao e preparacao de evidencia de suporte."},{title:"Fecho e acompanhamento",duration:"40 min",description:"Checklist final, tratamento de excecoes e registo de pontos pendentes para acompanhamento."}],lessonSections:[{title:"Contexto do servico",paragraphs:["Utiliza esta secao para explicar o enquadramento do outsourcing EDP, quem executa o processo e quais sao os checkpoints mais relevantes.","O objetivo e que o formando entenda rapidamente em que parte do fluxo esta a trabalhar."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Execucao do fluxo",paragraphs:["Aqui podes documentar o passo a passo do processo, incluindo validacoes, excecoes e evidencias a recolher.","Este modelo foi deixado preparado para inserires instrucoes mais detalhadas e exemplos concretos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Fecho e controlo",paragraphs:["Reserva este bloco para orientacoes de fecho, reconciliacao e acompanhamento de pendentes.","Tambem podes usar este espaco para notas internas, links ou referencias complementares."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]},{slug:"T Par\xE2metros",category:"T Par\xE2metros",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"T Par\xE2metros",description:"Formacao especifica para a componente de T Par\xE2metros do ecosistema Target One.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as validacoes, reconciliacoes e checkpoints do servico.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/Parametros.png",focusAreas:["Fluxos EDP","Validacao operacional","Controlo e reconciliacao"],prerequisites:["Conhecimento basico da plataforma","Acesso aos modulos operacionais do outsourcing","Contexto funcional do processo EDP"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Executar o fluxo completo do outsourcing EDP","Validar dados criticos antes de fecho","Reconciliar diferencas operacionais","Escalar desvios com a informacao certa"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Enquadramento do servico",duration:"35 min",description:"Contexto do outsourcing EDP, responsabilidades e pontos de controlo ao longo do processo."},{title:"Operacao assistida",duration:"65 min",description:"Execucao do fluxo principal na plataforma com os passos, regras e verificacoes associados."},{title:"Reconciliacao e controlo",duration:"70 min",description:"Analise de divergencias, conciliacao de informacao e preparacao de evidencia de suporte."},{title:"Fecho e acompanhamento",duration:"40 min",description:"Checklist final, tratamento de excecoes e registo de pontos pendentes para acompanhamento."}],lessonSections:[{title:"Contexto do servico",paragraphs:["Utiliza esta secao para explicar o enquadramento do outsourcing EDP, quem executa o processo e quais sao os checkpoints mais relevantes.","O objetivo e que o formando entenda rapidamente em que parte do fluxo esta a trabalhar."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Execucao do fluxo",paragraphs:["Aqui podes documentar o passo a passo do processo, incluindo validacoes, excecoes e evidencias a recolher.","Este modelo foi deixado preparado para inserires instrucoes mais detalhadas e exemplos concretos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Fecho e controlo",paragraphs:["Reserva este bloco para orientacoes de fecho, reconciliacao e acompanhamento de pendentes.","Tambem podes usar este espaco para notas internas, links ou referencias complementares."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]},{slug:"T Reconcilia\xE7\xF5es",category:"Reconcilia\xE7\xF5es",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"T Reconcilia\xE7\xF5es",description:"Formacao especifica para a operacao do outsourcing EDP e para os fluxos mais frequentes associados.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as validacoes, reconciliacoes e checkpoints do servico.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/reconciliacoes.png",focusAreas:["Fluxos EDP","Validacao operacional","Controlo e reconciliacao"],prerequisites:["Conhecimento basico da plataforma","Acesso aos modulos operacionais do outsourcing","Contexto funcional do processo EDP"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Executar o fluxo completo do outsourcing EDP","Validar dados criticos antes de fecho","Reconciliar diferencas operacionais","Escalar desvios com a informacao certa"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Enquadramento do servico",duration:"35 min",description:"Contexto do outsourcing EDP, responsabilidades e pontos de controlo ao longo do processo."},{title:"Operacao assistida",duration:"65 min",description:"Execucao do fluxo principal na plataforma com os passos, regras e verificacoes associados."},{title:"Reconciliacao e controlo",duration:"70 min",description:"Analise de divergencias, conciliacao de informacao e preparacao de evidencia de suporte."},{title:"Fecho e acompanhamento",duration:"40 min",description:"Checklist final, tratamento de excecoes e registo de pontos pendentes para acompanhamento."}],lessonSections:[{title:"Contexto do servico",paragraphs:["Utiliza esta secao para explicar o enquadramento do outsourcing EDP, quem executa o processo e quais sao os checkpoints mais relevantes.","O objetivo e que o formando entenda rapidamente em que parte do fluxo esta a trabalhar."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Execucao do fluxo",paragraphs:["Aqui podes documentar o passo a passo do processo, incluindo validacoes, excecoes e evidencias a recolher.","Este modelo foi deixado preparado para inserires instrucoes mais detalhadas e exemplos concretos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Fecho e controlo",paragraphs:["Reserva este bloco para orientacoes de fecho, reconciliacao e acompanhamento de pendentes.","Tambem podes usar este espaco para notas internas, links ou referencias complementares."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]},{slug:"outsourcing-edp",category:"Outsourcing EDP",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"Outsourcing EDP - Parte 1",description:"Forma\xE7\xE3o espec\xEDfica para a operara\xE7\xE3o do outsourcing EDP e para os fluxos mais frequentes associados.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as valida\xE7\xF5es, reconcilia\xE7\xF5es e checkpoints do servi\xE7o.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugu\xEAs",format:"Aut\xF3nomo",image:"/imagenscursos/MetacaseSIbs.png",focusAreas:["Fluxos EDP","Valida\xE7\xE3o operacional","Controlo e reconcilia\xE7\xE3o"],prerequisites:["Forma\xE7\xE3o: Metacase Learning Hub, Plataforma TargetOne, Par\xE2metros, Extratos e Reconcilia\xE7\xF5es","No\xE7\xF5es b\xE1sicas da componente Tesouraria e Comunica\xE7\xF5es ","Acesso \xE0 EDP e \xE0 plataforma TargetOne"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Garantir a correta integra\xE7\xE3o e valida\xE7\xE3o de extratos banc\xE1rios","Assegurar a reconcilia\xE7\xE3o manual e autom\xE1tica","Monitorizar e validar interfaces e fluxos de comunica\xE7\xE3o com o cliente","Garantir a correta contabiliza\xE7\xE3o dos movimentos financeiros no ERP","Promover a efici\xEAncia operacional e redu\xE7\xE3o de erros atrav\xE9s de procedimentos estruturados"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Introdu\xE7\xE3o ao outsourcing do cliente EDP",duration:"3 min",description:"Esta forma\xE7\xE3o define os procedimentos de outsourcing do cliente EDP na plataforma Target One, garantindo a correta integra\xE7\xE3o, valida\xE7\xE3o e fiabilidade da informa\xE7\xE3o. Est\xE1 organizado segundo o fluxo di\xE1rio de trabalho e inclui orienta\xE7\xF5es para tratamento de erros, promovendo efici\xEAncia e autonomia na execu\xE7\xE3o das tarefas."},{title:"Valida\xE7\xE3o da rece\xE7\xE3o dos webservices de Reconcilia\xE7\xE3o e Tesouraria",duration:"5 min",description:"Confirma\xE7\xE3o da rece\xE7\xE3o das previs\xF5es."},{title:"Valida\xE7\xE3o da integra\xE7\xE3o dos webservices de Reconcilia\xE7\xF5es e Tesouraria",duration:"3 min",description:"Confirma\xE7\xE3o da integra\xE7\xE3o das previs\xF5es."},{title:"Ativa\xE7\xE3o das reconcilia\xE7\xF5es autom\xE1ticas para todos os grupos de contas do outsourcing",duration:"3 min",description:"Garantir a reconcilia\xE7\xE3o autom\xE1tica dos movimentos, reduzindo pendentes e aumentando a efici\xEAncia."},{title:"Valida\xE7\xE3o inicial do controlo de contas",duration:"10 min",description:"Controlo da rece\xE7\xE3o dos extratos."},{title:"Valida\xE7\xE3o, no di\xE1rio de integra\xE7\xE3o, o estado dos extratos integrados",duration:"5 min",description:"Validar se os extratos encontram-se em alguma situa\xE7\xE3o que requeira an\xE1lise."},{title:"Valida\xE7\xE3o do cashpooling autom\xE1tico",duration:"30 min",description:"Equil\xEDbrio nos movimentos de cashpooling autom\xE1tico."},{title:"Valida\xE7\xE3o do cashpooling manual",duration:"30 min",description:"Equil\xEDbrio nos movimentos de cashpooling manual."},{title:"Proceder \xE0 verifica\xE7\xE3o dos movimentos com os c\xF3digos de extrato OTHREC e OTHPAY",duration:"30 min",description:"Classifica\xE7\xE3o correta dos movimentos."},{title:"Verifica\xE7\xE3o e an\xE1lise da atribui\xE7\xE3o dos c\xF3digos de extrato",duration:"30 min",description:"Classifica\xE7\xE3o correta dos movimentos."},{title:"Carregamento da Taxa CDI",duration:"30 min",description:"Integra\xE7\xE3o manual da Taxa."},{title:"Parametriza\xE7\xE3o e ajustes de alertas por conta",duration:"30 min",description:"Afina\xE7\xE3o de alertas."},{title:"Carregamento manual de extratos via template excel",duration:"30 min",description:"Integra\xE7\xE3o manual de movimentos."},{title:"Contabiliza\xE7\xE3o dos movimentos banc\xE1rios",duration:"30 min",description:"Envio dos mvovimentos para o ERP do cliente."},{title:"An\xE1lise do Di\xE1rio de reconcilia\xE7\xE3o",duration:"30 min",description:"Verificar a integra\xE7\xE3o dos movimentos contabil\xEDsticos."},{title:"Efectuar a reconcilia\xE7\xE3o banc\xE1ria",duration:"30 min",description:"Reduzir ao m\xE1ximos os pendentes existentes nas contas."},{title:"Fecho mensal das contas",duration:"30 min",description:"Efectuar o fecho de per\xEDodo das contas."},{title:"Indicadores",duration:"30 min",description:"Apurar a percentagem de reconcilia\xE7\xE3o autom\xE1tica."}],lessonSections:[{title:"M\xF3dulo 1 Introdu\xE7\xE3o ao outsourcing do cliente EDP",paragraphs:["Outsourcing corresponde \xE0 contrata\xE7\xE3o de processos e servi\xE7os para uma entidade especializada, com o objetivo de garantir maior efici\xEAncia operacional, controlo e qualidade na execu\xE7\xE3o das atividades. Neste contexto, outsourcing significa assumir a gest\xE3o e tratamento dos fluxos financeiros do cliente, garantindo que tudo \xE9 integrado, validado e contabilizado corretamente. ","Esta forma\xE7\xE3o foi criada para apoiar o trabalho di\xE1rio das atividades de outsourcing financeiro do cliente EDP, utilizando a plataforma Target One. Tem como objetivo ajudar a executar as tarefas com clareza, rigor e sem complica\xE7\xF5es desnecess\xE1rias. Ao longo desta forma\xE7\xE3o, encontramos os principais passos a seguir, desde a rece\xE7\xE3o dos extratos at\xE9 \xE0 reconcilia\xE7\xE3o e contabiliza\xE7\xE3o."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 2 Valida\xE7\xE3o da rece\xE7\xE3o dos webservices de Reconcilia\xE7\xE3o e Tesouraria",paragraphs:[""],paragraphs2:[""],paragraphs3:["<strong>O que fazer se os interfaces n\xE3o forem recebidos;</strong>"],imagem:"",paragraphs4:["Caso se verifique a n\xE3o rece\xE7\xE3o dos interfaces de TReconcilia\xE7\xE3o e/ou TTesouraria, dever\xE1 ser aberto um incidente na plataforma ServiceNow, dirigido \xE0 EDP, com o objetivo de solicitar o respetivo envio;","Estes incidentes s\xE3o preenchidos por geografias e atribu\xEDdos \xE0s diferentes equipas;"],bullets3:["Grupo HC (Previs\xF5es Confirmadas e Reconcilia\xE7\xF5es) - EDP-PRO-INC-ECOFIN-HC","Grupo LINCE (Previs\xF5es Confirmadas, de Fornecedores e Reconcilia\xE7\xF5es) - EDP-PRO-SIM-F","Grupo LINCE (Previs\xF5es Clientes) - EDP-PRO-INC-JUMP GA","Grupo LINCE (Previs\xF5es Confirmadas empresas JUMP (2800) - EDP-PRO-SIM Suporte SIM JUMP","Grupo Viesgo (Reconcilia\xE7\xF5es) - EDP-PRO-SIM-H-Projeto-Viesgo"],paragraphs5:[],paragraphs6:[],video:"/imagenscursos/metacase_21.mp4",paragraphs7:[],paragraphs8:[]},{title:"M\xF3dulo 3 Valida\xE7\xE3o da integra\xE7\xE3o dos webservices de Reconcilia\xE7\xF5es e Tesouraria",paragraphs:[""],video:"/imagenscursos/Video mod21__1.mp4",paragraphs2:[" "],paragraphs3:["Nota: Por vezes integram interfaces que ficam processados com erros. Nestas situa\xE7\xF5es devemos validar qual o erro registado e agir em conformidade."],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 4 Ativa\xE7\xE3o das reconcilia\xE7\xF5es autom\xE1ticas para todos os grupos de contas do outsourcing",paragraphs:[""],video:"/imagenscursos/mod4_1.mp4",paragraphs2:[" "],paragraphs3:[""],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 5 Valida\xE7\xE3o inicial do controlo de contas",paragraphs:["\xC9 importante validar se todas as contas j\xE1 receberam os respetivos extratos banc\xE1rios, garantindo que o controlo de contas reflete a informa\xE7\xE3o mais atualizada. Desta forma ao analis\xE1-lo devemos identifcar se existem extratos em falta ou se ainda est\xE3o dentro do per\xEDodo normal de rece\xE7\xE3o."],video:"/imagenscursos/controlo de contas_1.mp4",paragraphs2:[" "],paragraphs3:[""],imagem:"/imagenscursos/falta_extrats1_novo.png",imagem2:"/imagenscursos/Falta_extratos2.png",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 6 Valida\xE7\xE3o, no di\xE1rio de integra\xE7\xE3o, o estado dos extratos integrados",paragraphs:["Validar se os extratos se encontram em alguma situa\xE7\xE3o que precise de an\xE1lise;"],video:"/imagenscursos/diariointegracao_0.mp4",paragraphs2:[" "],paragraphs3:[""],imagem:"/imagenscursos/valida\xE7\xE3o_extratos.png",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 7 Valida\xE7\xE3o do cashpooling autom\xE1tico",paragraphs:["No \xE2mbito deste Outsourcing, \xE9 realizada a valida\xE7\xE3o dos movimentos de ITZERO, com o objetivo de garantir que todos os movimentos se encontram equilibrados e possuem o respetivo par associado. Para esta an\xE1lise, os movimentos s\xE3o divididos em dois grupos distintos: movimentos provenientes do banco Deutsche Bank e movimentos provenientes dos restantes bancos."],video2:"",paragraphs2:[" "],paragraphs3:[""],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]}];function _s(e){return e?Bp.find(t=>t.slug===e)??null:null}var Ke=class e{static STORAGE_KEY="metacaseUser";currentUser=L(this.readSession());hasStoredSession(){return this.currentUser()!==null}async isLoggedIn(){let t=this.currentUser();if(!t||Date.now()>=t.expiresAt)return this.logout(),!1;try{if((await fetch("/api/session",{headers:{Authorization:`Bearer ${t.token}`}})).ok)return!0}catch{return this.logout(),!1}return this.logout(),!1}async login(t,n,r){let o=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n})});if(!o.ok)throw new Error("Credenciais invalidas.");let i=await o.json(),s={email:i.user.email,name:i.user.name,token:i.token,expiresAt:i.expiresAt,loggedAt:new Date().toISOString()};this.clearStoredSession(),(r?localStorage:sessionStorage).setItem(e.STORAGE_KEY,JSON.stringify(s)),this.currentUser.set(s)}logout(){this.clearStoredSession(),this.currentUser.set(null)}readSession(){let t=localStorage.getItem(e.STORAGE_KEY)??sessionStorage.getItem(e.STORAGE_KEY);if(!t)return null;try{return JSON.parse(t)}catch{return this.clearStoredSession(),null}}clearStoredSession(){localStorage.removeItem(e.STORAGE_KEY),sessionStorage.removeItem(e.STORAGE_KEY)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var qe=class e{authService=m(Ke);router=m(Se);logout(){this.authService.logout(),this.router.navigateByUrl("/")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-hub-page-actions"]],decls:7,vars:0,consts:[["aria-label","A\xE7\xF5es da p\xE1gina",1,"page-actions"],["routerLink","/pagina-principal","aria-label","Voltar \xE0 p\xE1gina principal",1,"back-button"],["aria-hidden","true"],["type","button",1,"hub-topbar__logout",3,"click"]],template:function(n,r){n&1&&(d(0,"nav",0)(1,"a",1)(2,"span",2),g(3,"\u2190"),f(),g(4," P\xE1gina principal "),f(),d(5,"button",3),S("click",function(){return r.logout()}),g(6,"Sair"),f()())},dependencies:[cn],styles:["[_nghost-%COMP%]{position:fixed;top:24px;right:24px;z-index:1000}.page-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid rgba(191,219,254,.7);border-radius:999px;background:#ffffffe6;box-shadow:0 16px 34px #0f172a24;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.back-button[_ngcontent-%COMP%], .hub-topbar__logout[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:0;border-radius:999px;font-weight:800;cursor:pointer}.back-button[_ngcontent-%COMP%]{gap:8px;color:#1d4ed8;text-decoration:none}.hub-topbar__logout[_ngcontent-%COMP%]{background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;box-shadow:0 12px 26px #2563eb3d}@media(max-width:640px){[_nghost-%COMP%]{top:12px;right:12px;left:12px}.page-actions[_ngcontent-%COMP%]{justify-content:space-between}.back-button[_ngcontent-%COMP%], .hub-topbar__logout[_ngcontent-%COMP%]{min-height:40px;padding:0 14px;font-size:.84rem}}"]})};var yS=e=>["/cursos",e];function _S(e,t){if(e&1&&R(0,"img",32),e&2){let n=D().$implicit;_("alt",n.category)}}function bS(e,t){if(e&1&&(d(0,"article",20)(1,"div",21),R(2,"img",22)(3,"div",23),d(4,"div",24),j(5,_S,1,1,"img",25),f()(),d(6,"div",26)(7,"h3",27),g(8),f(),d(9,"p",28),g(10),f(),d(11,"div",29)(12,"span",30),g(13),f()(),d(14,"a",31),g(15," Entrar "),f()()()),e&2){let n=t.$implicit;h(2),_("src",n.image,ge)("alt",n.title),h(3),_("ngForOf",n.categoryIcons),h(3),G(" ",n.title," "),h(2),G(" ",n.description," "),h(3),G(" ",n.duration," "),h(),_("routerLink",nr(7,yS,n.slug))}}var pl=class e{constructor(t,n){this.authService=t;this.router=n}courses=Bp;logout(){this.authService.logout(),this.router.navigateByUrl("/")}static \u0275fac=function(n){return new(n||e)(T(Ke),T(Se))};static \u0275cmp=ie({type:e,selectors:[["app-formacaometacase"]],decls:30,vars:5,consts:[[1,"min-h-screen","bg-slate-50","text-slate-900"],[1,"relative","overflow-hidden","bg-slate-950"],[1,"absolute","inset-0","bg-gradient-to-r","from-indigo-700/20","via-cyan-500/10","to-purple-700/20"],[1,"hero-logo-badge"],["href","https://www.metacase.pt","target","_blank","rel","noopener"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"hero-logo"],[1,"relative","mx-auto","max-w-7xl","px-6","py-20","lg:px-8"],[1,"max-w-3xl"],[1,"inline-flex","rounded-full","border","border-white/20","bg-white/10","px-4","py-1","text-sm","font-medium","text-white"],[1,"mt-6","text-4xl","font-bold","tracking-tight","text-white","sm:text-5xl","lg:text-6xl"],[1,"mt-6","text-lg","leading-8","text-slate-300"],[1,"mx-auto","max-w-7xl","px-6","py-10","lg:px-8"],[1,"flex","flex-col","gap-4","md:flex-row","md:items-center","md:justify-between"],[1,"text-3xl","font-bold","tracking-tight","text-slate-900"],[1,"mt-2","text-slate-600"],[1,"inline-flex","w-fit","items-center","rounded-2xl","border","border-slate-200","bg-white","px-4","py-3","shadow-sm"],[1,"text-sm","font-semibold","text-slate-700"],[1,"mx-auto","max-w-7xl","px-6","pb-16","lg:px-8"],[1,"grid","gap-8","md:grid-cols-2","xl:grid-cols-3"],["class","group overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl",4,"ngFor","ngForOf"],[1,"group","overflow-hidden","rounded-3xl","border","border-slate-200","bg-white","shadow-sm","transition","duration-300","hover:-translate-y-1","hover:shadow-xl"],[1,"relative","h-56","overflow-hidden"],[1,"h-full","w-full","object-cover","transition","duration-500","group-hover:scale-105",3,"src","alt"],[1,"absolute","inset-0","bg-gradient-to-t","from-black/50","via-transparent","to-transparent"],[1,"course-card__badge"],["class","course-card__badge-image",3,"alt",4,"ngFor","ngForOf"],[1,"p-6"],[1,"mt-2","text-xl","font-bold","text-slate-900"],[1,"mt-3","text-sm","leading-6","text-slate-600"],[1,"mt-5","flex","flex-wrap","gap-2"],[1,"rounded-full","bg-slate-100","px-3","py-1","text-xs","font-semibold","text-slate-700"],[1,"mt-6","block","w-full","rounded-2xl","bg-gradient-to-r","from-indigo-600","to-purple-600","px-4","py-3","text-center","text-sm","font-semibold","text-white","transition","hover:opacity-95",3,"routerLink"],[1,"course-card__badge-image",3,"alt"]],template:function(n,r){n&1&&(d(0,"div",0),R(1,"app-hub-page-actions"),d(2,"section",1),R(3,"div",2),d(4,"div",3)(5,"a",4),R(6,"img",5),f()(),d(7,"div",6)(8,"div",7)(9,"span",8),g(10," Learning Hub "),f(),d(11,"h1",9),g(12," Forma\xE7\xF5es de TargetOne "),f(),d(13,"p",10),g(14," Forma\xE7\xF5es pr\xE1ticas e atualizadas para a utiliza\xE7\xE3o da plataforma TargetOne "),R(15,"br"),g(16,"Aprendizagem orientada para a ferramenta com forma\xE7\xF5es te\xF3ricas e pr\xE1ticas "),f()()()(),d(17,"section",11)(18,"div",12)(19,"div")(20,"h2",13),g(21,"Forma\xE7\xF5es dispon\xEDveis"),f(),d(22,"p",14),g(23),f()(),d(24,"div",15)(25,"span",16),g(26),f()()()(),d(27,"section",17)(28,"div",18),j(29,bS,16,9,"article",19),f()()()),n&2&&(h(23),jt(" Atualmente encontram-se dispon\xEDveis ",r.courses.length," ",r.courses.length===1?"forma\xE7\xE3o":"forma\xE7\xF5es"," em destaque. "),h(3),jt(" ",r.courses.length," ",r.courses.length===1?"curso":"cursos"," "),h(3),_("ngForOf",r.courses))},dependencies:[Ie,$e,cn,qe],styles:[".hero-logo-badge[_ngcontent-%COMP%]{position:absolute;top:24px;left:24px;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:10px 16px;border:1px solid rgba(191,219,254,.55);border-radius:999px;background:#eff6ffe0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 24px #0f172a1f}.hero-logo[_ngcontent-%COMP%]{width:clamp(120px,16vw,190px);height:auto;display:block;object-fit:contain}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-bottom:20px;color:#f8f8f8;text-decoration:none;font-weight:700}.logout-button[_ngcontent-%COMP%]{min-height:34px;cursor:pointer;border:0;border-radius:999px;background:#1d4ed8;padding:0 14px;color:#fff;font-size:.88rem;font-weight:800;transition:background-color .2s ease,transform .2s ease}.logout-button[_ngcontent-%COMP%]:hover{background:#1e40af;transform:translateY(-1px)}.course-card__badge[_ngcontent-%COMP%]{position:absolute;top:16px;left:16px;z-index:1;display:flex;align-items:center;justify-content:flex-start;gap:8px;max-width:calc(100% - 32px);overflow-x:auto}.course-card__badge-image[_ngcontent-%COMP%]{width:auto;max-width:88px;flex:0 0 auto;height:24px;display:block;object-fit:contain}@media(max-width:768px){.hero-logo-badge[_ngcontent-%COMP%]{top:16px;right:16px;padding:8px 14px;gap:10px}.hero-logo[_ngcontent-%COMP%]{width:120px}}"]})};function hl(e,t){let r=!t?.manualCleanup?t?.injector?.get(ke)??m(ke):null,o=CS(t?.equal),i;t?.requireSync?i=L({kind:0},{equal:o}):i=L({kind:1,value:t?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(t?.requireSync&&i().kind===0)throw new C(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),Ce(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new C(601,!1)}},{equal:t?.equal})}function CS(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var DS=e=>["/cursos",e,"percurso"];function ES(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),P(n)}}function wS(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),P(n)}}function xS(e,t){if(e&1&&(d(0,"article",35)(1,"div",36),g(2),f(),d(3,"div",37)(4,"h3"),g(5),f(),d(6,"p"),g(7),f()(),d(8,"span",38),g(9),f()()),e&2){let n=t.$implicit,r=t.index;h(2),P(r+1),h(3),P(n.title),h(2),P(n.description),h(2),P(n.duration)}}function IS(e,t){if(e&1&&(d(0,"article",39)(1,"h3"),g(2),f()()),e&2){let n=t.$implicit;h(2),P(n)}}function MS(e,t){if(e&1&&(Co(0),R(1,"app-hub-page-actions"),d(2,"div",2)(3,"section",3)(4,"div",4)(5,"div",5)(6,"a",6),g(7,"Voltar ao menu das forma\xE7\xF5es"),f(),d(8,"h1"),g(9),f(),d(10,"p",7),g(11),f(),d(12,"section",8)(13,"div",9)(14,"span",10),g(15,"Informa\xE7\xE3o geral da forma\xE7\xE3o"),f(),d(16,"p",11),g(17),f()(),d(18,"div",12)(19,"article")(20,"span"),g(21,"Idioma"),f(),d(22,"strong"),g(23),f()(),d(24,"article")(25,"span"),g(26,"Formato"),f(),d(27,"strong"),g(28),f()(),d(29,"article",13)(30,"span"),g(31,"Dura\xE7\xE3o"),f(),d(32,"strong"),g(33),f()(),d(34,"article",13)(35,"span"),g(36,"Mod\xFAlos"),f(),d(37,"strong"),g(38),f()(),d(39,"div",14)(40,"span"),g(41,"Pr\xE9-requisitos"),f(),d(42,"ul",15),j(43,ES,2,1,"li",16),f()(),d(44,"div",14)(45,"span"),g(46,"P\xFAblico-Alvo"),f(),d(47,"ul",15),j(48,wS,2,1,"li",16),f()()()()(),d(49,"aside",17)(50,"div",18),R(51,"img",19),f(),d(52,"div",20)(53,"h2"),g(54,"Come\xE7ar esta forma\xE7\xE3o"),f(),d(55,"p"),g(56),f(),d(57,"a",21),g(58,"Iniciar forma\xE7\xE3o"),f(),d(59,"a",22),g(60,"Voltar ao menu das forma\xE7\xF5es"),f()()()()(),d(61,"main",23)(62,"section",24)(63,"section",25)(64,"div",26)(65,"div")(66,"span",10),g(67,"Estrutura da forma\xE7\xE3o"),f()(),d(68,"span",27),g(69),f()(),d(70,"div",28),j(71,xS,10,4,"article",29),f()()(),d(72,"aside",30)(73,"div",31)(74,"span",32),g(75,"Compet\xEAncias da Forma\xE7\xE3o"),f(),d(76,"div",33),j(77,IS,3,1,"article",34),f()()()()(),Do()),e&2){let n=t.ngIf;h(9),P(n.title),h(2),P(n.summary),h(6),P(n.description),h(6),P(n.language),h(5),P(n.format),h(5),P(n.duration),h(5),P(n.modules.length),h(5),_("ngForOf",n.prerequisites),h(5),_("ngForOf",n.audience),h(3),_("src",n.image,ge)("alt",n.title),h(5),P(n.description),h(),_("routerLink",nr(16,DS,n.slug)),h(12),G("",n.modules.length," li\xE7\xF5es"),h(2),_("ngForOf",n.modules),h(6),_("ngForOf",n.objectives)}}function SS(e,t){e&1&&(d(0,"div",40)(1,"div",41)(2,"h1"),g(3,"Forma\xE7\xE3o n\xE3o encontrada"),f(),d(4,"p"),g(5,"A forma\xE7\xE3o selecionada n\xE3o est\xE1 dispon\xEDvel neste momento."),f(),d(6,"a",42),g(7,"Voltar aos cursos"),f()()())}var gl=class e{route=m(dt);paramMap=hl(this.route.paramMap);course=Ce(()=>{let t=this.paramMap()?.get("slug")??null;return _s(t)});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-course-detail-page"]],decls:3,vars:2,consts:[["notfound",""],[4,"ngIf","ngIfElse"],[1,"course-detail-page"],[1,"course-intro"],[1,"course-intro__inner"],[1,"course-intro__main"],["routerLink","/formacoes",1,"back-link"],[1,"intro-summary"],["id","overview",1,"detail-panel"],[1,"panel-header"],[1,"panel-header__eyebrow"],[1,"detail-lead"],[1,"detail-facts"],[1,"intro-stat"],[1,"detail-box"],[1,"bullet-list"],[4,"ngFor","ngForOf"],[1,"enroll-card"],[1,"enroll-card__media"],[3,"src","alt"],[1,"enroll-card__body"],[1,"button",3,"routerLink"],["routerLink","/formacoes",1,"button","button--secondary"],[1,"detail-layout"],[1,"detail-main"],["id","structure",1,"detail-panel"],[1,"panel-header","panel-header--split"],[1,"panel-count"],[1,"module-list"],["class","module-card",4,"ngFor","ngForOf"],[1,"detail-sidebar"],[1,"sidebar-card"],[1,"sidebar-card__eyebrow"],[1,"learning-grid"],["class","topic-card",4,"ngFor","ngForOf"],[1,"module-card"],[1,"module-card__index"],[1,"module-card__content"],[1,"module-card__duration"],[1,"topic-card"],[1,"course-not-found"],[1,"course-not-found__card"],["routerLink","/formacoes",1,"button"]],template:function(n,r){if(n&1&&j(0,MS,78,18,"ng-container",1)(1,SS,8,0,"ng-template",null,0,Vr),n&2){let o=Mn(2);_("ngIf",r.course())("ngIfElse",o)}},dependencies:[Ie,$e,at,cn,qe],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;background:#f8fafc;color:#0f172a}*[_ngcontent-%COMP%]{box-sizing:border-box}.course-detail-page[_ngcontent-%COMP%]{min-height:100vh}.course-intro[_ngcontent-%COMP%]{background:radial-gradient(circle at top left,rgba(37,99,235,.12),transparent 24%),linear-gradient(180deg,#fff,#f6f9fd);border-bottom:1px solid #e2e8f0}.course-intro__inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,420px);gap:34px;max-width:1240px;margin:0 auto;padding:56px 24px 40px}.course-intro__main[_ngcontent-%COMP%]{padding-top:12px}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-bottom:20px;color:#2563eb;text-decoration:none;font-weight:700}.back-link[_ngcontent-%COMP%]:hover{color:#1d4ed8}.intro-pills[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.intro-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.86rem;font-weight:800}.intro-pill--muted[_ngcontent-%COMP%]{background:#eff6ff;color:#334155}.course-intro[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{max-width:760px;margin:0 0 16px;font-size:clamp(2.4rem,5vw,4rem);line-height:1.04;letter-spacing:-.03em}.lesson-image[_ngcontent-%COMP%]{display:block;margin:30px auto;max-width:600px;width:100%}.intro-summary[_ngcontent-%COMP%]{max-width:760px;margin:0 0 24px;color:#475569;font-size:1.06rem;line-height:1.75;text-align:justify}.intro-stats[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:720px;margin-bottom:20px}.intro-stat[_ngcontent-%COMP%]{padding:18px 18px 16px;border:1px solid #dbe4f0;border-radius:22px;background:#fff}.intro-stat[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#64748b;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.intro-stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:1rem}.intro-icons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.intro-icons__item[_ngcontent-%COMP%]{width:auto;height:28px}.enroll-card[_ngcontent-%COMP%]{overflow:hidden;border:1px solid #dbe4f0;border-radius:28px;background:#fff;box-shadow:0 18px 42px #0f172a14}.enroll-card__media[_ngcontent-%COMP%]{aspect-ratio:16 / 10;overflow:hidden;background:#0f172a}.enroll-card__media[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.enroll-card__body[_ngcontent-%COMP%]{padding:22px}.enroll-card__topline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.enroll-card__topline[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.8rem;font-weight:800}.enroll-card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 10px;font-size:1.55rem}.enroll-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 18px;color:#64748b;line-height:1.65}.detail-tabs[_ngcontent-%COMP%]{position:sticky;top:0;z-index:20;display:flex;gap:28px;max-width:1240px;margin:0 auto;padding:0 24px;background:#f8fafcf0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #e2e8f0}.detail-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:62px;color:#334155;text-decoration:none;font-weight:800;border-bottom:3px solid transparent}.detail-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#0f172a;border-bottom-color:#2563eb}.detail-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.7fr);gap:30px;max-width:1240px;margin:0 auto;padding:28px 24px 72px}.detail-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:22px}.detail-panel[_ngcontent-%COMP%], .sidebar-card[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border:1px solid #dbe4f0;border-radius:28px;background:#fff;box-shadow:0 14px 34px #0f172a0d}.detail-panel[_ngcontent-%COMP%]{padding:28px}.panel-header[_ngcontent-%COMP%]{margin-bottom:18px}.panel-header--split[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:16px}.panel-header__eyebrow[_ngcontent-%COMP%], .sidebar-card__eyebrow[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:10px;color:#2563eb;font-size:1.2rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.panel-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.7rem;line-height:1.2}.panel-count[_ngcontent-%COMP%]{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.82rem;font-weight:800;white-space:nowrap}.detail-lead[_ngcontent-%COMP%]{margin:0 0 18px;color:#475569;line-height:1.75}.detail-facts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.detail-facts[_ngcontent-%COMP%] article[_ngcontent-%COMP%], .detail-box[_ngcontent-%COMP%]{padding:18px;border:1px solid #e5edf6;border-radius:22px;background:#fbfdff}.detail-facts[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#64748b;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.detail-columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .learning-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .module-card__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 10px;font-size:1.08rem}.bullet-list[_ngcontent-%COMP%], .sidebar-list[_ngcontent-%COMP%]{margin:0;padding-left:18px;color:#475569;line-height:1.75}.bullet-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%], .sidebar-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:8px}.learning-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:16px}.learning-card[_ngcontent-%COMP%]{padding:20px;border:1px solid #e5edf6;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff)}.learning-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .module-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#64748b;line-height:1.65}.module-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px}.module-card[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px;border:1px solid #e5edf6;border-radius:24px;background:#fff}.module-card__index[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;background:#eff6ff;color:#1d4ed8;font-weight:800}.module-card__duration[_ngcontent-%COMP%]{display:inline-flex;padding:8px 11px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:.82rem;font-weight:800;white-space:nowrap}.sidebar-card[_ngcontent-%COMP%]{position:sticky;top:92px;padding:24px}.sidebar-list[_ngcontent-%COMP%]{margin-bottom:18px}.sidebar-tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.sidebar-tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.84rem;font-weight:700}.button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:50px;border:0;border-radius:18px;background:#1d4ed8;color:#fff;text-decoration:none;font-size:.96rem;font-weight:800;cursor:pointer}.button[_ngcontent-%COMP%] + .button[_ngcontent-%COMP%]{margin-top:12px}.button--secondary[_ngcontent-%COMP%]{background:#eff6ff;color:#1d4ed8}.course-not-found[_ngcontent-%COMP%]{min-height:100vh;display:grid;place-items:center;padding:24px}.course-not-found__card[_ngcontent-%COMP%]{max-width:520px;padding:32px;text-align:center}.course-not-found__card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 12px}.course-not-found__card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 20px;color:#64748b}@media(max-width:1024px){.course-intro__inner[_ngcontent-%COMP%], .detail-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.sidebar-card[_ngcontent-%COMP%]{position:static}}@media(max-width:768px){.course-intro__inner[_ngcontent-%COMP%]{padding:40px 20px 28px}.detail-tabs[_ngcontent-%COMP%]{gap:18px;overflow-x:auto;padding:0 20px}.detail-layout[_ngcontent-%COMP%]{padding:22px 20px 56px}.intro-stats[_ngcontent-%COMP%], .detail-facts[_ngcontent-%COMP%], .detail-columns[_ngcontent-%COMP%], .learning-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.detail-panel[_ngcontent-%COMP%], .sidebar-card[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border-radius:22px}.detail-panel[_ngcontent-%COMP%]{padding:22px}.panel-header--split[_ngcontent-%COMP%], .module-card[_ngcontent-%COMP%]{grid-template-columns:1fr}.module-card__duration[_ngcontent-%COMP%]{justify-self:start}}"]})};var Z_=e=>["/cursos",e];function TS(e,t){if(e&1){let n=he();d(0,"article",34)(1,"button",35),S("click",function(){let o=K(n).index,i=D(2);return J(i.scrollToModule(o))}),d(2,"span",36),g(3),f(),d(4,"div",37)(5,"h3"),g(6),f(),d(7,"p"),g(8),f()()()()}if(e&2){let n=t.$implicit,r=t.index,o=D(2);ce("module-nav__item--active",r===o.currentModuleIndex()),h(3),P(r+1),h(3),P(n.title),h(2),P(n.duration)}}function AS(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),P(n)}}function OS(e,t){if(e&1&&R(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,er)}}function NS(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),G(" ",n," ")}}function PS(e,t){if(e&1&&(d(0,"ul",24),j(1,NS,2,1,"li",25),f()),e&2){let n=D().ngIf;h(),_("ngForOf",n.bullets)}}function RS(e,t){if(e&1){let n=he();d(0,"img",50),S("click",function(){K(n);let o=D().ngIf,i=D(3);return J(i.openZoomedImage(o.imagem6))}),f()}if(e&2){let n=D().ngIf;_("src",n.imagem6,ge)}}function kS(e,t){if(e&1){let n=he();d(0,"img",50),S("click",function(){K(n);let o=D().ngIf,i=D(3);return J(i.openZoomedImage(o.imagem4))}),f()}if(e&2){let n=D().ngIf;_("src",n.imagem4,ge)}}function FS(e,t){if(e&1&&(d(0,"video",51),R(1,"source",52),g(2," O seu navegador n\xE3o suporta v\xEDdeos. "),f()),e&2){let n=D().ngIf;h(),_("src",n.video)}}function LS(e,t){if(e&1&&R(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,er)}}function jS(e,t){if(e&1){let n=he();d(0,"img",50),S("click",function(){K(n);let o=D().ngIf,i=D(3);return J(i.openZoomedImage(o.imagem))}),f()}if(e&2){let n=D().ngIf;_("src",n.imagem,ge)}}function VS(e,t){if(e&1){let n=he();d(0,"img",50),S("click",function(){K(n);let o=D().ngIf,i=D(3);return J(i.openZoomedImage(o.imagem5))}),f()}if(e&2){let n=D().ngIf;_("src",n.imagem5,ge)}}function BS(e,t){if(e&1&&R(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,er)}}function US(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),G(" ",n," ")}}function HS(e,t){if(e&1&&(d(0,"ul",24),j(1,US,2,1,"li",25),f()),e&2){let n=D().ngIf;h(),_("ngForOf",n.bullets2)}}function $S(e,t){if(e&1&&R(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,er)}}function zS(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),G(" ",n," ")}}function qS(e,t){if(e&1&&(d(0,"ul",24),j(1,zS,2,1,"li",25),f()),e&2){let n=D().ngIf;h(),_("ngForOf",n.bullets3)}}function GS(e,t){if(e&1&&R(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,er)}}function WS(e,t){if(e&1){let n=he();d(0,"img",50),S("click",function(){K(n);let o=D().ngIf,i=D(3);return J(i.openZoomedImage(o.imagem2))}),f()}if(e&2){let n=D().ngIf;_("src",n.imagem2,ge)}}function ZS(e,t){if(e&1&&R(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,er)}}function QS(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),G(" ",n," ")}}function YS(e,t){if(e&1&&(d(0,"ul",24),j(1,QS,2,1,"li",25),f()),e&2){let n=D().ngIf;h(),_("ngForOf",n.bullets4)}}function KS(e,t){if(e&1){let n=he();d(0,"img",50),S("click",function(){K(n);let o=D().ngIf,i=D(3);return J(i.openZoomedImage(o.imagem3))}),f()}if(e&2){let n=D().ngIf;_("src",n.imagem3,ge)}}function JS(e,t){if(e&1){let n=he();d(0,"section",53)(1,"div",54)(2,"div")(3,"span",22),g(4,"Apresenta\xE7\xE3o interativa"),f()(),d(5,"span",55),g(6),f()(),d(7,"div",56)(8,"img",57),S("click",function(){K(n);let o=D().ngIf,i=D().index,s=D(2);return J(s.openZoomedImageGallery(o.presentationImages,s.getPresentationImageIndex(i)))}),f()(),d(9,"div",58)(10,"button",59),S("click",function(){K(n);let o=D(2).index,i=D(2);return J(i.previousPresentationImage(o))}),g(11," Anterior "),f(),d(12,"button",59),S("click",function(){K(n);let o=D().ngIf,i=D().index,s=D(2);return J(s.nextPresentationImage(i,o.presentationImages))}),g(13," Seguinte "),f()()()}if(e&2){let n=D().ngIf,r=D().index,o=D(2);h(6),jt(" Imagem ",o.getPresentationImageIndex(r)+1," / ",n.presentationImages.length," "),h(2),_("src",o.getPresentationImage(r,n.presentationImages),ge),h(2),_("disabled",o.getPresentationImageIndex(r)===0),h(2),_("disabled",o.getPresentationImageIndex(r)>=n.presentationImages.length-1)}}function XS(e,t){if(e&1&&(d(0,"section",43),j(1,OS,1,1,"p",44)(2,PS,2,1,"ul",45)(3,RS,1,1,"img",46)(4,kS,1,1,"img",46)(5,FS,3,1,"video",47)(6,LS,1,1,"p",44)(7,jS,1,1,"img",46)(8,VS,1,1,"img",46)(9,BS,1,1,"p",44)(10,HS,2,1,"ul",45)(11,$S,1,1,"p",44)(12,qS,2,1,"ul",45)(13,GS,1,1,"p",44)(14,WS,1,1,"img",46)(15,ZS,1,1,"p",44)(16,YS,2,1,"ul",45)(17,KS,1,1,"img",46)(18,JS,14,5,"section",48),f()),e&2){let n=t.ngIf;h(),_("ngForOf",n.paragraphs),h(),_("ngIf",n.bullets),h(),_("ngIf",n.imagem6&&n.imagem6.trim()!==""),h(),_("ngIf",n.imagem4&&n.imagem4.trim()!==""),h(),_("ngIf",n.video&&n.video.trim()!==""),h(),_("ngForOf",n.paragraphs2),h(),_("ngIf",n.imagem&&n.imagem.trim()!==""),h(),_("ngIf",n.imagem5&&n.imagem5.trim()!==""),h(),_("ngForOf",n.paragraphs3),h(),_("ngIf",n.bullets2),h(),_("ngForOf",n.paragraphs4),h(),_("ngIf",n.bullets3),h(),_("ngForOf",n.paragraphs5),h(),_("ngIf",n.imagem2&&n.imagem2.trim()!==""),h(),_("ngForOf",n.paragraphs6),h(),_("ngIf",n.bullets4),h(),_("ngIf",n.imagem3&&n.imagem3.trim()!==""),h(),_("ngIf",n.presentationImages==null?null:n.presentationImages.length)}}function eT(e,t){if(e&1&&(d(0,"article",38)(1,"div",39)(2,"span",40),g(3),f(),d(4,"span",41),g(5),f()(),j(6,XS,19,18,"section",42),f()),e&2){let n=t.$implicit,r=t.index;Xt("data-module-index",r),h(3),G("M\xF3dulo ",r+1+" "+n.module.title),h(2),P(n.module.duration),h(),_("ngIf",n.section)}}function tT(e,t){if(e&1&&(d(0,"a",60)(1,"span",61),Sa(),d(2,"svg",62),R(3,"path",63)(4,"path",64)(5,"path",65)(6,"path",66),f()(),Ta(),d(7,"span",67)(8,"strong"),g(9),f()(),d(10,"span",68),g(11,"Download"),f()()),e&2){let n=D().ngIf;_("href",n.pdfPath,ge),Xt("download",n.pdfDownloadName??"")("aria-label","Descarregar "+(n.pdfTitle??"documento PDF")),h(9),P(n.pdfTitle??"Documento PDF")}}function nT(e,t){if(e&1){let n=he();d(0,"button",73),S("click",function(){let o=K(n).index,i=D().index,s=D(2);return J(s.selectAnswer(i,o))}),g(1),f()}if(e&2){let n=t.$implicit,r=t.index,o=D().index,i=D(2);ce("question-option--correct",i.isCorrectOption(o,r))("question-option--incorrect",i.isWrongSelectedOption(o,r)),_("disabled",i.isQuestionAnswered(o)),h(),G(" ",n," ")}}function rT(e,t){if(e&1&&(d(0,"article",69)(1,"span",40),g(2),f(),d(3,"h3"),g(4),f(),d(5,"div",70),j(6,nT,2,6,"button",71),f(),d(7,"p",72),g(8),f()()),e&2){let n=t.$implicit,r=t.index;h(2),G("Pergunta ",r+1),h(2),P(n.prompt),h(2),_("ngForOf",n.options),h(2),P(n.note)}}function oT(e,t){if(e&1){let n=he();Co(0),R(1,"app-hub-page-actions"),d(2,"div",4)(3,"header",5)(4,"div",6)(5,"div")(6,"a",7),g(7,"Voltar aos detalhes do curso"),f(),d(8,"p",8),g(9),f(),d(10,"h1"),g(11),f()()()(),d(12,"main",9)(13,"aside",10)(14,"div",11)(15,"div",12)(16,"span",13),g(17,"Conte\xFAdo da Forma\xE7\xE3o"),f(),d(18,"strong"),g(19),f()(),d(20,"div",14),j(21,TS,9,5,"article",15),d(22,"div",16)(23,"span",17),g(24,"Progress\xE3o atual"),f(),d(25,"strong"),g(26),f(),d(27,"div",18),R(28,"span"),f()()()()(),d(29,"section",19)(30,"div",20)(31,"div",21)(32,"div")(33,"span",22),g(34,"Percurso da Forma\xE7\xE3o"),f(),d(35,"h2"),g(36,"Contextualiza\xE7\xE3o"),f()()(),d(37,"p",23),g(38),f(),d(39,"ul",24),j(40,AS,2,1,"li",25),f(),d(41,"section",26),j(42,eT,7,4,"article",27),f()(),j(43,tT,12,4,"a",28),d(44,"div",20)(45,"div",21)(46,"div")(47,"span",22),g(48,"Valida\xE7\xE3o de Conhecimentos"),f()()(),d(49,"div",29),j(50,rT,9,4,"article",30),f()(),d(51,"div",31)(52,"a",32),g(53,"Voltar ao curso"),f(),d(54,"button",33),S("click",function(){K(n);let o=D();return J(o.scrollToModule(0))}),g(55,"Voltar ao primeiro modulo"),f()()()()(),Do()}if(e&2){let n=t.ngIf,r=D();h(6),_("routerLink",nr(14,Z_,n.slug)),h(3),P(n.category),h(2),P(n.title),h(8),G("",n.modules.length," m\xF3dulos"),h(2),_("ngForOf",n.modules),h(5),P(r.progressLabel()),h(2),en("width",r.progressPercentage(),"%"),h(10),P(n.summary),h(2),_("ngForOf",n.topics),h(2),_("ngForOf",r.modulesWithSections()),h(),_("ngIf",n.pdfPath),h(7),_("ngForOf",r.visibleQuestions()),h(2),_("routerLink",nr(16,Z_,n.slug))}}function iT(e,t){if(e&1){let n=he();d(0,"button",83),S("click",function(){K(n);let o=D(2);return J(o.showPreviousZoomedImage())}),g(1," Anterior "),f()}if(e&2){let n=D(2);_("disabled",n.zoomedImageIndex()===0)}}function sT(e,t){if(e&1&&(d(0,"span",84),g(1),f()),e&2){let n=D(2);h(),jt(" ",n.zoomedImageIndex()+1," / ",n.zoomedimageset().length," ")}}function aT(e,t){if(e&1){let n=he();d(0,"button",83),S("click",function(){K(n);let o=D(2);return J(o.showNextZoomedImage())}),g(1," Seguinte "),f()}if(e&2){let n=D(2);_("disabled",n.zoomedImageIndex()>=n.zoomedimageset().length-1)}}function cT(e,t){if(e&1){let n=he();d(0,"div",74),S("click",function(){K(n);let o=D();return J(o.closeZoomedImage())}),d(1,"div",75),S("click",function(o){return o.stopPropagation()}),d(2,"div",76),j(3,iT,2,1,"button",77)(4,sT,2,2,"span",78),d(5,"button",79),S("click",function(){K(n);let o=D();return J(o.zoomOutImage())}),g(6,"-"),f(),d(7,"button",79),S("click",function(){K(n);let o=D();return J(o.resetImageZoom())}),g(8,"100%"),f(),d(9,"button",79),S("click",function(){K(n);let o=D();return J(o.zoomInImage())}),g(10,"+"),f(),j(11,aT,2,1,"button",77),d(12,"button",80),S("click",function(){K(n);let o=D();return J(o.closeZoomedImage())}),g(13,"Fechar"),f()(),d(14,"div",81),S("wheel",function(o){K(n);let i=Mn(16),s=D();return J(s.handleImageZoomWheel(o,i))}),d(15,"img",82,1),S("click",function(o){K(n);let i=Mn(16),s=D();return J(s.handleImageZoomClick(o,i))}),f()()()()}if(e&2){let n=t.ngIf,r=D();h(3),_("ngIf",r.zoomedimageset().length>1),h(),_("ngIf",r.zoomedimageset().length>1),h(7),_("ngIf",r.zoomedimageset().length>1),h(4),en("transform","scale("+r.zoomScale()+")")("transform-origin",r.zoomOrigin()),_("src",n,ge)}}function lT(e,t){e&1&&(d(0,"div",85)(1,"div",86)(2,"h1"),g(3,"Percurso nao encontrado"),f(),d(4,"p"),g(5,"O percurso pedido nao esta disponivel neste momento."),f(),d(6,"a",87),g(7,"Voltar aos cursos"),f()()())}var ml=class e{static QUESTIONS_PER_SESSION=5;static MIN_ZOOM_SCALE=1;static MAX_ZOOM_SCALE=3;static ZOOM_STEP=.25;route=m(dt);paramMap=hl(this.route.paramMap);selectedAnswers=L({});presentationImageIndexes=L({});visibleQuestions=L([]);currentModuleIndex=L(0);zoomedimageset=L([]);zoomedImageIndex=L(0);zoomedImageSrc=Ce(()=>this.zoomedimageset()[this.zoomedImageIndex()]??null);zoomScale=L(1);zoomOrigin=L("50% 50%");resetAnswersOnCourseChange=xi(()=>{let t=this.paramMap()?.get("slug")??null,n=_s(t);this.selectedAnswers.set({}),this.presentationImageIndexes.set({}),this.currentModuleIndex.set(0),this.zoomedimageset.set([]),this.zoomedImageIndex.set(0),this.zoomScale.set(1),this.zoomOrigin.set("50% 50%"),this.visibleQuestions.set(this.pickRandomQuestions(n?.questions??[])),setTimeout(()=>this.updateCurrentModuleFromScroll(),0)});course=Ce(()=>{let t=this.paramMap()?.get("slug")??null;return _s(t)});modulesWithSections=Ce(()=>{let t=this.course();if(!t)return[];let n=t.lessonSections[t.lessonSections.length-1]??null;return t.modules.map((r,o)=>({module:r,section:t.lessonSections[o]??n}))});progressLabel=Ce(()=>{let t=this.course();return t?`${this.currentModuleIndex()+1} of ${t.modules.length} m\xF3dulos`:"0% complete"});progressPercentage=Ce(()=>{let t=this.course();return!t||t.modules.length===0?0:(this.currentModuleIndex()+1)/t.modules.length*100});scrollToModule(t){let n=document.querySelector(`[data-module-index="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})}onWindowScroll(){this.updateCurrentModuleFromScroll()}onEscapeKey(){this.closeZoomedImage()}onArrowLeftKey(){this.showPreviousZoomedImage()}onArrowRightKey(){this.showNextZoomedImage()}updateCurrentModuleFromScroll(){let t=Array.from(document.querySelectorAll("[data-module-index]"));if(t.length===0)return;let n=window.scrollY+window.innerHeight*.35,r=0;t.forEach((o,i)=>{o.offsetTop<=n&&(r=i)}),r!==this.currentModuleIndex()&&this.currentModuleIndex.set(r)}selectAnswer(t,n){let r=this.selectedAnswers();r[t]===void 0&&this.selectedAnswers.set(k(b({},r),{[t]:n}))}isQuestionAnswered(t){return this.selectedAnswers()[t]!==void 0}isCorrectOption(t,n){let r=this.visibleQuestions()[t];return!r||!this.isQuestionAnswered(t)?!1:r.correctOptionIndex===n}isWrongSelectedOption(t,n){let r=this.selectedAnswers()[t];if(r===void 0)return!1;let o=this.visibleQuestions()[t];if(!o)return!1;let i=o.correctOptionIndex;return r===n&&r!==i}openZoomedImage(t){this.openZoomedImageGallery([t],0)}openZoomedImageGallery(t,n){this.zoomedimageset.set(t),this.zoomedImageIndex.set(n),this.zoomScale.set(1),this.zoomOrigin.set("50% 50%")}closeZoomedImage(){this.zoomedimageset.set([]),this.zoomedImageIndex.set(0),this.zoomScale.set(1),this.zoomOrigin.set("50% 50%")}showPreviousZoomedImage(){let t=this.zoomedimageset(),n=this.zoomedImageIndex();t.length<=1||n===0||(this.zoomedImageIndex.set(n-1),this.resetImageZoom())}showNextZoomedImage(){let t=this.zoomedimageset(),n=this.zoomedImageIndex();t.length<=1||n>=t.length-1||(this.zoomedImageIndex.set(n+1),this.resetImageZoom())}previousPresentationImage(t){let n=this.getPresentationImageIndex(t);n!==0&&this.presentationImageIndexes.update(r=>k(b({},r),{[t]:n-1}))}nextPresentationImage(t,n){let r=this.getPresentationImageIndex(t);r>=n.length-1||this.presentationImageIndexes.update(o=>k(b({},o),{[t]:r+1}))}getPresentationImage(t,n){return n[this.getPresentationImageIndex(t)]??n[0]??""}getPresentationImageIndex(t){return this.presentationImageIndexes()[t]??0}zoomInImage(){this.zoomScale.update(t=>Math.min(t+e.ZOOM_STEP,e.MAX_ZOOM_SCALE))}zoomOutImage(){this.zoomScale.update(t=>Math.max(t-e.ZOOM_STEP,e.MIN_ZOOM_SCALE))}resetImageZoom(){this.zoomScale.set(1),this.zoomOrigin.set("50% 50%")}handleImageZoomWheel(t,n){if(t.preventDefault(),this.updateZoomOriginFromPointer(t,n),t.deltaY<0){this.zoomInImage();return}this.zoomOutImage()}handleImageZoomClick(t,n){this.updateZoomOriginFromPointer(t,n),this.zoomInImage()}updateZoomOriginFromPointer(t,n){let r=n.getBoundingClientRect();if(r.width===0||r.height===0)return;let o=(t.clientX-r.left)/r.width*100,i=(t.clientY-r.top)/r.height*100,s=Math.min(Math.max(o,0),100),a=Math.min(Math.max(i,0),100);this.zoomOrigin.set(`${s}% ${a}%`)}pickRandomQuestions(t){let n=[...t];for(let r=n.length-1;r>0;r-=1){let o=Math.floor(Math.random()*(r+1));[n[r],n[o]]=[n[o],n[r]]}return n.slice(0,e.QUESTIONS_PER_SESSION)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-course-learning-page"]],hostBindings:function(n,r){n&1&&S("scroll",function(){return r.onWindowScroll()},bo)("keydown.escape",function(){return r.onEscapeKey()},bo)("keydown.arrowleft",function(){return r.onArrowLeftKey()},bo)("keydown.arrowright",function(){return r.onArrowRightKey()},bo)},decls:4,vars:3,consts:[["notfound",""],["zoomedimageelement",""],[4,"ngIf","ngIfElse"],["class","image-lightbox",3,"click",4,"ngIf"],[1,"learning-page"],[1,"learning-header"],[1,"learning-header__inner"],[1,"back-link",3,"routerLink"],[1,"course-kicker",2,"display","none"],[1,"learning-layout"],[1,"learning-sidebar"],[1,"sidebar-panel"],[1,"sidebar-panel__top"],[1,"sidebar-panel__eyebrow"],[1,"module-nav"],["class","module-nav__item",3,"module-nav__item--active",4,"ngFor","ngForOf"],[1,"progress-card"],[1,"progress-card__label"],[1,"progress-bar"],[1,"learning-main"],[1,"content-panel"],[1,"content-panel__header"],[1,"content-panel__eyebrow"],[1,"content-intro"],[1,"course-topics"],[4,"ngFor","ngForOf"],[1,"module-sequence"],["class","learning-module",4,"ngFor","ngForOf"],["class","resource-download-card",3,"href",4,"ngIf"],[1,"question-list"],["class","question-card",4,"ngFor","ngForOf"],[1,"lesson-actions"],[1,"button","button--secondary",3,"routerLink"],["type","button",1,"button",3,"click"],[1,"module-nav__item"],["type","button",1,"module-nav__trigger",3,"click"],[1,"module-nav__index"],[1,"module-nav__content"],[1,"learning-module"],[1,"learning-module__header"],[1,"question-card__number"],[1,"lesson-duration"],["class","lesson-section",4,"ngIf"],[1,"lesson-section"],[3,"innerHTML",4,"ngFor","ngForOf"],["class","course-topics",4,"ngIf"],["class","lesson-image","alt","Imagem da secao",3,"src","click",4,"ngIf"],["controls","","width","100%","class","video-aula",4,"ngIf"],["class","presentation-viewer",4,"ngIf"],[3,"innerHTML"],["alt","Imagem da secao",1,"lesson-image",3,"click","src"],["controls","","width","100%",1,"video-aula"],["type","video/mp4",3,"src"],[1,"presentation-viewer"],[1,"presentation-viewer__header"],[1,"presentation-viewer__counter"],[1,"presentation-viewer__stage"],["alt","Imagem da apresentacao",1,"presentation-viewer__slide",3,"click","src"],[1,"presentation-viewer__actions"],["type","button",1,"presentation-viewer__button",3,"click","disabled"],[1,"resource-download-card",3,"href"],["aria-hidden","true",1,"resource-download-card__icon"],["viewBox","0 0 24 24","focusable","false"],["d","M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"],["d","M14 3v5h5"],["d","M12 11v6"],["d","m9.5 14.5 2.5 2.5 2.5-2.5"],[1,"resource-download-card__content"],[1,"resource-download-card__action"],[1,"question-card"],[1,"question-options"],["type","button","class","question-option",3,"question-option--correct","question-option--incorrect","disabled","click",4,"ngFor","ngForOf"],[1,"question-note"],["type","button",1,"question-option",3,"click","disabled"],[1,"image-lightbox",3,"click"],[1,"image-lightbox__dialog",3,"click"],[1,"image-lightbox__toolbar"],["type","button","class","image-lightbox__action",3,"disabled","click",4,"ngIf"],["class","image-lightbox__counter",4,"ngIf"],["type","button",1,"image-lightbox__action",3,"click"],["type","button",1,"image-lightbox__close",3,"click"],[1,"image-lightbox__viewport",3,"wheel"],["alt","Imagem ampliada",1,"image-lightbox__image",3,"click","src"],["type","button",1,"image-lightbox__action",3,"click","disabled"],[1,"image-lightbox__counter"],[1,"course-not-found"],[1,"course-not-found__card"],["routerLink","/formacoes",1,"button"]],template:function(n,r){if(n&1&&j(0,oT,56,18,"ng-container",2)(1,cT,17,8,"div",3)(2,lT,8,0,"ng-template",null,0,Vr),n&2){let o=Mn(3);_("ngIf",r.course())("ngIfElse",o),h(),_("ngIf",r.zoomedImageSrc())}},dependencies:[Ie,$e,at,cn,qe],styles:['[_nghost-%COMP%]{display:block;min-height:100vh;background:#f8fafc;color:#0f172a}*[_ngcontent-%COMP%]{box-sizing:border-box}.learning-page[_ngcontent-%COMP%]{min-height:100vh}.video-aula[_ngcontent-%COMP%]{margin-top:20px;border-radius:12px;box-shadow:0 4px 20px #0003}.learning-header[_ngcontent-%COMP%]{border-bottom:1px solid #e2e8f0;background:radial-gradient(circle at top left,rgba(37,99,235,.12),transparent 28%),linear-gradient(180deg,#fff,#f8fbff)}.learning-header__inner[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:24px;max-width:1280px;margin:0 auto;padding:40px 24px 28px}.back-link[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:18px;color:#2563eb;text-decoration:none;font-weight:700}.course-kicker[_ngcontent-%COMP%]{margin:0 0 10px;color:#2563eb;font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.learning-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.06;letter-spacing:-.03em}.progress-card[_ngcontent-%COMP%]{min-width:260px;padding:18px 20px;border:1px solid #dbe4f0;border-radius:24px;background:#fff;box-shadow:0 16px 30px #0f172a0d}.progress-card__label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#64748b;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.progress-card[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;margin-bottom:14px;font-size:1rem}.progress-bar[_ngcontent-%COMP%]{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.progress-bar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:24%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1d4ed8,#3b82f6)}.learning-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;max-width:1280px;margin:0 auto;padding:28px 24px 64px}.learning-sidebar[_ngcontent-%COMP%]{position:relative}.sidebar-panel[_ngcontent-%COMP%], .content-panel[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border:1px solid #dbe4f0;border-radius:28px;background:#fff;box-shadow:0 14px 34px #0f172a0d}.sidebar-panel[_ngcontent-%COMP%]{position:sticky;top:24px;padding:22px}.sidebar-panel__top[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.sidebar-panel__eyebrow[_ngcontent-%COMP%]{color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.module-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.module-nav__item[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr);padding:0;border:1px solid #e5edf6;border-radius:20px;background:#f8fafc}.module-nav__trigger[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;width:100%;padding:14px;border:0;border-radius:inherit;background:transparent;text-align:left;cursor:pointer}.module-nav__item--active[_ngcontent-%COMP%]{border-color:#bfdbfe;background:#eff6ff}.module-nav__index[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;background:#fff;color:#1d4ed8;font-weight:800}.module-nav__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 6px;font-size:.98rem}.module-nav__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#64748b;font-size:.9rem}.learning-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:22px}.content-panel[_ngcontent-%COMP%]{padding:28px}.content-panel__header[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.content-panel__eyebrow[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:10px;color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.content-panel__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.8rem;line-height:1.15}.lesson-duration[_ngcontent-%COMP%]{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.84rem;font-weight:800;white-space:nowrap}.content-intro[_ngcontent-%COMP%]{margin:0 0 18px;color:#475569;line-height:1.75;white-space:pre-line;text-align:justify}.resource-download-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin:0 0 22px;padding:18px 20px;border:1px solid #bfdbfe;border-radius:22px;background:linear-gradient(135deg,#eff6ff,#fff);color:inherit;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.resource-download-card[_ngcontent-%COMP%]:hover{transform:translateY(-1px);border-color:#60a5fa;box-shadow:0 16px 32px #2563eb1f}.resource-download-card__icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 56px;width:56px;height:56px;border-radius:18px;background:#dbeafe;color:#1d4ed8}.resource-download-card__icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:28px;height:28px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.resource-download-card__content[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.resource-download-card__eyebrow[_ngcontent-%COMP%]{color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.resource-download-card__content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:1rem}.resource-download-card__content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:#64748b;line-height:1.5}.resource-download-card__action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;background:#1d4ed8;color:#fff;font-size:.88rem;font-weight:800;white-space:nowrap}.course-topics[_ngcontent-%COMP%]{margin:0 0 18px;color:#64748b;line-height:1.75;text-align:justify;padding-left:20px}.course-topics[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:6px}.course-topics[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"\\2713";color:#64748b;margin:0 0 18px}.content-icons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.content-icons__item[_ngcontent-%COMP%]{width:auto;height:26px}.lesson-section[_ngcontent-%COMP%] + .lesson-section[_ngcontent-%COMP%]{margin-top:20px;padding-top:20px;border-top:1px solid #e5edf6}.module-sequence[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px}.learning-module[_ngcontent-%COMP%]{scroll-margin-top:28px;padding:20px;border:1px solid #e5edf6;border-radius:24px;background:#fff}.learning-module__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.module-description[_ngcontent-%COMP%]{margin:0 0 14px;color:#475569;line-height:1.7}.lesson-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .question-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 10px;font-size:1.16rem}.lesson-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .question-note[_ngcontent-%COMP%]{margin:0;color:#64748b;line-height:1.75;text-align:justify;white-space:pre-line}.lesson-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] + p[_ngcontent-%COMP%]{margin-top:12px}.lesson-image[_ngcontent-%COMP%]{display:block;width:min(100%,860px);margin:18px auto;border-radius:18px;box-shadow:0 18px 40px #0f172a1f;cursor:zoom-in;transition:transform .2s ease,box-shadow .2s ease}.lesson-image[_ngcontent-%COMP%]:hover{transform:scale(1.01);box-shadow:0 22px 48px #0f172a29}.presentation-viewer[_ngcontent-%COMP%]{margin-top:24px;padding:22px;border:1px solid #dbe4f0;border-radius:24px;background:linear-gradient(180deg,#eff6ff,#fff)}.presentation-viewer__header[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}.presentation-viewer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.12rem}.presentation-viewer__counter[_ngcontent-%COMP%], .image-lightbox__counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.82rem;font-weight:800;white-space:nowrap}.presentation-viewer__stage[_ngcontent-%COMP%]{overflow:hidden;border-radius:20px;background:#0f172a;box-shadow:inset 0 0 0 1px #ffffff14}.presentation-viewer__slide[_ngcontent-%COMP%]{display:block;width:100%;aspect-ratio:16 / 9;object-fit:contain;background:#0f172a;cursor:zoom-in}.presentation-viewer__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.presentation-viewer__button[_ngcontent-%COMP%]{min-height:44px;padding:0 18px;border:0;border-radius:14px;background:#1d4ed8;color:#fff;font-size:.9rem;font-weight:800;cursor:pointer}.presentation-viewer__button[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}.image-lightbox[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:#0f172ad1;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.image-lightbox__dialog[_ngcontent-%COMP%]{position:relative;max-width:min(1200px,100%);max-height:100%}.image-lightbox__toolbar[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px;z-index:1;display:flex;align-items:center;gap:8px}.image-lightbox__action[_ngcontent-%COMP%], .image-lightbox__close[_ngcontent-%COMP%]{min-width:48px;min-height:40px;padding:0 14px;border:0;border-radius:999px;background:#fff;color:#0f172a;font-size:.86rem;font-weight:800;cursor:pointer;box-shadow:0 10px 24px #0f172a33}.image-lightbox__close[_ngcontent-%COMP%]{min-width:96px}.image-lightbox__viewport[_ngcontent-%COMP%]{overflow:auto;max-width:min(1200px,calc(100vw - 48px));max-height:calc(100vh - 48px);border-radius:20px;cursor:zoom-in}.image-lightbox__image[_ngcontent-%COMP%]{display:block;max-width:min(1200px,calc(100vw - 48px));max-height:calc(100vh - 48px);border-radius:20px;box-shadow:0 28px 70px #0f172a59;transition:transform .18s ease;-webkit-user-select:none;user-select:none}.question-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.question-card[_ngcontent-%COMP%]{padding:20px;border:1px solid #e5edf6;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff)}.question-card__number[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:12px;color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.question-options[_ngcontent-%COMP%]{display:grid;gap:10px;margin:16px 0 14px}.question-option[_ngcontent-%COMP%]{min-height:50px;border:1px solid #dbe4f0;border-radius:16px;background:#fff;color:#0f172a;font-size:.95rem;font-weight:700;text-align:left;padding:0 16px;cursor:pointer}.question-option[_ngcontent-%COMP%]:hover{border-color:#93c5fd;background:#f8fbff}.question-option[_ngcontent-%COMP%]:disabled{opacity:1;cursor:default}.question-option.question-option--correct[_ngcontent-%COMP%]{border-color:#16a34a;background:#dcfce7;color:#166534}.question-option.question-option--incorrect[_ngcontent-%COMP%]{border-color:#dc2626;background:#fee2e2;color:#991b1b}.lesson-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px}.button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:180px;min-height:50px;padding:0 20px;border:0;border-radius:18px;background:#1d4ed8;color:#fff;text-decoration:none;font-size:.96rem;font-weight:800;cursor:pointer}.button[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.button--secondary[_ngcontent-%COMP%]{background:#eff6ff;color:#1d4ed8}.course-not-found[_ngcontent-%COMP%]{min-height:100vh;display:grid;place-items:center;padding:24px}.course-not-found__card[_ngcontent-%COMP%]{max-width:520px;padding:32px;text-align:center}.course-not-found__card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 12px}.course-not-found__card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 20px;color:#64748b}@media(max-width:1024px){.learning-header__inner[_ngcontent-%COMP%], .learning-layout[_ngcontent-%COMP%]{grid-template-columns:1fr;display:grid}.progress-card[_ngcontent-%COMP%], .sidebar-panel[_ngcontent-%COMP%]{position:static}}@media(max-width:768px){.learning-header__inner[_ngcontent-%COMP%], .learning-layout[_ngcontent-%COMP%]{padding-left:20px;padding-right:20px}.learning-header__inner[_ngcontent-%COMP%]{padding-top:32px;padding-bottom:24px}.content-panel[_ngcontent-%COMP%], .sidebar-panel[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border-radius:22px}.content-panel[_ngcontent-%COMP%]{padding:22px}.content-panel__header[_ngcontent-%COMP%], .lesson-actions[_ngcontent-%COMP%], .presentation-viewer__header[_ngcontent-%COMP%], .presentation-viewer__actions[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.resource-download-card[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}.resource-download-card__action[_ngcontent-%COMP%]{width:100%}}']})};var kn=()=>{let e=m(Ke),t=m(Se);return e.isLoggedIn().then(n=>n?!0:t.createUrlTree(["/"]))};var o0=(()=>{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)(T(wn),T(ot))};static \u0275dir=se({type:e})}return e})(),xl=(()=>{class e extends o0{static \u0275fac=(()=>{let n;return function(o){return(n||(n=bt(e)))(o||e)}})();static \u0275dir=se({type:e,features:[Qe]})}return e})(),Is=new x(""),uT={provide:Is,useExisting:et(()=>zp),multi:!0},zp=(()=>{class e extends xl{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=bt(e)))(o||e)}})();static \u0275dir=se({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[tn([uT]),Qe]})}return e})(),dT={provide:Is,useExisting:et(()=>lr),multi:!0};function fT(){let e=wt()?wt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var pT=new x(""),lr=(()=>{class e extends o0{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!fT())}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)(T(wn),T(ot),T(pT,8))};static \u0275dir=se({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&&S("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:[tn([dT]),Qe]})}return e})();function hT(e){return e==null||i0(e)===0}function i0(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Il=new x(""),s0=new x("");function gT(e){return hT(e.value)?{required:!0}:null}function mT(e){return t=>{let n=t.value?.length??i0(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Q_(e){return null}function a0(e){return e!=null}function c0(e){return tr(e)?fe(e):e}function l0(e){let t={};return e.forEach(n=>{t=n!=null?b(b({},t),n):t}),Object.keys(t).length===0?null:t}function u0(e,t){return t.map(n=>n(e))}function vT(e){return!e.validate}function d0(e){return e.map(t=>vT(t)?t:n=>t.validate(n))}function yT(e){if(!e)return null;let t=e.filter(a0);return t.length==0?null:function(n){return l0(u0(n,t))}}function qp(e){return e!=null?yT(d0(e)):null}function _T(e){if(!e)return null;let t=e.filter(a0);return t.length==0?null:function(n){let r=u0(n,t).map(c0);return ou(r).pipe(Y(l0))}}function Gp(e){return e!=null?_T(d0(e)):null}function Y_(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function bT(e){return e._rawValidators}function CT(e){return e._rawAsyncValidators}function Hp(e){return e?Array.isArray(e)?e:[e]:[]}function yl(e,t){return Array.isArray(e)?e.includes(t):e===t}function K_(e,t){let n=Hp(t);return Hp(e).forEach(o=>{yl(n,o)||n.push(o)}),n}function J_(e,t){return Hp(t).filter(n=>!yl(e,n))}var _l=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=qp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Gp(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}},qo=class extends _l{name;get formDirective(){return null}get path(){return null}},xs=class extends _l{_parent=null;name=null;valueAccessor=null},bl=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 Go=(()=>{class e extends bl{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(T(xs,2))};static \u0275dir=se({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ce("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:[Qe]})}return e})(),f0=(()=>{class e extends bl{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(T(qo,10))};static \u0275dir=se({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ce("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:[Qe]})}return e})();var bs="VALID",vl="INVALID",$o="PENDING",Cs="DISABLED",cr=class{},Cl=class extends cr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Es=class extends cr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ws=class extends cr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},zo=class extends cr{status;source;constructor(t,n){super(),this.status=t,this.source=n}},$p=class extends cr{source;constructor(t){super(),this.source=t}},Dl=class extends cr{source;constructor(t){super(),this.source=t}};function p0(e){return(Ml(e)?e.validators:e)||null}function DT(e){return Array.isArray(e)?qp(e):e||null}function h0(e,t){return(Ml(t)?t.asyncValidators:e)||null}function ET(e){return Array.isArray(e)?Gp(e):e||null}function Ml(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function wT(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(1001,"")}function xT(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new C(1002,"")})}var El=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 ne(this.statusReactive)}set status(t){ne(()=>this.statusReactive.set(t))}_status=Ce(()=>this.statusReactive());statusReactive=L(void 0);get valid(){return this.status===bs}get invalid(){return this.status===vl}get pending(){return this.status==$o}get disabled(){return this.status===Cs}get enabled(){return this.status!==Cs}errors;get pristine(){return ne(this.pristineReactive)}set pristine(t){ne(()=>this.pristineReactive.set(t))}_pristine=Ce(()=>this.pristineReactive());pristineReactive=L(!0);get dirty(){return!this.pristine}get touched(){return ne(this.touchedReactive)}set touched(t){ne(()=>this.touchedReactive.set(t))}_touched=Ce(()=>this.touchedReactive());touchedReactive=L(!1);get untouched(){return!this.touched}_events=new ve;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(K_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(K_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(J_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(J_(t,this._rawAsyncValidators))}hasValidator(t){return yl(this._rawValidators,t)}hasAsyncValidator(t){return yl(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(k(b({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ws(!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 ws(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(k(b({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Es(!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 Es(!0,r))}markAsPending(t={}){this.status=$o;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new zo(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(k(b({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Cs,this.errors=null,this._forEachChild(o=>{o.disable(k(b({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Cl(this.value,r)),this._events.next(new zo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(k(b({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=bs,this._forEachChild(r=>{r.enable(k(b({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(k(b({},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===bs||this.status===$o)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Cl(this.value,n)),this._events.next(new zo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(k(b({},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()?Cs:bs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=$o,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=c0(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 zo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ye,this.statusChanges=new ye}_calculateStatus(){return this._allControlsDisabled()?Cs:this.errors?vl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($o)?$o:this._anyControlsHaveStatus(vl)?vl:bs}_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 Es(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ws(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ml(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=DT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ET(this._rawAsyncValidators)}},wl=class extends El{constructor(t,n,r){super(p0(n),h0(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={}){xT(this,!0,t),Object.keys(t).forEach(r=>{wT(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,k(b({},n),{onlySelf:!0}))}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n),n?.emitEvent!==!1&&this._events.next(new Dl(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 Wp=new x("",{factory:()=>Zp}),Zp="always";function IT(e,t){return[...t.path,e]}function g0(e,t,n=Zp){m0(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),ST(e,t),AT(e,t),TT(e,t),MT(e,t)}function X_(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function MT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function m0(e,t){let n=bT(e);t.validator!==null?e.setValidators(Y_(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=CT(e);t.asyncValidator!==null?e.setAsyncValidators(Y_(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();X_(t._rawValidators,o),X_(t._rawAsyncValidators,o)}function ST(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&v0(e,t)})}function TT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&v0(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function v0(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function AT(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function OT(e,t){e==null,m0(e,t)}function NT(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function PT(e){return Object.getPrototypeOf(e.constructor)===xl}function RT(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function kT(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===lr?n=i:PT(i)?r=i:o=i}),o||r||n||null}var FT={provide:qo,useExisting:et(()=>Qp)},Ds=Promise.resolve(),Qp=(()=>{class e extends qo{callSetDisabledState;get submitted(){return ne(this.submittedReactive)}_submitted=Ce(()=>this.submittedReactive());submittedReactive=L(!1);_directives=new Set;form;ngSubmit=new ye;options;constructor(n,r,o){super(),this.callSetDisabledState=o,this.form=new wl({},qp(n),Gp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ds.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),g0(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ds.then(()=>{this._findContainer(n.path)?.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Ds.then(()=>{let r=this._findContainer(n.path),o=new wl({});OT(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ds.then(()=>{this._findContainer(n.path)?.removeControl?.(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Ds.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),RT(this.form,this._directives),this.ngSubmit.emit(n),this.form._events.next(new $p(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)(T(Il,10),T(s0,10),T(Wp,8))};static \u0275dir=se({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&S("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:[tn([FT]),Qe]})}return e})();function e0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function t0(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var LT=class extends El{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(p0(n),h0(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ml(n)&&(n.nonNullable||n.initialValueIsDefault)&&(t0(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 Dl(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){e0(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){e0(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){t0(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 jT={provide:xs,useExisting:et(()=>Zr)},n0=Promise.resolve(),Zr=(()=>{class e extends xs{_changeDetectorRef;callSetDisabledState;control=new LT;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ye;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=kT(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),NT(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(){g0(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){n0.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Br(r);n0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?IT(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(T(qo,9),T(Il,10),T(s0,10),T(Is,10),T(Sn,8),T(Wp,8))};static \u0275dir=se({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:[tn([jT]),Qe,Cn]})}return e})();var y0=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=se({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var VT={provide:Is,useExisting:et(()=>Sl),multi:!0};function _0(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function BT(e){return e.split(":")[0]}var Sl=(()=>{class e extends xl{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=m(In).injector;destroyRef=m(ke);cdr=m(Sn);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Vi({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=_0(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=BT(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=bt(e)))(o||e)}})();static \u0275dir=se({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[tn([VT]),Qe]})}return e})(),b0=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(_0(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(T(ot),T(wn),T(Sl,9))};static \u0275dir=se({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),UT={provide:Is,useExisting:et(()=>C0),multi:!0};function r0(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function HT(e){return e.split(":")[0]}var C0=(()=>{class e extends xl{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);o.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=HT(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=bt(e)))(o||e)}})();static \u0275dir=se({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[tn([UT]),Qe]})}return e})(),D0=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(r0(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(r0(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(T(ot),T(wn),T(C0,9))};static \u0275dir=se({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();function $T(e){return typeof e=="number"?e:parseInt(e,10)}var E0=(()=>{class e{_validator=Q_;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Q_,this._onChange?.()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=se({type:e,features:[Cn]})}return e})();var zT={provide:Il,useExisting:et(()=>Yp),multi:!0};var Yp=(()=>{class e extends E0{required;inputName="required";normalizeInput=Br;createValidator=n=>gT;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=bt(e)))(o||e)}})();static \u0275dir=se({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&Xt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[tn([zT]),Qe]})}return e})();var qT={provide:Il,useExisting:et(()=>Kp),multi:!0},Kp=(()=>{class e extends E0{maxlength;inputName="maxlength";normalizeInput=n=>$T(n);createValidator=n=>mT(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=bt(e)))(o||e)}})();static \u0275dir=se({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Xt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[tn([qT]),Qe]})}return e})();var GT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Jt({type:e});static \u0275inj=Nt({})}return e})();var Wo=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Wp,useValue:n.callSetDisabledState??Zp}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Jt({type:e});static \u0275inj=Nt({imports:[GT]})}return e})();function WT(e,t){if(e&1&&(d(0,"p",13),g(1),f()),e&2){let n=D();h(),P(n.errorMessage())}}var Tl=class e{constructor(t,n){this.authService=t;this.router=n}email="";password="";rememberSession=!0;submitted=L(!1);errorMessage=L("");async ngOnInit(){await this.authService.isLoggedIn()&&this.router.navigateByUrl("/formacoes")}async login(){this.submitted.set(!0),this.errorMessage.set("");let t=this.email.trim();if(!t||!this.password){this.errorMessage.set("Preencha o email e a palavra-passe.");return}try{await this.authService.login(t,this.password,this.rememberSession),this.router.navigateByUrl("/pagina-principal")}catch{this.errorMessage.set("Email ou palavra-passe incorretos.")}}static \u0275fac=function(n){return new(n||e)(T(Ke),T(Se))};static \u0275cmp=ie({type:e,selectors:[["app-login-page"]],decls:24,vars:8,consts:[[1,"login-page"],["aria-labelledby","login-title",1,"login-card"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"login-logo"],[1,"login-header"],["id","login-title"],["novalidate","",1,"login-form",3,"ngSubmit"],[1,"field"],["type","email","name","email","autocomplete","email","placeholder","nome@empresa.pt","required","",3,"ngModelChange","ngModel"],["type","password","name","password","autocomplete","current-password","placeholder","Palavra-passe","required","",3,"ngModelChange","ngModel"],[1,"remember-row"],["type","checkbox","name","rememberSession",3,"ngModelChange","ngModel"],["class","error-message",4,"ngIf"],["type","submit"],[1,"error-message"]],template:function(n,r){n&1&&(d(0,"main",0)(1,"section",1),R(2,"img",2),d(3,"div",3)(4,"span"),g(5,"Multipurpose hub"),f(),d(6,"h1",4),g(7,"Iniciar sessao"),f()(),d(8,"form",5),S("ngSubmit",function(){return r.login()}),d(9,"label",6)(10,"span"),g(11,"Email"),f(),d(12,"input",7),Et("ngModelChange",function(i){return Vt(r.email,i)||(r.email=i),i}),f()(),d(13,"label",6)(14,"span"),g(15,"Palavra-passe"),f(),d(16,"input",8),Et("ngModelChange",function(i){return Vt(r.password,i)||(r.password=i),i}),f()(),d(17,"label",9)(18,"input",10),Et("ngModelChange",function(i){return Vt(r.rememberSession,i)||(r.rememberSession=i),i}),f(),d(19,"span"),g(20,"Manter sessao iniciada"),f()(),j(21,WT,2,1,"p",11),d(22,"button",12),g(23,"Entrar"),f()()()()),n&2&&(h(12),ce("field--invalid",r.submitted()&&!r.email.trim()),Dt("ngModel",r.email),h(4),ce("field--invalid",r.submitted()&&!r.password),Dt("ngModel",r.password),h(2),Dt("ngModel",r.rememberSession),h(3),_("ngIf",r.errorMessage()))},dependencies:[Ie,at,Wo,y0,lr,zp,Go,f0,Yp,Zr,Qp],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;background:linear-gradient(135deg,#0f172adb,#1e40afad),url(/screenshots/Pagina\\ Principal.jpg) center / cover no-repeat;color:#0f172a}.login-page[_ngcontent-%COMP%]{display:flex;min-height:100vh;align-items:center;justify-content:center;padding:24px}.login-card[_ngcontent-%COMP%]{width:min(100%,420px);border:1px solid rgba(226,232,240,.86);border-radius:8px;background:#fffffff5;padding:32px;box-shadow:0 24px 70px #0f172a47}.login-logo[_ngcontent-%COMP%]{display:block;width:170px;height:auto}.login-header[_ngcontent-%COMP%]{margin-top:30px}.login-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;border-radius:999px;background:#dbeafe;padding:7px 11px;color:#1d4ed8;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.login-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:18px 0 0;font-size:2rem;line-height:1.1;font-weight:800}.login-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 0;color:#64748b;line-height:1.6}.login-form[_ngcontent-%COMP%]{display:grid;gap:18px;margin-top:28px}.field[_ngcontent-%COMP%]{display:grid;gap:8px;color:#334155;font-size:.92rem;font-weight:700}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-height:52px;width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:0 14px;color:#0f172a;font:inherit;font-weight:500;outline:none;transition:border-color .2s ease,box-shadow .2s ease}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb29}.field[_ngcontent-%COMP%] input.field--invalid[_ngcontent-%COMP%]{border-color:#dc2626}.remember-row[_ngcontent-%COMP%]{display:inline-flex;width:fit-content;align-items:center;gap:9px;color:#475569;font-size:.92rem;font-weight:600}.remember-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:16px;height:16px;accent-color:#2563eb}.error-message[_ngcontent-%COMP%]{margin:0;border-radius:8px;background:#fee2e2;padding:12px 14px;color:#991b1b;font-size:.92rem;font-weight:700}.login-form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-height:54px;cursor:pointer;border:0;border-radius:8px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-size:1rem;font-weight:800;transition:opacity .2s ease,transform .2s ease}.login-form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{opacity:.94;transform:translateY(-1px)}@media(max-width:520px){.login-card[_ngcontent-%COMP%]{padding:24px}.login-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.75rem}}"]})};function ZT(e,t){if(e&1){let n=he();d(0,"button",19),S("click",function(){let o=K(n).$implicit,i=D();return J(i.activateShortcut(o))}),R(1,"img",20),d(2,"span",21),g(3),f(),d(4,"span",22),g(5),f()()}if(e&2){let n=t.$implicit,r=D();en("--orbit-angle",n.angle),ce("orbit-menu__item--open",r.leftOrbitOpen()),h(),_("src",n.image,ge)("alt",n.label),h(2),P(n.label),h(2),P(n.caption)}}function QT(e,t){if(e&1){let n=he();d(0,"button",23),S("click",function(){let o=K(n).$implicit,i=D();return J(i.activateShortcut(o))}),R(1,"img",20),d(2,"span",21),g(3),f(),d(4,"span",22),g(5),f()()}if(e&2){let n=t.$implicit,r=D();en("--orbit-angle",n.angle),ce("orbit-menu__item--open",r.rightOrbitOpen()),h(),_("src",n.image,ge)("alt",n.label),h(2),P(n.label),h(2),P(n.caption)}}var Al=class e{constructor(t,n){this.authService=t;this.router=n}leftOrbitOpen=L(!1);rightOrbitOpen=L(!1);leftCoreImage="/imagenscursos/learninghub.png";rightCoreImage="/imagenscursos/operationframework.png";leftShortcuts=[{label:"Formacoes",caption:"Learning Hub",image:"/imagenscursos/LearningHub (2).png",route:"/formacoes",angle:"0deg"},{label:"Vitoria AI",caption:"LLM",image:"/imagenscursos/VitoriaAI.png",route:"/vitoria-ai",angle:"90deg"}];rightShortcuts=[{label:"Conversor de Extratos",caption:"Por entidade bancaria",image:"/imagenscursos/outconversor.png",route:"/conversor-extratos",angle:"0deg"},{label:"Tradutor",caption:"Tradutor de textos",image:"/imagenscursos/Reportcreator.png",route:"/tradutor",angle:"90deg"},{label:"Report Creator",caption:"Report digitalization",image:"/imagenscursos/Digitalizationreport.png",route:"/report-creator",angle:"180deg"}];toggleLeftOrbit(){this.leftOrbitOpen.update(t=>!t)}toggleRightOrbit(){this.rightOrbitOpen.update(t=>!t)}activateShortcut(t){if(t.route){this.router.navigateByUrl(t.route);return}t.href&&window.open(t.href,"_blank","noopener")}logout(){this.authService.logout(),this.router.navigateByUrl("/")}static \u0275fac=function(n){return new(n||e)(T(Ke),T(Se))};static \u0275cmp=ie({type:e,selectors:[["app-pagina-principal"]],decls:30,vars:10,consts:[[1,"hub-page"],[1,"hub-page__backdrop"],[1,"hub-topbar"],[1,"hub-topbar__brand"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"hub-topbar__logo"],["type","button",1,"hub-topbar__logout",3,"click"],[1,"hub-hero"],[1,"hub-hero__copy"],[1,"hub-hero__eyebrow"],[1,"hub-grid"],[1,"orbit-card","orbit-card--left"],[1,"orbit-card__header"],[1,"orbit-shell"],["type","button",1,"orbit-core",3,"click"],[1,"sr-only"],["type","button","class","orbit-menu__item",3,"orbit-menu__item--open","--orbit-angle","click",4,"ngFor","ngForOf"],[1,"orbit-card","orbit-card--right"],[1,"orbit-shell","orbit-shell--right"],["type","button","class","orbit-menu__item orbit-menu__item--right",3,"orbit-menu__item--open","--orbit-angle","click",4,"ngFor","ngForOf"],["type","button",1,"orbit-menu__item",3,"click"],[1,"orbit-menu__image",3,"src","alt"],[1,"orbit-menu__label"],[1,"orbit-menu__caption"],["type","button",1,"orbit-menu__item","orbit-menu__item--right",3,"click"]],template:function(n,r){n&1&&(d(0,"div",0),R(1,"div",1),d(2,"header",2)(3,"div",3),R(4,"img",4),f(),d(5,"button",5),S("click",function(){return r.logout()}),g(6,"Sair"),f()(),d(7,"section",6)(8,"div",7)(9,"span",8),g(10,"Multipurpose Hub"),f()()(),d(11,"section",9)(12,"article",10)(13,"div",11)(14,"span"),g(15,"Learning Hub"),f()(),d(16,"div",12)(17,"button",13),S("click",function(){return r.toggleLeftOrbit()}),d(18,"span",14),g(19,"Abrir atalhos Learning Hub"),f()(),j(20,ZT,6,8,"button",15),f()(),d(21,"article",16)(22,"div",11)(23,"span"),g(24,"Operational Framework"),f()(),d(25,"div",17)(26,"button",13),S("click",function(){return r.toggleRightOrbit()}),d(27,"span",14),g(28,"Abrir atalhos Operational Framework"),f()(),j(29,QT,6,8,"button",18),f()()()()),n&2&&(h(17),en("background-image","url("+r.leftCoreImage+")"),ce("orbit-core--open",r.leftOrbitOpen()),h(3),_("ngForOf",r.leftShortcuts),h(6),en("background-image","url("+r.rightCoreImage+")"),ce("orbit-core--open",r.rightOrbitOpen()),h(3),_("ngForOf",r.rightShortcuts))},dependencies:[Ie,$e],styles:["[_nghost-%COMP%]{display:block}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hub-page[_ngcontent-%COMP%]{position:relative;min-height:100vh;padding:32px;color:#0f172a;background:radial-gradient(circle at top left,rgba(59,130,246,.16),transparent 28%),radial-gradient(circle at top right,rgba(56,189,248,.18),transparent 26%),linear-gradient(180deg,#f8fbff,#eef4ff 44%,#f8fafc)}.hub-page__backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,#ffffffa3,#fff0),radial-gradient(circle at center,rgba(15,23,42,.03),transparent 54%)}.hub-topbar[_ngcontent-%COMP%], .hub-hero[_ngcontent-%COMP%], .hub-grid[_ngcontent-%COMP%]{position:relative;z-index:1}.hub-topbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.hub-topbar__brand[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:14px 18px;border:1px solid rgba(191,219,254,.7);border-radius:999px;background:#ffffffd6;box-shadow:0 20px 48px #0f172a14;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.hub-topbar__logo[_ngcontent-%COMP%]{width:clamp(170px,18vw,260px);height:auto}.hub-topbar__logout[_ngcontent-%COMP%]{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 16px 34px #2563eb3d}.hub-hero[_ngcontent-%COMP%]{max-width:760px;margin:44px auto 0;text-align:center}.hub-hero__eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:#2563eb1a;color:#1d4ed8;font-size:.82rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hub-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:18px 0 0;font-size:clamp(2.4rem,4vw,4rem);line-height:1.05;font-weight:900}.hub-hero[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:18px auto 0;max-width:640px;color:#fff;font-size:1.05rem;line-height:1.8}.hub-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start;margin-top:54px}.orbit-card[_ngcontent-%COMP%]{position:relative;min-height:620px;padding:28px;border:1px solid rgba(148,163,184,.2);border-radius:36px;background:#fff;box-shadow:0 28px 70px #0f172a14;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.orbit-card__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:center;display:block;color:#0f172a;font-size:1.4rem;font-weight:900}.orbit-card__header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin:8px 0 0;color:#e2e8f0;line-height:1.65}.orbit-shell[_ngcontent-%COMP%]{--orbit-radius: 190px;position:relative;display:flex;align-items:center;justify-content:center;min-height:500px}.orbit-core[_ngcontent-%COMP%]{width:250px;height:250px;border:0;border-radius:50%;background-color:#fff;background-position:center;background-repeat:no-repeat;background-size:contain;box-shadow:0 30px 60px #0f172a2e;cursor:pointer;transition:transform .24s ease,box-shadow .24s ease}.orbit-core[_ngcontent-%COMP%]:hover, .orbit-core--open[_ngcontent-%COMP%]{transform:scale(1.03);box-shadow:0 34px 78px #2563eb3d}.orbit-menu__item[_ngcontent-%COMP%]{--orbit-angle: 0deg;position:absolute;top:50%;left:50%;width:170px;min-height:120px;padding:14px 16px;border:1px solid rgba(255,255,255);border-radius:24px;background:#fffffffa;box-shadow:0 22px 42px #0f172a1f;opacity:0;pointer-events:none;transform:translate(-50%,-50%) rotate(var(--orbit-angle)) translate(30px) rotate(calc(var(--orbit-angle) * -1)) scale(.72);transition:transform .28s ease,opacity .28s ease}.orbit-menu__item--open[_ngcontent-%COMP%]{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) rotate(var(--orbit-angle)) translate(var(--orbit-radius)) rotate(calc(var(--orbit-angle) * -1)) scale(1)}.orbit-menu__image[_ngcontent-%COMP%]{width:100%;height:52px;object-fit:contain}.orbit-menu__label[_ngcontent-%COMP%]{display:block;margin-top:10px;color:#0f172a;font-weight:900;font-size:.96rem}.orbit-menu__caption[_ngcontent-%COMP%]{display:block;margin-top:4px;color:#64748b;font-size:.78rem;line-height:1.4}@media(max-width:1180px){.hub-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media(max-width:768px){.hub-page[_ngcontent-%COMP%]{padding:18px}.hub-topbar[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.hub-topbar__brand[_ngcontent-%COMP%]{justify-content:center}.orbit-shell[_ngcontent-%COMP%]{--orbit-radius: 150px;min-height:430px}.orbit-core[_ngcontent-%COMP%]{width:200px;height:200px}.orbit-menu__item[_ngcontent-%COMP%]{width:150px;min-height:112px}}"]})};var Ol=class e{http=m(or);endpoint="/api/vitoria-ai/perguntar";requestTimeoutMs=24e4;sendMessage(t,n=[]){let r={pergunta:t,history:n};return this.http.post(this.endpoint,r).pipe(Y(o=>({pergunta:o.pergunta??t,resposta:o.resposta??o.answer??o.message??"",fontes:o.fontes??o.sources??[]}))).pipe(ti(this.requestTimeoutMs))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var YT=["scrollContainer"];function KT(e,t){if(e&1&&(d(0,"button",19),g(1),f()),e&2){let n=t.$implicit;h(),G(" ",n," ")}}function JT(e,t){if(e&1&&(d(0,"div",17),j(1,KT,2,1,"button",18),f()),e&2){let n=D();h(),_("ngForOf",n.conversations)}}function XT(e,t){e&1&&(d(0,"div",20),g(1,"Sem hist\xF3rico recente."),f())}function e1(e,t){if(e&1&&(d(0,"li"),g(1),f()),e&2){let n=t.$implicit;h(),yc(" ",n.nome_pdf," \xB7 ",n.categoria," \xB7 Chunk ",n.chunk_id," ")}}function t1(e,t){if(e&1&&(d(0,"ul",25),j(1,e1,2,3,"li",26),f()),e&2){let n=D().$implicit;h(),_("ngForOf",n.sources)}}function n1(e,t){if(e&1&&(d(0,"article",21)(1,"div",22)(2,"span"),g(3),f(),d(4,"span"),g(5),jf(6,"date"),f()(),d(7,"p",23),g(8),f(),j(9,t1,2,1,"ul",24),f()),e&2){let n=t.$implicit;ce("message-card--user",n.role==="user")("message-card--error",n.isError),h(3),P(n.role==="user"?"Utilizador":"Vitoria AI"),h(2),P(Vf(6,8,n.createdAt,"HH:mm")),h(3),P(n.content),h(),_("ngIf",n.sources==null?null:n.sources.length)}}function r1(e,t){e&1&&(d(0,"div",27),g(1,"A gerar resposta..."),f())}var Nl=class e{scrollContainer;chatService=m(Ol);appName="Vitoria AI";badge="Beta Release";prompt="";isLoading=!1;conversations=[];messages=[{id:crypto.randomUUID(),role:"assistant",content:"Ola. Sou a Vitoria AI, uma assistente virtual para a area da formacao. Em que posso ajudar?",createdAt:new Date}];newChat(){this.prompt="",this.isLoading=!1,this.messages=[{id:crypto.randomUUID(),role:"assistant",content:"Nova conversa iniciada. Em que posso ajudar?",createdAt:new Date}],this.scrollToBottom()}send(){let t=this.prompt.trim();if(!t||this.isLoading)return;let n={id:crypto.randomUUID(),role:"user",content:t,createdAt:new Date};this.messages=[...this.messages,n],this.prompt="",this.isLoading=!0,this.trackConversation(t),this.scrollToBottom(),this.chatService.sendMessage(t,this.messages.map(({role:r,content:o,createdAt:i})=>({role:r,content:o,createdAt:i}))).pipe(ft(()=>this.isLoading=!1)).subscribe({next:r=>{let o={id:crypto.randomUUID(),role:"assistant",content:r.resposta||"Sem resposta do servico.",createdAt:new Date,sources:r.fontes??[]};this.messages=[...this.messages,o],this.scrollToBottom()},error:r=>{let o={id:crypto.randomUUID(),role:"assistant",content:this.getErrorMessage(r),createdAt:new Date,isError:!0};this.messages=[...this.messages,o],this.scrollToBottom()}})}handleKeyDown(t){t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),this.send())}trackByMessage(t,n){return n.id}trackConversation(t){let n=t.slice(0,60);this.conversations=[n,...this.conversations.filter(r=>r!==n)].slice(0,6)}scrollToBottom(){queueMicrotask(()=>{let t=this.scrollContainer?.nativeElement;t&&(t.scrollTop=t.scrollHeight)})}getErrorMessage(t){if(t&&typeof t=="object"&&"name"in t&&t.name==="TimeoutError")return"O backend demorou demasiado tempo a responder. Verifica a latencia do modelo e do endpoint Python.";if(t instanceof nn){let n=typeof t.error?.detail=="string"?t.error.detail:typeof t.error?.message=="string"?t.error.message:typeof t.error=="string"?t.error:"";return t.status===0?"Nao foi possivel ligar ao backend da Vitoria AI. Confirma que o servico Python esta em execucao e acessivel para este servidor.":n?`Erro do backend (${t.status}): ${n}`:`Erro do backend (${t.status}).`}return"O pedido falhou por um erro inesperado ao comunicar com o backend."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-vitoria-ai-page"]],viewQuery:function(n,r){if(n&1&&Eo(YT,5),n&2){let o;wo(o=xo())&&(r.scrollContainer=o.first)}},decls:31,vars:10,consts:[["noConversations",""],["scrollContainer",""],[1,"ai-page"],[1,"ai-header"],[1,"ai-header__badge"],[1,"ai-header__actions"],["type","button",1,"new-chat-button",3,"click"],[1,"ai-layout"],[1,"conversation-panel"],["class","conversation-list",4,"ngIf","ngIfElse"],[1,"chat-panel"],[1,"message-stream"],["class","message-card",3,"message-card--user","message-card--error",4,"ngFor","ngForOf","ngForTrackBy"],["class","message-loading",4,"ngIf"],[1,"chat-composer"],["placeholder","Escreve a tua pergunta...","rows","4",3,"ngModelChange","keydown","ngModel"],["type","button",1,"send-button",3,"click","disabled"],[1,"conversation-list"],["type","button","class","conversation-chip",4,"ngFor","ngForOf"],["type","button",1,"conversation-chip"],[1,"conversation-empty"],[1,"message-card"],[1,"message-card__meta"],[1,"message-card__content"],["class","message-card__sources",4,"ngIf"],[1,"message-card__sources"],[4,"ngFor","ngForOf"],[1,"message-loading"]],template:function(n,r){if(n&1){let o=he();d(0,"div",2),R(1,"app-hub-page-actions"),d(2,"header",3)(3,"div")(4,"span",4),g(5),f(),d(6,"h1"),g(7),f(),d(8,"p"),g(9,"Assistente conversacional para apoio \xE0 navega\xE7\xE3o e aos conte\xFAdos da \xE1rea de forma\xE7\xE3o."),f()(),d(10,"div",5)(11,"button",6),S("click",function(){return r.newChat()}),g(12,"Nova conversa"),f()()(),d(13,"section",7)(14,"aside",8)(15,"h2"),g(16,"Conversas recentes"),f(),d(17,"p"),g(18,"Os \xFAltimos prompts enviados ficam resumidos aqui."),f(),j(19,JT,2,1,"div",9)(20,XT,2,0,"ng-template",null,0,Vr),f(),d(22,"div",10)(23,"div",11,1),j(25,n1,10,11,"article",12)(26,r1,2,0,"div",13),f(),d(27,"div",14)(28,"textarea",15),Et("ngModelChange",function(s){return K(o),Vt(r.prompt,s)||(r.prompt=s),J(s)}),S("keydown",function(s){return r.handleKeyDown(s)}),f(),d(29,"button",16),S("click",function(){return r.send()}),g(30),f()()()()()}if(n&2){let o=Mn(21);h(5),P(r.badge),h(2),P(r.appName),h(12),_("ngIf",r.conversations.length)("ngIfElse",o),h(6),_("ngForOf",r.messages)("ngForTrackBy",r.trackByMessage),h(),_("ngIf",r.isLoading),h(2),Dt("ngModel",r.prompt),h(),_("disabled",r.isLoading||!r.prompt.trim()),h(),G(" ",r.isLoading?"A aguardar...":"Enviar"," ")}},dependencies:[Ie,$e,at,Wo,lr,Go,Zr,qe,Jf],styles:["[_nghost-%COMP%]{display:block}.ai-page[_ngcontent-%COMP%]{min-height:100vh;padding:28px;background:radial-gradient(circle at top right,rgba(37,99,235,.12),transparent 22%),linear-gradient(180deg,#0f172a,#111827 28%,#e2e8f0 28%,#f8fafc)}.ai-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;max-width:1240px;margin:0 auto 28px;padding:30px;border-radius:32px;background:#0f172ac7;color:#fff;box-shadow:0 24px 60px #0f172a3d}.ai-header__badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#3b82f62e;color:#bfdbfe;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.ai-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:16px 0 0;font-size:clamp(2rem,3.2vw,3.4rem);line-height:1.05;font-weight:900}.ai-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:12px 0 0;max-width:620px;color:#cbd5e1;line-height:1.7}.ai-header__actions[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center}.nav-link[_ngcontent-%COMP%], .new-chat-button[_ngcontent-%COMP%], .send-button[_ngcontent-%COMP%], .conversation-chip[_ngcontent-%COMP%]{border:0;cursor:pointer}.nav-link[_ngcontent-%COMP%], .new-chat-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;text-decoration:none;font-weight:800}.nav-link[_ngcontent-%COMP%]{background:#ffffff14;color:#fff}.new-chat-button[_ngcontent-%COMP%], .send-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;box-shadow:0 16px 36px #2563eb38}.ai-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;max-width:1240px;margin:0 auto}.conversation-panel[_ngcontent-%COMP%], .chat-panel[_ngcontent-%COMP%]{border:1px solid rgba(148,163,184,.18);border-radius:28px;background:#fffffff0;box-shadow:0 24px 60px #0f172a14}.conversation-panel[_ngcontent-%COMP%]{padding:24px}.conversation-panel[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:900}.conversation-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 0;color:#64748b;line-height:1.6}.conversation-list[_ngcontent-%COMP%]{display:grid;gap:10px;margin-top:20px}.conversation-chip[_ngcontent-%COMP%], .conversation-empty[_ngcontent-%COMP%]{width:100%;padding:14px 16px;border-radius:18px;background:#eff6ff;color:#1e3a8a;text-align:left;font-weight:700}.conversation-empty[_ngcontent-%COMP%]{margin-top:20px;color:#64748b;background:#f8fafc}.chat-panel[_ngcontent-%COMP%]{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:680px}.message-stream[_ngcontent-%COMP%]{overflow-y:auto;padding:24px}.message-card[_ngcontent-%COMP%]{max-width:80%;margin-bottom:16px;padding:18px;border-radius:24px;background:#f8fafc;box-shadow:0 16px 34px #0f172a0f}.message-card--user[_ngcontent-%COMP%]{margin-left:auto;background:linear-gradient(135deg,#dbeafe,#eff6ff)}.message-card--error[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fee2e2,#fef2f2)}.message-card__meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#64748b;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.message-card__content[_ngcontent-%COMP%]{margin:12px 0 0;color:#0f172a;white-space:pre-wrap;line-height:1.7}.message-card__sources[_ngcontent-%COMP%]{margin:14px 0 0;padding-left:16px;color:#475569}.message-card__sources[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:6px}.message-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:800}.chat-composer[_ngcontent-%COMP%]{display:grid;gap:14px;padding:22px 24px 24px;border-top:1px solid rgba(226,232,240,.8)}.chat-composer[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;min-height:120px;padding:16px 18px;border:1px solid rgba(148,163,184,.32);border-radius:22px;resize:vertical;background:#fff}.send-button[_ngcontent-%COMP%]{justify-self:end;min-height:46px;padding:0 22px;border-radius:999px;font-weight:800}.send-button[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed}@media(max-width:980px){.ai-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media(max-width:768px){.ai-page[_ngcontent-%COMP%]{padding:16px}.ai-header[_ngcontent-%COMP%]{flex-direction:column}.ai-header__actions[_ngcontent-%COMP%]{width:100%;flex-wrap:wrap}.message-card[_ngcontent-%COMP%]{max-width:100%}}"]})};var Pl=class e{http=m(or);endpoint="/api/conversor-extratos/executar";requestTimeoutMs=6e5;executeConverter(t,n){let r=new rn({"Content-Type":n.type||"application/pdf","X-Bank-Key":t,"X-File-Name":encodeURIComponent(n.name)});return this.http.post(this.endpoint,n,{headers:r,observe:"response",responseType:"blob"}).pipe(ti(this.requestTimeoutMs))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var o1=["pdfInput"];function i1(e,t){e&1&&(d(0,"span",38),g(1," Selecionado "),f())}function s1(e,t){if(e&1){let n=he();d(0,"article",25)(1,"button",26),S("click",function(){let o=K(n).$implicit,i=D();return J(i.handleCardClick(o))}),d(2,"div",27),R(3,"img",28)(4,"div",29),d(5,"div",30),g(6),f()(),d(7,"div",31)(8,"h3",32),g(9),f(),d(10,"p",33),g(11),f(),d(12,"div",34)(13,"span",35),g(14),f(),j(15,i1,2,0,"span",36),f(),d(16,"span",37),g(17),f()()()()}if(e&2){let n=t.$implicit,r=D();h(),ce("bank-card__button--active",r.selectedBankKey===n.bankKey)("bank-card__button--disabled",!n.available),_("disabled",r.isLoading),h(2),_("src",n.image,ge)("alt",n.title),h(2),ce("bank-card__badge--muted",!n.available),h(),G(" ",n.available?"Disponivel":"Em breve"," "),h(3),G(" ",n.title," "),h(2),G(" ",n.description," "),h(3),G(" ",n.available?"PDF para Excel":"Configuracao pendente"," "),h(),_("ngIf",r.selectedBankKey===n.bankKey),h(),ce("bank-card__action--muted",!n.available),h(),G(" ",r.isLoading&&r.selectedBankKey===n.bankKey?"A processar...":n.available?"Selecionar PDF":"Em breve"," ")}}var Rl=class e{pdfInput;authService=m(Ke);router=m(Se);conversorService=m(Pl);converterCards=[{bankKey:"millennium-bcp",title:"Millennium BCP",description:"Em breve.",image:"/imagenscursos/Millenniumbcp.png",available:!1},{bankKey:"caixa-geral-depositos",title:"Caixa Geral",description:"Em breve.",image:"/imagenscursos/cgd.png",available:!1},{bankKey:"bankinter",title:"Bankinter",description:"Em breve.",image:"/imagenscursos/bankinter.png",available:!1},{bankKey:"novo-banco",title:"Novo Banco",description:"Em breve.",image:"/imagenscursos/novobanco.png",available:!1},{bankKey:"bpi",title:"BPI",description:"Em breve.",image:"/imagenscursos/BPI.png",available:!1},{bankKey:"bic",title:"BIC",description:"Clique, selecione o PDF e descarregue o Excel final.",image:"/imagenscursos/bic.png",available:!0},{bankKey:"abanca",title:"ABanca",description:"Clique, selecione o PDF e descarregue o Excel final.",image:"/imagenscursos/ABanca.png",available:!0}];selectedBankKey="";isLoading=!1;statusTitle="2 Bancos disponiveis";statusMessage="Clique no cartao para selecionar o PDF a converter.";logout(){this.authService.logout(),this.router.navigateByUrl("/")}trackByBankKey(t,n){return n.bankKey}handleCardClick(t){if(!this.isLoading){if(this.selectedBankKey=t.bankKey,!t.available){this.setStatus(`${t.title} ainda nao disponivel`,"Replica o mesmo padrao do ABanca quando tiveres o script pronto.");return}this.setStatus(`${t.title} selecionado`,"Escolhe o PDF do extrato para iniciar a conversao."),this.resetInput(),this.pdfInput?.nativeElement.click()}}onFileSelected(t){let r=t.target.files?.[0],o=this.converterCards.find(i=>i.bankKey===this.selectedBankKey);if(!r||!o||!o.available){this.resetInput();return}if(!r.name.toLowerCase().endsWith(".pdf")){this.setStatus("Ficheiro invalido","Seleciona um ficheiro PDF para continuar."),this.resetInput();return}this.isLoading=!0,this.setStatus(`A processar ${o.title}`,`A converter o ficheiro ${r.name}. Aguarda pelo download.`),this.conversorService.executeConverter(o.bankKey,r).pipe(ft(()=>{this.isLoading=!1,this.resetInput()})).subscribe({next:i=>{let s=this.getDownloadFileName(i,o);this.downloadBlob(i.body,s),this.setStatus("Conversao concluida",`O ficheiro ${s} foi gerado com sucesso.`)},error:i=>{this.setStatus("Conversao falhou",this.getErrorMessage(i))}})}resetInput(){let t=this.pdfInput?.nativeElement;t&&(t.value="")}setStatus(t,n){this.statusTitle=t,this.statusMessage=n}getDownloadFileName(t,n){let r=t.headers.get("content-disposition")||"",o=r.match(/filename\*=UTF-8''([^;]+)/i);if(o?.[1])return decodeURIComponent(o[1]);let i=r.match(/filename="?([^"]+)"?/i);return i?.[1]?i[1]:`${this.slugify(n.title)}-resultado.xlsx`}downloadBlob(t,n){if(!t)throw new Error("O backend nao devolveu nenhum ficheiro.");let r=URL.createObjectURL(t),o=document.createElement("a");o.href=r,o.download=n,o.click(),setTimeout(()=>URL.revokeObjectURL(r),0)}slugify(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}getErrorMessage(t){if(t&&typeof t=="object"&&"name"in t&&t.name==="TimeoutError")return"O script demorou demasiado tempo a responder. Confirma o ambiente Python e o tamanho do PDF.";if(t instanceof nn){let n=typeof t.error=="string"?t.error:typeof t.error?.detail=="string"?t.error.detail:typeof t.error?.message=="string"?t.error.message:"";return t.status===0?"Nao foi possivel comunicar com o backend do conversor.":n?`Erro do backend (${t.status}): ${n}`:`Erro do backend (${t.status}).`}return"O pedido falhou por um erro inesperado."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-conversor-extratos-page"]],viewQuery:function(n,r){if(n&1&&Eo(o1,5),n&2){let o;wo(o=xo())&&(r.pdfInput=o.first)}},decls:35,vars:8,consts:[["pdfInput",""],[1,"min-h-screen","bg-slate-50","text-slate-900"],["type","file","accept",".pdf,application/pdf",1,"hidden-file-input",3,"change"],[1,"relative","overflow-hidden","bg-slate-950"],[1,"absolute","inset-0","bg-gradient-to-r","from-indigo-700/20","via-cyan-500/10","to-purple-700/20"],[1,"hero-logo-badge"],["href","https://www.metacase.pt","target","_blank","rel","noopener"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"hero-logo"],[1,"relative","mx-auto","max-w-7xl","px-6","py-20","lg:px-8"],[1,"max-w-3xl"],[1,"inline-flex","rounded-full","border","border-white/20","bg-white/10","px-4","py-1","text-sm","font-medium","text-white"],[1,"mt-6","text-4xl","font-bold","tracking-tight","text-white","sm:text-5xl","lg:text-6xl"],[1,"mt-6","text-lg","leading-8","text-slate-300"],[1,"mx-auto","max-w-7xl","px-6","py-10","lg:px-8"],[1,"flex","flex-col","gap-4","md:flex-row","md:items-center","md:justify-between"],[1,"text-3xl","font-bold","tracking-tight","text-slate-900"],[1,"mt-2","text-slate-600"],[1,"inline-flex","w-fit","items-center","rounded-2xl","border","border-slate-200","bg-white","px-4","py-3","shadow-sm"],[1,"text-sm","font-semibold","text-slate-700"],[1,"converter-status"],[1,"converter-status__eyebrow"],[1,"converter-status__message"],[1,"mx-auto","max-w-7xl","px-6","pb-16","lg:px-8"],[1,"bank-grid"],["class","group overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl",4,"ngFor","ngForOf","ngForTrackBy"],[1,"group","overflow-hidden","rounded-3xl","border","border-slate-200","bg-white","shadow-sm","transition","duration-300","hover:-translate-y-1","hover:shadow-xl"],["type","button",1,"bank-card__button",3,"click","disabled"],[1,"relative","h-56","overflow-hidden"],[1,"h-full","w-full","bg-slate-50","object-contain","transition","duration-500","group-hover:scale-105",3,"src","alt"],[1,"absolute","inset-0","bg-gradient-to-t","from-black/10","via-transparent","to-transparent"],[1,"bank-card__badge"],[1,"p-6"],[1,"mt-2","text-xl","font-bold","text-slate-900"],[1,"mt-3","text-sm","leading-6","text-slate-600"],[1,"mt-5","flex","flex-wrap","gap-2"],[1,"rounded-full","bg-slate-100","px-3","py-1","text-xs","font-semibold","text-slate-700"],["class","rounded-full bg-blue-50 px-3 py-1 text-xs font-semibold text-blue-700",4,"ngIf"],[1,"bank-card__action"],[1,"rounded-full","bg-blue-50","px-3","py-1","text-xs","font-semibold","text-blue-700"]],template:function(n,r){n&1&&(d(0,"div",1),R(1,"app-hub-page-actions"),d(2,"input",2,0),S("change",function(i){return r.onFileSelected(i)}),f(),d(4,"section",3),R(5,"div",4),d(6,"div",5)(7,"a",6),R(8,"img",7),f()(),d(9,"div",8)(10,"div",9)(11,"span",10),g(12," Operacional Framework "),f(),d(13,"h1",11),g(14," Conversor de Extratos "),f(),d(15,"p",12),g(16," Area dedicada a conversao de extratos bancarios a partir de PDF com exportacao final para Excel. "),f()()()(),d(17,"section",13)(18,"div",14)(19,"div")(20,"h2",15),g(21,"Entidades Bancarias"),f(),d(22,"p",16),g(23),f()(),d(24,"div",17)(25,"span",18),g(26),f()()(),d(27,"div",19)(28,"p",20),g(29),f(),d(30,"p",21),g(31),f()()(),d(32,"section",22)(33,"div",23),j(34,s1,18,17,"article",24),f()()()),n&2&&(h(23),jt(" Atualmente encontram-se disponiveis ",r.converterCards.length," ",r.converterCards.length===1?"entidade bancaria":"entidades bancarias",". "),h(3),jt(" ",r.converterCards.length," ",r.converterCards.length===1?"banco":"bancos"," "),h(3),P(r.isLoading?"A processar":r.statusTitle),h(2),P(r.statusMessage),h(3),_("ngForOf",r.converterCards)("ngForTrackBy",r.trackByBankKey))},dependencies:[Ie,$e,at,qe],styles:[".hidden-file-input[_ngcontent-%COMP%]{display:none}.hero-logo-badge[_ngcontent-%COMP%]{position:absolute;top:24px;left:24px;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:10px 16px;border:1px solid rgba(191,219,254,.55);border-radius:999px;background:#eff6ffe0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 24px #0f172a1f}.hero-logo[_ngcontent-%COMP%]{width:clamp(120px,16vw,190px);height:auto;display:block;object-fit:contain}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-bottom:20px;color:#f8f8f8;text-decoration:none;font-weight:700}.logout-button[_ngcontent-%COMP%]{min-height:34px;cursor:pointer;border:0;border-radius:999px;background:#1d4ed8;padding:0 14px;color:#fff;font-size:.88rem;font-weight:800;transition:background-color .2s ease,transform .2s ease}.logout-button[_ngcontent-%COMP%]:hover{background:#1e40af;transform:translateY(-1px)}.converter-status[_ngcontent-%COMP%]{margin-top:1.5rem;border-radius:1.5rem;border:1px solid rgb(226 232 240);background:#fff;padding:1rem 1.25rem;box-shadow:0 10px 24px #0f172a0f}.converter-status__eyebrow[_ngcontent-%COMP%]{margin:0;color:#0f172a;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.converter-status__message[_ngcontent-%COMP%]{margin:.45rem 0 0;color:#475569;font-size:.95rem;line-height:1.6}.bank-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2rem}.bank-card__button[_ngcontent-%COMP%]{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.bank-card__button--active[_ngcontent-%COMP%]{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px}.bank-card__button--disabled[_ngcontent-%COMP%]{opacity:.82}.bank-card__badge[_ngcontent-%COMP%]{position:absolute;top:16px;left:16px;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border-radius:999px;background:#16a34aeb;color:#fff;font-size:.74rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.bank-card__badge--muted[_ngcontent-%COMP%]{background:#64748beb}.bank-card__action[_ngcontent-%COMP%]{display:block;width:100%;margin-top:1.5rem;border-radius:1rem;background:linear-gradient(to right,#4f46e5,#7c3aed);padding:.85rem 1rem;color:#fff;font-size:.9rem;font-weight:700;text-align:center}.bank-card__action--muted[_ngcontent-%COMP%]{background:linear-gradient(to right,#94a3b8,#64748b)}@media(max-width:1400px){.bank-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1180px){.bank-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.bank-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:768px){.hero-logo-badge[_ngcontent-%COMP%]{top:16px;right:16px;padding:8px 14px;gap:10px}.hero-logo[_ngcontent-%COMP%]{width:120px}.bank-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};var kl=class e{http=m(or);translate(t,n,r){return this.http.post("/api/tradutor/traduzir",{text:t,source:n,target:r})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};function a1(e,t){if(e&1&&(d(0,"option",23),g(1),f()),e&2){let n=t.$implicit;_("value",n.code),h(),G(" ",n.label," ")}}function c1(e,t){if(e&1&&(d(0,"option",23),g(1),f()),e&2){let n=t.$implicit;_("value",n.code),h(),G(" ",n.label," ")}}function l1(e,t){if(e&1&&(d(0,"p",24),g(1),f()),e&2){let n=D();h(),P(n.errorMessage)}}var Fl=class e{tradutorService=m(kl);cdr=m(Sn);languages=[{code:"pt",label:"Portugu\xEAs"},{code:"en",label:"Ingl\xEAs"},{code:"es",label:"Espanhol"},{code:"fr",label:"Franc\xEAs"},{code:"de",label:"Alem\xE3o"},{code:"it",label:"Italiano"}];sourceText="";translatedText="";sourceLanguage="pt";targetLanguage="en";isLoading=!1;errorMessage="";copied=!1;translate(){let t=this.sourceText.trim();!t||this.isLoading||(this.isLoading=!0,this.errorMessage="",this.copied=!1,console.log("[TRADUTOR FRONTEND] Pedido iniciado"),this.tradutorService.translate(t,this.sourceLanguage,this.targetLanguage).pipe(ft(()=>{console.log("[TRADUTOR FRONTEND] Finalizado"),this.isLoading=!1,this.cdr.detectChanges()})).subscribe({next:n=>{console.log("[TRADUTOR FRONTEND] Resposta:",n),console.log("[TRADUTOR FRONTEND] Tradu\xE7\xE3o:",n.translation),this.translatedText=n.translation??"",this.translatedText||(this.errorMessage="O servi\xE7o n\xE3o devolveu uma tradu\xE7\xE3o."),this.cdr.detectChanges()},error:n=>{console.error("[TRADUTOR FRONTEND] ERRO:",n),this.errorMessage="N\xE3o foi poss\xEDvel efetuar a tradu\xE7\xE3o.",this.cdr.detectChanges()}}))}swapLanguages(){[this.sourceLanguage,this.targetLanguage]=[this.targetLanguage,this.sourceLanguage],[this.sourceText,this.translatedText]=[this.translatedText,this.sourceText],this.errorMessage="",this.copied=!1}async copyTranslation(){if(this.translatedText)try{await navigator.clipboard.writeText(this.translatedText),this.copied=!0,window.setTimeout(()=>this.copied=!1,1800)}catch{this.errorMessage="N\xE3o foi poss\xEDvel copiar o texto."}}clear(){this.sourceText="",this.translatedText="",this.errorMessage="",this.copied=!1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-tradutor-page"]],decls:48,vars:19,consts:[[1,"translator-page"],[1,"translator-header"],[1,"translator-header__brand"],["src","/logo-metacase-cor.svg","alt","Metacase"],[1,"translator-hero"],[1,"translator-hero__eyebrow"],["aria-labelledby","translator-title",1,"translator-card"],["id","translator-title",1,"sr-only"],[1,"language-bar"],[3,"ngModelChange","ngModel","disabled"],[3,"value",4,"ngFor","ngForOf"],["type","button","aria-label","Trocar idiomas",1,"swap-button",3,"click","disabled"],[1,"text-grid"],[1,"text-panel"],[1,"text-panel__heading"],["maxlength","5000","placeholder","Escreva ou cole aqui o texto que pretende traduzir...",3,"ngModelChange","ngModel","disabled"],[1,"text-panel","text-panel--result"],["type","button",1,"copy-button",3,"click","disabled"],[1,"translation-output"],["class","error-message","role","alert",4,"ngIf"],[1,"translator-actions"],["type","button",1,"clear-button",3,"click","disabled"],["type","button",1,"translate-button",3,"click","disabled"],[3,"value"],["role","alert",1,"error-message"]],template:function(n,r){n&1&&(d(0,"main",0),R(1,"app-hub-page-actions"),d(2,"header",1)(3,"div",2),R(4,"img",3),f()(),d(5,"section",4)(6,"span",5),g(7,"Operational Framework"),f(),d(8,"h1"),g(9,"Tradutor"),f()(),d(10,"section",6)(11,"h2",7),g(12,"\xC1rea de tradu\xE7\xE3o"),f(),d(13,"div",8)(14,"label")(15,"span"),g(16,"Idioma de origem"),f(),d(17,"select",9),Et("ngModelChange",function(i){return Vt(r.sourceLanguage,i)||(r.sourceLanguage=i),i}),j(18,a1,2,2,"option",10),f()(),d(19,"button",11),S("click",function(){return r.swapLanguages()}),g(20," \u21C4 "),f(),d(21,"label")(22,"span"),g(23,"Idioma de destino"),f(),d(24,"select",9),Et("ngModelChange",function(i){return Vt(r.targetLanguage,i)||(r.targetLanguage=i),i}),j(25,c1,2,2,"option",10),f()()(),d(26,"div",12)(27,"div",13)(28,"div",14)(29,"strong"),g(30,"Texto original"),f(),d(31,"span"),g(32),f()(),d(33,"textarea",15),Et("ngModelChange",function(i){return Vt(r.sourceText,i)||(r.sourceText=i),i}),f()(),d(34,"div",16)(35,"div",14)(36,"strong"),g(37,"Tradu\xE7\xE3o"),f(),d(38,"button",17),S("click",function(){return r.copyTranslation()}),g(39),f()(),d(40,"div",18),g(41),f()()(),j(42,l1,2,1,"p",19),d(43,"div",20)(44,"button",21),S("click",function(){return r.clear()}),g(45," Limpar "),f(),d(46,"button",22),S("click",function(){return r.translate()}),g(47),f()()()()),n&2&&(h(17),Dt("ngModel",r.sourceLanguage),_("disabled",r.isLoading),h(),_("ngForOf",r.languages),h(),_("disabled",r.isLoading),h(5),Dt("ngModel",r.targetLanguage),_("disabled",r.isLoading),h(),_("ngForOf",r.languages),h(7),G("",r.sourceText.length," caracteres"),h(),Dt("ngModel",r.sourceText),_("disabled",r.isLoading),h(5),_("disabled",!r.translatedText),h(),G(" ",r.copied?"Copiado!":"Copiar"," "),h(),ce("translation-output--empty",!r.translatedText),h(),G(" ",r.translatedText||(r.isLoading?"A traduzir...":"A tradu\xE7\xE3o ser\xE1 apresentada aqui.")," "),h(),_("ngIf",r.errorMessage),h(2),_("disabled",r.isLoading||!r.sourceText&&!r.translatedText),h(2),_("disabled",r.isLoading||!r.sourceText.trim()||r.sourceLanguage===r.targetLanguage),h(),G(" ",r.isLoading?"A traduzir...":"Traduzir texto"," "))},dependencies:[Ie,$e,at,Wo,b0,D0,lr,Sl,Go,Kp,Zr,qe],styles:["[_nghost-%COMP%]{display:block}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.translator-page[_ngcontent-%COMP%]{min-height:100vh;padding:32px;color:#0f172a;background:radial-gradient(circle at top left,rgba(59,130,246,.16),transparent 28%),radial-gradient(circle at top right,rgba(56,189,248,.18),transparent 26%),linear-gradient(180deg,#f8fbff,#eef4ff 44%,#f8fafc)}.translator-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1240px;margin:0 auto}.translator-header__brand[_ngcontent-%COMP%]{display:inline-flex;padding:14px 18px;border:1px solid rgba(191,219,254,.7);border-radius:999px;background:#ffffffd6;box-shadow:0 20px 48px #0f172a14}.translator-header__brand[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:clamp(170px,18vw,260px);height:auto}.back-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;text-decoration:none;font-weight:800;box-shadow:0 16px 34px #2563eb3d}.translator-hero[_ngcontent-%COMP%]{max-width:760px;margin:44px auto 32px;text-align:center}.translator-hero__eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:#2563eb1a;color:#1d4ed8;font-size:.82rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.translator-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:18px 0 0;font-size:clamp(2.4rem,4vw,4rem);line-height:1.05;font-weight:900}.translator-hero[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:16px auto 0;color:#64748b;font-size:1.05rem;line-height:1.7}.translator-card[_ngcontent-%COMP%]{max-width:1240px;margin:0 auto;padding:28px;border:1px solid rgba(148,163,184,.2);border-radius:32px;background:#fffffff0;box-shadow:0 28px 70px #0f172a1a}.language-bar[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:end}.language-bar[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:grid;gap:8px;color:#475569;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.language-bar[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;min-height:48px;padding:0 14px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;color:#0f172a;font:inherit;text-transform:none;letter-spacing:normal}.swap-button[_ngcontent-%COMP%]{width:48px;height:48px;border:0;border-radius:50%;background:#eff6ff;color:#1d4ed8;font-size:1.5rem;font-weight:900;cursor:pointer}.text-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.text-panel[_ngcontent-%COMP%]{overflow:hidden;border:1px solid #e2e8f0;border-radius:22px;background:#fff}.text-panel--result[_ngcontent-%COMP%]{background:#f8fbff}.text-panel__heading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:0 18px;border-bottom:1px solid #e2e8f0}.text-panel__heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#94a3b8;font-size:.78rem}.text-panel[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .translation-output[_ngcontent-%COMP%]{width:100%;min-height:300px;padding:20px;border:0;outline:0;resize:vertical;color:#0f172a;background:transparent;font:inherit;line-height:1.7}.translation-output[_ngcontent-%COMP%]{white-space:pre-wrap}.translation-output--empty[_ngcontent-%COMP%]{color:#94a3b8}.copy-button[_ngcontent-%COMP%]{border:0;background:transparent;color:#2563eb;font-weight:800;cursor:pointer}.copy-button[_ngcontent-%COMP%]:disabled{color:#94a3b8;cursor:not-allowed}.error-message[_ngcontent-%COMP%]{margin:18px 0 0;padding:12px 16px;border-radius:14px;background:#fef2f2;color:#b91c1c;font-weight:700}.translator-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.clear-button[_ngcontent-%COMP%], .translate-button[_ngcontent-%COMP%]{min-height:46px;padding:0 22px;border:0;border-radius:999px;font-weight:800;cursor:pointer}.clear-button[_ngcontent-%COMP%]{background:#e2e8f0;color:#334155}.translate-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;box-shadow:0 16px 36px #2563eb38}button[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}@media(max-width:768px){.translator-page[_ngcontent-%COMP%]{padding:18px}.translator-header[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.translator-header__brand[_ngcontent-%COMP%], .back-button[_ngcontent-%COMP%]{justify-content:center}.language-bar[_ngcontent-%COMP%], .text-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.swap-button[_ngcontent-%COMP%]{justify-self:center;transform:rotate(90deg)}.translator-card[_ngcontent-%COMP%]{padding:18px}.translator-actions[_ngcontent-%COMP%]{flex-direction:column-reverse}.clear-button[_ngcontent-%COMP%], .translate-button[_ngcontent-%COMP%]{width:100%}}"]})};var Ll=class e{sanitizer=m(fp);powerBiUrl="https://app.powerbi.com/reportEmbed?reportId=252462b6-8ba5-460d-b9b7-b22e9d6475cc&autoAuth=true&ctid=536b85ad-a448-4186-a9af-e3ccad3302c5";embeddedUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.powerBiUrl);openInPowerBi(){window.open(this.powerBiUrl,"_blank","noopener,noreferrer")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-report-creator-page"]],decls:24,vars:1,consts:[[1,"report-page"],[1,"report-header"],[1,"report-header__brand"],["src","/logo-metacase-cor.svg","alt","Metacase"],[1,"report-hero"],[1,"report-hero__eyebrow"],["aria-labelledby","power-bi-title",1,"report-workspace"],[1,"report-toolbar"],[1,"report-toolbar__label"],["id","power-bi-title"],[1,"report-toolbar__actions"],["type","button",1,"primary-button",3,"click"],[1,"viewer-shell"],["title","Dashboard do Power BI","allowfullscreen","","loading","eager","referrerpolicy","strict-origin-when-cross-origin",3,"src"]],template:function(n,r){n&1&&(d(0,"main",0),R(1,"app-hub-page-actions"),d(2,"header",1)(3,"div",2),R(4,"img",3),f()(),d(5,"section",4)(6,"span",5),g(7,"Operational Framework"),f(),d(8,"h1"),g(9,"Report Creator"),f(),d(10,"p"),g(11,"Consulte relat\xF3rios e dashboards do Power BI Service dentro do portal."),f()(),d(12,"section",6)(13,"div",7)(14,"div")(15,"span",8),g(16,"Power BI Service"),f(),d(17,"h2",9),g(18,"Dashboard Metacase"),f()(),d(19,"div",10)(20,"button",11),S("click",function(){return r.openInPowerBi()}),g(21," Abrir no Power BI "),f()()(),d(22,"div",12),R(23,"iframe",13),f()()()),n&2&&(h(23),_("src",r.embeddedUrl,sc))},dependencies:[qe],styles:["[_nghost-%COMP%]{display:block}.report-page[_ngcontent-%COMP%]{min-height:100vh;padding:32px;color:#0f172a;background:radial-gradient(circle at 12% 0%,rgba(250,204,21,.2),transparent 28%),radial-gradient(circle at 88% 4%,rgba(59,130,246,.15),transparent 25%),linear-gradient(180deg,#fbfdff,#eef4ff 48%,#f8fafc)}.report-header[_ngcontent-%COMP%]{display:flex;max-width:1500px;margin:0 auto}.report-header__brand[_ngcontent-%COMP%]{display:inline-flex;padding:14px 18px;border:1px solid rgba(191,219,254,.7);border-radius:999px;background:#ffffffe0;box-shadow:0 20px 48px #0f172a14}.report-header__brand[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:clamp(170px,18vw,260px);height:auto}.report-hero[_ngcontent-%COMP%]{max-width:820px;margin:38px auto 28px;text-align:center}.report-hero__eyebrow[_ngcontent-%COMP%], .report-toolbar__label[_ngcontent-%COMP%]{color:#1d4ed8;font-size:.78rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.report-hero__eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:#2563eb1a}.report-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:16px 0 0;font-size:clamp(2.35rem,4vw,4rem);line-height:1.05;font-weight:900}.report-hero[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:14px auto 0;color:#64748b;font-size:1.05rem}.report-workspace[_ngcontent-%COMP%]{max-width:1500px;margin:0 auto;padding:24px;border:1px solid rgba(148,163,184,.22);border-radius:30px;background:#fffffff2;box-shadow:0 28px 70px #0f172a1c}.report-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.report-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:5px 0 0;font-size:clamp(1.35rem,2vw,1.8rem)}.report-toolbar__actions[_ngcontent-%COMP%], .connection-panel__actions[_ngcontent-%COMP%]{display:flex;gap:10px}.connection-panel[_ngcontent-%COMP%]{max-width:900px;margin:30px auto 20px;padding:clamp(22px,4vw,38px);border:1px solid #dbeafe;border-radius:24px;background:linear-gradient(145deg,#f8fbff,#fff)}.connection-panel__copy[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:flex-start}.connection-panel__copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:1.08rem}.connection-panel__copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:6px 0 0;color:#64748b;line-height:1.6}.connection-panel__icon[_ngcontent-%COMP%]{display:grid;flex:0 0 48px;width:48px;height:48px;place-items:center;border-radius:13px;background:linear-gradient(135deg,#facc15,#f59e0b);color:#422006;font-weight:950;box-shadow:0 12px 26px #f59e0b38}.url-field[_ngcontent-%COMP%]{display:grid;gap:8px;margin-top:26px;color:#475569;font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.url-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;min-height:52px;padding:0 16px;border:1px solid #cbd5e1;border-radius:14px;outline:none;background:#fff;color:#0f172a;font:inherit;font-weight:500;letter-spacing:normal;text-transform:none;transition:border-color .2s,box-shadow .2s}.url-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61f}.connection-panel__actions[_ngcontent-%COMP%]{justify-content:flex-end;margin-top:20px}.connect-button[_ngcontent-%COMP%], .clear-button[_ngcontent-%COMP%], .primary-button[_ngcontent-%COMP%], .secondary-button[_ngcontent-%COMP%]{min-height:44px;padding:0 18px;border:0;border-radius:999px;font-weight:850;cursor:pointer}.connect-button[_ngcontent-%COMP%], .primary-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;box-shadow:0 12px 26px #2563eb38}.clear-button[_ngcontent-%COMP%], .secondary-button[_ngcontent-%COMP%]{background:#eaf1fb;color:#1e3a5f}button[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}.error-message[_ngcontent-%COMP%]{margin:14px 0 0;padding:12px 15px;border-radius:12px;background:#fef2f2;color:#b91c1c;font-weight:750}.viewer-shell[_ngcontent-%COMP%]{overflow:hidden;width:100%;aspect-ratio:16 / 9;min-height:560px;border:1px solid #dbe3ee;border-radius:20px;background:#eef2f7;box-shadow:inset 0 0 0 1px #fff9}.viewer-shell[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:0}.empty-state[_ngcontent-%COMP%]{display:grid;min-height:420px;place-content:center;text-align:center;color:#64748b}.empty-state[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#1e293b;font-size:1.2rem}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0}@media(max-width:760px){.report-page[_ngcontent-%COMP%]{padding:18px}.report-header__brand[_ngcontent-%COMP%]{justify-content:center;width:100%}.report-hero[_ngcontent-%COMP%]{margin-top:34px}.report-workspace[_ngcontent-%COMP%]{padding:16px;border-radius:22px}.report-toolbar[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}.report-toolbar__actions[_ngcontent-%COMP%], .connection-panel__actions[_ngcontent-%COMP%]{width:100%;flex-direction:column}.report-toolbar__actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .connection-panel__actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.connection-panel__copy[_ngcontent-%COMP%]{flex-direction:column}.viewer-shell[_ngcontent-%COMP%]{min-height:65vh;aspect-ratio:auto}}"]})};var w0=[{path:"",component:Tl},{path:"formacoes",canActivate:[kn],component:pl},{path:"pagina-principal",canActivate:[kn],component:Al},{path:"vitoria-ai",canActivate:[kn],component:Nl},{path:"conversor-extratos",canActivate:[kn],component:Rl},{path:"tradutor",canActivate:[kn],component:Fl},{path:"report-creator",canActivate:[kn],component:Ll},{path:"cursos/:slug",canActivate:[kn],component:gl},{path:"cursos/:slug/percurso",canActivate:[kn],component:ml},{path:"**",redirectTo:""}];var x0={providers:[ad(),dp(),jp(w0)]};var jl=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ie({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){n&1&&R(0,"router-outlet")},dependencies:[ms],encapsulation:2})};sp(jl,x0).catch(e=>console.error(e));