var E3=Object.defineProperty,w3=Object.defineProperties,I3=Object.getOwnPropertyDescriptors,vw=Object.getOwnPropertySymbols,T3=Object.prototype.hasOwnProperty,A3=Object.prototype.propertyIsEnumerable,Cw=(ye,de,j)=>de in ye?E3(ye,de,{enumerable:!0,configurable:!0,writable:!0,value:j}):ye[de]=j,B=(ye,de)=>{for(var j in de||(de={}))T3.call(de,j)&&Cw(ye,j,de[j]);if(vw)for(var j of vw(de))A3.call(de,j)&&Cw(ye,j,de[j]);return ye},ot=(ye,de)=>w3(ye,I3(de));(self.webpackChunkbarra_iol=self.webpackChunkbarra_iol||[]).push([[179],{393:()=>{var ye,de;ye=window,(de=function(j){this._options={checkOnLoad:!1,resetOnEnd:!1,loopCheckTime:50,loopMaxNumber:5,baitClass:"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links",baitStyle:"width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;",debug:!1},this._var={version:"3.2.1",bait:null,checking:!1,loop:null,loopNumber:0,event:{detected:[],notDetected:[]}},void 0!==j&&this.setOption(j);var G=this,ut=function(){setTimeout(function(){!0===G._options.checkOnLoad&&(!0===G._options.debug&&G._log("onload->eventCallback","A check loading is launched"),null===G._var.bait&&G._creatBait(),setTimeout(function(){G.check()},1))},1)};void 0!==ye.addEventListener?ye.addEventListener("load",ut,!1):ye.attachEvent("onload",ut)}).prototype._options=null,de.prototype._var=null,de.prototype._bait=null,de.prototype._log=function(j,G){console.log("[BlockAdBlock]["+j+"] "+G)},de.prototype.setOption=function(j,G){if(void 0!==G){var ut=j;(j={})[ut]=G}for(var mr in j)this._options[mr]=j[mr],!0===this._options.debug&&this._log("setOption",'The option "'+mr+'" he was assigned to "'+j[mr]+'"');return this},de.prototype._creatBait=function(){var j=document.createElement("div");j.setAttribute("class",this._options.baitClass),j.setAttribute("style",this._options.baitStyle),this._var.bait=ye.document.body.appendChild(j),!0===this._options.debug&&this._log("_creatBait","Bait has been created")},de.prototype._destroyBait=function(){ye.document.body.removeChild(this._var.bait),this._var.bait=null,!0===this._options.debug&&this._log("_destroyBait","Bait has been removed")},de.prototype.check=function(j){if(void 0===j&&(j=!0),!0===this._options.debug&&this._log("check","An audit was requested "+(!0===j?"with a":"without")+" loop"),!0===this._var.checking)return!0===this._options.debug&&this._log("check","A check was canceled because there is already an ongoing"),!1;this._var.checking=!0,null===this._var.bait&&this._creatBait();var G=this;return this._var.loopNumber=0,!0===j&&(this._var.loop=setInterval(function(){G._checkBait(j)},this._options.loopCheckTime)),setTimeout(function(){G._checkBait(j)},1),!0===this._options.debug&&this._log("check","A check is in progress ..."),!0},de.prototype._checkBait=function(j){var G=!1;if(null===this._var.bait&&this._creatBait(),(null!==ye.document.body.getAttribute("abp")||null===this._var.bait.offsetParent||0==this._var.bait.offsetHeight||0==this._var.bait.offsetLeft||0==this._var.bait.offsetTop||0==this._var.bait.offsetWidth||0==this._var.bait.clientHeight||0==this._var.bait.clientWidth)&&(G=!0),void 0!==ye.getComputedStyle){var ut=ye.getComputedStyle(this._var.bait,null);ut&&("none"==ut.getPropertyValue("display")||"hidden"==ut.getPropertyValue("visibility"))&&(G=!0)}!0===this._options.debug&&this._log("_checkBait","A check ("+(this._var.loopNumber+1)+"/"+this._options.loopMaxNumber+" ~"+(1+this._var.loopNumber*this._options.loopCheckTime)+"ms) was conducted and detection is "+(!0===G?"positive":"negative")),!0===j&&(this._var.loopNumber++,this._var.loopNumber>=this._options.loopMaxNumber&&this._stopLoop()),!0===G?(this._stopLoop(),this._destroyBait(),this.emitEvent(!0),!0===j&&(this._var.checking=!1)):(null===this._var.loop||!1===j)&&(this._destroyBait(),this.emitEvent(!1),!0===j&&(this._var.checking=!1))},de.prototype._stopLoop=function(j){clearInterval(this._var.loop),this._var.loop=null,this._var.loopNumber=0,!0===this._options.debug&&this._log("_stopLoop","A loop has been stopped")},de.prototype.emitEvent=function(j){!0===this._options.debug&&this._log("emitEvent","An event with a "+(!0===j?"positive":"negative")+" detection was called");var G=this._var.event[!0===j?"detected":"notDetected"];for(var ut in G)!0===this._options.debug&&this._log("emitEvent","Call function "+(parseInt(ut)+1)+"/"+G.length),G.hasOwnProperty(ut)&&G[ut]();return!0===this._options.resetOnEnd&&this.clearEvent(),this},de.prototype.clearEvent=function(){this._var.event.detected=[],this._var.event.notDetected=[],!0===this._options.debug&&this._log("clearEvent","The event list has been cleared")},de.prototype.on=function(j,G){return this._var.event[!0===j?"detected":"notDetected"].push(G),!0===this._options.debug&&this._log("on",'A type of event "'+(!0===j?"detected":"notDetected")+'" was added'),this},de.prototype.onDetected=function(j){return this.on(!0,j)},de.prototype.onNotDetected=function(j){return this.on(!1,j)},ye.BlockAdBlock=de,void 0===ye.blockAdBlock&&(ye.blockAdBlock=new de({checkOnLoad:!0,resetOnEnd:!0}))},643:(ye,de,j)=>{"use strict";function G(t){return"function"==typeof t}function ut(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const mr=ut(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function ha(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class Ot{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(G(r))try{r()}catch(i){e=i instanceof mr?i.errors:[i]}const{_teardowns:o}=this;if(o){this._teardowns=null;for(const i of o)try{mp(i)}catch(s){e=null!=e?e:[],s instanceof mr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new mr(e)}}add(e){var n;if(e&&e!==this)if(this.closed)mp(e);else{if(e instanceof Ot){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&ha(n,e)}remove(e){const{_teardowns:n}=this;n&&ha(n,e),e instanceof Ot&&e._removeParent(this)}}Ot.EMPTY=(()=>{const t=new Ot;return t.closed=!0,t})();const pp=Ot.EMPTY;function gp(t){return t instanceof Ot||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function mp(t){G(t)?t():t.unsubscribe()}const Ur={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pa={setTimeout(...t){const{delegate:e}=pa;return((null==e?void 0:e.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:e}=pa;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function _p(t){pa.setTimeout(()=>{const{onUnhandledError:e}=Ur;if(!e)throw t;e(t)})}function Oi(){}const bw=Pu("C",void 0,void 0);function Pu(t,e,n){return{kind:t,value:e,error:n}}let Br=null;function ga(t){if(Ur.useDeprecatedSynchronousErrorHandling){const e=!Br;if(e&&(Br={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=Br;if(Br=null,n)throw r}}else t()}class ku extends Ot{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,gp(e)&&e.add(this)):this.destination=Iw}static create(e,n,r){return new Fu(e,n,r)}next(e){this.isStopped?Vu(Pu("N",e,void 0),this):this._next(e)}error(e){this.isStopped?Vu(Pu("E",void 0,e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Vu(bw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class Fu extends ku{constructor(e,n,r){let o;if(super(),G(e))o=e;else if(e){let i;({next:o,error:n,complete:r}=e),this&&Ur.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe()):i=e,o=null==o?void 0:o.bind(i),n=null==n?void 0:n.bind(i),r=null==r?void 0:r.bind(i)}this.destination={next:o?Lu(o):Oi,error:Lu(null!=n?n:yp),complete:r?Lu(r):Oi}}}function Lu(t,e){return(...n)=>{try{t(...n)}catch(r){Ur.useDeprecatedSynchronousErrorHandling?function(t){Ur.useDeprecatedSynchronousErrorHandling&&Br&&(Br.errorThrown=!0,Br.error=t)}(r):_p(r)}}}function yp(t){throw t}function Vu(t,e){const{onStoppedNotification:n}=Ur;n&&pa.setTimeout(()=>n(t,e))}const Iw={closed:!0,next:Oi,error:yp,complete:Oi},Uu="function"==typeof Symbol&&Symbol.observable||"@@observable";function jr(t){return t}let ve=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function(t){return t&&t instanceof ku||function(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}(t)&&gp(t)}(n)?n:new Fu(n,r,o);return ga(()=>{const{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 new(r=Cp(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(l){i(l),null==s||s.unsubscribe()}},i,o)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Uu](){return this}pipe(...n){return function(t){return 0===t.length?jr:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Cp(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Cp(t){var e;return null!==(e=null!=t?t:Ur.Promise)&&void 0!==e?e:Promise}const Mw=ut(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let un=(()=>{class t extends ve{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new bp(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Mw}next(n){ga(()=>{if(this._throwIfClosed(),!this.isStopped){const r=this.observers.slice();for(const o of r)o.next(n)}})}error(n){ga(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ga(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?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){const{hasError:r,isStopped:o,observers:i}=this;return r||o?pp:(i.push(n),new Ot(()=>ha(i,n)))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ve;return n.source=this,n}}return t.create=(e,n)=>new bp(e,n),t})();class bp extends un{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:pp}}function Dp(t){return G(null==t?void 0:t.lift)}function Je(t){return e=>{if(Dp(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}class qe extends ku{constructor(e,n,r,o,i){super(e),this.onFinalize=i,this._next=n?function(s){try{n(s)}catch(a){e.error(a)}}:super._next,this._error=o?function(s){try{o(s)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}function V(t,e){return Je((n,r)=>{let o=0;n.subscribe(new qe(r,i=>{r.next(t.call(e,i,o++))}))})}function Hr(t){return this instanceof Hr?(this.v=t,this):new Hr(t)}function Rw(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(t,e||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(g){return new Promise(function(m,y){i.push([f,g,m,y])>1||a(f,g)})})}function a(f,g){try{!function(f){f.value instanceof Hr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](g))}catch(m){d(i[0][3],m)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,g){f(g),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Ow(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,l){!function(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=t[i](s)).done,s.value)})}}}const Tp=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Ap(t){return G(null==t?void 0:t.then)}function Mp(t){return G(t[Uu])}function Np(t){return Symbol.asyncIterator&&G(null==t?void 0:t[Symbol.asyncIterator])}function Sp(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Rp="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Op(t){return G(null==t?void 0:t[Rp])}function xp(t){return Rw(this,arguments,function*(){const n=t.getReader();try{for(;;){const{value:r,done:o}=yield Hr(n.read());if(o)return yield Hr(void 0);yield yield Hr(r)}}finally{n.releaseLock()}})}function Pp(t){return G(null==t?void 0:t.getReader)}function Sn(t){if(t instanceof ve)return t;if(null!=t){if(Mp(t))return function(t){return new ve(e=>{const n=t[Uu]();if(G(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Tp(t))return function(t){return new ve(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,_p)})}(t);if(Np(t))return kp(t);if(Op(t))return function(t){return new ve(e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()})}(t);if(Pp(t))return function(t){return kp(xp(t))}(t)}throw Sp(t)}function kp(t){return new ve(e=>{(function(t,e){var n,r,o,i;return function(t,e,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Ow(t);!(r=yield n.next()).done;)if(e.next(r.value),e.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}e.complete()})})(t,e).catch(n=>e.error(n))})}function Wn(t,e,n,r=0,o=!1){const i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Be(t,e,n=1/0){return G(e)?Be((r,o)=>V((i,s)=>e(r,i,o,s))(Sn(t(r,o))),n):("number"==typeof e&&(n=e),Je((r,o)=>function(t,e,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&e.complete()},g=y=>u{u++;let _=!1;Sn(n(y,c++)).subscribe(new qe(e,b=>{e.next(b)},()=>{_=!0},void 0,()=>{if(_)try{for(u--;l.length&&u{d=!0,f()})),()=>{}}(r,o,t,n)))}function xi(t=1/0){return Be(jr,t)}const Kn=new ve(t=>t.complete());function Fp(t){return t&&G(t.schedule)}function ju(t){return t[t.length-1]}function Lp(t){return G(ju(t))?t.pop():void 0}function Pi(t){return Fp(ju(t))?t.pop():void 0}function Vp(t,e=0){return Je((n,r)=>{n.subscribe(new qe(r,o=>Wn(r,t,()=>r.next(o),e),()=>Wn(r,t,()=>r.complete(),e),o=>Wn(r,t,()=>r.error(o),e)))})}function Up(t,e=0){return Je((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Bp(t,e){if(!t)throw new Error("Iterable cannot be null");return new ve(n=>{Wn(n,e,()=>{const r=t[Symbol.asyncIterator]();Wn(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function je(t,e){return e?function(t,e){if(null!=t){if(Mp(t))return function(t,e){return Sn(t).pipe(Up(e),Vp(e))}(t,e);if(Tp(t))return function(t,e){return new ve(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(Ap(t))return function(t,e){return Sn(t).pipe(Up(e),Vp(e))}(t,e);if(Np(t))return Bp(t,e);if(Op(t))return function(t,e){return new ve(n=>{let r;return Wn(n,e,()=>{r=t[Rp](),Wn(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>G(null==r?void 0:r.return)&&r.return()})}(t,e);if(Pp(t))return function(t,e){return Bp(xp(t),e)}(t,e)}throw Sp(t)}(t,e):Sn(t)}function Co(t){return t<=0?()=>Kn:Je((e,n)=>{let r=0;e.subscribe(new qe(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Hu(t,e,...n){return!0===e?(t(),null):!1===e?null:e(...n).pipe(Co(1)).subscribe(()=>t())}function ge(t){for(let e in t)if(t[e]===ge)return e;throw Error("Could not find renamed property on target object.")}function Gu(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ie(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ie).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function $u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Jw=ge({__forward_ref__:ge});function be(t){return t.__forward_ref__=be,t.toString=function(){return ie(this())},t}function U(t){return jp(t)?t():t}function jp(t){return"function"==typeof t&&t.hasOwnProperty(Jw)&&t.__forward_ref__===be}class Gr extends Error{constructor(e,n){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(e,n)),this.code=e}}function X(t){return"string"==typeof t?t:null==t?"":String(t)}function yt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():X(t)}function ma(t,e){const n=e?` in ${e}`:"";throw new Gr("201",`No provider for ${yt(t)} found${n}`)}function Pt(t,e){null==t&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function W(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function vt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Yn(t){return Hp(t,_a)||Hp(t,$p)}function Hp(t,e){return t.hasOwnProperty(e)?t[e]:null}function Gp(t){return t&&(t.hasOwnProperty(qu)||t.hasOwnProperty(s0))?t[qu]:null}const _a=ge({\u0275prov:ge}),qu=ge({\u0275inj:ge}),$p=ge({ngInjectableDef:ge}),s0=ge({ngInjectorDef:ge});var z=(()=>((z=z||{})[z.Default=0]="Default",z[z.Host=1]="Host",z[z.Self=2]="Self",z[z.SkipSelf=4]="SkipSelf",z[z.Optional=8]="Optional",z))();let Wu;function _r(t){const e=Wu;return Wu=t,e}function zp(t,e,n){const r=Yn(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&z.Optional?null:void 0!==e?e:void ma(ie(t),"Injector")}function yr(t){return{toString:t}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),kt=(()=>{return(t=kt||(kt={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",kt;var t})();const l0="undefined"!=typeof globalThis&&globalThis,u0="undefined"!=typeof window&&window,c0="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,fe=l0||"undefined"!=typeof global&&global||u0||c0,bo={},_e=[],ya=ge({\u0275cmp:ge}),Ku=ge({\u0275dir:ge}),Qu=ge({\u0275pipe:ge}),qp=ge({\u0275mod:ge}),Zn=ge({\u0275fac:ge}),ki=ge({__NG_ELEMENT_ID__:ge});let d0=0;function At(t){return yr(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||_e,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||kt.Emulated,id:"c",styles:t.styles||_e,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=d0++,r.inputs=Yp(t.inputs,n),r.outputs=Yp(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Wp):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Kp):null,r})}function Wp(t){return ct(t)||function(t){return t[Ku]||null}(t)}function Kp(t){return function(t){return t[Qu]||null}(t)}const Qp={};function Ft(t){return yr(()=>{const e={type:t.type,bootstrap:t.bootstrap||_e,declarations:t.declarations||_e,imports:t.imports||_e,exports:t.exports||_e,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Qp[t.id]=t.type),e})}function Yp(t,e){if(null==t)return bo;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const Q=At;function ct(t){return t[ya]||null}function qt(t,e){const n=t[qp]||null;if(!n&&!0===e)throw new Error(`Type ${ie(t)} does not have '\u0275mod' property.`);return n}function Rn(t){return Array.isArray(t)&&"object"==typeof t[1]}function dn(t){return Array.isArray(t)&&!0===t[1]}function Ju(t){return 0!=(8&t.flags)}function Da(t){return 2==(2&t.flags)}function Ea(t){return 1==(1&t.flags)}function fn(t){return null!==t.template}function _0(t){return 0!=(512&t[2])}function Kr(t,e){return t.hasOwnProperty(Zn)?t[Zn]:null}class Jp{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function ft(){return Xp}function Xp(t){return t.type.prototype.ngOnChanges&&(t.setInput=b0),C0}function C0(){const t=tg(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===bo)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function b0(t,e,n,r){const o=tg(t)||function(t,e){return t[eg]=e}(t,{previous:bo,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];i[a]=new Jp(l&&l.currentValue,e,s===bo),t[r]=e}ft.ngInherit=!0;const eg="__ngSimpleChanges__";function tg(t){return t[eg]||null}const ng="http://www.w3.org/2000/svg";let tc;function Oe(t){return!!t.listen}const og={createRenderer:(t,e)=>void 0!==tc?tc:"undefined"!=typeof document?document:void 0};function He(t){for(;Array.isArray(t);)t=t[0];return t}function wa(t,e){return He(e[t])}function Qt(t,e){return He(e[t.index])}function rc(t,e){return t.data[e]}function Vt(t,e){const n=e[t];return Rn(n)?n:n[0]}function ig(t){return 4==(4&t[2])}function oc(t){return 128==(128&t[2])}function Cr(t,e){return null==e?null:t[e]}function sg(t){t[18]=0}function ic(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Y={lFrame:pg(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ag(){return Y.bindingsEnabled}function w(){return Y.lFrame.lView}function ce(){return Y.lFrame.tView}function Ie(t){return Y.lFrame.contextLView=t,t[8]}function We(){let t=lg();for(;null!==t&&64===t.type;)t=t.parent;return t}function lg(){return Y.lFrame.currentTNode}function On(t,e){const n=Y.lFrame;n.currentTNode=t,n.isParent=e}function sc(){return Y.lFrame.isParent}function Ia(){return Y.isInCheckNoChangesMode}function Ta(t){Y.isInCheckNoChangesMode=t}function Ao(){return Y.lFrame.bindingIndex++}function F0(t,e){const n=Y.lFrame;n.bindingIndex=n.bindingRootIndex=t,lc(e)}function lc(t){Y.lFrame.currentDirectiveIndex=t}function dg(){return Y.lFrame.currentQueryIndex}function cc(t){Y.lFrame.currentQueryIndex=t}function V0(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function fg(t,e,n){if(n&z.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&z.Host||(o=V0(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=Y.lFrame=hg();return r.currentTNode=e,r.lView=t,!0}function Aa(t){const e=hg(),n=t[1];Y.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function hg(){const t=Y.lFrame,e=null===t?null:t.child;return null===e?pg(t):e}function pg(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function gg(){const t=Y.lFrame;return Y.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mg=gg;function Ma(){const t=gg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function bt(){return Y.lFrame.selectedIndex}function br(t){Y.lFrame.selectedIndex=t}function xe(){const t=Y.lFrame;return rc(t.tView,t.selectedIndex)}function Na(){Y.lFrame.currentNamespace=ng}function dc(){Y.lFrame.currentNamespace=null}function Sa(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class Bi{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function xa(t,e,n){const r=Oe(t);let o=0;for(;oe){s=i-1;break}}}for(;i>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let gc=!0;function ka(t){const e=gc;return gc=t,e}let Z0=0;function Hi(t,e){const n=_c(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,mc(r.data,t),mc(e,null),mc(r.blueprint,null));const o=Fa(t,e),i=t.injectorIndex;if(Cg(o)){const s=Mo(o),a=No(o,e),l=a[1].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|l[s+u]}return e[i+8]=o,i}function mc(t,e){t.push(0,0,0,0,0,0,0,0,e)}function _c(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Fa(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function La(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ki)&&(r=n[ki]),null==r&&(r=n[ki]=Z0++);const o=255&r;e.data[t+(o>>5)]|=1<=0?255&e:eI:e}(n);if("function"==typeof i){if(!fg(e,t,r))return r&z.Host?Eg(o,n,r):wg(e,n,r,o);try{const s=i(r);if(null!=s||r&z.Optional)return s;ma(n)}finally{mg()}}else if("number"==typeof i){let s=null,a=_c(t,e),l=-1,u=r&z.Host?e[16][6]:null;for((-1===a||r&z.SkipSelf)&&(l=-1===a?Fa(t,e):e[a+8],-1!==l&&Mg(r,!1)?(s=e[1],a=Mo(l),e=No(l,e)):a=-1);-1!==a;){const c=e[1];if(Ag(i,a,c.data)){const d=tI(a,e,n,s,r,u);if(d!==Tg)return d}l=e[a+8],-1!==l&&Mg(r,e[1].data[a+8]===u)&&Ag(i,a,e)?(s=c,a=Mo(l),e=No(l,e)):a=-1}}}return wg(e,n,r,o)}const Tg={};function eI(){return new So(We(),w())}function tI(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=Va(a,s,n,null==r?Da(a)&&gc:r!=s&&0!=(3&a.type),o&z.Host&&i===a);return null!==c?Gi(e,s,c,a):Tg}function Va(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let g=r?a:a+c;g=l&&m.type===n)return g}if(o){const g=s[l];if(g&&fn(g)&&g.type===n)return l}return null}function Gi(t,e,n,r){let o=t[n];const i=e.data;if(function(t){return t instanceof Bi}(o)){const s=o;s.resolving&&function(t,e){throw new Gr("200",`Circular dependency in DI detected for ${t}`)}(yt(i[n]));const a=ka(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?_r(s.injectImpl):null;fg(t,r,z.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=Xp(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&_r(l),ka(a),s.resolving=!1,mg()}}return o}function Ag(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Zn]||yc(e),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[Zn]||yc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function yc(t){return jp(t)?()=>{const e=yc(U(t));return e&&e()}:Kr(t)}function $i(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o{const r=function(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Oo)?l[Oo]:Object.defineProperty(l,Oo,{value:[]})[Oo];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class re{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=W({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const iI=new re("AnalyzeForEntryComponents");function Yt(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(n)?xn(n,e):e(n))}function Ua(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Yr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ut(t,e,n){let r=Po(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function bc(t,e){const n=Po(t,e);if(n>=0)return t[1|n]}function Po(t,e){return function(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<e?o=i:r=i+1}return~(o< ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ie(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(gI,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[ko]=null,t}const Lo=Zi(Qr("Inject",t=>({token:t})),-1),St=Zi(Qr("Optional"),8),wr=Zi(Qr("SkipSelf"),4);let Ga;function Uo(t){var e;return(null==(e=function(){if(void 0===Ga&&(Ga=null,fe.trustedTypes))try{Ga=fe.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Ga}())?void 0:e.createHTML(t))||t}class Jr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class NI extends Jr{getTypeName(){return"HTML"}}class SI extends Jr{getTypeName(){return"Style"}}class RI extends Jr{getTypeName(){return"Script"}}class OI extends Jr{getTypeName(){return"URL"}}class xI extends Jr{getTypeName(){return"ResourceURL"}}function Bt(t){return t instanceof Jr?t.changingThisBreaksApplicationSecurity:t}function Pn(t,e){const n=jg(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function jg(t){return t instanceof Jr&&t.getTypeName()||null}class UI{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const n=(new window.DOMParser).parseFromString(Uo(e),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class BI{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(e){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Uo(e),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Uo(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const n=e.attributes;for(let o=n.length-1;0Xi(e.trim())).join(", ")),this.buf.push(" ",s,'="',Kg(l),'"')}var t;return this.buf.push(">"),!0}endElement(e){const n=e.nodeName.toLowerCase();Nc.hasOwnProperty(n)&&!$g.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(Kg(e))}checkClobberedElement(e,n){if(n&&(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return n}}const qI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WI=/([^\#-~ |!])/g;function Kg(t){return t.replace(/&/g,"&").replace(qI,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(WI,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let za;function Qg(t,e){let n=null;try{za=za||function(t){const e=new BI(t);return function(){try{return!!(new window.DOMParser).parseFromString(Uo(""),"text/html")}catch(t){return!1}}()?new UI(e):e}(t);let r=e?String(e):"";n=za.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=za.getInertBodyElement(r)}while(r!==i);return Uo((new zI).sanitizeChildren(Oc(n)||n))}finally{if(n){const r=Oc(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Oc(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ce=(()=>((Ce=Ce||{})[Ce.NONE=0]="NONE",Ce[Ce.HTML=1]="HTML",Ce[Ce.STYLE=2]="STYLE",Ce[Ce.SCRIPT=3]="SCRIPT",Ce[Ce.URL=4]="URL",Ce[Ce.RESOURCE_URL=5]="RESOURCE_URL",Ce))();function it(t){const e=function(){const t=w();return t&&t[12]}();return e?e.sanitize(Ce.URL,t)||"":Pn(t,"URL")?Bt(t):Xi(X(t))}const Jg="__ngContext__";function ht(t,e){t[Jg]=e}function Pc(t){const e=function(t){return t[Jg]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function qa(t){return t.ngOriginalError}function dT(t,...e){t.error(...e)}class Xr{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=this._findContext(e),o=(t=e)&&t.ngErrorLogger||dT;var t;o(this._console,"ERROR",e),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?e.ngDebugContext||this._findContext(qa(e)):null}_findOriginalError(e){let n=e&&qa(e);for(;n&&qa(n);)n=qa(n);return n||null}}const am=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(fe))();function Fn(t){return t instanceof Function?t():t}var jt=(()=>((jt=jt||{})[jt.Important=1]="Important",jt[jt.DashCase=2]="DashCase",jt))();function Lc(t,e){return undefined(t,e)}function rs(t){const e=t[3];return dn(e)?e[3]:e}function Vc(t){return fm(t[13])}function Uc(t){return fm(t[4])}function fm(t){for(;null!==t&&!dn(t);)t=t[4];return t}function jo(t,e,n,r,o){if(null!=r){let i,s=!1;dn(r)?i=r:Rn(r)&&(s=!0,r=r[0]);const a=He(r);0===t&&null!==n?null==o?ym(e,n,a):eo(e,n,a,o||null,!0):1===t&&null!==n?eo(e,n,a,o||null,!0):2===t?function(t,e,n){const r=Ka(t,e);r&&function(t,e,n,r){Oe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,o){const i=n[7];i!==He(n)&&jo(e,t,r,i,o);for(let a=10;a0&&(t[n-1][4]=r[4]);const i=Yr(t,10+e);!function(t,e){os(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function gm(t,e){if(!(256&e[2])){const n=e[11];Oe(n)&&n.destroyNode&&os(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gc(t[1],t);for(;e;){let n=null;if(Rn(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Rn(e)&&Gc(e[1],e),e=e[3];null===e&&(e=t),Rn(e)&&Gc(e[1],e),n=e&&e[4]}e=n}}(e)}}function Gc(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[o=u]():r[o=-u].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const g=8&r?f:null;if(g&&-1!==Mm(g,u,0)||2&r&&u!==f){if(pn(r))return!1;s=!0}}}}else{if(!s&&!pn(r)&&!pn(l))return!1;if(s&&pn(l))continue;s=!1,r=l|1&r}}return pn(r)||s}function pn(t){return 0==(1&t)}function BT(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!pn(s)&&(e+=Om(i,o),o=""),r=s,i=i||!pn(r);n++}return""!==o&&(e+=Om(i,o)),e}const ee={};function E(t){xm(ce(),w(),bt()+t,Ia())}function xm(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ra(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Oa(e,i,0,n)}br(n)}function Za(t,e){return t<<17|e<<2}function gn(t){return t>>17&32767}function Kc(t){return 2|t}function er(t){return(131068&t)>>2}function Qc(t,e){return-131069&t|e<<2}function Yc(t){return 1|t}function Gm(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&xm(t,e,20,Ia()),n(r,o)}finally{br(i)}}function od(t,e,n){!ag()||(function(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||Hi(n,e),ht(r,e);const s=n.initialInputs;for(let a=o;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,o,s)}}function Xm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function e_(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function _1(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&ld(n)}}function ld(t){for(let r=Vc(t);null!==r;r=Uc(r))for(let o=10;o0&&ld(i)}const n=t[1].components;if(null!==n)for(let r=0;r0&&ld(o)}}function w1(t,e){const n=Vt(e,t),r=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function i_(t){return t[7]||(t[7]=[])}function s_(t){return t.cleanup||(t.cleanup=[])}function l_(t,e){const n=t[9],r=n?n.get(Xr,null):null;r&&r.handleError(e)}function u_(t,e,n,r,o){for(let i=0;ithis.processProvider(a,e,n)),xn([e],a=>this.processInjectorType(a,[],i)),this.records.set(as,zo(void 0,this));const s=this.records.get(ls);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:ie(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Qi,r=z.Default){this.assertNotDestroyed();const o=Fo(this),i=_r(void 0);try{if(!(r&z.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=("function"==typeof(t=e)||"object"==typeof t&&t instanceof re)&&Yn(e);a=l&&this.injectableDefInScope(l)?zo(pd(e),us):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&z.Self?d_():this.parent).get(e,n=r&z.Optional&&n===Qi?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ko]=s[ko]||[]).unshift(ie(e)),o)throw s;return xg(s,e,"R3InjectorError",this.source)}throw s}finally{_r(i),Fo(o)}var t}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push(ie(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,n,r){if(!(e=U(e)))return!1;let o=Gp(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=Gp(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{xn(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(m,f,g||_e))}}this.injectorDefTypes.add(s);const l=Kr(s)||(()=>new s);this.records.set(s,zo(l,us));const u=o.providers;if(null!=u&&!a){const c=e;xn(u,d=>this.processProvider(d,c,u))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=qo(e=U(e))?e:U(e&&e.provide);const i=(t=e,p_(t)?zo(void 0,t.useValue):zo(h_(t),us));var t;if(qo(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=zo(void 0,us,!0),s.factory=()=>Zr(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===us&&(n.value=O1,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(t=n.value)&&"object"==typeof t&&"function"==typeof t.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var t}injectableDefInScope(e){if(!e.providedIn)return!1;const n=U(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function pd(t){const e=Yn(t),n=null!==e?e.factory:Kr(t);if(null!==n)return n;if(t instanceof re)throw new Error(`Token ${ie(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function h_(t,e,n){let r;if(qo(t)){const o=U(t);return Kr(o)||pd(o)}if(p_(t))r=()=>U(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Zr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>M(U(t.useExisting));else{const o=U(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Kr(o)||pd(o);r=()=>new o(...Zr(t.deps))}return r}function zo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function p_(t){return null!==t&&"object"==typeof t&&Ic in t}function qo(t){return"function"==typeof t}const g_=function(t,e,n){return function(t,e=null,n=null,r){const o=f_(t,e,n,r);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)};let he=(()=>{class t{static create(n,r){return Array.isArray(n)?g_(n,r,""):g_(n.providers,n.parent,n.name||"")}}return t.THROW_IF_NOT_FOUND=Qi,t.NULL=new c_,t.\u0275prov=W({token:t,providedIn:"any",factory:()=>M(as)}),t.__NG_ELEMENT_ID__=-1,t})();function tA(t,e){Sa(Pc(t)[1],We())}function Ae(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let o;if(fn(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");o=e.\u0275dir}if(o){if(n){r.push(o);const s=t;s.inputs=Cd(t.inputs),s.declaredInputs=Cd(t.declaredInputs),s.outputs=Cd(t.outputs);const a=o.hostBindings;a&&iA(t,a);const l=o.viewQuery,u=o.contentQueries;if(l&&rA(t,l),u&&oA(t,u),Gu(t.inputs,o.inputs),Gu(t.declaredInputs,o.declaredInputs),Gu(t.outputs,o.outputs),fn(o)&&o.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Pa(o.hostAttrs,n=Pa(n,o.hostAttrs))}}(r)}function Cd(t){return t===bo?{}:t===_e?[]:t}function rA(t,e){const n=t.viewQuery;t.viewQuery=n?(r,o)=>{e(r,o),n(r,o)}:e}function oA(t,e){const n=t.contentQueries;t.contentQueries=n?(r,o,i)=>{e(r,o,i),n(r,o,i)}:e}function iA(t,e){const n=t.hostBindings;t.hostBindings=n?(r,o)=>{e(r,o),n(r,o)}:e}let rl=null;function Wo(){if(!rl){const t=fe.Symbol;if(t&&t.iterator)rl=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(He(L[r.index])):r.index;if(Oe(n)){let L=null;if(!a&&l&&(L=function(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==L)(L.__ngLastListenerFn__||L).__ngNextListenerFn__=i,L.__ngLastListenerFn__=i,g=!1;else{i=Nd(r,e,d,i,!1);const te=n.listen(b,o,i);f.push(i,te),c&&c.push(o,O,C,C+1)}}else i=Nd(r,e,d,i,!0),b.addEventListener(o,i,s),f.push(i),c&&c.push(o,O,C,s)}else i=Nd(r,e,d,i,!1);const m=r.outputs;let y;if(g&&null!==m&&(y=m[o])){const _=y.length;if(_)for(let b=0;b<_;b+=2){const Ze=e[y[b]][y[b+1]].subscribe(i),ln=f.length;f.push(i,Ze),c&&c.push(o,r.index,ln,-(ln+1))}}}(i,o,o[11],s,t,e,!!n,r),H}function oy(t,e,n,r){try{return!1!==n(r)}catch(o){return l_(t,o),!1}}function Nd(t,e,n,r,o){return function i(s){if(s===Function)return r;const a=2&t.flags?Vt(t.index,e):e;0==(32&e[2])&&ud(a);let l=oy(e,0,r,s),u=i.__ngNextListenerFn__;for(;u;)l=oy(e,0,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function F(t=1){return function(t){return(Y.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Y.lFrame.contextLView))[8]}(t)}function Ar(t,e,n){return en(t,"",e,"",n),Ar}function en(t,e,n,r,o){const i=w(),s=Qo(i,e,n,r);return s!==ee&&Ht(ce(),xe(),i,t,s,i[11],o,!1),en}function hy(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?gn(i):er(i),l=!1;for(;0!==a&&(!1===l||s);){const c=t[a+1];$A(t[a],e)&&(l=!0,t[a+1]=r?Yc(c):Kc(c)),a=r?gn(c):er(c)}l&&(t[n+1]=r?Kc(i):Yc(i))}function $A(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Po(t,e)>=0}function no(t,e,n){return _n(t,e,n,!1),no}function tn(t,e){return _n(t,e,null,!0),tn}function _n(t,e,n,r){const o=w(),i=ce(),s=function(t){const e=Y.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);i.firstUpdatePass&&function(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[bt()],s=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(i,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const o=function(t){const e=Y.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=ps(n=Sd(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=Sd(o,t,e,n,r),null===i){let l=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==er(r))return t[gn(r)]}(t,e,r);void 0!==l&&Array.isArray(l)&&(l=Sd(null,t,e,l[1],r),l=ps(l,e.attrs,r),function(t,e,n,r){t[gn(n?e.classBindings:e.styleBindings)]=r}(t,e,r,l))}else i=function(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else c=n;if(o)if(0!==l){const f=gn(t[a+1]);t[r+1]=Za(f,a),0!==f&&(t[f+1]=Qc(t[f+1],r)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=Za(a,0),0!==a&&(t[a+1]=Qc(t[a+1],r)),a=r;else t[r+1]=Za(l,0),0===a?a=r:t[l+1]=Qc(t[l+1],r),l=r;u&&(t[r+1]=Kc(t[r+1])),hy(t,c,r,!0),hy(t,c,r,!1),function(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&Po(i,e)>=0&&(n[r+1]=Yc(n[r+1]))}(e,c,t,r,i),s=Za(a,l),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==ee&&pt(o,s,e)&&function(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];al(function(t){return 1==(1&t)}(u)?wy(l,e,n,o,er(u),s):void 0)||(al(i)||function(t){return 2==(2&t)}(u)&&(i=wy(l,null,n,o,a,s)),function(t,e,n,r,o){const i=Oe(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:jt.DashCase;if(null==o)i?t.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=jt.Important),i?t.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,wa(bt(),n),o,i))}(i,i.data[bt()],o,o[11],t,o[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=ie(Bt(t)))),t}(e,n),r,s)}function Sd(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=t[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===ee&&(f=d?_e:void 0);let g=d?bc(f,r):c===r?f:void 0;if(u&&!al(g)&&(g=bc(l,r)),al(g)&&(a=g,s))return a;const m=t[o+1];o=s?gn(m):er(m)}if(null!==e){let l=i?e.residualClasses:e.residualStyles;null!=l&&(a=bc(l,r))}return a}function al(t){return void 0!==t}function v(t,e=""){const n=w(),r=ce(),o=t+20,i=r.firstCreatePass?Ho(r,o,1,e,null):r.data[o],s=n[o]=function(t,e){return Oe(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Qa(r,n,s,i),On(i,!1)}function Gt(t){return st("",t,""),Gt}function st(t,e,n){const r=w(),o=Qo(r,t,e,n);return o!==ee&&nr(r,bt(),o),st}const ro=void 0;var IM=["en",[["a","p"],["AM","PM"],ro],[["AM","PM"],ro,ro],[["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"]],ro,[["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"]],ro,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ro,"{1} 'at' {0}",ro],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let ii={};function qy(t){return t in ii||(ii[t]=fe.ng&&fe.ng.common&&fe.ng.common.locales&&fe.ng.common.locales[t]),ii[t]}var R=(()=>((R=R||{})[R.LocaleId=0]="LocaleId",R[R.DayPeriodsFormat=1]="DayPeriodsFormat",R[R.DayPeriodsStandalone=2]="DayPeriodsStandalone",R[R.DaysFormat=3]="DaysFormat",R[R.DaysStandalone=4]="DaysStandalone",R[R.MonthsFormat=5]="MonthsFormat",R[R.MonthsStandalone=6]="MonthsStandalone",R[R.Eras=7]="Eras",R[R.FirstDayOfWeek=8]="FirstDayOfWeek",R[R.WeekendRange=9]="WeekendRange",R[R.DateFormat=10]="DateFormat",R[R.TimeFormat=11]="TimeFormat",R[R.DateTimeFormat=12]="DateTimeFormat",R[R.NumberSymbols=13]="NumberSymbols",R[R.NumberFormats=14]="NumberFormats",R[R.CurrencyCode=15]="CurrencyCode",R[R.CurrencySymbol=16]="CurrencySymbol",R[R.CurrencyName=17]="CurrencyName",R[R.Currencies=18]="Currencies",R[R.Directionality=19]="Directionality",R[R.PluralCase=20]="PluralCase",R[R.ExtraData=21]="ExtraData",R))();const ll="en-US";let Wy=ll;function xd(t,e,n,r,o){if(t=U(t),Array.isArray(t))for(let i=0;i>20;if(qo(t)||!t.multi){const g=new Bi(l,o,D),m=kd(a,e,o?c:c+f,d);-1===m?(La(Hi(u,s),i,a),Pd(i,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(g),s.push(g)):(n[m]=g,s[m]=g)}else{const g=kd(a,e,c+f,d),m=kd(a,e,c,c+f),y=g>=0&&n[g],_=m>=0&&n[m];if(o&&!_||!o&&!y){La(Hi(u,s),i,a);const b=function(t,e,n,r,o){const i=new Bi(t,n,D);return i.multi=[],i.index=e,i.componentProviders=0,_v(i,o,r&&!n),i}(o?EN:DN,n.length,o,r,l);!o&&_&&(n[m].providerFactory=b),Pd(i,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else Pd(i,t,g>-1?g:m,_v(n[o?m:g],l,!o&&r));!o&&r&&_&&n[m].componentProviders++}}}function Pd(t,e,n,r){const o=qo(e);if(o||function(t){return!!t.useClass}(e)){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const a=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const l=a.indexOf(n);-1===l?a.push(n,[r,s]):a[l+1].push(r,s)}else a.push(n,s)}}}function _v(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function kd(t,e,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function(t,e,n){const r=ce();if(r.firstCreatePass){const o=fn(t);xd(n,r.data,r.blueprint,o,!0),xd(e,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,e)}}class yv{}const Cv="ngComponent";class TN{resolveComponentFactory(e){throw function(t){const e=Error(`No component factory found for ${ie(t)}. Did you add it to @NgModule.entryComponents?`);return e[Cv]=t,e}(e)}}let oo=(()=>{class t{}return t.NULL=new TN,t})();function hl(...t){}function ai(t,e){return new et(Qt(t,e))}const NN=function(){return ai(We(),w())};let et=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=NN,t})();function bv(t){return t instanceof et?t.nativeElement:t}class pl{}let or=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>RN(),t})();const RN=function(){const t=w(),n=Vt(We().index,t);return function(t){return t[11]}(Rn(n)?n:t)};let Vd=(()=>{class t{}return t.\u0275prov=W({token:t,providedIn:"root",factory:()=>null}),t})();class vs{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Dv=new vs("13.0.0"),li={};function gl(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(He(i)),dn(i))for(let a=10;a-1&&(Hc(e,r),Yr(n,r))}this._attachedToViewContainer=!1}gm(this._lView[1],this._lView)}onDestroy(e){Qm(this._lView[1],this._lView,null,e)}markForCheck(){ud(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){dd(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ta(!0);try{dd(t,e,n)}finally{Ta(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,os(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class PN extends Cs{constructor(e){super(e),this._view=e}detectChanges(){o_(this._view)}checkNoChanges(){!function(t){Ta(!0);try{o_(t)}finally{Ta(!1)}}(this._view)}get context(){return null}}class Ev extends oo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=ct(e);return new Ud(n,this.ngModule)}}function wv(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const FN=new re("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>am});class Ud extends yv{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=e.selectors.map(zT).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return wv(this.componentDef.inputs)}get outputs(){return wv(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function(t,e){return{get:(n,r,o)=>{const i=t.get(n,li,o);return i!==li||r===li?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get(pl,og),a=i.get(Vd,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function(t,e,n){if(Oe(t))return t.selectRootElement(e,n===kt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):jc(s.createRenderer(null,this.componentDef),u,function(t){const e=t.toLowerCase();return"svg"===e?ng:"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f=function(t,e){return{components:[],scheduler:t||am,clean:N1,playerHandler:e||null,flags:0}}(),g=el(0,null,null,1,0,null,null,null,null,null),m=is(null,g,f,d,null,null,s,l,a,i);let y,_;Aa(m);try{const b=function(t,e,n,r,o,i){const s=n[1];n[20]=t;const l=Ho(s,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(nl(l,u,!0),null!==t&&(xa(o,t,u),null!==l.classes&&Wc(o,t,l.classes),null!==l.styles&&Am(o,t,l.styles)));const c=r.createRenderer(t,e),d=is(n,qm(e),null,e.onPush?64:16,n[20],l,r,c,i||null,null);return s.firstCreatePass&&(La(Hi(l,n),s,e.type),e_(s,l),t_(l,n.length,1)),tl(n,d),n[20]=d}(c,this.componentDef,m,s,l);if(c)if(r)xa(l,c,["ng-version",Dv.full]);else{const{attrs:C,classes:O}=function(t){const e=[],n=[];let r=1,o=2;for(;r0&&Wc(l,c,O.join(" "))}if(_=rc(g,20),void 0!==n){const C=_.projection=[];for(let O=0;Ol(s,e)),e.contentQueries){const l=We();e.contentQueries(1,s,l.directiveStart)}const a=We();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(br(a.index),Jm(n[1],a,0,a.directiveStart,a.directiveEnd,e),Xm(e,s)),s}(b,this.componentDef,m,f,[tA]),ss(g,m,null)}finally{Ma()}return new UN(this.componentType,y,ai(_,m),m,_)}}class UN extends class{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new PN(o),this.componentType=e}get injector(){return new So(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Hn{}class Iv{}const ui=new Map;class Av extends Hn{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ev(this);const r=qt(e);this._bootstrapComponents=Fn(r.bootstrap),this._r3Injector=f_(e,n,[{provide:Hn,useValue:this},{provide:oo,useValue:this.componentFactoryResolver}],ie(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=he.THROW_IF_NOT_FOUND,r=z.Default){return e===he||e===Hn||e===as?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class jd extends Iv{constructor(e){super(),this.moduleType=e,null!==qt(e)&&function(t){const e=new Set;!function n(r){const o=qt(r,!0),i=o.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${ie(e)} vs ${ie(e.name)}`)}(i,ui.get(i),r),ui.set(i,r));const s=Fn(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new Av(this.moduleType,e)}}function Hd(t){return e=>{setTimeout(t,void 0,e)}}const Ne=class extends un{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var l,u,c;let o=e,i=n||(()=>null),s=r;if(e&&"object"==typeof e){const d=e;o=null==(l=d.next)?void 0:l.bind(d),i=null==(u=d.error)?void 0:u.bind(d),s=null==(c=d.complete)?void 0:c.bind(d)}this.__isAsync&&(i=Hd(i),o&&(o=Hd(o)),s&&(s=Hd(s)));const a=super.subscribe({next:o,error:i,complete:s});return e instanceof Ot&&e.add(a),a}};function sS(){return this._results[Wo()]()}class ml{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Wo(),r=ml.prototype;r[n]||(r[n]=sS)}get changes(){return this._changes||(this._changes=new Ne)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const o=Yt(e);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=lS,t})();const uS=ir,cS=class extends uS{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=is(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),ss(n,r,e),new Cs(r)}};function _l(t,e){return 4&t.type?new cS(e,t,ai(t,e)):null}const hS=function(){return kv(We(),w())};let vn=(()=>{class t{}return t.__NG_ELEMENT_ID__=hS,t})();const gS=vn,xv=class extends gS{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return ai(this._hostTNode,this._hostLView)}get injector(){return new So(this._hostTNode,this._hostLView)}get parentInjector(){const e=Fa(this._hostTNode,this._hostLView);if(Cg(e)){const n=No(e,this._hostLView),r=Mo(e);return new So(n[1].data[r+8],n)}return new So(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=Pv(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=e&&!("function"==typeof e);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.ngModuleRef}const l=s?e:new Ud(ct(e)),u=r||this.parentInjector;if(!i&&null==l.ngModule&&u){const d=u.get(Hn,null);d&&(i=d)}const c=l.create(u,o,void 0,i);return this.insert(c.hostView,a),c}insert(e,n){const r=e._lView,o=r[1];if(dn(r[3])){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new xv(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),r0)r.push(s[a/2]);else{const u=i[a+1],c=e[-l];for(let d=10;d{class t{constructor(n){this.appInits=n,this.resolve=hl,this.reject=hl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(M(ws,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const Is=new re("AppId"),JS={provide:Is,useFactory:function(){return`${rf()}${rf()}${rf()}`},deps:[]};function rf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const oC=new re("Platform Initializer"),Cl=new re("Platform ID"),iC=new re("appBootstrapListener");let bl=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const Mr=new re("LocaleId"),sC=new re("DefaultCurrencyCode");class eR{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}const of=function(t){return new jd(t)},tR=of,nR=function(t){return Promise.resolve(of(t))},lC=function(t){const e=of(t),r=Fn(qt(t).declarations).reduce((o,i)=>{const s=ct(i);return s&&o.push(new Ud(s)),o},[]);return new eR(e,r)},rR=lC,oR=function(t){return Promise.resolve(lC(t))};let Dl=(()=>{class t{constructor(){this.compileModuleSync=tR,this.compileModuleAsync=nR,this.compileModuleAndAllComponentsSync=rR,this.compileModuleAndAllComponentsAsync=oR}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const aR=(()=>Promise.resolve(0))();function sf(t){"undefined"==typeof Zone?aR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ke{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ne(!1),this.onMicrotaskEmpty=new Ne(!1),this.onStable=new Ne(!1),this.onError=new Ne(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let t=fe.requestAnimationFrame,e=fe.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(fe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,lf(t),t.isCheckStableRunning=!0,af(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),lf(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return uC(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),cC(t)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return uC(t),n.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),cC(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,lf(t),af(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ke.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ke.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,uR,hl,hl);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const uR={};function af(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function lf(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function uC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cC(t){t._nesting--,af(t)}class fR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ne,this.onMicrotaskEmpty=new Ne,this.onStable=new Ne,this.onError=new Ne}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let uf=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ke.assertNotInAngularZone(),sf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())sf(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(M(ke))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),dC=(()=>{class t{constructor(){this._applications=new Map,cf.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return cf.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();class hR{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let cf=new hR,fC=!0,hC=!1;let Cn;const gC=new re("AllowMultipleToken");class df{constructor(e,n){this.name=e,this.token=n}}function mC(t,e,n=[]){const r=`Platform: ${e}`,o=new re(r);return(i=[])=>{let s=_C();if(!s||s.injector.get(gC,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:ls,useValue:"platform"});!function(t){if(Cn&&!Cn.destroyed&&!Cn.injector.get(gC,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cn=t.get(yC);const e=t.get(oC,null);e&&e.forEach(n=>n())}(he.create({providers:a,name:r}))}return function(t){const e=_C();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function _C(){return Cn&&!Cn.destroyed?Cn:null}let yC=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(t,e){let n;return n="noop"===t?new fR:("zone.js"===t?void 0:t)||new ke({enableLongStackTrace:(hC=!0,fC),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:ke,useValue:a}];return a.run(()=>{const u=he.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(Xr,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:g=>{d.handleError(g)}});c.onDestroy(()=>{ff(this._modules,c),f.unsubscribe()})}),function(t,e,n){try{const r=n();return hs(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(di);return f.runInitializers(),f.donePromise.then(()=>(function(t){Pt(t,"Expected localeId to be defined"),"string"==typeof t&&(Wy=t.toLowerCase().replace(/_/g,"-"))}(c.injector.get(Mr,ll)||ll),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=vC({},r);return function(t,e,n){const r=new jd(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(fi);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${ie(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(M(he))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function vC(t,e){return Array.isArray(e)?e.reduce(vC,t):B(B({},t),e)}let fi=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new ve(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new ve(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ke.assertNotInAngularZone(),sf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{ke.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...t){const e=Pi(t),n=function(t,e){return"number"==typeof ju(t)?t.pop():1/0}(t),r=t;return r.length?1===r.length?Sn(r[0]):xi(n)(je(r,e)):Kn}(a,l.pipe(function(t={}){const{connector:e=(()=>new un),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s=null,a=null,l=null,u=0,c=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=null},g=()=>{f(),s=l=null,c=d=!1},m=()=>{const y=s;g(),null==y||y.unsubscribe()};return Je((y,_)=>{u++,!d&&!c&&f();const b=l=null!=l?l:e();_.add(()=>{u--,0===u&&!d&&!c&&(a=Hu(m,o))}),b.subscribe(_),s||(s=new Fu({next:C=>b.next(C),error:C=>{d=!0,f(),a=Hu(g,n,C),b.error(C)},complete:()=>{c=!0,f(),a=Hu(g,r),b.complete()}}),je(y).subscribe(s))})(i)}}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let o;o=n instanceof yv?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(t){return t.isBoundToModule}(o)?void 0:this._injector.get(Hn),a=o.create(he.NULL,[],r||o.selector,i),l=a.location.nativeElement,u=a.injector.get(uf,null),c=u&&a.injector.get(dC);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),ff(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;ff(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(iC,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(M(ke),M(he),M(Xr),M(oo),M(di))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function ff(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const MR=function(t){return function(t,e,n){if(Da(t)&&!n){const r=Vt(t.index,e);return new Cs(r,r)}return 47&t.type?new Cs(e[16],e):null}(We(),w(),16==(16&t))};let Ts=(()=>{class t{}return t.__NG_ELEMENT_ID__=MR,t})();class TC{constructor(){}supports(e){return ds(e)}create(e){return new jR(e)}}const BR=(t,e)=>e;class jR{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||BR}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new HR(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new AC),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new AC),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class HR{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class GR{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class AC{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new GR,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function MC(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new zR(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class zR{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function SC(){return new As([new TC])}let As=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||SC()),deps:[[t,new wr,new St]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'`)}}return t.\u0275prov=W({token:t,providedIn:"root",factory:SC}),t})();function RC(){return new hi([new NC])}let hi=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||RC()),deps:[[t,new wr,new St]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return t.\u0275prov=W({token:t,providedIn:"root",factory:RC}),t})();const WR=[new NC],QR=new As([new TC]),YR=new hi(WR),ZR=mC(null,"core",[{provide:Cl,useValue:"unknown"},{provide:yC,deps:[he]},{provide:dC,deps:[]},{provide:bl,deps:[]}]),nO=[{provide:fi,useClass:fi,deps:[ke,he,Xr,oo,di]},{provide:FN,deps:[ke],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:di,useClass:di,deps:[[new St,ws]]},{provide:Dl,useClass:Dl,deps:[]},JS,{provide:As,useFactory:function(){return QR},deps:[]},{provide:hi,useFactory:function(){return YR},deps:[]},{provide:Mr,useFactory:function(t){return t||"undefined"!=typeof $localize&&$localize.locale||ll},deps:[[new Lo(Mr),new St,new wr]]},{provide:sC,useValue:"USD"}];let oO=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(M(fi))},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({providers:nO}),t})(),Fl=null;function Gn(){return Fl}const rt=new re("DocumentToken");let uo=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:function(){return M(gb)},providedIn:"platform"}),t})();const Jx=new re("Location Initialized");let gb=(()=>{class t extends uo{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gn().getBaseHref(this._doc)}onPopState(n){const r=Gn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Gn().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){mb()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){mb()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(M(rt))},t.\u0275prov=W({token:t,factory:function(){return new gb(M(rt))},providedIn:"platform"}),t})();function mb(){return!!window.history.pushState}function Bf(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function _b(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ar(t){return t&&"?"!==t[0]?"?"+t:t}let vi=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:function(){return function(t){const e=M(rt).location;return new yb(M(uo),e&&e.origin||"")}()},providedIn:"root"}),t})();const Ll=new re("appBaseHref");let yb=(()=>{class t extends vi{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}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 Bf(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+ar(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+ar(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+ar(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null==(o=(r=this._platformLocation).historyGo)||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(M(uo),M(Ll,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),tP=(()=>{class t extends vi{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Bf(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+ar(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+ar(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null==(o=(r=this._platformLocation).historyGo)||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(M(uo),M(Ll,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),jf=(()=>{class t{constructor(n,r){this._subject=new Ne,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=_b(vb(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+ar(r))}normalize(n){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,vb(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ar(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ar(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null==(o=(r=this._platformStrategy).historyGo)||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.normalizeQueryParams=ar,t.joinWithSlash=Bf,t.stripTrailingSlash=_b,t.\u0275fac=function(n){return new(n||t)(M(vi),M(uo))},t.\u0275prov=W({token:t,factory:function(){return new jf(M(vi),M(uo))},providedIn:"root"}),t})();function vb(t){return t.replace(/\/index.html$/,"")}var Ge=(()=>((Ge=Ge||{})[Ge.Zero=0]="Zero",Ge[Ge.One=1]="One",Ge[Ge.Two=2]="Two",Ge[Ge.Few=3]="Few",Ge[Ge.Many=4]="Many",Ge[Ge.Other=5]="Other",Ge))();const cP=function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=qy(e);if(n)return n;const r=e.split("-")[0];if(n=qy(r),n)return n;if("en"===r)return IM;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[R.PluralCase]};class Wl{}let UP=(()=>{class t extends Wl{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(cP(r||this.locale)(n)){case Ge.Zero:return"zero";case Ge.One:return"one";case Ge.Two:return"two";case Ge.Few:return"few";case Ge.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(M(Mr))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function Mb(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}class HP{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Yf=(()=>{class t{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(r){throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=[];n.forEachOperation((o,i,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new HP(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new Nb(o,a);r.push(l)}else if(null==s)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const a=this._viewContainer.get(i);this._viewContainer.move(a,s);const l=new Nb(o,a);r.push(l)}});for(let o=0;o{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(n,r){n.context.$implicit=r.item}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(D(vn),D(ir),D(As))},t.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Nb{constructor(e,n){this.record=e,this.view=n}}let Tn=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new $P,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Sb("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Sb("ngIfElse",n),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 ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(D(vn),D(ir))},t.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class $P{constructor(){this.$implicit=null,this.ngIf=null}}function Sb(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ie(e)}'.`)}let xb=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({providers:[{provide:Wl,useClass:UP}]}),t})();let Ck=(()=>{class t{}return t.\u0275prov=W({token:t,providedIn:"root",factory:()=>new bk(M(rt),window)}),t})();class bk{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=kb(this.window.history)||kb(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function kb(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Fb{}class th extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new th,Fl||(Fl=t)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=(js=js||document.querySelector("base"),js?js.getAttribute("href"):null);return null==n?null:function(t){Kl=Kl||document.createElement("a"),Kl.setAttribute("href",t);const e=Kl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){js=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Mb(document.cookie,e)}}let Kl,js=null;const Lb=new re("TRANSITION_ID"),Ak=[{provide:ws,useFactory:function(t,e,n){return()=>{n.get(di).donePromise.then(()=>{const r=Gn(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},fe.getAllAngularTestabilities=()=>e.getAllTestabilities(),fe.getAllAngularRootElements=()=>e.getAllRootElements(),fe.frameworkStabilizers||(fe.frameworkStabilizers=[]),fe.frameworkStabilizers.push(r=>{const o=fe.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?Gn().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let Mk=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const Hs=new re("EventManagerPlugins");let Yl=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),Gs=(()=>{class t extends Ub{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(Bb),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Bb))}}return t.\u0275fac=function(n){return new(n||t)(M(rt))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function Bb(t){Gn().remove(t)}const oh={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/"},ih=/%COMP%/g;function Zl(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let sh=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new ah(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case kt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new Gk(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case kt.ShadowDom:return new $k(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Zl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(M(Yl),M(Gs),M(Is))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();class ah{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(oh[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=oh[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=oh[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(jt.DashCase|jt.Important)?e.style.setProperty(n,r,o&jt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&jt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,Gb(r)):this.eventManager.addEventListener(e,n,Gb(r))}}class Gk extends ah{constructor(e,n,r,o){super(e),this.component=r;const i=Zl(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(ih,o+"-"+r.id),this.hostAttr="_nghost-%COMP%".replace(ih,o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class $k extends ah{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Zl(o.id,o.styles,[]);for(let s=0;s{class t extends rh{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(M(rt))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const qb=["alt","control","meta","shift"],Jk={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Wb={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Xk={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let eF=(()=>{class t extends rh{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(qb.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Wb.hasOwnProperty(e)&&(e=Wb[e]))}return Jk[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),qb.forEach(i=>{i!=o&&Xk[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(M(rt))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:function(n){let r=null;return r=n?new(n||t):M(uh),r},providedIn:"root"}),t})(),uh=(()=>{class t extends Jl{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case Ce.NONE:return r;case Ce.HTML:return Pn(r,"HTML")?Bt(r):Qg(this._doc,String(r)).toString();case Ce.STYLE:return Pn(r,"Style")?Bt(r):r;case Ce.SCRIPT:if(Pn(r,"Script"))return Bt(r);throw new Error("unsafe value used in a script context");case Ce.URL:return jg(r),Pn(r,"URL")?Bt(r):Xi(String(r));case Ce.RESOURCE_URL:if(Pn(r,"ResourceURL"))return Bt(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${n} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(n){return function(t){return new NI(t)}(n)}bypassSecurityTrustStyle(n){return function(t){return new SI(t)}(n)}bypassSecurityTrustScript(n){return function(t){return new RI(t)}(n)}bypassSecurityTrustUrl(n){return function(t){return new OI(t)}(n)}bypassSecurityTrustResourceUrl(n){return function(t){return new xI(t)}(n)}}return t.\u0275fac=function(n){return new(n||t)(M(rt))},t.\u0275prov=W({token:t,factory:function(n){let r=null;return r=n?new n:function(t){return new uh(t.get(rt))}(M(he)),r},providedIn:"root"}),t})();const lF=mC(ZR,"browser",[{provide:Cl,useValue:"browser"},{provide:oC,useValue:function(){th.makeCurrent(),nh.init()},multi:!0},{provide:rt,useFactory:function(){return t=document,tc=t,document;var t},deps:[]}]),uF=[[],{provide:ls,useValue:"root"},{provide:Xr,useFactory:function(){return new Xr},deps:[]},{provide:Hs,useClass:zk,multi:!0,deps:[rt,ke,Cl]},{provide:Hs,useClass:eF,multi:!0,deps:[rt]},[],{provide:sh,useClass:sh,deps:[Yl,Gs,Is]},{provide:pl,useExisting:sh},{provide:Ub,useExisting:Gs},{provide:Gs,useClass:Gs,deps:[rt]},{provide:uf,useClass:uf,deps:[ke]},{provide:Yl,useClass:Yl,deps:[Hs,ke]},{provide:Fb,useClass:Mk,deps:[]},[]];let cF=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Is,useValue:n.appId},{provide:Lb,useExisting:Is},Ak]}}}return t.\u0275fac=function(n){return new(n||t)(M(t,12))},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({providers:uF,imports:[xb,oO]}),t})();"undefined"!=typeof window&&window;const dh={now:()=>(dh.delegate||Date).now(),delegate:void 0};class yF extends un{constructor(e=1/0,n=1/0,r=dh){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){const{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s{class t extends Qb{constructor(n,r={scope:"email"}){super(),this.clientId=n,this.initOptions=r}initialize(){return new Promise((n,r)=>{try{this.loadScript(t.PROVIDER_ID,"https://apis.google.com/js/platform.js",()=>{gapi.load("auth2",()=>{this.auth2=gapi.auth2.init(Object.assign(Object.assign({},this.initOptions),{client_id:this.clientId})),this.auth2.then(()=>{n()}).catch(o=>{r(o)})})})}catch(o){r(o)}})}getLoginStatus(n){const r=Object.assign(Object.assign({},this.initOptions),n);return new Promise((o,i)=>{if(this.auth2.isSignedIn.get()){let s=new Xl;const a=this.auth2.currentUser.get().getBasicProfile(),l=this.auth2.currentUser.get().getAuthResponse(!0);s.id=a.getId(),s.name=a.getName(),s.email=a.getEmail(),s.photoUrl=a.getImageUrl(),s.firstName=a.getGivenName(),s.lastName=a.getFamilyName(),s.response=l;const u=c=>{s.authToken=c.access_token,s.idToken=c.id_token,o(s)};r.refreshToken?this.auth2.currentUser.get().reloadAuthResponse().then(u):u(this.auth2.currentUser.get().getAuthResponse(!0))}else i(`No user is currently logged in with ${t.PROVIDER_ID}`)})}signIn(n){const r=Object.assign(Object.assign({},this.initOptions),n);return new Promise((o,i)=>{(r&&r.offline_access?this.auth2.grantOfflineAccess(n):this.auth2.signIn(n)).then(l=>{let u=new Xl;if(l&&l.code)u.authorizationCode=l.code;else{let c=this.auth2.currentUser.get().getBasicProfile(),d=this.auth2.currentUser.get().getAuthResponse(!0),f=d.access_token,g=d.id_token;u.id=c.getId(),u.name=c.getName(),u.email=c.getEmail(),u.photoUrl=c.getImageUrl(),u.firstName=c.getGivenName(),u.lastName=c.getFamilyName(),u.authToken=f,u.idToken=g,u.response=d}o(u)},l=>{i(l)}).catch(l=>{i(l)})})}signOut(n){return new Promise((r,o)=>{let i;i=n?this.auth2.disconnect():this.auth2.signOut(),i.then(s=>{s?o(s):r()}).catch(s=>{o(s)})})}}return t.PROVIDER_ID="GOOGLE",t})(),fh=(()=>{class t{constructor(n){this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new yF(1),this.initialized=!1,this._initState=new vF,n instanceof Promise?n.then(r=>{this.initialize(r)}):this.initialize(n)}get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}initialize(n){this.autoLogin=void 0!==n.autoLogin&&n.autoLogin;const{onError:r=console.error}=n;n.providers.forEach(o=>{this.providers.set(o.id,o.provider)}),Promise.all(Array.from(this.providers.values()).map(o=>o.initialize())).then(()=>{if(this.autoLogin){const o=[];let i=!1;this.providers.forEach((s,a)=>{let l=s.getLoginStatus();o.push(l),l.then(u=>{u.provider=a,this._user=u,this._authState.next(u),i=!0}).catch(console.debug)}),Promise.all(o).catch(()=>{i||(this._user=null,this._authState.next(null))})}}).catch(o=>{r(o)}).finally(()=>{this.initialized=!0,this._initState.next(this.initialized),this._initState.complete()})}refreshAuthToken(n){return new Promise((r,o)=>{if(this.initialized)if(n!==eu.PROVIDER_ID)o(t.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);else{const i=this.providers.get(n);i?i.getLoginStatus({refreshToken:!0}).then(s=>{s.provider=n,this._user=s,this._authState.next(s),r()}).catch(s=>{o(s)}):o(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else o(t.ERR_NOT_INITIALIZED)})}signIn(n,r){return new Promise((o,i)=>{if(this.initialized){let s=this.providers.get(n);s?s.signIn(r).then(a=>{a.provider=n,o(a),this._user=a,this._authState.next(a)}).catch(a=>{i(a)}):i(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else i(t.ERR_NOT_INITIALIZED)})}signOut(n=!1){return new Promise((r,o)=>{if(this.initialized)if(this._user){let s=this.providers.get(this._user.provider);s?s.signOut(n).then(()=>{r(),this._user=null,this._authState.next(null)}).catch(a=>{o(a)}):o(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else o(t.ERR_NOT_LOGGED_IN);else o(t.ERR_NOT_INITIALIZED)})}}return t.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",t.ERR_NOT_LOGGED_IN="Not logged in",t.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",t.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN="Chosen login provider is not supported for refreshing a token",t.\u0275fac=function(n){return new(n||t)(M("SocialAuthServiceConfig"))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),CF=(()=>{class t{constructor(n){if(n)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}static initialize(n){return{ngModule:t,providers:[fh,{provide:"SocialAuthServiceConfig",useValue:n}]}}}return t.\u0275fac=function(n){return new(n||t)(M(t,12))},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({providers:[fh],imports:[[xb]]}),t})(),hh=(()=>{class t extends Qb{constructor(n,r={}){super(),this.clientId=n,this.requestOptions={scope:"email,public_profile",locale:"en_US",fields:"name,email,picture,first_name,last_name",version:"v10.0"},this.requestOptions=Object.assign(Object.assign({},this.requestOptions),r)}initialize(){return new Promise((n,r)=>{try{this.loadScript(t.PROVIDER_ID,`//connect.facebook.net/${this.requestOptions.locale}/sdk.js`,()=>{FB.init({appId:this.clientId,autoLogAppEvents:!0,cookie:!0,xfbml:!0,version:this.requestOptions.version}),n()})}catch(o){r(o)}})}getLoginStatus(){return new Promise((n,r)=>{FB.getLoginStatus(o=>{if("connected"===o.status){let i=o.authResponse;FB.api(`/me?fields=${this.requestOptions.fields}`,s=>{let a=new Xl;a.id=s.id,a.name=s.name,a.email=s.email,a.photoUrl="https://graph.facebook.com/"+s.id+"/picture?type=normal&access_token="+i.accessToken,a.firstName=s.first_name,a.lastName=s.last_name,a.authToken=i.accessToken,a.response=s,n(a)})}else r(`No user is currently logged in with ${t.PROVIDER_ID}`)})})}signIn(n){const r=Object.assign(Object.assign({},this.requestOptions),n);return new Promise((o,i)=>{FB.login(s=>{if(s.authResponse){let a=s.authResponse;FB.api(`/me?fields=${r.fields}`,l=>{let u=new Xl;u.id=l.id,u.name=l.name,u.email=l.email,u.photoUrl="https://graph.facebook.com/"+l.id+"/picture?type=normal",u.firstName=l.first_name,u.lastName=l.last_name,u.authToken=a.accessToken,u.response=l,o(u)})}else i("User cancelled login or did not fully authorize.")},r)})}signOut(){return new Promise((n,r)=>{FB.logout(o=>{n()})})}}return t.PROVIDER_ID="FACEBOOK",t})();function k(...t){return je(t,Pi(t))}function Ve(t,e){return Je((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(new qe(r,l=>{null==o||o.unsubscribe();let u=0;const c=i++;Sn(t(l,c)).subscribe(o=new qe(r,d=>r.next(e?e(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ci(t,e){return G(e)?Be(t,e,1):Be(t,1)}function co(t,e){return Je((n,r)=>{let o=0;n.subscribe(new qe(r,i=>t.call(e,i,o++)&&r.next(i)))})}class Yb{}class Zb{}class at{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof at?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new at;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof at?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class bF{encodeKey(e){return Jb(e)}encodeValue(e){return Jb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const EF=/%(\d[a-f0-9])/gi,wF={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Jb(t){return encodeURIComponent(t).replace(EF,(e,n)=>{var r;return null!=(r=wF[n])?r:e})}function Xb(t){return`${t}`}class Or{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new bF,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new Or({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(Xb(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf(Xb(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class IF{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function eD(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function tD(t){return"undefined"!=typeof Blob&&t instanceof Blob}function nD(t){return"undefined"!=typeof FormData&&t instanceof FormData}class $s{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new at),this.context||(this.context=new IF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(g,e.setHeaders[g]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((f,g)=>f.set(g,e.setParams[g]),u)),new $s(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var ze=(()=>((ze=ze||{})[ze.Sent=0]="Sent",ze[ze.UploadProgress=1]="UploadProgress",ze[ze.ResponseHeader=2]="ResponseHeader",ze[ze.DownloadProgress=3]="DownloadProgress",ze[ze.Response=4]="Response",ze[ze.User=5]="User",ze))();class ph{constructor(e,n=200,r="OK"){this.headers=e.headers||new at,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class gh extends ph{constructor(e={}){super(e),this.type=ze.ResponseHeader}clone(e={}){return new gh({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class tu extends ph{constructor(e={}){super(e),this.type=ze.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new tu({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class rD extends ph{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function mh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let _h=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof $s)i=n;else{let l,u;l=o.headers instanceof at?o.headers:new at(o.headers),o.params&&(u=o.params instanceof Or?o.params:new Or({fromObject:o.params})),i=new $s(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=k(i).pipe(Ci(l=>this.handler.handle(l)));if(n instanceof $s||"events"===o.observe)return s;const a=s.pipe(co(l=>l instanceof tu));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(V(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(V(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(V(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(V(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}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 Or).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,mh(o,r))}post(n,r,o={}){return this.request("POST",n,mh(o,r))}put(n,r,o={}){return this.request("PUT",n,mh(o,r))}}return t.\u0275fac=function(n){return new(n||t)(M(Yb))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();class oD{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const iD=new re("HTTP_INTERCEPTORS");let MF=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const NF=/^\)\]\}',?\n/;let sD=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ve(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((g,m)=>o.setRequestHeader(g,m.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&o.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();o.responseType="json"!==g?g:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const g=1223===o.status?204:o.status,m=o.statusText||"OK",y=new at(o.getAllResponseHeaders()),_=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new gh({headers:y,status:g,statusText:m,url:_}),s},l=()=>{let{headers:g,status:m,statusText:y,url:_}=a(),b=null;204!==m&&(b=void 0===o.response?o.responseText:o.response),0===m&&(m=b?200:0);let C=m>=200&&m<300;if("json"===n.responseType&&"string"==typeof b){const O=b;b=b.replace(NF,"");try{b=""!==b?JSON.parse(b):null}catch(L){b=O,C&&(C=!1,b={error:L,text:b})}}C?(r.next(new tu({body:b,headers:g,status:m,statusText:y,url:_||void 0})),r.complete()):r.error(new rD({error:b,headers:g,status:m,statusText:y,url:_||void 0}))},u=g=>{const{url:m}=a(),y=new rD({error:g,status:o.status||0,statusText:o.statusText||"Unknown Error",url:m||void 0});r.error(y)};let c=!1;const d=g=>{c||(r.next(a()),c=!0);let m={type:ze.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),"text"===n.responseType&&!!o.responseText&&(m.partialText=o.responseText),r.next(m)},f=g=>{let m={type:ze.UploadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),r.next(m)};return o.addEventListener("load",l),o.addEventListener("error",u),o.addEventListener("timeout",u),o.addEventListener("abort",u),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:ze.Sent}),()=>{o.removeEventListener("error",u),o.removeEventListener("abort",u),o.removeEventListener("load",l),o.removeEventListener("timeout",u),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(M(Fb))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const yh=new re("XSRF_COOKIE_NAME"),vh=new re("XSRF_HEADER_NAME");class aD{}let RF=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mb(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(M(rt),M(Cl),M(yh))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),Ch=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(M(aD),M(vh))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),OF=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(iD,[]);this.chain=r.reduceRight((o,i)=>new oD(o,i),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(M(Zb),M(he))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),xF=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Ch,useClass:MF}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:yh,useValue:n.cookieName}:[],n.headerName?{provide:vh,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({providers:[Ch,{provide:iD,useExisting:Ch,multi:!0},{provide:aD,useClass:RF},{provide:yh,useValue:"XSRF-TOKEN"},{provide:vh,useValue:"X-XSRF-TOKEN"}]}),t})(),PF=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({providers:[_h,{provide:Yb,useClass:OF},sD,{provide:Zb,useExisting:sD}],imports:[[xF.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const me={debug:!1,production:!0,version:j(147).i8,ssoProvider:"gigya",endpointAuthentication:"https://services.iol.pt/oauth/token",endpointUserInfo:"https://services.iol.pt/user/?access_token=",endpointBarData:"https://services.iol.pt/barra/?url=",endpointRegisterUser:"https://services.iol.pt/register/",endpointConfirmRegistration:"https://services.iol.pt/register/confirm?token=",endpointResendActivationEmail:"https://services.iol.pt/register/resend",endpointGetUserProfile:"https://services.iol.pt/user/?access_token=",endpointSetUserProfile:"https://services.iol.pt/user/?access_token=",endpointChangePassword:"https://services.iol.pt/user/change/password?access_token=",endpointRecoverPassword:"https://services.iol.pt/recover/request?email=",endpointRecoverPasswordValidation:"https://services.iol.pt/recover/validate?token=",endpointRecoverChangePassword:"https://services.iol.pt/recover/",endpointCloseAccount:"https://services.iol.pt/user/?access_token=",endpointGetTeams:"https://services.iol.pt/user/list/teams?access_token=",endpointGetCountries:"https://services.iol.pt/user/list/countries?access_token=",endpointUpdatePhoto:"https://services.iol.pt/user/updatePhoto?access_token=",endpointUploadEvents:"https://services.iol.pt/logError",baseUrl:"https://cdn.iol.pt/BarraIOL/dist/"};j(393);class Mn extends un{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){const{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}const{isArray:kF}=Array,{getPrototypeOf:FF,prototype:LF,keys:VF}=Object;function lD(t){if(1===t.length){const e=t[0];if(kF(e))return{args:e,keys:null};if(function(t){return t&&"object"==typeof t&&FF(t)===LF}(e)){const n=VF(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}const{isArray:BF}=Array;function uD(t){return V(e=>function(t,e){return BF(e)?t(...e):t(e)}(t,e))}function cD(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function dD(t,e,n){t?Wn(n,t,e):e()}const nu=ut(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ru(...t){return xi(1)(je(t,Pi(t)))}function fD(t){return new ve(e=>{Sn(t()).subscribe(e)})}function hD(){return Je((t,e)=>{let n=null;t._refCount++;const r=new qe(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(n=null);const o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}class zF extends ve{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Dp(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,null==e||e.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ot;const n=this.getSubject();e.add(this.source.subscribe(new qe(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ot.EMPTY)}return e}refCount(){return hD()(this)}}function WF(t,e,n,r,o){return(i,s)=>{let a=n,l=e,u=0;i.subscribe(new qe(s,c=>{const d=u++;l=a?t(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function pD(t,e){return Je(WF(t,e,arguments.length>=2,!0))}function ur(t){return Je((e,n)=>{let i,r=null,o=!1;r=e.subscribe(new qe(n,void 0,void 0,s=>{i=Sn(t(s,ur(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function bh(t){return t<=0?()=>Kn:Je((e,n)=>{let r=[];e.subscribe(new qe(n,o=>{r.push(o),t{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function gD(t=KF){return Je((e,n)=>{let r=!1;e.subscribe(new qe(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(t())))})}function KF(){return new nu}function mD(t){return Je((e,n)=>{let r=!1;e.subscribe(new qe(n,o=>{r=!0,n.next(o)},()=>{r||n.next(t),n.complete()}))})}function bi(t,e){const n=arguments.length>=2;return r=>r.pipe(t?co((o,i)=>t(o,i,r)):jr,Co(1),n?mD(e):gD(()=>new nu))}function $t(t,e,n){const r=G(t)||e||n?{next:t,error:e,complete:n}:t;return r?Je((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(new qe(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):jr}class cr{constructor(e,n){this.id=e,this.url=n}}class ou extends cr{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Di extends cr{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class _D extends cr{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ZF extends cr{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class JF extends cr{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class XF extends cr{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eL extends cr{constructor(e,n,r,o,i){super(e,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})`}}class tL extends cr{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nL extends cr{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yD{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class vD{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rL{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oL{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iL{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sL{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CD{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ae="primary";class aL{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Ei(t){return new aL(t)}const bD="ngNavigationCancelingError";function Dh(t){const e=Error("NavigationCancelingError: "+t);return e[bD]=!0,e}function uL(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[i]===o)}return t===e}function ED(t){return Array.prototype.concat.apply([],t)}function wD(t){return t.length>0?t[t.length-1]:null}function lt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zn(t){return sl(t)?t:hs(t)?je(Promise.resolve(t)):k(t)}const fL={exact:function AD(t,e,n){if(!ho(t.segments,e.segments)||!iu(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!AD(t.children[r],e.children[r],n))return!1;return!0},subset:MD},ID={exact:function(t,e){return $n(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>DD(t[n],e[n]))},ignored:()=>!0};function TD(t,e,n){return fL[n.paths](t.root,e.root,n.matrixParams)&&ID[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function MD(t,e,n){return ND(t,e,e.segments,n)}function ND(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!ho(o,n)||e.hasChildren()||!iu(o,n,r))}if(t.segments.length===n.length){if(!ho(t.segments,n)||!iu(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!MD(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(ho(t.segments,o)&&iu(t.segments,o,r)&&t.children[ae])&&ND(t.children[ae],e,i,r)}}function iu(t,e,n){return e.every((r,o)=>ID[n](t[o].parameters,r.parameters))}class fo{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return _L.serialize(this)}}class ue{constructor(e,n){this.segments=e,this.children=n,this.parent=null,lt(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return su(this)}}class zs{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Ei(this.parameters)),this._parameterMap}toString(){return PD(this)}}function ho(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class SD{}class RD{parse(e){const n=new TL(e);return new fo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){const n=`/${qs(e.root,!0)}`,r=function(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${au(n)}=${au(o)}`).join("&"):`${au(n)}=${au(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams);var t;return`${n}${r}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const _L=new RD;function su(t){return t.segments.map(e=>PD(e)).join("/")}function qs(t,e){if(!t.hasChildren())return su(t);if(e){const n=t.children[ae]?qs(t.children[ae],!1):"",r=[];return lt(t.children,(o,i)=>{i!==ae&&r.push(`${i}:${qs(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(t,e){let n=[];return lt(t.children,(r,o)=>{o===ae&&(n=n.concat(e(r,o)))}),lt(t.children,(r,o)=>{o!==ae&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===ae?[qs(t.children[ae],!1)]:[`${o}:${qs(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[ae]?`${su(t)}/${n[0]}`:`${su(t)}/(${n.join("//")})`}}function OD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function au(t){return OD(t).replace(/%3B/gi,";")}function Eh(t){return OD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lu(t){return decodeURIComponent(t)}function xD(t){return lu(t.replace(/\+/g,"%20"))}function PD(t){return`${Eh(t.path)}${function(t){return Object.keys(t).map(e=>`;${Eh(e)}=${Eh(t[e])}`).join("")}(t.parameters)}`}const bL=/^[^\/()?;=#]+/;function uu(t){const e=t.match(bL);return e?e[0]:""}const DL=/^[^=?&#]+/,wL=/^[^&#]+/;class TL{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[ae]=new ue(e,n)),r}parseSegment(){const e=uu(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new zs(lu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=uu(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=uu(this.remaining);o&&(r=o,this.capture(r))}e[lu(n)]=lu(r)}parseQueryParam(e){const n=function(t){const e=t.match(DL);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function(t){const e=t.match(wL);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=xD(n),i=xD(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=uu(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=ae);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[ae]:new ue([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class kD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=wh(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=wh(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Ih(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ih(e,this._root).map(n=>n.value)}}function wh(t,e){if(t===e.value)return e;for(const n of e.children){const r=wh(t,n);if(r)return r}return null}function Ih(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Ih(t,n);if(r.length)return r.unshift(e),r}return[]}class dr{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function wi(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class FD extends kD{constructor(e,n){super(e),this.snapshot=n,Th(this,e)}toString(){return this.snapshot.toString()}}function LD(t,e){const n=function(t,e){const s=new cu([],{},{},"",{},ae,e,null,t.root,-1,{});return new UD("",new dr(s,[]))}(t,e),r=new Mn([new zs("",{})]),o=new Mn({}),i=new Mn({}),s=new Mn({}),a=new Mn(""),l=new fr(r,o,s,a,i,ae,e,n.root);return l.snapshot=n.root,new FD(new dr(l,[]),n)}class fr{constructor(e,n,r,o,i,s,a,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=l}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._paramMap=this.params.pipe(V(e=>Ei(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(V(e=>Ei(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function VD(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce((e,n)=>({params:B(B({},e.params),n.params),data:B(B({},e.data),n.data),resolve:B(B({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class cu{constructor(e,n,r,o,i,s,a,l,u,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}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._paramMap=Ei(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class UD extends kD{constructor(e,n){super(n),this.url=e,Th(this,n)}toString(){return BD(this._root)}}function Th(t,e){e.value._routerState=t,e.children.forEach(n=>Th(t,n))}function BD(t){const e=t.children.length>0?` { ${t.children.map(BD).join(", ")} } `:"";return`${t.value}${e}`}function Ah(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,$n(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),$n(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n$n(n.parameters,e[r].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||Mh(t.parent,e.parent))}function Ws(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Ws(t,r,o);return Ws(t,r)})}(t,e,n);return new dr(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ws(t,a)),s}}const r=function(t){return new fr(new Mn(t.url),new Mn(t.params),new Mn(t.queryParams),new Mn(t.fragment),new Mn(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>Ws(t,i));return new dr(r,o)}}function du(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ks(t){return"object"==typeof t&&null!=t&&t.outlets}function Nh(t,e,n,r,o){let i={};return r&<(r,(s,a)=>{i[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new fo(n.root===t?e:jD(n.root,t,e),i,o)}function jD(t,e,n){const r={};return lt(t.children,(o,i)=>{r[i]=o===e?n:jD(o,e,n)}),new ue(t.segments,r)}class HD{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&du(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(Ks);if(o&&o!==wD(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Sh{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function GD(t,e,n){if(t||(t=new ue([],{})),0===t.segments.length&&t.hasChildren())return fu(t,e,n);const r=function(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=t.segments[o],a=n[r];if(Ks(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!zD(l,u,s))return i;r+=2}else{if(!zD(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=GD(t.children[s],e,i))}),lt(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new ue(t.segments,o)}}function Rh(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=Rh(new ue([],{}),0,n))}),e}function $D(t){const e={};return lt(t,(n,r)=>e[r]=`${n}`),e}function zD(t,e,n){return t==n.path&&$n(e,n.parameters)}class BL{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Ah(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=wi(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),lt(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=wi(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=wi(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=wi(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new sL(i.value.snapshot))}),e.children.length&&this.forwardEvent(new oL(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(Ah(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const 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),Ah(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=function(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=l,s.outlet&&s.outlet.activateWith(o,l),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}class Oh{constructor(e,n){this.routes=e,this.module=n}}function xr(t){return"function"==typeof t}function po(t){return t instanceof fo}const Qs=Symbol("INITIAL_VALUE");function Ys(){return Ve(t=>function(...t){const e=Pi(t),n=Lp(t),{args:r,keys:o}=lD(t);if(0===r.length)return je([],e);const i=new ve(function(t,e,n=jr){return r=>{dD(e,()=>{const{length:o}=t,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=je(t[l],e);let c=!1;u.subscribe(new qe(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,e,o?s=>cD(o,s):jr));return n?i.pipe(uD(n)):i}(t.map(e=>e.pipe(Co(1),function(...t){const e=Pi(t);return Je((n,r)=>{(e?ru(t,n,e):ru(t,n)).subscribe(r)})}(Qs)))).pipe(pD((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==Qs?o:(i===Qs&&(r=!0),r||!1!==i&&s!==n.length-1&&!po(i)?o:i),e)},Qs),co(e=>e!==Qs),V(e=>po(e)?e:!0===e),Co(1)))}class WL{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Zs,this.attachRef=null}}class Zs{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new WL,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}let xh=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ne,this.deactivateEvents=new Ne,this.attachEvents=new Ne,this.detachEvents=new Ne,this.name=i||ae,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new KL(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(D(Zs),D(vn),D(oo),$i("name"),D(Ts))},t.\u0275dir=Q({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class KL{constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===fr?this.route:e===Zs?this.childContexts:this.parent.get(e,n)}}let qD=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=At({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&I(0,"router-outlet")},directives:[xh],encapsulation:2}),t})();function WD(t,e=""){for(let n=0;nan(r)===e);return n.push(...t.filter(r=>an(r)!==e)),n}const QD={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function hu(t,e,n){var a;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?B({},QD):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const o=(e.matcher||uL)(n,t,e);if(!o)return B({},QD);const i={};lt(o.posParams,(l,u)=>{i[u]=l.path});const s=o.consumed.length>0?B(B({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:s,positionalParamSegments:null!=(a=o.posParams)?a:{}}}function pu(t,e,n,r,o="corrected"){if(n.length>0&&function(t,e,n){return n.some(r=>gu(t,e,r)&&an(r)!==ae)}(t,n,r)){const s=new ue(e,function(t,e,n,r){const o={};o[ae]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&an(i)!==ae){const s=new ue([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[an(i)]=s}return o}(t,e,r,new ue(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(r=>gu(t,e,r))}(t,n,r)){const s=new ue(t.segments,function(t,e,n,r,o,i){const s={};for(const a of r)if(gu(t,n,a)&&!o[an(a)]){const l=new ue([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[an(a)]=l}return B(B({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new ue(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function gu(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function YD(t,e,n,r){return!!(an(t)===r||r!==ae&&gu(e,n,t))&&("**"===t.path||hu(e,t,n).matched)}function ZD(t,e,n){return 0===e.length&&!t.children[n]}class Js{constructor(e){this.segmentGroup=e||null}}class JD{constructor(e){this.urlTree=e}}function mu(t){return new ve(e=>e.error(new Js(t)))}function XD(t){return new ve(e=>e.error(new JD(t)))}function tV(t){return new ve(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class oV{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Hn)}apply(){const e=pu(this.urlTree.root,[],[],this.config).segmentGroup,n=new ue(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,ae).pipe(V(i=>this.createUrlTree(kh(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ur(i=>{if(i instanceof JD)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Js?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,ae).pipe(V(o=>this.createUrlTree(kh(o),e.queryParams,e.fragment))).pipe(ur(o=>{throw o instanceof Js?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new ue([],{[ae]:e}):e;return new fo(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(V(i=>new ue([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return je(o).pipe(Ci(i=>{const s=r.children[i],a=KD(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(V(l=>({segment:l,outlet:i})))}),pD((i,s)=>(i[s.outlet]=s.segment,i),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?co((o,i)=>t(o,i,r)):jr,bh(1),n?mD(e):gD(()=>new nu))}())}expandSegment(e,n,r,o,i,s){return je(r).pipe(Ci(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(ur(u=>{if(u instanceof Js)return k(null);throw u}))),bi(a=>!!a),ur((a,l)=>{if(a instanceof nu||"EmptyError"===a.name){if(ZD(n,o,i))return k(new ue([],{}));throw new Js(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return YD(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):mu(n):mu(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?XD(i):this.lineralizeSegments(r,i).pipe(Be(s=>{const a=new ue(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:l,lastChild:u,positionalParamSegments:c}=hu(n,o,i);if(!a)return mu(n);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?XD(d):this.lineralizeSegments(o,d).pipe(Be(f=>this.expandSegment(e,n,r,f.concat(i.slice(u)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?k(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(V(f=>(r._loadedConfig=f,new ue(o,{})))):k(new ue(o,{}));const{matched:s,consumedSegments:a,lastChild:l}=hu(n,r,o);if(!s)return mu(n);const u=o.slice(l);return this.getChildConfig(e,r,o).pipe(Be(d=>{const f=d.module,g=d.routes,{segmentGroup:m,slicedSegments:y}=pu(n,a,u,g),_=new ue(m.segments,m.children);if(0===y.length&&_.hasChildren())return this.expandChildren(f,g,_).pipe(V(L=>new ue(a,L)));if(0===g.length&&0===y.length)return k(new ue(a,{}));const b=an(r)===i;return this.expandSegment(f,_,g,y,b?ae:i,!0).pipe(V(O=>new ue(a.concat(O.segments),O.children)))}))}getChildConfig(e,n,r){return n.children?k(new Oh(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?k(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(Be(o=>{return o?this.configLoader.load(e.injector,n).pipe(V(i=>(n._loadedConfig=i,i))):(t=n,new ve(e=>e.error(Dh(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))));var t})):k(new Oh([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;return o&&0!==o.length?k(o.map(s=>{const a=e.get(s);let l;if((t=a)&&xr(t.canLoad))l=a.canLoad(n,r);else{if(!xr(a))throw new Error("Invalid CanLoad guard");l=a(n,r)}var t;return zn(l)})).pipe(Ys(),$t(s=>{if(!po(s))return;const a=Dh(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),V(s=>!0===s)):k(!0)}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return k(r);if(o.numberOfChildren>1||!o.children[ae])return tV(e.redirectTo);o=o.children[ae]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new fo(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return lt(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return lt(n.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,r,o)}),new ue(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function kh(t){const e={};for(const r of Object.keys(t.children)){const i=kh(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function(t){if(1===t.numberOfChildren&&t.children[ae]){const e=t.children[ae];return new ue(t.segments.concat(e.segments),e.children)}return t}(new ue(t.segments,e))}class eE{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class _u{constructor(e,n){this.component=e,this.route=n}}function aV(t,e,n){const r=t._root;return Xs(r,e?e._root:null,n,[r.value])}function yu(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Xs(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=wi(e);return t.children.forEach(s=>{(function(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!ho(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ho(t.url,e.url)||!$n(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mh(t,e)||!$n(t.queryParams,e.queryParams);default:return!Mh(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new eE(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Xs(t,e,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new _u(a.outlet.component,s))}else s&&ea(e,a,o),o.canActivateChecks.push(new eE(r)),Xs(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),lt(i,(s,a)=>ea(s,n.getContext(a),o)),o}function ea(t,e,n){const r=wi(t),o=t.value;lt(r,(i,s)=>{ea(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new _u(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class CV{}function tE(t){return new ve(e=>e.error(t))}class DV{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=pu(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,ae);if(null===n)return null;const r=new cu([],Object.freeze({}),Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,{},ae,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new dr(r,n),i=new UD(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=VD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=KD(e,i),l=this.processSegmentGroup(a,s,i);if(null===l)return null;r.push(...l)}const o=nE(r);return o.sort((e,n)=>e.value.outlet===ae?-1:n.value.outlet===ae?1:e.value.outlet.localeCompare(n.value.outlet)),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return ZD(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!YD(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const g=r.length>0?wD(r).parameters:{};i=new cu(r,g,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,iE(e),an(e),e.component,e,rE(n),oE(n)+r.length,sE(e))}else{const g=hu(n,e,r);if(!g.matched)return null;s=g.consumedSegments,a=r.slice(g.lastChild),i=new cu(s,g.parameters,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,iE(e),an(e),e.component,e,rE(n),oE(n)+s.length,sE(e))}const l=(t=e).children?t.children:t.loadChildren?t._loadedConfig.routes:[],{segmentGroup:u,slicedSegments:c}=pu(n,s,a,l.filter(g=>void 0===g.redirectTo),this.relativeLinkResolution);var t;if(0===c.length&&u.hasChildren()){const g=this.processChildren(l,u);return null===g?null:[new dr(i,g)]}if(0===l.length&&0===c.length)return[new dr(i,[])];const d=an(e)===o,f=this.processSegment(l,u,c,d?ae:o);return null===f?null:[new dr(i,f)]}}function IV(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function nE(t){const e=[],n=new Set;for(const r of t){if(!IV(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=nE(r.children);e.push(new dr(r.value,o))}return e.filter(r=>!n.has(r))}function rE(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function oE(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function iE(t){return t.data||{}}function sE(t){return t.resolve||{}}function Fh(t){return Ve(e=>{const n=t(e);return n?je(n).pipe(V(()=>e)):k(e)})}class xV extends class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const Lh=new re("ROUTES");class aE{constructor(e,n,r,o){this.injector=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(V(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new Oh(ED(s.injector.get(Lh,void 0,z.Self|z.Optional)).map(Ph),s)}),ur(i=>{throw n._loader$=void 0,i}));return n._loader$=new zF(o,()=>new un).pipe(hD()),n._loader$}loadModuleFactory(e){return zn(e()).pipe(Be(n=>n instanceof Iv?k(n):je(this.compiler.compileModuleAsync(n))))}}class kV{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function FV(t){throw t}function LV(t,e,n){return e.parse("/")}function lE(t,e){return k(null)}const VV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},UV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ue=(()=>{class t{constructor(n,r,o,i,s,a,l){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new un,this.errorHandler=FV,this.malformedUriErrorHandler=LV,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:lE,afterPreactivation:lE},this.urlHandlingStrategy=new kV,this.routeReuseStrategy=new xV,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(Hn),this.console=s.get(bl);const d=s.get(ke);this.isNgZoneEnabled=d instanceof ke&&ke.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new fo(new ue([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new aE(s,a,f=>this.triggerEvent(new yD(f)),f=>this.triggerEvent(new vD(f))),this.routerState=LD(this.currentUrlTree,this.rootComponentType),this.transitions=new Mn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null==(n=this.location.getState())?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(co(o=>0!==o.id),V(o=>ot(B({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Ve(o=>{let i=!1,s=!1;return k(o).pipe($t(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?ot(B({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ve(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return vu(a.source)&&(this.browserUrlTree=a.extractedUrl),k(a).pipe(Ve(d=>{const f=this.transitions.getValue();return r.next(new ou(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Kn:Promise.resolve(d)}),function(t,e,n,r){return Ve(o=>function(t,e,n,r,o){return new oV(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(V(i=>ot(B({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),$t(d=>{this.currentNavigation=ot(B({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(t,e,n,r,o){return Be(i=>function(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new DV(t,e,n,r,o,i).recognize();return null===s?tE(new CV):k(s)}catch(s){return tE(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(V(s=>ot(B({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),$t(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const g=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(g,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new JF(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:g,source:m,restoredState:y,extras:_}=a,b=new ou(f,this.serializeUrl(g),m,y);r.next(b);const C=LD(g,this.rootComponentType).snapshot;return k(ot(B({},a),{targetSnapshot:C,urlAfterRedirects:g,extras:ot(B({},_),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Kn}),Fh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:g}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!g})}),$t(a=>{const l=new XF(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),V(a=>ot(B({},a),{guards:aV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,e){return Be(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?k(ot(B({},n),{guardsResult:!0})):function(t,e,n,r){return je(t).pipe(Be(o=>function(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?k(i.map(a=>{const l=yu(a,e,o);let u;if(function(t){return t&&xr(t.canDeactivate)}(l))u=zn(l.canDeactivate(t,e,n,r));else{if(!xr(l))throw new Error("Invalid CanDeactivate guard");u=zn(l(t,e,n,r))}return u.pipe(bi())})).pipe(Ys()):k(!0)}(o.component,o.route,n,e,r)),bi(o=>!0!==o,!0))}(s,r,o,t).pipe(Be(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,e,n,r){return je(e).pipe(Ci(o=>ru(function(t,e){return null!==t&&e&&e(new rL(t)),k(!0)}(o.route.parent,r),function(t,e){return null!==t&&e&&e(new iL(t)),k(!0)}(o.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>fD(()=>k(s.guards.map(l=>{const u=yu(l,s.node,n);let c;if(function(t){return t&&xr(t.canActivateChild)}(u))c=zn(u.canActivateChild(r,t));else{if(!xr(u))throw new Error("Invalid CanActivateChild guard");c=zn(u(r,t))}return c.pipe(bi())})).pipe(Ys())));return k(i).pipe(Ys())}(t,o.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return k(!0);const o=r.map(i=>fD(()=>{const s=yu(i,e,n);let a;if(function(t){return t&&xr(t.canActivate)}(s))a=zn(s.canActivate(e,t));else{if(!xr(s))throw new Error("Invalid CanActivate guard");a=zn(s(e,t))}return a.pipe(bi())}));return k(o).pipe(Ys())}(t,o.route,n))),bi(o=>!0!==o,!0))}(r,i,t,e):k(a)),V(a=>ot(B({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),$t(a=>{if(po(a.guardsResult)){const u=Dh(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new eL(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),co(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Fh(a=>{if(a.guards.canActivateChecks.length)return k(a).pipe($t(l=>{const u=new tL(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),Ve(l=>{let u=!1;return k(l).pipe(function(t,e){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return k(n);let i=0;return je(o).pipe(Ci(s=>function(t,e,n,r){return function(t,e,n,r){const o=Object.keys(t);if(0===o.length)return k({});const i={};return je(o).pipe(Be(s=>function(t,e,n,r){const o=yu(t,e,r);return zn(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe($t(a=>{i[s]=a}))),bh(1),Be(()=>Object.keys(i).length===o.length?k(i):Kn))}(t._resolve,t,e,r).pipe(V(i=>(t._resolvedData=i,t.data=B(B({},t.data),VD(t,n).resolve),null)))}(s.route,r,t,e)),$t(()=>i++),bh(1),Be(s=>i===o.length?k(n):Kn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),$t({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),$t(l=>{const u=new nL(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),Fh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:g}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!g})}),V(a=>{const l=function(t,e,n){const r=Ws(t,e._root,n?n._root:void 0);return new FD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return ot(B({},a),{targetRouterState:l})}),$t(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>V(r=>(new BL(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),$t({next(){i=!0},complete(){i=!0}}),function(t){return Je((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}(()=>{var a;i||s||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null==(a=this.currentNavigation)?void 0:a.id)===o.id&&(this.currentNavigation=null)}),ur(a=>{if(s=!0,function(t){return t&&t[bD]}(a)){const l=po(a.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const u=new _D(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||vu(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new ZF(o.id,this.serializeUrl(o.extractedUrl),a);r.next(l);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return Kn}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(B(B({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var a;const o={replaceUrl:!0},i=(null==(a=n.state)?void 0:a.navigationId)?n.state:null;if(i){const l=B({},i);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const s=this.parseUrl(n.url);this.scheduleNavigation(s,r,i,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){WD(n),this.config=n.map(Ph),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=o||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=B(B({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,o){if(0===n.length)return Nh(e.root,e.root,e,r,o);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new HD(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return lt(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new HD(n,e,r)}(n);if(i.toRoot())return Nh(e.root,new ue([],{}),e,r,o);const s=function(t,e,n){if(t.isAbsolute)return new Sh(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new Sh(i,i===e.root,0)}const r=du(t.commands[0])?0:1;return function(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new Sh(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?fu(s.segmentGroup,s.index,i.commands):GD(s.segmentGroup,s.index,i.commands);return Nh(s.segmentGroup,a,e,r,o)}(u,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=po(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Di(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var b,C,O;if(this.disposed)return Promise.resolve(!1);const a=this.transitions.value,l=vu(r)&&a&&!vu(a.source),u=a.rawUrl.toString()===n.toString(),c=a.id===(null==(b=this.currentNavigation)?void 0:b.id);if(l&&u&&c)return Promise.resolve(!0);let f,g,m;s?(f=s.resolve,g=s.reject,m=s.promise):m=new Promise((L,te)=>{f=L,g=te});const y=++this.navigationId;let _;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),_=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!=(C=this.browserPageId)?C:0:(null!=(O=this.browserPageId)?O:0)+1):_=0,this.setTransition({id:y,targetPageId:_,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:f,reject:g,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(L=>Promise.reject(L))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=B(B({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null==(o=this.currentNavigation)?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null==(i=this.currentNavigation)?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new _D(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){Ad()},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function vu(t){return"imperative"!==t}let Vh=(()=>{class t{constructor(n,r,o,i,s){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.commands=null,this.onChanges=new un,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){if(null!=this.tabIndexAttribute)return;const r=this.renderer,o=this.el.nativeElement;null!==n?r.setAttribute(o,"tabindex",n):r.removeAttribute(o,"tabindex")}ngOnChanges(n){this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const n={skipLocationChange:Ii(this.skipLocationChange),replaceUrl:Ii(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ii(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(D(Ue),D(fr),$i("tabindex"),D(or),D(et))},t.\u0275dir=Q({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(n,r){1&n&&H("click",function(){return r.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[ft]}),t})(),Nn=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new un,this.subscription=n.events.subscribe(i=>{i instanceof Di&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:Ii(this.skipLocationChange),replaceUrl:Ii(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ii(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(D(Ue),D(fr),D(vi))},t.\u0275dir=Q({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&H("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&Un("target",r.target)("href",r.href,it)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[ft]}),t})();function Ii(t){return""===t||!!t}let hr=(()=>{class t{constructor(n,r,o,i,s,a){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ne,this.routerEventsSubscription=n.events.subscribe(l=>{l instanceof Di&&this.update()})}ngAfterContentInit(){k(this.links.changes,this.linksWithHrefs.changes,k(null)).pipe(xi()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var r;null==(r=this.linkInputChangesSubscription)||r.unsubscribe();const n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=je(n).pipe(xi()).subscribe(o=>{this.isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){var n;this.routerEventsSubscription.unsubscribe(),null==(n=this.linkInputChangesSubscription)||n.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this.isActive!==n&&(this.isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.linkWithHref&&n(this.linkWithHref)||this.links.some(n)||this.linksWithHrefs.some(n)}}return t.\u0275fac=function(n){return new(n||t)(D(Ue),D(et),D(or),D(Ts),D(Vh,8),D(Nn,8))},t.\u0275dir=Q({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&(Yd(o,Vh,5),Yd(o,Nn,5)),2&n){let i;Qd(i=Zd())&&(r.links=i),Qd(i=Zd())&&(r.linksWithHrefs=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ft]}),t})();class uE{}class cE{preload(e,n){return k(null)}}let dE=(()=>{class t{constructor(n,r,o,i){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=new aE(o,r,l=>n.triggerEvent(new yD(l)),l=>n.triggerEvent(new vD(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(co(n=>n instanceof Di),Ci(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(Hn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return je(o).pipe(xi(),V(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?k(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Be(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(M(Ue),M(Dl),M(he),M(uE))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),Uh=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof ou?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Di&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof CD&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new CD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){Ad()},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const go=new re("ROUTER_CONFIGURATION"),fE=new re("ROUTER_FORROOT_GUARD"),GV=[jf,{provide:SD,useClass:RD},{provide:Ue,useFactory:function(t,e,n,r,o,i,s={},a,l){const u=new Ue(null,t,e,n,r,o,ED(i));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(e.canceledNavigationResolution=t.canceledNavigationResolution)}(s,u),s.enableTracing&&u.events.subscribe(c=>{var d,f;null==(d=console.group)||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null==(f=console.groupEnd)||f.call(console)}),u},deps:[SD,Zs,jf,he,Dl,Lh,go,[class{},new St],[class{},new St]]},Zs,{provide:fr,useFactory:function(t){return t.routerState.root},deps:[Ue]},dE,cE,class{preload(e,n){return n().pipe(ur(()=>k(null)))}},{provide:go,useValue:{enableTracing:!1}}];function $V(){return new df("Router",Ue)}let zV=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[GV,hE(n),{provide:fE,useFactory:KV,deps:[[Ue,new St,new wr]]},{provide:go,useValue:r||{}},{provide:vi,useFactory:WV,deps:[uo,[new Lo(Ll),new St],go]},{provide:Uh,useFactory:qV,deps:[Ue,Ck,go]},{provide:uE,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:cE},{provide:df,multi:!0,useFactory:$V},[Bh,{provide:ws,multi:!0,useFactory:JV,deps:[Bh]},{provide:pE,useFactory:XV,deps:[Bh]},{provide:iC,multi:!0,useExisting:pE}]]}}static forChild(n){return{ngModule:t,providers:[hE(n)]}}}return t.\u0275fac=function(n){return new(n||t)(M(fE,8),M(Ue,8))},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({}),t})();function qV(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Uh(t,e,n)}function WV(t,e,n={}){return n.useHash?new tP(t,e):new yb(t,e)}function KV(t){return"guarded"}function hE(t){return[{provide:iI,multi:!0,useValue:t},{provide:Lh,multi:!0,useValue:t}]}let Bh=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new un}appInitializer(){return this.injector.get(Jx,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get(Ue),s=this.injector.get(go);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?k(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(go),o=this.injector.get(dE),i=this.injector.get(Uh),s=this.injector.get(Ue),a=this.injector.get(fi);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(M(he))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function JV(t){return t.appInitializer.bind(t)}function XV(t){return t.bootstrapListener.bind(t)}const pE=new re("Router Initializer"),ta=new Map;ta.set("runspec.com",{id:"yG7QP6jC+A$_vvjfNqYDymrH-HQGsg3e",name:"mcd-rune-client",google:{clientId:"295461143528-3arqbpf21277lc9aq3fej8ajs5ha6ctv.apps.googleusercontent.com"},facebook:{clientId:"2840610579347286"}}),ta.set("localhost",{id:"yG7QP6jC+A$_vvjfNqYDymrH-HQGsg3e",name:"mcd-rune-client",google:{clientId:"295461143528-3arqbpf21277lc9aq3fej8ajs5ha6ctv.apps.googleusercontent.com"},facebook:{clientId:"2840610579347286"}}),ta.set("iol.pt",{id:"_&wKpph946f9qW6MY-@w$JzNyKAmHwu$",name:"mcd-barraIOL-client",google:{clientId:"640184186107-ndua052n2kjqmojlfdrhg4v9v1gfkc57.apps.googleusercontent.com"},facebook:{clientId:"1354892327868526"}});class S{constructor(e,n,r,o){this.socialAuth=e,this.router=n,this.httpClient=r,this.ngZone=o,this.barLoaded=!1,this.dmpUIDReported=!1,this.onUserAuthenticated=new Ne,this.onUserLoggedOut=new Ne,window.onbeforeunload=()=>{},this.currentClient=S.getCurrentClient(),this.user=this.getCachedUserData();const i=this.isCachedTokenValid();if(this.bypassAcceptTerms=!1,this.integrateWithDMP(null),this.setGoogleAnalyticsCookie(),gigya&&"gigya"===me.ssoProvider)try{gigya.accounts.getAccountInfo({callback:s=>{0===s.errorCode?(this.saveValidatedGigyaUIDToCookie(s),this.bypassAcceptTerms=!0,i&&this.user&&s.profile&&this.user.userName===s.profile.email?this.rehydrateAuthentication("gigya").subscribe(a=>{a||(this.user=null)},a=>{this.user=null}):this.loginUsingGigya(s).subscribe(a=>{a||(this.user=null)},a=>{this.user=null}),s.data&&!s.data.source&&this.patchGigyaDataSource()):i?this.rehydrateAuthentication().subscribe(l=>{l||(this.user=null,this.triggerOnUnauthenticatedUserEvent())},l=>{this.user=null,this.triggerOnUnauthenticatedUserEvent()}):this.triggerOnUnauthenticatedUserEvent()}})}catch(s){console.error(s)}else this.isCachedTokenValid()?this.rehydrateAuthentication().subscribe(s=>{s||(this.user=null)},s=>{this.user=null}):this.user=null}static getTopLevelDomainName(){const e=document.location.hostname.split(".");let n="";if(e.length>=2){let r=0;for(;r<2;)n="."+e[e.length-r-1]+n,r++;"."===n.charAt(0)&&(n=n.substring(1))}return n||document.location.hostname}static getCurrentClient(){const e=S.getTopLevelDomainName();if(ta.has(e)){const n=ta.get(e);if(n)return n;throw new Error(`The client '${e}' is not a valid client`)}throw new Error(`The client '${e}' is not a valid client`)}calculateAge(e){var n=Date.now()-e.getTime(),r=new Date(n);return Math.abs(r.getUTCFullYear()-1970)}patchGigyaDataSource(){gigya.accounts.setAccountInfo({data:{source:"mediacapital"},callback:e=>{0!==e.errorCode&&console.log("# Gigya setAccountInfo error: "+JSON.stringify(e,null,2))}})}triggerOnUnauthenticatedUserEvent(){if(window.iol&&window.iol.onUnauthenticated)try{window.iol.onUnauthenticated()}catch(e){}}setGoogleAnalyticsCookie(){var e;const n="_iola";let r=this.getCookie(n);if(!(null==r?void 0:r.startsWith("u"))){if(null===(e=this.user)||void 0===e?void 0:e.id)return r="u"+btoa(`usr:${this.user.id}`).padStart(32,"0"),void this.setCookie(n,r,90,!0);r||(r="a"+btoa(`?:${Date.now()}.${Math.floor(1e5*Math.random())}`).padStart(32,"0"),this.setCookie(n,r,90,!0))}}signOut(e=!0){this.destroyAuthTokens(),this.destroyCachedData(),this.deleteIOLSingleSignOnCookie(),this.deleteGigyaSingleSignOnCookie(),this.user=null,this.router.navigate(["/"]);try{gigya&&gigya.accounts.logout({callback:()=>{if(e){const n=document.location.href.match(/(^[^#]*)/);window.location.href=n&&n.length>0?n[0]:"https://"+document.location.hostname}}})}catch(n){}this.raiseUserLoggedOutEvent()}getLoggedUser(){return this.user}isUserLoggedIn(){return!!this.user}isLocalAccount(){const e=this.getLoggedUser();if(e){if("iol"===e.provider)return!0;const n=this.getGigyaProviders();if(n&&-1!==n.indexOf("site"))return!0}return!1}loginUsingCredentials(e,n){const r={};return this.getIOLAccessTokenFromCredentials(e,n).pipe(Ve(o=>(r.token=o,this.getUserAuthInfo(o)))).pipe(V(o=>(o?(this.user={id:o.id,avatarUrl:o.profilePicture||r.avatarUrl,displayName:o.name,firstName:o.firstName,lastName:o.lastName,provider:"iol",userName:o.email,token:r.token,birthDate:o.birthdate,gender:o.gender,acceptedTerms:this.bypassAcceptTerms||!(!o.nonioTermsDate||!o.nonioDataHandling),hasSubscriptions:o.hasSubscriptions},this.processPostAuthenticationActions("iol")):this.user=null,this.user)))}googleLogin(){return je(this.socialAuth.signIn(eu.PROVIDER_ID).then(e=>({email:e.email,idToken:e.idToken,image:e.photoUrl,name:e.name,provider:"google",token:e.authToken})))}loginUsingGoogle(e=null){let n,r;return r=e?k(e):this.googleLogin(),r.pipe(Ve(o=>(n={avatarUrl:o.image,displayName:o.name,provider:o.provider,userName:o.email,firstName:"",lastName:"",token:null,acceptedTerms:!1,id:0},this.getIOLAccessTokenFromSocialToken("google",o.idToken,o.token)))).pipe(Ve(o=>(n.token=o,this.getUserAuthInfo(o)))).pipe(V(o=>(o?(this.user={id:o.id,avatarUrl:o.profilePicture||n.avatarUrl,displayName:o.name||n.displayName,firstName:o.firstName||n.firstName,lastName:o.lastName||n.lastName,provider:"google",userName:o.email||n.userName,token:n.token,birthDate:o.birthdate,gender:o.gender,acceptedTerms:this.bypassAcceptTerms||!(!o.nonioTermsDate||!o.nonioDataHandling)},this.processPostAuthenticationActions("google")):this.user=null,this.user)))}facebookLogin(){return je(this.socialAuth.signIn(hh.PROVIDER_ID).then(e=>({email:e.email,image:e.photoUrl,name:e.name,provider:"facebook",token:e.authToken})))}loginUsingFacebook(e=null){let n,r;return r=e?k(e):this.facebookLogin(),r.pipe(Ve(o=>(n={id:0,avatarUrl:o.image,displayName:o.name,provider:o.provider,userName:o.email,firstName:"",lastName:"",token:null,acceptedTerms:!1},this.getIOLAccessTokenFromSocialToken("facebook",o.token)))).pipe(Ve(o=>(n.token=o,this.getUserAuthInfo(o)))).pipe(V(o=>(o?(this.user={id:o.id||0,avatarUrl:o.profilePicture||n.avatarUrl,displayName:o.name||n.displayName,firstName:o.firstName||n.firstName,lastName:o.lastName||n.lastName,provider:"facebook",userName:o.email||n.userName,token:n.token,birthDate:o.birthdate,gender:o.gender,acceptedTerms:this.bypassAcceptTerms||!(!o.nonioTermsDate||!o.nonioDataHandling)},this.processPostAuthenticationActions("facebook")):this.user=null,this.user)))}loginUsingGigya(e){const n=e.UID||null,r={};return e&&e.profile&&(r.displayName=`${e.profile.firstName} ${e.profile.lastName}`,r.firstName=e.profile.firstName||"",r.lastName=e.profile.lastName||"",r.avatarUrl=e.profile.thumbnailURL||"",r.gender=e.profile.gender,r.userName=e.profile.email||""),n?this.getIOLAccessTokenFromGigyaToken(n).pipe(Ve(o=>(r.token=o,this.getUserAuthInfo(o)))).pipe(V(o=>(this.user={id:o.id||0,avatarUrl:o.profilePicture||r.avatarUrl,displayName:o.name||r.displayName,firstName:o.firstName||r.firstName,lastName:o.lastName||r.lastName,provider:"gigya",userName:o.email,token:r.token,birthDate:o.birthdate,gender:o.gender,acceptedTerms:this.bypassAcceptTerms||!(!o.nonioTermsDate||!o.nonioDataHandling)},e.socialProviders&&this.setGigyaProviders(e.socialProviders),this.processPostAuthenticationActions("gigya"),this.user))):k(null)}hasAuthToken(){return null!==this.getCachedRefreshToken()}rehydrateAuthentication(e=null){if(!this.isCachedTokenValid())return k(null);const n=this.getCachedUserData(),r=this.getCachedRefreshToken();if(n&&r)return this.user=n,this.user.token={refreshToken:r,accessToken:null},void 0===this.user.hasSubscriptions&&this.userHasSubscriptions(this.user.token).subscribe(o=>{this.user.hasSubscriptions=o}),this.processPostAuthenticationActions(e||this.getLastKnownProvider(),!1),k(this.user);if(r){const o={};return this.getIOLAccessTokenFromExistingToken(r).pipe(Ve(i=>(o.token=i,this.getUserAuthInfo(i)))).pipe(V(i=>(this.user={id:i.id||0,avatarUrl:i.profilePicture||o.avatarUrl,displayName:i.name||o.displayName,firstName:i.firstName||o.firstName,lastName:i.lastName||o.lastName,provider:this.getLastKnownProvider(),userName:i.email,token:o.token,birthDate:i.birthdate,gender:i.gender,acceptedTerms:this.bypassAcceptTerms||!(!i.nonioTermsDate||!i.nonioDataHandling)},this.processPostAuthenticationActions(this.getLastKnownProvider()),this.user)))}return k(null)}processPostAuthenticationActions(e,n=!0){if(!this.user||!this.user.token||!this.user.token.refreshToken)return;this.normalizedUserData(this.user),e&&this.setLastKnownProvider(e);const r=JSON.parse(this.decodeRefreshToken(this.user.token.refreshToken));r.external_value?r.isVerified?"gigya"!==e?this.setGigyaCookieFromIOLRefreshToken().subscribe(o=>{this.raiseUserAuthenticatedEvent(n)}):this.raiseUserAuthenticatedEvent(n):(this.signOut(!1),this.router.navigate(["iol/must-verify"],{queryParams:{email:r.user_name}})):("gigya"!==e&&(this.user.acceptedTerms=!1),this.raiseUserAuthenticatedEvent(n))}integrateWithDMP(e){if(!window.wbo||"function"!=typeof window.wbo.cdp||this.dmpUIDReported)return;const n="dmpData";if(!e){const o=this.getCookie(n);if(!o)return;try{const i=JSON.parse(o);window.wbo.cdp(i),this.dmpUIDReported=!0}catch(i){console.error("Error collecting DPM UID: "+i)}return}const r=this.calculateAge(e.birthDate?new Date(e.birthDate):new Date);if(r>=13){let o=e.gender||"unknown";o.startsWith("m")?o="male":o.startsWith("f")&&(o="female");const i="u"+btoa(`user:${e.id}`);try{const s={age:r,genre:o,id:i};this.setCookie(n,JSON.stringify(s),30,!0),window.wbo.cdp(s),this.dmpUIDReported=!0}catch(s){console.error("Error collecting DPM UID: "+s)}}}setGigyaCookieFromIOLRefreshToken(){return ve.create(e=>{let n=!0;if(gigya&&"gigya"===me.ssoProvider){const r=this.getCachedRefreshToken();if(r){const o=JSON.parse(this.decodeRefreshToken(r));if(o&&o.external_value){const i=o.external_key,s=o.external_value;i&&s&&""!==s&&(this.setGigyaCookie(i,s),this.setLastKnownGigyaCookieName(i),n=!1,gigya.socialize.refreshUI({callback:a=>{0!==a.errorCode?e.next(!1):gigya.accounts.getAccountInfo({callback:l=>{0===l.errorCode?(this.setGigyaProviders(l.socialProviders),e.next(!0)):e.next(!1)}})}}))}}}n&&e.next(!1)})}getCachedRefreshToken(){return localStorage.getItem(S.STORE_REFRESH_TOKEN)||null}getAccessToken(){const e=this.getCachedRefreshToken();return e?this.getIOLAccessTokenFromExistingToken(e).pipe(V(n=>n?n.accessToken:null)):k(null)}getParameterByName(e,n){n||(n=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");const o=new RegExp("[#&]"+e+"(=([^&#]*)|&|#|$)").exec(n);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}buildAuthzHeaderValue(e,n){return"Basic "+btoa(e+":"+n)}decodeRefreshToken(e){const r=e.split(".")[1].replace("-","+").replace("_","/");return window.atob(r)}getRefreshTokenExpirationDate(){const e=this.getCachedRefreshToken();if(e){const n=this.decodeRefreshToken(e);if(n)return JSON.parse(n).refresh_expiration_time}return 0}isCachedTokenValid(){const e=this.getCachedRefreshToken();if(e){const n=this.decodeRefreshToken(e);if(n){const r=JSON.parse(n);if(r.isVerified)return Date.now()this.getRefreshTokenExpirationDate()}dumpRefreshTokenInfo(e){if(e){const n=JSON.parse(this.decodeRefreshToken(e));let r=`${JSON.stringify(n)}\n`;return r+=n&&n.external_value?"(Federated Gigya token)":"(Not a federated Gigya token)",r}return""}getIOLAccessTokenFromSocialToken(e,n,r=null){const o=new FormData;return o.append("social_token",n),r&&o.append("access_token",r),o.append("network",e),o.append("grant_type","social"),o.append("scope","read,write,trust"),this.httpClient.post(S.AUTHENTICATION_ENDPOINT,o,{headers:(new at).set("Authorization",this.buildAuthzHeaderValue(this.currentClient.name,this.currentClient.id))}).pipe(V(i=>{const s={accessToken:i.access_token,refreshToken:i.refresh_token};return this.cacheIOLRefreshToken(s.refreshToken),s}))}getLastKnownProvider(){return localStorage.getItem(S.STORE_LAST_KNOWN_AUTH_PROVIDER)||"unknown"}setLastKnownProvider(e){localStorage.setItem(S.STORE_LAST_KNOWN_AUTH_PROVIDER,e)}setGigyaProviders(e){localStorage.setItem(S.STORE_GIGYA_PROVIDERS_IN_CTX,e)}getGigyaProviders(){return localStorage.getItem(S.STORE_GIGYA_PROVIDERS_IN_CTX)||null}cacheIOLRefreshToken(e){localStorage.setItem(S.STORE_REFRESH_TOKEN,e)}getIOLAccessTokenFromExistingToken(e){const n=new FormData;return n.append("refresh_token",e),n.append("grant_type","refresh_token"),n.append("scope","read,write,trust"),this.httpClient.post(S.AUTHENTICATION_ENDPOINT,n,{headers:(new at).set("Authorization",this.buildAuthzHeaderValue(this.currentClient.name,this.currentClient.id))}).pipe(V(r=>{const o={accessToken:r.access_token,refreshToken:r.refresh_token};return this.cacheIOLRefreshToken(o.refreshToken),o}))}getIOLAccessTokenFromCredentials(e,n){const r=new FormData;return r.append("username",e),r.append("password",n),r.append("grant_type","password"),r.append("scope","read,write,trust"),this.httpClient.post(S.AUTHENTICATION_ENDPOINT,r,{headers:(new at).set("Authorization",this.buildAuthzHeaderValue(this.currentClient.name,this.currentClient.id))}).pipe(V(o=>{const i={accessToken:o.access_token,refreshToken:o.refresh_token};return this.cacheIOLRefreshToken(i.refreshToken),i}))}getIOLAccessTokenFromGigyaToken(e){const n=new FormData;return n.append("social_token",e),n.append("network","gigya"),n.append("grant_type","social"),n.append("scope","read,write,trust"),this.httpClient.post(S.AUTHENTICATION_ENDPOINT,n,{headers:(new at).set("Authorization",this.buildAuthzHeaderValue(this.currentClient.name,this.currentClient.id))}).pipe(V(r=>{const o={accessToken:r.access_token,refreshToken:r.refresh_token};return this.cacheIOLRefreshToken(o.refreshToken),o}))}userHasSubscriptions(e,n=!1){const r="iolsub";if(!n){const o=localStorage.getItem(r);if(o)return k("true"===o);n=!0}return n?this.httpClient.get("https://tviplayer.iol.pt/tviplayer2/subs/checkSub?refreshToken="+e.refreshToken).pipe(V(o=>{const i=o;return localStorage.setItem(r,i.toString()),i})):k(!1)}getUserAuthInfo(e){const n=this.httpClient.get(S.USER_INFO_ENDPOINT+e.accessToken+`&clientId=${this.currentClient.name}`),r=this.userHasSubscriptions(e,!0);return n.pipe(Be(o=>r.pipe(V(i=>Object.assign(Object.assign({},o),{hasSubscriptions:i})))))}destroyAuthTokens(){this.socialAuth.authState.subscribe(e=>{e&&this.socialAuth.signOut()}),localStorage.removeItem(S.STORE_REFRESH_TOKEN),localStorage.removeItem(S.STORE_LAST_KNOWN_AUTH_PROVIDER),this.user=null}normalizedUserData(e){e&&(e.avatarUrl=e.avatarUrl||S.DEFAULT_AVATAR,e.displayName=e.displayName||e.userName)}setGigyaCookie(e,n){this.setCookie(e,n,200,!0)}setCookie(e,n,r,o=!1){const i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3);let s="";o&&(s=`;domain=${S.getTopLevelDomainName()}`),document.cookie=e+"="+n+`;expires=${i.toUTCString()}${s}`}cacheCurrentUserData(){if(this.user){const e=this.cloneObject(this.user);e.token=null,localStorage.setItem(S.STORE_USER_DATA,JSON.stringify(e))}}updateCachedUserData(e){this.user&&(this.user.acceptedTerms=e.acceptedTerms,e.id&&0!==e.id&&(this.user.id=e.id),e.displayName&&(this.user.displayName=e.displayName),e.avatarUrl&&(this.user.avatarUrl=e.avatarUrl),e.firstName&&(this.user.firstName=e.firstName),e.lastName&&(this.user.lastName=e.lastName),e.gender&&(this.user.gender=e.gender),e.birthDate&&(this.user.birthDate=e.birthDate),this.cacheCurrentUserData())}notifyBarLoaded(){this.barLoaded=!0}getCachedUserData(){let e=null;if(!this.isTokenExpired()){const n=localStorage.getItem(S.STORE_USER_DATA);if(n&&""!==n){e=JSON.parse(n);const r=this.getCachedRefreshToken();e.token=r?{accessToken:null,refreshToken:r}:null}}return e}runWhenBarLoaded(e,n){window.setTimeout((r,o,i)=>{o.barLoaded?this.ngZone.run(()=>e()):i>0&&o.runWhenBarLoaded(r,i-100)},100,e,this,n)}destroyCachedData(){localStorage.removeItem(S.STORE_USER_DATA),localStorage.removeItem(S.STORE_LAST_KNOWN_AUTH_PROVIDER),localStorage.removeItem(S.STORE_USER_DATA)}raiseUserLoggedOutEvent(){this.runWhenBarLoaded(()=>this.onUserLoggedOut.emit(),2e3)}raiseUserAuthenticatedEvent(e=!0){try{this.setGoogleAnalyticsCookie(),this.integrateWithDMP(this.user)}catch(n){}e&&(this.cacheCurrentUserData(),this.setIOLSingleSignOnCookie()),this.runWhenBarLoaded(()=>this.onUserAuthenticated.emit(this.user||void 0),3e3)}cloneObject(e){return JSON.parse(JSON.stringify(e))}setIOLSingleSignOnCookie(){if("iol"===me.ssoProvider&&this.user&&this.user.userName&&this.user.token&&this.user.token.refreshToken){const e=this.getRefreshTokenExpirationDate();if(Date.now()0){let n=document.cookie.indexOf(e+"=");if(-1!==n){n=n+e.length+1;let r=document.cookie.indexOf(";",n);return-1===r&&(r=document.cookie.length),decodeURIComponent(document.cookie.substring(n,r))}}return null}adblockersDetected(){return void 0===window.blockAdBlock?Promise.resolve(!0):new Promise((e,n)=>{window.blockAdBlock.check(!1),window.blockAdBlock.onDetected(()=>{e(!0)}),window.blockAdBlock.onNotDetected(()=>{e(!1)})})}getCurrentCountryCode(){const n=this.getCookie("cty_Used");if(n)return k(n);const r=(new at).set("Content-Type","text/plain; charset=utf-8");return this.httpClient.get("https://services.iol.pt/getgcc/countrycode",{headers:r,responseType:"text"}).pipe(V(o=>{if(o){const i=S.getTopLevelDomainName(),s=new Date;return s.setMonth(s.getMonth()+3),document.cookie=`cty_Used=${o};expires=${s.toUTCString()};domain=${i};path=/;`,o}return""}))}getNormalizedSiteName(e=!1){if(window.iolOverrideBarUrl)return window.iolOverrideBarUrl;const n="www.";let r=window.location.host;r&&r.startsWith(n)&&(r=r.slice(n.length));let o="";if(e&&window.location.pathname.length>1&&"/"===window.location.pathname[0]&&"?"!==window.location.pathname[1]&&"#"!==window.location.pathname[1]){let i=!0;for(const s of window.location.pathname){if("."===s){o="";break}if(!(i||"#"!==s&&"?"!==s&&"/"!==s))break;o+=s,i=!1}}return r+o}saveValidatedGigyaUIDToCookie(e){var n,r;(null==e?void 0:e.UID)&&(null===(n=e.data)||void 0===n?void 0:n.DataProcessingCommunication)&&(!(null===(r=e.profile)||void 0===r?void 0:r.age)||e.profile.age>=13)&&this.setCookie("gkuid",e.UID,365,!0)}getGigyaUIDFromCookie(){return this.getCookie("gkuid")}analyticsIsAdblockingStuff(){let e=0;return"object"!=typeof window.gigya?e+=4:e}}function mE(t,e,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}S.STORE_SUFFIX="x1",S.STORE_REFRESH_TOKEN="refresh_token"+S.STORE_SUFFIX,S.STORE_USER_DATA="user"+S.STORE_SUFFIX,S.STORE_LAST_KNOWN_AUTH_PROVIDER="lastKnownProvider"+S.STORE_SUFFIX,S.STORE_LAST_KNOWN_GIGYA_COOKIE_NAME="lastGigyaCookieName"+S.STORE_SUFFIX,S.STORE_GIGYA_PROVIDERS_IN_CTX="providers"+S.STORE_SUFFIX,S.AUTHENTICATION_ENDPOINT=me.endpointAuthentication,S.USER_INFO_ENDPOINT=me.endpointUserInfo,S.DEFAULT_AVATAR="https://cdn.iol.pt/BarraIOL/dist/assets/images/avatar.png",S.\u0275fac=function(e){return new(e||S)(M(fh),M(Ue),M(_h),M(ke))},S.\u0275prov=W({token:S,factory:S.\u0275fac});class A{constructor(e,n){this.httpClient=e,this.auth=n,this.siteName=null,this.logoUrl=null}getLinks(){return this.httpClient.get(A.BAR_INFO_ENDPOINT+this.auth.getNormalizedSiteName()+`&clientId=${S.getCurrentClient().name}`)}registerUser(e){return this.httpClient.post(A.USER_REGISTER_ENDPOINT+`?clientId=${S.getCurrentClient().name}`,e,{headers:(new at).set("Content-Type","application/json")})}closeUserAccount(){return this.auth.getAccessToken().pipe(Ve(e=>this.httpClient.delete(A.USER_CLOSE_ACCOUNT_ENDPOINT+e+`&clientId=${S.getCurrentClient().name}`))).pipe(V(e=>!0),ur(e=>function(t,e){const n=G(t)?t:()=>t,r=o=>o.error(n());return new ve(r)}(e)))}activateUserRegistration(e){return this.httpClient.get(A.USER_REGISTER_CONFIRM_ENDPOINT+e+`&clientId=${S.getCurrentClient().name}`).pipe(V(n=>n&&n.redirectTo?n.redirectTo:null))}resendActivationEmail(e){return this.httpClient.post(A.USER_RESENT_ACTIVATION_LINK_ENDPOINT+`?clientId=${S.getCurrentClient().name}`,{email:e},{observe:"response"}).pipe(V(n=>200===n.status))}getUserProfileData(){return this.auth.getAccessToken().pipe(Ve(e=>this.httpClient.get(A.USER_GET_PROFILE_ENDPOINT+e+`&clientId=${S.getCurrentClient().name}`))).pipe(V(e=>{if(e){if(!e.profilePicture){const n=this.auth.getLoggedUser();e.profilePicture=n&&n.avatarUrl?n.avatarUrl:me.baseUrl+"assets/images/avatar.png"}if(e.name){const n=e.name.split(" ");"firstName"in e||(e.firstName=n.length>0?n[0]:e.name),"lastName"in e||(e.lastName=n.length>1?n[n.length-1]:"")}}return e}))}changePassword(e,n){return this.auth.getAccessToken().pipe(Ve(r=>{const o={oldPassword:e,password:n};return this.httpClient.post(A.USER_CHANGE_PASSWORD_ENDPOINT+r+`&clientId=${S.getCurrentClient().name}`,o)})).pipe(V(r=>!0))}setUserProfileData(e){return this.auth.getAccessToken().pipe(Ve(n=>("source"in e||(e.source="user"),this.httpClient.post(A.USER_SET_PROFILE_ENDPOINT+n+`&clientId=${S.getCurrentClient().name}`,e)))).pipe(V(n=>!0))}setUserPicture(e){if(e){const n=new FormData;return n.append("picture",e,e.name),this.auth.getAccessToken().pipe(Ve(r=>this.httpClient.post(A.USER_PHOTO_ENDPOINT+r+`&clientId=${S.getCurrentClient().name}`,n,{headers:(new at).set("Accept","application/json")}).pipe(V(o=>!0))))}return k(!1)}requestNewPassword(e){return e?this.httpClient.get(A.USER_RECOVER_REQUEST_ENDPOINT+e+`&clientId=${S.getCurrentClient().name}`).pipe(V(n=>!0)):k(!1)}validateRecoverPasswordRequest(e){return this.httpClient.get(A.USER_RECOVER_VALIDATE_ENDPOINT+e+`&clientId=${S.getCurrentClient().name}`).pipe(V(n=>!0))}createNewPassword(e,n){return this.httpClient.post(A.USER_RECOVER_CHANGE_PASSWORD_ENDPOINT+`?clientId=${S.getCurrentClient().name}`,{token:n,password:e},{headers:(new at).set("Content-Type","application/json")}).pipe(V(r=>!0))}getCountries(){const e=localStorage.getItem(A.STORE_COUNTRIES_CACHE);if(e){const n=localStorage.getItem(A.STORE_COUNTRIES_CACHE_TIMESTAMP);if(n){const r=parseInt(n,10);if(Date.now()-r<2592e6)return k(JSON.parse(e))}}return this.auth.getAccessToken().pipe(Ve(n=>this.httpClient.get(A.DATA_COUNTRIES_ENDPOINT+n+`&clientId=${S.getCurrentClient().name}`))).pipe(V(n=>{const r=n.sort((o,i)=>o.namei.name?1:0);return r.length>0&&(localStorage.setItem(A.STORE_COUNTRIES_CACHE,JSON.stringify(r)),localStorage.setItem(A.STORE_COUNTRIES_CACHE_TIMESTAMP,Date.now().toString())),r}))}getTeams(){const e=localStorage.getItem(A.STORE_TEAMS_CACHE);if(e){const n=localStorage.getItem(A.STORE_TEAMS_CACHE_TIMESTAMP);if(n){const r=parseInt(n,10);if(Date.now()-r<2592e6)return k(JSON.parse(e))}}return this.auth.getAccessToken().pipe(Ve(n=>this.httpClient.get(A.DATA_TEAMS_ENDPOINT+n+`&clientId=${S.getCurrentClient().name}`))).pipe(V(n=>{const r=n.teams.sort((o,i)=>o.namei.name?1:0);return r.length>0&&(localStorage.setItem(A.STORE_TEAMS_CACHE,JSON.stringify(r)),localStorage.setItem(A.STORE_TEAMS_CACHE_TIMESTAMP,Date.now().toString())),r}))}getGatingElapsedDaysFromNow(){const e=window.localStorage.getItem(A.GATING_BEGINNING_NAME);return e?(Date.now()-parseInt(e,10))/864e5:null}getContentGatingCounter(){if((this.getGatingElapsedDaysFromNow()||Number.MAX_VALUE)>=A.GATING_TIMEOUT_DAYS)return this.setContentGatingValue(1);const n=localStorage.getItem(A.GATING_COUNTER_NAME);return n?parseInt(n,10):1}setContentGatingValue(e,n=!1){if((this.getGatingElapsedDaysFromNow()||Number.MAX_VALUE)>=A.GATING_TIMEOUT_DAYS&&(localStorage.setItem(A.GATING_BEGINNING_NAME,Date.now().toString()),localStorage.setItem(A.GATING_COUNTER_NAME,"1")),n&&localStorage.setItem(A.GATING_BEGINNING_NAME,Date.now().toString()),"number"==typeof e)return localStorage.setItem(A.GATING_COUNTER_NAME,e.toString()),e;const o=localStorage.getItem(A.GATING_COUNTER_NAME),i=o?parseInt(o,10)+1:1;return localStorage.setItem(A.GATING_COUNTER_NAME,i.toString()),i}getPageType(){const e=document.querySelector('meta[property="og:type"]');return e&&e.content?e.content:null}isHomePage(){return window.location.pathname.length<=1}shouldBlockContent(){return mE(this,void 0,void 0,function*(){return!1})}}function o2(t,e){if(1&t){const n=Xt();h(0,"li",11),H("mouseover",function(o){return Ie(n),F().highlightItem(o)})("mouseout",function(o){return Ie(n),F().highlightItem(o)}),h(1,"a",12),H("click",function(){const i=Ie(n).$implicit;return F().linkClick(i.text)}),v(2),p(),p()}if(2&t){const n=e.$implicit;E(1),Ar("href",n.url,it),E(1),Gt(n.text)}}function i2(t,e){if(1&t){const n=Xt();h(0,"li",13),h(1,"a",14),H("mouseover",function(o){return Ie(n),F().highlightItem(o)})("mouseout",function(o){return Ie(n),F().highlightItem(o)})("click",function(){return Ie(n),F().linkClick("WebMail")}),I(2,"div",15),h(3,"span"),v(4,"Correio"),p(),p(),p()}}function s2(t,e){if(1&t){const n=Xt();h(0,"li",13),h(1,"a",16),H("mouseover",function(o){return Ie(n),F().highlightItem(o)})("mouseout",function(o){return Ie(n),F().highlightItem(o)}),v(2,"login"),p(),p()}}function a2(t,e){if(1&t){const n=Xt();h(0,"li",17),h(1,"a",18),H("click",function(){return Ie(n),F().navigateToUserArea()})("mouseover",function(o){return Ie(n),F().highlightItem(o)})("mouseout",function(o){return Ie(n),F().highlightItem(o)}),I(2,"img",19),h(3,"span",20),v(4),p(),p(),p()}if(2&t){const n=F();E(2),T("src",n.user.avatarUrl,it)("alt",n.user.displayName),E(2),Gt(n.user.displayName)}}A.STORE_SUFFIX="x1",A.STORE_COUNTRIES_CACHE="b_countries"+A.STORE_SUFFIX,A.STORE_COUNTRIES_CACHE_TIMESTAMP=A.STORE_SUFFIX+"b_tcountries"+A.STORE_SUFFIX,A.STORE_TEAMS_CACHE="b_teams"+A.STORE_SUFFIX,A.STORE_TEAMS_CACHE_TIMESTAMP="b_tteams"+A.STORE_SUFFIX,A.GATING_COUNTER_NAME="viewcounter",A.GATING_BEGINNING_NAME="gatexp",A.GATING_TIMEOUT_DAYS=2,A.BAR_INFO_ENDPOINT=me.endpointBarData,A.USER_REGISTER_ENDPOINT=me.endpointRegisterUser,A.USER_REGISTER_CONFIRM_ENDPOINT=me.endpointConfirmRegistration,A.USER_RESENT_ACTIVATION_LINK_ENDPOINT=me.endpointResendActivationEmail,A.USER_GET_PROFILE_ENDPOINT=me.endpointGetUserProfile,A.USER_SET_PROFILE_ENDPOINT=me.endpointSetUserProfile,A.USER_CHANGE_PASSWORD_ENDPOINT=me.endpointChangePassword,A.USER_CLOSE_ACCOUNT_ENDPOINT=me.endpointCloseAccount,A.USER_RECOVER_REQUEST_ENDPOINT=me.endpointRecoverPassword,A.USER_RECOVER_VALIDATE_ENDPOINT=me.endpointRecoverPasswordValidation,A.USER_RECOVER_CHANGE_PASSWORD_ENDPOINT=me.endpointRecoverChangePassword,A.USER_PHOTO_ENDPOINT=me.endpointUpdatePhoto,A.DATA_TEAMS_ENDPOINT=me.endpointGetTeams,A.DATA_COUNTRIES_ENDPOINT=me.endpointGetCountries,A.\u0275fac=function(e){return new(e||A)(M(_h),M(S))},A.\u0275prov=W({token:A,factory:A.\u0275fac});let l2=(()=>{class t{constructor(n,r,o,i,s,a){this.barService=n,this.auth=r,this.router=o,this.changeDetector=i,this.ngZone=s,this.sanitizer=a,this.links=null,this.user=null,this.isLoggedIn=!1,this.iolAppName="",this.loginAvailable=!1,this.openRegisterUser=!1,this.menuIsOpen=!1,this.showCookieDisclaimer=!1,this.footerType=null,this.lineColor=null,this.highlightColor=null,this.backgroundColor=t.STYLE_BAR_BACKGROUND_COLOR,this.logoImageUrl=null,this.logoLink=null,this.logoBackgroundColor=null,this.mobileBarTitle=null,this.footerLoaded=!1;const l=r.getNormalizedSiteName();t.STORE_DATA_CACHE="bar:"+l,t.STORE_DATA_CACHE_TIMESTAMP="bts:"+l,o.events.subscribe(u=>{if(u instanceof Di&&window.location.href.endsWith("#/")){const c=window.location.href.replace("#/","");window.history.replaceState({urlPath:"/"},"",c)}if(u instanceof ou){const c=document.getElementsByTagName("body");c&&("/"!==u.url&&u.url.startsWith("/iol/")?this.elementAddClass(c[0],"overflow-hidden"):this.elementRemoveClass(c[0],"overflow-hidden"))}})}ngOnInit(){window.iol=window.iol||{},window.iol.getRefreshToken=()=>this.ngZone.run(()=>this.auth.getCachedRefreshToken()),window.iol.getAccessToken=()=>this.ngZone.run(()=>this.auth.getAccessToken()),window.iol.isUserLoggedIn=()=>this.ngZone.run(()=>this.auth.isUserLoggedIn()),window.iol.getLoggedUser=()=>{const r=this.ngZone.run(()=>this.auth.getLoggedUser());return r?{id:r.id,displayName:r.displayName,avatarUrl:r.avatarUrl,userName:r.userName,authProvider:r.provider,gender:r.gender,birthDate:r.birthDate,firstName:r.firstName,lastName:r.lastName,hasSubscriptions:r.hasSubscriptions}:null},window.iol.navigate=(r,o)=>(window.scrollTo(0,0),this.ngZone.run(o&&""!==o?()=>this.router.navigate([r],{queryParams:{m:o}}):()=>this.router.navigate([r])));const n=this.getFromCache();if(n&&(n.openRegisterUser=!1,this.applyData(n)),this.needsDataRefresh()&&this.barService.getLinks().subscribe(r=>{r&&(this.applyData(r),this.cacheData(r)),this.loadFooter()},r=>{}),this.auth.onUserLoggedOut.subscribe(()=>{if(this.isLoggedIn=!1,this.user=null,this.changeDetector.detectChanges(),window.iol&&window.iol.onUserLoggedOut)try{window.iol.onUserLoggedOut()}catch(r){}}),this.auth.onUserAuthenticated.subscribe(r=>{if(!r)return this.isLoggedIn=!1,this.user=null,void this.changeDetector.detectChanges();try{window.dataLayer&&window.dataLayer.push({IOL_ID:r.id,event:"gaLogin"})}catch(i){}if(r.acceptedTerms&&r.birthDate&&r.firstName&&r.lastName&&r.gender){if(this.isLoggedIn=this.auth.isUserLoggedIn(),this.user=r,this.changeDetector.detectChanges(),window.iol&&window.iol.onUserLoggedIn)try{window.iol.onUserLoggedIn()}catch(i){}}else window.setTimeout(()=>{this.ngZone.run(()=>this.router.navigate(["iol/accept-terms"]))},200);const o="gigya"!==r.provider;if(gigya&&o&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&r.acceptedTerms){r.provider="gigya",this.auth.updateCachedUserData(r);const s=document.location.href.match(/(^[^#]*)/);gigya.accounts.setSSOToken({redirectURL:s&&s.length>0?s[0]:"https://"+document.location.hostname})}o&&window.setTimeout(()=>{this.auth.adblockersDetected()},100)}),window.iol&&window.iol.onLoaded)try{window.iol.onLoaded()}catch(r){}this.auth.notifyBarLoaded(),this.loadFooter()}ngOnDestroy(){window.iol.getRefreshToken=null,window.iol.getAccessToken=null,window.iol.isUserLoggedIn=null,window.iol.navigate=null}elementHasClass(n,r){return n.classList?n.classList.contains(r):!!n.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}elementAddClass(n,r){n.classList?n.classList.add(r):this.elementHasClass(n,r)||(n.className+=" "+r)}elementRemoveClass(n,r){if(n.classList)n.classList.remove(r);else if(this.elementHasClass(n,r)){const o=new RegExp("(\\s|^)"+r+"(\\s|$)");n.className=n.className.replace(o," ")}}toggleMenu(){this.menuIsOpen=!this.menuIsOpen}navigateToUserArea(){this.ngZone.run(()=>this.router.navigate(["iol/user-area"]))}linkClick(n){try{window.dataLayer&&window.dataLayer.push({eventCategory:"Click",eventAction:n,event:"gaEvent"})}catch(r){}}applyData(n){n&&(n.links&&(this.links=n.links),this.loginAvailable=n.loginEnabled,this.openRegisterUser=n.openRegisterUser,this.barService.logoUrl=n.siteLogo,this.barService.siteName=n.siteName,this.showCookieDisclaimer=n.showCookiesDisclaimer||!1,this.footerType=n.footerType||null,this.logoImageUrl=this.sanitizer.bypassSecurityTrustStyle(`url('${n.barLogo||t.STYLE_BAR_DEFAULT_LOGO}')`),this.logoLink=n.barLogoLink||null,this.showEmail="0"!==n.showMail,this.mobileBarTitle=n.mobileBarLabel||t.DEFAULT_BAR_MOBILE_TITLE,n.styles?(this.lineColor=n.styles.barLineColor||t.STYLE_BAR_LINE_COLOR,this.highlightColor=n.styles.highLightColor||t.STYLE_BAR_HIGHLIGHT_COLOR,this.logoBackgroundColor=n.styles.backGroundColor||t.STYLE_BAR_LOGO_BACKGROUND_COLOR):(this.logoBackgroundColor=t.STYLE_BAR_LOGO_BACKGROUND_COLOR,this.lineColor=t.STYLE_BAR_LINE_COLOR,this.highlightColor=t.STYLE_BAR_HIGHLIGHT_COLOR),this.barService.logoUrl=n.siteLogo,this.barService.siteName=n.siteName)}getFromCache(){const n=localStorage.getItem(t.STORE_DATA_CACHE);return n?JSON.parse(n):null}cacheData(n){n&&(localStorage.setItem(t.STORE_DATA_CACHE,JSON.stringify(n)),localStorage.setItem(t.STORE_DATA_CACHE_TIMESTAMP,Date.now().toString()))}needsDataRefresh(){const n=localStorage.getItem(t.STORE_DATA_CACHE_TIMESTAMP);if(n){const r=parseInt(n,10);return(Date.now()-r)/6e4>t.REFRESH_DATA_TIMEOUT_SECONDS}return!0}loadFooter(){return mE(this,void 0,void 0,function*(){this.footerLoaded||(window.__iol__=window.__iol__||{},window.__iol__.footerType=this.footerType,this.footerType&&("min"===this.footerType||"max"===this.footerType)&&(this.footerLoaded=!0,yield this.loadFooterDependencies(),this.internalLoadFooter()))})}internalLoadFooter(){if(!window.$)return void console.error("Cannot load footer without jQuery dependency");$("head").prepend('');const n=window.location.origin.replace("dev.",""),r=n.replace(window.location.protocol,"").replace("//","").replace("www.","").split(".")[0];let o=null;"max"===window.__iol__.footerType&&(o="https://front-api.iol.pt/api/v1/footer/footer_max?tag=&urlbase="+n+"&target="+r),"min"===window.__iol__.footerType&&(o="https://front-api.iol.pt/api/v1/footer/footer_min?tag=&urlbase="+n+"&target="+r),o&&$.get(o,i=>{const s=$("
").html(i).find("#footer-wrapper");$("body").append(s)}),this.showCookieDisclaimer&&console.error("BarraIOL: 'showCookieDisclaimer' field on API has been deprecated. This will no longer show a cookie disclaimer.")}loadScriptsInOrder(n,r=0){if(!(r>=n.length))if(n[r]){const o=document.createElement("script");o.onload=()=>{this.loadScriptsInOrder(n,r+1)},o.onerror=()=>{console.log("IOL: Failed startup loading script ("+n[r]+")"),this.loadScriptsInOrder(n,r+1)},o.src=n[r],o.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(o)}else this.loadScriptsInOrder(n,r+1)}loadFooterDependencies(){return this.loadScriptsInOrder(["https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.0/masonry.pkgd.min.js","https://front-api.iol.pt/js/main.js"]),new Promise((n,r)=>{window.setTimeout(()=>{n()},1e3)})}highlightItem(n){"mouseover"===n.type&&(n.currentTarget.style.backgroundColor=this.highlightColor||""),"mouseout"===n.type&&(n.currentTarget.style.backgroundColor=this.backgroundColor)}signOut(){this.auth.signOut()}}return t.REFRESH_DATA_TIMEOUT_SECONDS=3600,t.STYLE_BAR_BACKGROUND_COLOR="#252525",t.STYLE_BAR_LINE_COLOR="#252525",t.STYLE_BAR_HIGHLIGHT_COLOR="#06c",t.STYLE_BAR_DEFAULT_LOGO="//cdn.iol.pt/BarraIOL/images/logos/biol-logo.png",t.STYLE_BAR_LOGO_BACKGROUND_COLOR="#252525",t.DEFAULT_BAR_MOBILE_TITLE="Portal IOL",t.\u0275fac=function(n){return new(n||t)(D(A),D(S),D(Ue),D(Ts),D(ke),D(Jl))},t.\u0275cmp=At({type:t,selectors:[["bar-iol"]],decls:18,vars:29,consts:[["id","bIOL"],["target","_blank",1,"biol-logo","biol-d-md-none",3,"href","click"],["href","#","id","biol-toggle-menu",1,"biol-logo","biol-d-lg-none",3,"click"],[1,"biol-logo","fl-r"],[1,"setadown"],["id","biol-menu"],[1,"hideDesktop",3,"href","click"],[3,"mouseover","mouseout",4,"ngFor","ngForOf"],["class","fl-r",4,"ngIf"],["id","biol-login-wrapper"],["class","fl-r biol-login",4,"ngIf"],[3,"mouseover","mouseout"],[3,"href","click"],[1,"fl-r"],["href","https://webmail.iol.pt","target","_blank",1,"biol-email-link",3,"mouseover","mouseout","click"],[1,"icon_mail"],["title","Login","routerLink","/iol/login","routerLinkActive","active",1,"biol-login-link",3,"mouseover","mouseout"],[1,"fl-r","biol-login"],["title","Ver Perfil","href","javascript:void(0);","id","biol-btn-userarea",3,"click","mouseover","mouseout"],[1,"biol-avatar",3,"src","alt"],[1,"username"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"a",1),H("click",function(){return r.linkClick("Logo")}),v(2,"IOL"),p(),h(3,"a",2),H("click",function(){return r.toggleMenu()}),h(4,"div",3),v(5,"IOL"),p(),I(6,"span",4),p(),h(7,"ul",5),h(8,"li"),h(9,"a",6),H("click",function(){return r.linkClick("Logo")}),v(10),p(),p(),x(11,o2,3,2,"li",7),x(12,i2,5,0,"li",8),p(),h(13,"ul",9),x(14,s2,3,0,"li",8),x(15,a2,5,3,"li",10),p(),h(16,"div"),I(17,"router-outlet"),p(),p()),2&n&&(no("background-color",r.backgroundColor)("border-top-color",r.lineColor)("border-top-width","2px")("border-top-style","solid"),E(1),no("background-image",r.logoImageUrl)("background-color",r.logoBackgroundColor),T("href",r.logoLink||"",it),E(3),no("background-image",r.logoImageUrl),tn("x",r.menuIsOpen),E(2),tn("x",r.menuIsOpen),E(1),tn("visible",r.menuIsOpen),E(2),T("href",r.logoLink,it),E(1),Gt(r.mobileBarTitle),E(1),T("ngForOf",r.links),E(1),T("ngIf",r.showEmail),E(1),tn("withoutEmail",!r.showEmail),E(1),T("ngIf",!r.isLoggedIn&&r.loginAvailable),E(1),T("ngIf",r.isLoggedIn&&r.loginAvailable))},directives:[Yf,Tn,xh,Nn,hr],styles:[""]}),t})(),u2=(()=>{class t{constructor(n){if(this.auth=n,window.dataLayer=window.dataLayer||[],this.auth){const r=this.auth.getLoggedUser();r&&r.id&&window.dataLayer.push({IOL_ID:r.id,sub:r.hasSubscriptions||!1})}}}return t.\u0275fac=function(n){return new(n||t)(D(S))},t.\u0275cmp=At({type:t,selectors:[["app-iol-bar"]],decls:1,vars:0,template:function(n,r){1&n&&I(0,"bar-iol")},directives:[l2],styles:[""]}),t})(),vE=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}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)}}return t.\u0275fac=function(n){return new(n||t)(D(or),D(et))},t.\u0275dir=Q({type:t}),t})(),mo=(()=>{class t extends vE{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=hn(t)))(r||t)}}(),t.\u0275dir=Q({type:t,features:[Ae]}),t})();const qn=new re("NgValueAccessor"),d2={provide:qn,useExisting:be(()=>bu),multi:!0};let bu=(()=>{class t extends mo{writeValue(n){this.setProperty("checked",n)}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=hn(t)))(r||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&H("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[Me([d2]),Ae]}),t})();const f2={provide:qn,useExisting:be(()=>pr),multi:!0},p2=new re("CompositionEventMode");let pr=(()=>{class t extends vE{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Gn()?Gn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_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)}}return t.\u0275fac=function(n){return new(n||t)(D(or),D(et),D(p2,8))},t.\u0275dir=Q({type:t,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(n,r){1&n&&H("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[Me([f2]),Ae]}),t})();function Pr(t){return null==t||0===t.length}function CE(t){return null!=t&&"number"==typeof t.length}const _t=new re("NgValidators"),kr=new re("NgAsyncValidators"),g2=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class P{static min(e){return bE(e)}static max(e){return DE(e)}static required(e){return Pr(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return Pr((t=e).value)||g2.test(t.value)?null:{email:!0};var t}static minLength(e){return t=e,e=>Pr(e.value)||!CE(e.value)?null:e.value.length{if(Pr(r.value))return null;const o=r.value;return e.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}(e)}static nullValidator(e){return null}static compose(e){return PE(e)}static composeAsync(e){return kE(e)}}function bE(t){return e=>{if(Pr(e.value)||Pr(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(Pr(e.value)||Pr(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function AE(t){return e=>CE(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function gr(t){return null}function NE(t){return null!=t}function SE(t){const e=hs(t)?je(t):t;return sl(e),e}function RE(t){let e={};return t.forEach(n=>{e=null!=n?B(B({},e),n):e}),0===Object.keys(e).length?null:e}function OE(t,e){return e.map(n=>n(t))}function xE(t){return t.map(e=>function(t){return!t.validate}(e)?e:n=>e.validate(n))}function PE(t){if(!t)return null;const e=t.filter(NE);return 0==e.length?null:function(n){return RE(OE(n,e))}}function Hh(t){return null!=t?PE(xE(t)):null}function kE(t){if(!t)return null;const e=t.filter(NE);return 0==e.length?null:function(n){return function(...t){const e=Lp(t),{args:n,keys:r}=lD(t),o=new ve(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?cD(r,a):a),i.complete())}))}});return e?o.pipe(uD(e)):o}(OE(n,e).map(SE)).pipe(V(RE))}}function Gh(t){return null!=t?kE(xE(t)):null}function FE(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function LE(t){return t._rawValidators}function VE(t){return t._rawAsyncValidators}function $h(t){return t?Array.isArray(t)?t:[t]:[]}function Du(t,e){return Array.isArray(t)?t.includes(e):t===e}function UE(t,e){const n=$h(e);return $h(t).forEach(o=>{Du(n,o)||n.push(o)}),n}function BE(t,e){return $h(e).filter(n=>!Du(t,n))}class jE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Hh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Gh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,n){return!!this.control&&this.control.hasError(e,n)}getError(e,n){return this.control?this.control.getError(e,n):null}}class Tt extends jE{get formDirective(){return null}get path(){return null}}class Fr extends jE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class HE{constructor(e){this._cd=e}is(e){var n,r,o;return"submitted"===e?!!(null==(n=this._cd)?void 0:n.submitted):!!(null==(o=null==(r=this._cd)?void 0:r.control)?void 0:o[e])}}let _o=(()=>{class t extends HE{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(D(Fr,2))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&tn("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[Ae]}),t})(),Ti=(()=>{class t extends HE{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(D(Tt,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&tn("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[Ae]}),t})();function wu(t,e){return[...e.path,t]}function na(t,e){Wh(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&GE(t,e)})}(t,e),function(t,e){const n=(r,o)=>{e.valueAccessor.writeValue(r),o&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&GE(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Iu(t,e,n=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Au(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Tu(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Wh(t,e){const n=LE(t);null!==e.validator?t.setValidators(FE(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=VE(t);null!==e.asyncValidator?t.setAsyncValidators(FE(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();Tu(e._rawValidators,o),Tu(e._rawAsyncValidators,o)}function Au(t,e){let n=!1;if(null!==t){if(null!==e.validator){const o=LE(t);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==e.validator);i.length!==o.length&&(n=!0,t.setValidators(i))}}if(null!==e.asyncValidator){const o=VE(t);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==e.asyncValidator);i.length!==o.length&&(n=!0,t.setAsyncValidators(i))}}}const r=()=>{};return Tu(e._rawValidators,r),Tu(e._rawAsyncValidators,r),n}function GE(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Kh(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function Qh(t,e){if(!e)return null;let n,r,o;return Array.isArray(e),e.forEach(i=>{i.constructor===pr?n=i:function(t){return Object.getPrototypeOf(t.constructor)===mo}(i)?r=i:o=i}),o||r||n||null}function Mu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ra="VALID",Nu="INVALID",Ai="PENDING",oa="DISABLED";function Yh(t){return(Jh(t)?t.validators:t)||null}function qE(t){return Array.isArray(t)?Hh(t):t||null}function Zh(t,e){return(Jh(e)?e.asyncValidators:t)||null}function WE(t){return Array.isArray(t)?Gh(t):t||null}function Jh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Xh{constructor(e,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=qE(this._rawValidators),this._composedAsyncValidatorFn=WE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ra}get invalid(){return this.status===Nu}get pending(){return this.status==Ai}get disabled(){return this.status===oa}get enabled(){return this.status!==oa}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=qE(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=WE(e)}addValidators(e){this.setValidators(UE(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(UE(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(BE(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(BE(e,this._rawAsyncValidators))}hasValidator(e){return Du(this._rawValidators,e)}hasAsyncValidator(e){return Du(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ai,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=oa,this.errors=null,this._forEachChild(r=>{r.disable(ot(B({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ot(B({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=ra,this._forEachChild(r=>{r.enable(ot(B({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ot(B({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ra||this.status===Ai)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?oa:ra}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ai,this._hasOwnPendingAsyncValidator=!0;const n=SE(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=r instanceof ia?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof ep&&r.at(o)||null}),r}(this,e)}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ne,this.statusChanges=new Ne}_calculateStatus(){return this._allControlsDisabled()?oa:this.errors?Nu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ai)?Ai:this._anyControlsHaveStatus(Nu)?Nu:ra}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Jh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class yo extends Xh{constructor(e=null,n,r){super(Yh(n),Zh(r,n)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=null,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Mu(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Mu(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class ia extends Xh{constructor(e,n,r){super(Yh(n),Zh(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n instanceof yo?n.value:n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class ep extends Xh{constructor(e,n,r){super(Yh(n),Zh(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){this._checkAllValuesPresent(e),e.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e instanceof yo?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const S2={provide:Fr,useExisting:be(()=>np)},YE=(()=>Promise.resolve(null))();let np=(()=>{class t extends Fr{constructor(n,r,o,i){super(),this.control=new yo,this._registered=!1,this.update=new Ne,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Qh(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),Kh(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?wu(this.name,this._parent):[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&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){na(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){YE.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;YE.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(n){return new(n||t)(D(Tt,9),D(_t,10),D(kr,10),D(qn,10))},t.\u0275dir=Q({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Me([S2]),Ae,ft]}),t})(),Mi=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const R2={provide:qn,useExisting:be(()=>aa),multi:!0};let aa=(()=>{class t extends mo{writeValue(n){this.setProperty("value",null==n?"":n)}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=hn(t)))(r||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&H("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[Me([R2]),Ae]}),t})();const O2={provide:qn,useExisting:be(()=>Su),multi:!0};let ZE=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({}),t})(),x2=(()=>{class t{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n)return void this._accessors.splice(r,1)}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return!!n[0].control&&n[0]._parent===r._control._parent&&n[1].name===r.name}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:ZE}),t})(),Su=(()=>{class t extends mo{constructor(n,r,o,i){super(n,r),this._registry=o,this._injector=i,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Fr),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}fireUncheck(n){this.writeValue(n)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(n){return new(n||t)(D(or),D(et),D(x2),D(he))},t.\u0275dir=Q({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){1&n&&H("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Me([O2]),Ae]}),t})();const rp=new re("NgModelWithFormControlWarning"),F2={provide:Tt,useExisting:be(()=>Lr)};let Lr=(()=>{class t extends Tt{constructor(n,r){super(),this.validators=n,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ne,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Au(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return na(r,n),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Iu(n.control||null,n,!1),Mu(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(Iu(r||null,n),o instanceof yo&&(na(o,n),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function(t,e){Wh(t,e)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function(t,e){return Au(t,e)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wh(this.form,this),this._oldForm&&Au(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(n){return new(n||t)(D(_t,10),D(kr,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&H("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Me([F2]),Ae,ft]}),t})();const U2={provide:Fr,useExisting:be(()=>vo)};let vo=(()=>{class t extends Fr{constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ne,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Qh(0,i)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),Kh(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return wu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(n){return new(n||t)(D(Tt,13),D(_t,10),D(kr,10),D(qn,10),D(rp,8))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Me([U2]),Ae,ft]}),t})();const B2={provide:qn,useExisting:be(()=>Ru),multi:!0};function tw(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Ru=(()=>{class t extends mo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const r=this._getOptionId(n);null==r&&this.setProperty("selectedIndex",-1);const o=tw(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(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function(t){return t.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=hn(t)))(r||t)}}(),t.\u0275dir=Q({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&H("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Me([B2]),Ae]}),t})(),nw=(()=>{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(tw(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(n){return new(n||t)(D(et),D(or),D(Ru,9))},t.\u0275dir=Q({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const H2={provide:qn,useExisting:be(()=>sp),multi:!0};function rw(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let sp=(()=>{class t extends mo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const 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=>{const o=[];if(void 0!==r.selectedOptions){const i=r.selectedOptions;for(let s=0;s{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(rw(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(rw(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))}}return t.\u0275fac=function(n){return new(n||t)(D(et),D(or),D(sp,9))},t.\u0275dir=Q({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function sw(t){return"number"==typeof t?t:parseFloat(t)}let aw=(()=>{class t{constructor(){this._validator=gr}handleChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(r):gr,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(){return null!=this[this.inputName]}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Q({type:t}),t})();const $2={provide:_t,useExisting:be(()=>la),multi:!0};let la=(()=>{class t extends aw{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>sw(n),this.createValidator=n=>DE(n)}ngOnChanges(n){this.handleChanges(n)}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=hn(t)))(r||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){2&n&&Un("max",r.enabled()?r.max:null)},inputs:{max:"max"},features:[Me([$2]),Ae,ft]}),t})();const z2={provide:_t,useExisting:be(()=>ua),multi:!0};let ua=(()=>{class t extends aw{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>sw(n),this.createValidator=n=>bE(n)}ngOnChanges(n){this.handleChanges(n)}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=hn(t)))(r||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){2&n&&Un("min",r.enabled()?r.min:null)},inputs:{min:"min"},features:[Me([z2]),Ae,ft]}),t})();const Y2={provide:_t,useExisting:be(()=>lp),multi:!0};let lp=(()=>{class t{constructor(){this._validator=gr}ngOnChanges(n){"maxlength"in n&&(this._createValidator(),this._onChange&&this._onChange())}validate(n){return this.enabled()?this._validator(n):null}registerOnValidatorChange(n){this._onChange=n}_createValidator(){this._validator=this.enabled()?AE(function(t){return"number"==typeof t?t:parseInt(t,10)}(this.maxlength)):gr}enabled(){return null!=this.maxlength}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){2&n&&Un("maxlength",r.enabled()?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Me([Y2]),ft]}),t})(),fw=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({imports:[[ZE]]}),t})(),J2=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({imports:[fw]}),t})(),hw=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:rp,useValue:n.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=vt({imports:[fw]}),t})(),ca=(()=>{class t{group(n,r=null){const o=this._reduceControls(n);let a,i=null,s=null;return null!=r&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(r)?(i=null!=r.validators?r.validators:null,s=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(i=null!=r.validator?r.validator:null,s=null!=r.asyncValidator?r.asyncValidator:null)),new ia(o,{asyncValidators:s,updateOn:a,validators:i})}control(n,r,o){return new yo(n,r,o)}array(n,r,o){const i=n.map(s=>this._createControl(s));return new ep(i,r,o)}_reduceControls(n){const r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){return n instanceof yo||n instanceof ia||n instanceof ep?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:hw}),t})(),Ou=(()=>{class t{constructor(n,r){this.authService=n,this.router=r}canActivate(n,r){const o=this.authService.isUserLoggedIn();return o||this.router.navigate(["/"]),o}}return t.\u0275fac=function(n){return new(n||t)(M(S),M(Ue))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function eU(t,e){1&t&&I(0,"p")}function tU(t,e){1&t&&(h(0,"span"),v(1,"Ol\xe1, para continuar a ler os "),h(2,"strong"),v(3,"nossos conte\xfados exclusivos"),p(),v(4," e aceder a servi\xe7os pensados para si, fa\xe7a login ou registe-se."),p())}function nU(t,e){if(1&t&&(h(0,"span"),v(1),p()),2&t){const n=F();E(1),Gt(n.messageOverride)}}function rU(t,e){1&t&&(h(0,"div",35),v(1,"O email que introduziu \xe9 inv\xe1lido."),p())}function oU(t,e){1&t&&(h(0,"div",36),v(1,"A password que introduziu \xe9 inv\xe1lida."),p())}function iU(t,e){if(1&t&&(h(0,"div",37),v(1),p()),2&t){const n=F();E(1),st(" ",n.errorMessage," ")}}function sU(t,e){1&t&&(h(0,"div",37),v(1," O email que utilizou n\xe3o se encontra registado. "),p())}function aU(t,e){1&t&&(h(0,"a",38),I(1,"i",39),p())}let pw=(()=>{class t{constructor(n,r,o,i,s){this.formBuilder=n,this.auth=r,this.barService=o,this.router=i,this.route=s,this.messageOverride=null,this.userName=null,this.showIolErrorMessage=!1,this.errorMessage=null,this.isBusy=!1,this.buttonTitle=t.DEFAULT_BUTTON_TITLE,this.referrer=null,this.gating=!1,this.referrer=document.referrer,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||"",this.baseUrl=me.baseUrl,this.formGroup=this.formBuilder.group({userName:[null,P.compose([P.required,P.pattern(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)])],password:[null,P.compose([P.required,P.minLength(4)])]}),this.route.queryParams.subscribe(a=>{"m"in a&&(this.messageOverride=a.m)})}ngOnInit(){if(this.gating&&window.innerWidth>=800){const n=this.logoUrl.lastIndexOf(".");this.logoUrl=this.logoUrl.substring(0,n)+"_w"+this.logoUrl.substring(n)}}shouldNavigateBackToToReferrer(){return!(!this.referrer||""===this.referrer||-1!==this.referrer.indexOf("/#/")||-1===this.referrer.indexOf(window.location.host)||this.referrer===window.location.href.replace(window.location.hash,""))}submitForm(n){this.showIolErrorMessage=!1,n&&n.userName&&n.password&&(this.userName=n.userName,this.errorMessage=null,this.isBusy=!0,this.buttonTitle="Aguarde...",this.auth.loginUsingCredentials(n.userName,n.password).subscribe(r=>{this.isBusy=!1,this.buttonTitle=t.DEFAULT_BUTTON_TITLE,r&&(this.shouldNavigateBackToToReferrer()&&this.referrer?window.location.href=this.referrer:this.router.navigate(["/","welcome"]))},r=>{this.isBusy=!1,this.buttonTitle=t.DEFAULT_BUTTON_TITLE,r&&r.error&&r.error.error_description?-1!==r.error.error_description.indexOf("403047")?(this.errorMessage=null,this.showIolErrorMessage=!0):this.errorMessage=r.error.error_description:this.errorMessage=t.MSG_SOCIAL_AUTH_FAILED}))}loginWithFacebook(){this.errorMessage=null,this.showIolErrorMessage=!1,this.isBusy=!0,this.auth.loginUsingFacebook().subscribe(n=>{this.isBusy=!1,n&&(this.shouldNavigateBackToToReferrer()&&this.referrer?window.location.href=this.referrer:this.router.navigate(["/","welcome"]))},n=>{this.isBusy=!1,this.errorMessage=t.MSG_SOCIAL_AUTH_FAILED})}loginWithGoogle(){this.errorMessage=null,this.showIolErrorMessage=!1,this.isBusy=!0,this.auth.loginUsingGoogle().subscribe(n=>{this.isBusy=!1,n&&(this.shouldNavigateBackToToReferrer()&&this.referrer?window.location.href=this.referrer:this.router.navigate(["/","welcome"]))},n=>{this.isBusy=!1,this.errorMessage=t.MSG_SOCIAL_AUTH_FAILED})}}return t.MSG_SOCIAL_AUTH_FAILED="Ocorreu um erro a executar a sua autentica\xe7\xe3o.",t.DEFAULT_BUTTON_TITLE="Entrar",t.\u0275fac=function(n){return new(n||t)(D(ca),D(S),D(A),D(Ue),D(fr))},t.\u0275cmp=At({type:t,selectors:[["app-login"]],inputs:{gating:"gating"},decls:75,vars:17,consts:[["id","nonio-basiclogin"],["id","wrapperContentGatingNonio"],[1,"maskContentGatingNonio"],[1,"right-columnContentGatingNonio"],[3,"formGroup","ngSubmit"],[4,"ngIf"],[1,"logotipoContentLoginNonio"],[1,"biol-criar-recuperar2",2,"text-align","center"],[2,"text-align","center","text-transform","uppercase","line-height","20%"],[1,"rs-login"],["href","javascript:void(0)",3,"click"],["alt","Login com Facebook","width","40","src","https://cdn.iol.pt/BarraIOL/dist/assets/images/f.svg",1,"iconlogin"],["alt","Login com Google","width","40","src","https://cdn.iol.pt/BarraIOL/dist/assets/images/g.svg",1,"iconlogin"],[1,"optionContentGatingNonio"],["formControlName","userName","type","email","id","biol-nonio-email","aria-describedby","emailHelp","placeholder","Endere\xe7o de email*","autocomplete","email",1,"biol-form-item2"],["id","biol-nonio-email-error","class","text-error",4,"ngIf"],["formControlName","password","type","password","id","biol-nonio-password","placeholder","Palavra-passe*",1,"biol-form-item2","biol-form-password"],["id","biol-nonio-password-error","class","text-error",4,"ngIf"],[1,"biol-criar-recuperar2"],["routerLink","/iol/recover-password","routerLinkActive","active"],["type","submit",1,"biol-btn","biol-btn-block","biol-btn-primary",3,"value","disabled"],["class","text-error",4,"ngIf"],["routerLink","/iol/register-user","routerLinkActive","active"],[1,"assNonioContentGatingNonio"],["href","https://nonio.net/"],["alt","logo nonio","width","64","src","https://cdn.iol.pt/BarraIOL/images/nonio_logo-k.png",1,"nonio-imgContentGatingNonio"],["routerLink","/","routerLinkActive","active","class","nonio-modal-close",4,"ngIf"],[1,"left-columnContentGatingNonio"],[1,"desktopOnly"],[1,"logotipoContentGatingNonio","hidemobileContentGatingNonio"],[1,"h-1ContentGatingNonio","hidemobileContentGatingNonio"],[1,"vantagensContentGatingNonio"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 20 20",0,"xml","space","preserve",2,"enable-background","new 0 0 20 20"],["d","M10,0.2c-5.4,0-9.9,4.4-9.9,9.9c0,5.4,4.4,9.9,9.9,9.9s9.9-4.4,9.9-9.9C19.8,4.6,15.4,0.2,10,0.2z M10,18.6\n c-4.7,0-8.6-3.8-8.6-8.6S5.2,1.4,10,1.4s8.6,3.8,8.6,8.6S14.7,18.6,10,18.6z",1,"st0ContentGatingNonio"],["points","8.3,11.6 6,8.9 5,9.7 7.3,12.4 8.2,13.4 9.2,12.6 15,7.6 14.1,6.6 \t",1,"st0ContentGatingNonio"],["id","biol-nonio-email-error",1,"text-error"],["id","biol-nonio-password-error",1,"text-error"],[1,"text-error"],["routerLink","/","routerLinkActive","active",1,"nonio-modal-close"],[1,"bicon-close"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"div",1),h(2,"div",2),h(3,"div",3),h(4,"form",4),H("ngSubmit",function(){return r.submitForm(r.formGroup.value)}),h(5,"div"),x(6,eU,1,0,"p",5),h(7,"div"),I(8,"div",6),h(9,"div",7),x(10,tU,5,0,"span",5),x(11,nU,2,1,"span",5),p(),h(12,"h2",8),v(13,"Login"),p(),p(),h(14,"div"),h(15,"div",9),h(16,"a",10),H("click",function(){return r.loginWithFacebook()}),I(17,"img",11),h(18,"span"),v(19,"Login com Facebook"),p(),p(),h(20,"a",10),H("click",function(){return r.loginWithGoogle()}),I(21,"img",12),h(22,"span"),v(23,"Login com Google"),p(),p(),p(),h(24,"div",13),h(25,"span"),v(26,"ou"),p(),p(),h(27,"div"),I(28,"input",14),x(29,rU,2,0,"div",15),p(),h(30,"div"),I(31,"input",16),x(32,oU,2,0,"div",17),p(),h(33,"div",18),v(34," Esqueceu-se da palavra-passe? "),h(35,"a",19),v(36,"Recuperar"),p(),p(),h(37,"div"),I(38,"input",20),p(),x(39,iU,2,1,"div",21),x(40,sU,2,0,"div",21),h(41,"div",18),v(42," Ainda n\xe3o tem registo N\xf3nio? "),h(43,"a",22),v(44,"Registe-se Gr\xe1tis"),p(),p(),p(),h(45,"div"),h(46,"div",23),h(47,"a",24),I(48,"img",25),v(49," Fique por dentro > "),p(),p(),p(),x(50,aU,2,0,"a",26),p(),p(),p(),h(51,"div",27),h(52,"div",28),I(53,"div",29),h(54,"div",30),v(55," Ol\xe1, para continuar a ler os nossos conte\xfados e garantir o acesso aos melhores sites portugueses fa\xe7a j\xe1 o seu registo. "),p(),p(),h(56,"div",31),h(57,"div"),Na(),h(58,"svg",32),h(59,"g"),I(60,"path",33),I(61,"polygon",34),p(),p(),v(62," Acesso gratuito aos melhores conte\xfados"),p(),dc(),h(63,"div"),Na(),h(64,"svg",32),h(65,"g"),I(66,"path",33),I(67,"polygon",34),p(),p(),v(68," Simples: registo \xfanico em menos de 1 minuto"),p(),dc(),h(69,"div"),Na(),h(70,"svg",32),h(71,"g"),I(72,"path",33),I(73,"polygon",34),p(),p(),v(74," Um \xfanico login que lhe d\xe1 acesso permanente a este e aos mais de 70 sites de media portugueses, que fazem parte do N\xd3NIO"),p(),p(),p(),p(),p(),p()),2&n&&(E(1),tn("loginOnly",!r.gating),E(3),T("formGroup",r.formGroup),E(2),T("ngIf",r.gating),E(2),no("background-image","url("+r.logoUrl+")"),E(2),T("ngIf",!r.messageOverride&&!r.gating),E(1),T("ngIf",r.messageOverride),E(18),T("ngIf",!r.formGroup.controls.userName.valid&&r.formGroup.controls.userName.touched),E(3),T("ngIf",!r.formGroup.controls.password.valid&&r.formGroup.controls.password.touched),E(6),Ar("value",r.buttonTitle),T("disabled",!r.formGroup.valid||r.isBusy),E(1),T("ngIf",r.errorMessage&&""!==r.errorMessage),E(1),T("ngIf",!r.errorMessage&&r.showIolErrorMessage),E(10),T("ngIf",!r.gating),E(3),no("background-image","url("+r.logoUrl+")"))},directives:[Mi,Ti,Lr,Tn,pr,_o,vo,Nn,hr],styles:['#wrapperContentGatingNonio[_ngcontent-%COMP%]{width:100%;height:100vh;position:fixed;top:0;left:0;background-color:#000c;overflow-y:auto;z-index:2147483647;box-sizing:content-box}#wrapperContentGatingNonio[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:content-box}#wrapperContentGatingNonio[_ngcontent-%COMP%] .logotipoContentGatingNonio[_ngcontent-%COMP%]{height:70px;width:210px;margin:30px auto 50px;background-position:center;background-repeat:no-repeat;background-size:contain}#wrapperContentGatingNonio[_ngcontent-%COMP%] .logotipoContentLoginNonio[_ngcontent-%COMP%]{display:none;height:70px;width:210px;margin:0 auto;background-position:center;background-repeat:no-repeat;background-size:contain}.loginOnly[_ngcontent-%COMP%] .logotipoContentLoginNonio[_ngcontent-%COMP%]{display:block!important;margin-top:-10px!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] .maskContentGatingNonio[_ngcontent-%COMP%]{border-radius:6px;box-shadow:0 4px 16px 4px #00000029;font-family:"Roboto Condensed","Arial","sans-serif";font-size:16px;position:relative;margin:0 auto;color:#2a2a2a;text-align:center;line-height:1.25}#wrapperContentGatingNonio[_ngcontent-%COMP%] .left-columnContentGatingNonio[_ngcontent-%COMP%]{color:#fff;background-image:url(https://cdn.iol.pt/BarraIOL/images/background-left-column.jpg);background-position:center;background-size:cover}#wrapperContentGatingNonio[_ngcontent-%COMP%] .right-columnContentGatingNonio[_ngcontent-%COMP%]{text-align:left;background-color:#fff}#wrapperContentGatingNonio[_ngcontent-%COMP%] .st0ContentGatingNonio[_ngcontent-%COMP%]{fill:#fff;width:17px;height:17px;opacity:.5;display:block}#wrapperContentGatingNonio[_ngcontent-%COMP%] .biol-btn[_ngcontent-%COMP%]{opacity:1}#wrapperContentGatingNonio[_ngcontent-%COMP%] .h-1ContentGatingNonio[_ngcontent-%COMP%], #wrapperContentGatingNonio[_ngcontent-%COMP%] .h-2ContentGatingNonio[_ngcontent-%COMP%]{text-align:center}#wrapperContentGatingNonio[_ngcontent-%COMP%] .right-columnContentGatingNonio[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:22px;font-weight:700;margin:20px 0;padding:0}#wrapperContentGatingNonio[_ngcontent-%COMP%] .vantagensContentGatingNonio[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:#fff;position:relative;margin:20px 0 0 26px;font-size:14px;text-align:left}#wrapperContentGatingNonio[_ngcontent-%COMP%] .vantagensContentGatingNonio[_ngcontent-%COMP%] div[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{display:block;height:17px;width:17px;position:absolute;left:-26px;top:3px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .h-2ContentGatingNonio[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:24px;line-height:28px;margin:0;padding:0}#wrapperContentGatingNonio[_ngcontent-%COMP%] .biol-btn[_ngcontent-%COMP%]{line-height:32px;width:100%;border-radius:4px;background-color:#007aff;margin:10px auto;color:#fff;cursor:pointer;font-weight:400;border:0;font-family:"Roboto Condensed","Arial","sans-serif";font-size:16px}#wrapperContentGatingNonio[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-moz-placeholder{color:#ccc;font-size:16px;font-family:"Roboto Condensed","Arial","sans-serif";text-transform:none!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#ccc;font-size:16px;font-family:"Roboto Condensed","Arial","sans-serif";text-transform:none!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-ms-input-placeholder{color:#ccc;font-size:16px;font-family:"Roboto Condensed","Arial","sans-serif";text-transform:none!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-ms-input-placeholder{color:#ccc;font-size:16px;font-family:"Roboto Condensed","Arial","sans-serif";text-transform:none!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-internal-autofill-selected{background-color:#fff!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] .biol-form-item2[_ngcontent-%COMP%]{border-width:0 0 1px 0px;border-style:solid;border-color:#d4d4d4;line-height:35px;width:100%;font-family:"Roboto Condensed","Arial","sans-serif";font-size:18px;margin-top:10px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .text-error[_ngcontent-%COMP%], #wrapperContentGatingNonio[_ngcontent-%COMP%] .bg-error[_ngcontent-%COMP%]{color:#c3403a;font-size:14px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .biol-criar-recuperar2[_ngcontent-%COMP%]{font-size:14px;padding:12px 0}#wrapperContentGatingNonio[_ngcontent-%COMP%] .biol-criar-recuperar2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#007aff;text-decoration:underline}#wrapperContentGatingNonio[_ngcontent-%COMP%] .optionContentGatingNonio[_ngcontent-%COMP%]{width:162px;height:20px;margin:7px auto;position:relative}#wrapperContentGatingNonio[_ngcontent-%COMP%] .optionContentGatingNonio[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#fff;display:block;width:50px;margin:0 auto;z-index:1;position:absolute;left:56px;color:#2a2a2a;font-size:12px;text-align:center;line-height:2}#wrapperContentGatingNonio[_ngcontent-%COMP%] .optionContentGatingNonio[_ngcontent-%COMP%]:before{content:"";display:block;width:162px;height:1px;position:absolute;top:12px;left:0;z-index:0;opacity:.7;background:linear-gradient(90deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.9) 50%,rgba(0,0,0,0) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1)}#wrapperContentGatingNonio[_ngcontent-%COMP%] .login-linkContentGatingNonio[_ngcontent-%COMP%]{font-size:14px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .login-linkContentGatingNonio[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #wrapperContentGatingNonio[_ngcontent-%COMP%] .login-linkContentGatingNonio[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#057aff;text-decoration:underline;background-color:transparent}#wrapperContentGatingNonio[_ngcontent-%COMP%] .assNonioContentGatingNonio[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;height:40px;border-top:solid 1px;border-color:#1e212666;font-size:14px;line-height:40px;width:100%;text-align:center}#wrapperContentGatingNonio[_ngcontent-%COMP%] .assNonioContentGatingNonio[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #wrapperContentGatingNonio[_ngcontent-%COMP%] .assNonioContentGatingNonio[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#2a2a2a;text-decoration:none;background-color:transparent}#wrapperContentGatingNonio[_ngcontent-%COMP%] .nonio-imgContentGatingNonio[_ngcontent-%COMP%]{height:13px;width:auto;display:inline-block;margin-right:12px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .rs-login[_ngcontent-%COMP%]{text-align:center}#wrapperContentGatingNonio[_ngcontent-%COMP%] .rs-login[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}#wrapperContentGatingNonio[_ngcontent-%COMP%] .rs-login[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;margin:6px 12px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .rs-login[_ngcontent-%COMP%] .iconlogin[_ngcontent-%COMP%]{max-width:none}.loginOnly[_ngcontent-%COMP%] .right-columnContentGatingNonio[_ngcontent-%COMP%]{height:auto;border-radius:6px}.loginOnly[_ngcontent-%COMP%] .left-columnContentGatingNonio[_ngcontent-%COMP%]{display:none}@media (min-width: 800px){#wrapperContentGatingNonio[_ngcontent-%COMP%] .hidedesktopContentGatingNonio[_ngcontent-%COMP%]{display:none}#wrapperContentGatingNonio[_ngcontent-%COMP%] .maskContentGatingNonio[_ngcontent-%COMP%]{height:548px;width:770px;margin-top:calc(50vh - 250px)}#wrapperContentGatingNonio[_ngcontent-%COMP%] .left-columnContentGatingNonio[_ngcontent-%COMP%]{height:530px;width:305px;padding:40px;position:absolute;left:0;top:0;border-radius:6px 0 0 6px;box-sizing:content-box!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] .right-columnContentGatingNonio[_ngcontent-%COMP%]{height:530px;width:305px;padding:40px;position:absolute;right:0;top:0;border-radius:0 6px 6px 0;box-sizing:content-box!important}#wrapperContentGatingNonio[_ngcontent-%COMP%] .h-2ContentGatingNonio[_ngcontent-%COMP%]{margin-top:89px}.loginOnly[_ngcontent-%COMP%] .maskContentGatingNonio[_ngcontent-%COMP%]{width:385px!important;height:auto}.loginOnly[_ngcontent-%COMP%] .right-columnContentGatingNonio[_ngcontent-%COMP%]{border-radius:6px!important}}@media (max-width: 799px){#wrapperContentGatingNonio[_ngcontent-%COMP%] .hidemobileContentGatingNonio[_ngcontent-%COMP%]{display:none}#wrapperContentGatingNonio[_ngcontent-%COMP%] .maskContentGatingNonio[_ngcontent-%COMP%]{width:80%;margin-top:30px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .left-columnContentGatingNonio[_ngcontent-%COMP%]{padding:30px 8% 70px;border-radius:6px 6px 0 0;height:auto}#wrapperContentGatingNonio[_ngcontent-%COMP%] .right-columnContentGatingNonio[_ngcontent-%COMP%]{padding:10px 8%;height:auto}#wrapperContentGatingNonio[_ngcontent-%COMP%] .h-2ContentGatingNonio[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}#wrapperContentGatingNonio[_ngcontent-%COMP%] .assNonioContentGatingNonio[_ngcontent-%COMP%]{width:100%;background-color:#fff}#wrapperContentGatingNonio[_ngcontent-%COMP%] .logotipoContentLoginNonio[_ngcontent-%COMP%]{display:block}.loginOnly[_ngcontent-%COMP%] .maskContentGatingNonio[_ngcontent-%COMP%]{position:static!important;position:initial!important}}@media (max-width: 480px){#wrapperContentGatingNonio[_ngcontent-%COMP%] .maskContentGatingNonio[_ngcontent-%COMP%]{width:90%;margin:15px auto}#wrapperContentGatingNonio[_ngcontent-%COMP%] .left-columnContentGatingNonio[_ngcontent-%COMP%]{border-radius:0}.loginOnly[_ngcontent-%COMP%] .maskContentGatingNonio[_ngcontent-%COMP%]{position:static!important;position:initial!important}}']}),t})();class lU extends Ot{constructor(e,n){super()}schedule(e,n=0){return this}}const xu={setInterval(...t){const{delegate:e}=xu;return((null==e?void 0:e.setInterval)||setInterval)(...t)},clearInterval(t){const{delegate:e}=xu;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0};class da{constructor(e,n=da.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}}da.now=dh.now;const gw=new class extends da{constructor(e,n=da.now){super(e,n),this.actions=[],this._active=!1,this._scheduled=void 0}flush(e){const{actions:n}=this;if(this._active)return void n.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}}(class extends lU{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(o,this.id,n),this}requestAsyncId(e,n,r=0){return xu.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;xu.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let o,r=!1;try{this.work(e)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,ha(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}}),dU=gw;function mw(t,e){return e?n=>ru(e.pipe(Co(1),Je((t,e)=>{t.subscribe(new qe(e,Oi))})),n.pipe(mw(t))):Be((n,r)=>t(n,r).pipe(Co(1),function(t){return V(()=>t)}(n)))}function Vr(t,e=gw){const n=function(t=0,e,n=dU){let r=-1;return null!=e&&(Fp(e)?n=e:r=e),new ve(o=>{let i=function(t){return t instanceof Date&&!isNaN(t)}(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(t,e);return mw(()=>n)}function mU(t,e){if(1&t&&I(0,"img",13),2&t){const n=F();en("alt","logo ",n.siteName,""),T("src",n.logoUrl,it)}}function _U(t,e){1&t&&(h(0,"div",24),v(1,"O email que introduziu \xe9 inv\xe1lido."),p())}function yU(t,e){if(1&t&&(h(0,"div",25),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.errorMessage," ")}}function vU(t,e){if(1&t&&(h(0,"div",25),v(1," O email que utilizou n\xe3o se encontra registado. Clique "),h(2,"a",26),v(3,"aqui"),p(),v(4," para efetuar o registo. "),p()),2&t){const n=F(2);E(2),en("href","/#/iol/register-user?new=",n.email,"",it)}}function CU(t,e){if(1&t&&(h(0,"div",27),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.successMessage," ")}}function bU(t,e){if(1&t){const n=Xt();h(0,"form",14),H("ngSubmit",function(){return Ie(n),F().submitForm()}),h(1,"div",15),h(2,"p"),v(3,"Por favor indique o seu email para recuperar a sua password."),p(),h(4,"div",16),I(5,"input",17),x(6,_U,2,0,"div",18),p(),h(7,"div",16),I(8,"input",19),p(),x(9,yU,2,1,"div",20),x(10,vU,5,1,"div",20),x(11,CU,2,1,"div",21),p(),h(12,"p",22),h(13,"a",23),v(14,"Regressar ao login"),p(),p(),p()}if(2&t){const n=F();T("formGroup",n.formGroup),E(6),T("ngIf",!n.formGroup.controls.email.valid&&n.formGroup.controls.email.touched),E(2),T("disabled",!n.formGroup.valid||n.isBusy),E(1),T("ngIf",n.errorMessage&&""!==n.errorMessage),E(1),T("ngIf",!n.errorMessage&&n.showIolErrorMessage),E(1),T("ngIf",n.successMessage&&""!==n.successMessage)}}function DU(t,e){if(1&t&&(h(0,"div",25),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.errorMessage," ")}}function EU(t,e){if(1&t&&(h(0,"div",15),h(1,"h3"),v(2,"Estamos a validar o seu pedido..."),p(),x(3,DU,2,1,"div",20),p()),2&t){const n=F();E(3),T("ngIf",n.errorMessage&&""!==n.errorMessage)}}function wU(t,e){1&t&&(h(0,"div",33),v(1,"A password que introduziu \xe9 inv\xe1lida. "),p())}function IU(t,e){1&t&&(h(0,"div",33),v(1,"A password que introduziu n\xe3o coincide. "),p())}function TU(t,e){if(1&t&&(h(0,"div",25),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.errorMessage," ")}}function AU(t,e){if(1&t&&(h(0,"div",27),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.successMessage," ")}}function MU(t,e){if(1&t){const n=Xt();h(0,"form",14),H("ngSubmit",function(){return Ie(n),F().submitForm()}),h(1,"div",15),h(2,"div",28),I(3,"input",29),x(4,wU,2,0,"div",30),p(),h(5,"div",16),I(6,"input",31),x(7,IU,2,0,"div",30),p(),h(8,"div",16),I(9,"input",32),p(),x(10,TU,2,1,"div",20),x(11,AU,2,1,"div",21),p(),p()}if(2&t){const n=F();T("formGroup",n.formGroup),E(4),T("ngIf",!n.formGroup.controls.password.valid&&n.formGroup.controls.password.touched),E(3),T("ngIf",n.formGroup.controls.passwordAgain.touched&&!n.formGroup.controls.passwordAgain.valid||!n.formGroup.controls.password.valid&&n.formGroup.controls.password.touched),E(2),T("disabled",!n.formGroup.valid||n.isBusy),E(1),T("ngIf",n.errorMessage&&""!==n.errorMessage),E(1),T("ngIf",n.successMessage&&""!==n.successMessage)}}let NU=(()=>{class t{constructor(n,r,o,i,s){this.formBuilder=n,this.auth=r,this.barService=o,this.router=i,this.route=s,this.uiContext=-1,this.showIolErrorMessage=!1,this.successMessage=null,this.errorMessage=null,this.feedbackMessageTimeout=3e3,this.isBusy=!1,this.email="",this.token=null,this.baseUrl=me.baseUrl,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||"",this.route.queryParams.subscribe(a=>{"token"in a?(this.uiContext=1,this.token=a.token,this.validateRecoverToken(a.token)):-1===this.uiContext&&("email"in a&&(this.email=a.email),this.uiContext=0),this.createForm(0)})}ngOnInit(){-1===this.uiContext&&(this.uiContext=0)}submitForm(){switch(this.showIolErrorMessage=!1,this.errorMessage=null,this.successMessage=null,this.isBusy=!0,this.uiContext){case 0:this.email=this.formGroup.value.email,this.email&&this.barService.requestNewPassword(this.email).subscribe(n=>{this.successMessage=t.MSG_SEND_RECOVER_LINK_SUCCESS,this.isBusy=!0},n=>{n&&n.error&&"403047"===n.error.error?(this.errorMessage=null,this.showIolErrorMessage=!0):this.errorMessage=t.MSG_SEND_RECOVER_LINK_FAILED,this.isBusy=!1});break;case 1:break;case 2:this.token&&this.barService.createNewPassword(this.formGroup.value.password,this.token).subscribe(n=>{this.isBusy=!0,this.successMessage=t.MSG_PASS_CREATION_SUCCESS,k(null).pipe(Vr(this.feedbackMessageTimeout)).subscribe(r=>{this.router.navigate(["iol/login"])})},n=>{this.errorMessage=t.MSG_PASS_CREATION_FAILED,this.isBusy=!0})}}createForm(n){this.formGroup=this.formBuilder.group({email:[this.email,P.compose([P.required,P.email])]}),2===n&&(this.formGroup=this.formBuilder.group({password:[null,P.compose([P.required,P.minLength(8)])],passwordAgain:[null,P.compose([P.required,P.minLength(8),this.passwordsMustMatch()])]}))}passwordsMustMatch(){return n=>{let r="";const o=n.root;return o&&o.controls&&(r=o.controls.password.value),n.value===r?null:{passwordsMismatch:!0}}}validateRecoverToken(n){this.barService.validateRecoverPasswordRequest(n).subscribe(r=>{this.errorMessage=null,this.successMessage=null,this.isBusy=!1,this.createForm(2),this.uiContext=2},r=>{this.errorMessage=t.MSG_TOKEN_VALIDATION_FAILED})}}return t.MSG_PASS_CREATION_SUCCESS="A sua password foi alterada com sucesso.",t.MSG_PASS_CREATION_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.MSG_TOKEN_VALIDATION_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.MSG_SEND_RECOVER_LINK_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.MSG_SEND_RECOVER_LINK_SUCCESS="Consulte o seu email para prosseguir com a recupera\xe7\xe3o da sua password.",t.\u0275fac=function(n){return new(n||t)(D(ca),D(S),D(A),D(Ue),D(fr))},t.\u0275cmp=At({type:t,selectors:[["app-recover-password"]],decls:18,vars:4,consts:[["id","nonio-basiclogin",1,"nonio-modal"],[1,"nonio-container"],[1,"nonio-media"],[3,"src","alt",4,"ngIf"],[1,"nonio-intro"],[1,"mt-0"],[3,"formGroup","ngSubmit",4,"ngIf"],["class","nonio-info",4,"ngIf"],[1,"nonio-about","fz-9"],["src","https://cdn.iol.pt/BarraIOL/images/nonio_logo-k.png","alt","logo nonio",1,"nonio-img"],["href","https://nonio.net","target","_blank"],["routerLink","/","routerLinkActive","active",1,"nonio-modal-close"],[1,"bicon-close"],[3,"src","alt"],[3,"formGroup","ngSubmit"],[1,"nonio-info"],[1,"biol-form-group"],["formControlName","email","type","email","id","biol-nonio-register-email","aria-describedby","emailHelp","placeholder","EMAIL",1,"biol-form-item"],["id","biol-nonio-email-error","class","form-text text-error fz-8",4,"ngIf"],["type","submit","value","Enviar",1,"biol-btn","biol-btn-block","biol-btn-primary",3,"disabled"],["class","feedback bg-error",4,"ngIf"],["class","feedback bg-success",4,"ngIf"],[1,"mb-2","mt-2"],["routerLink","/iol/login","routerLinkActive","active"],["id","biol-nonio-email-error",1,"form-text","text-error","fz-8"],[1,"feedback","bg-error"],[2,"text-decoration","underline","color","white",3,"href"],[1,"feedback","bg-success"],[1,"biol-form-group","mt-2"],["formControlName","password","type","password","id","biol-nonio-password-new","placeholder","NOVA PASSWORD",1,"biol-form-item","biol-form-password"],["id","biol-nonio-password-error","class","form-text text-error fz-8",4,"ngIf"],["formControlName","passwordAgain","type","password","id","biol-nonio-password-new2","placeholder","CONFIRMAR PASSWORD",1,"biol-form-item","biol-form-password"],["type","submit","value","OK",1,"biol-btn","biol-btn-login","nonio-btn-primary",3,"disabled"],["id","biol-nonio-password-error",1,"form-text","text-error","fz-8"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"div",1),h(2,"div",2),x(3,mU,1,2,"img",3),p(),h(4,"div",4),h(5,"h2",5),v(6,"Recuperar password"),p(),p(),x(7,bU,15,6,"form",6),x(8,EU,4,1,"div",7),x(9,MU,12,6,"form",6),I(10,"hr"),h(11,"div",8),I(12,"img",9),h(13,"p"),h(14,"a",10),v(15,"Saiba mais em nonio.net"),p(),p(),p(),h(16,"a",11),I(17,"i",12),p(),p(),p()),2&n&&(E(3),T("ngIf",r.logoUrl),E(4),T("ngIf",0===r.uiContext),E(1),T("ngIf",1===r.uiContext),E(1),T("ngIf",2===r.uiContext))},directives:[Tn,Nn,hr,Mi,Ti,Lr,pr,_o,vo],styles:[""]}),t})();function SU(t,e){if(1&t&&I(0,"img",55),2&t){const n=F(2);en("alt","logo ",n.siteName,""),T("src",n.logoUrl,it)}}function RU(t,e){1&t&&(h(0,"div",56),v(1,"O nome ou apelido que introduziu \xe9 inv\xe1lido."),p())}function OU(t,e){1&t&&(h(0,"div",56),v(1,"O email que introduziu \xe9 inv\xe1lido."),p())}function xU(t,e){1&t&&(h(0,"div",57),v(1,"A password que introduziu \xe9 inv\xe1lida."),p())}function PU(t,e){1&t&&(h(0,"div",56),v(1,"A data de nascimento que introduziu \xe9 inv\xe1lida."),p())}function kU(t,e){if(1&t&&(h(0,"div",58),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.errorMessage," ")}}function FU(t,e){if(1&t&&(h(0,"div",58),v(1," O email que utilizou j\xe1 existe. Clique "),h(2,"a",59),v(3,"aqui"),p(),v(4," para recuperar a password. "),p()),2&t){const n=F(2);E(2),en("href","/#/iol/recover-password?email=",n.email,"",it)}}function LU(t,e){if(1&t){const n=Xt();h(0,"div",2),h(1,"form",3),H("ngSubmit",function(){Ie(n);const o=F();return o.submitForm(o.formGroup.value)}),h(2,"div",4),h(3,"div",5),x(4,SU,1,2,"img",6),p(),h(5,"h2"),v(6,"ACEDA COM"),p(),h(7,"div",7),h(8,"a",8),H("click",function(){return Ie(n),F().loginWithFacebook()}),I(9,"img",9),h(10,"span"),v(11,"Login com Facebook"),p(),p(),h(12,"a",8),H("click",function(){return Ie(n),F().loginWithGoogle()}),I(13,"img",10),h(14,"span"),v(15,"Login com Google"),p(),p(),p(),I(16,"hr"),h(17,"h2",11),v(18,"Ou Novo Registo"),p(),h(19,"div",12),h(20,"div",13),I(21,"input",14),p(),h(22,"div",13),I(23,"input",15),p(),p(),x(24,RU,2,0,"div",16),h(25,"div",17),I(26,"input",18),x(27,OU,2,0,"div",16),p(),h(28,"div",17),I(29,"input",19),p(),h(30,"div",17),I(31,"input",20),x(32,xU,2,0,"div",21),p(),h(33,"div",22),h(34,"label",23),v(35,"G\xe9nero"),p(),p(),h(36,"div",17),h(37,"div",24),I(38,"input",25),h(39,"label",26),v(40,"Homem"),p(),I(41,"input",27),h(42,"label",28),v(43,"Mulher"),p(),p(),p(),h(44,"div",22),h(45,"label",23),v(46,"Data de nascimento"),p(),p(),h(47,"div",12),h(48,"div",13),h(49,"input",29),H("change",function(){return Ie(n),F().resetBirthDateValidation()}),p(),p(),h(50,"div",13),h(51,"input",30),H("change",function(){return Ie(n),F().resetBirthDateValidation()}),p(),p(),h(52,"div",13),h(53,"input",31),H("change",function(){return Ie(n),F().resetBirthDateValidation()}),p(),p(),p(),x(54,PU,2,0,"div",16),h(55,"p",32),v(56,"O servi\xe7o N\xf3nio permite-lhe aceder, com um s\xf3 registo, a todos os "),h(57,"a",33),v(58," websites dos associados"),p(),v(59," e a conte\xfados personalizados. Para poder beneficiar deste servi\xe7o precisamos que nos preste a sua autoriza\xe7\xe3o nos termos seguintes:"),p(),h(60,"div",24),I(61,"input",34,35),h(63,"label",36),v(64,"Li, compreendi e aceito os "),h(65,"a",37),v(66,"Termos e Condi\xe7\xf5es"),p(),v(67," e a "),h(68,"a",38),v(69,"Pol\xedtica de Privacidade"),p(),v(70," NONIO "),p(),p(),h(71,"div",24),I(72,"input",39,40),h(74,"label",41),v(75,"Autorizo a recolha e comunica\xe7\xe3o dos meus dados pessoais \xe0 "),h(76,"a",42),v(77,"Plataforma de Media Privados (N\xf3nio)"),p(),v(78," e seus Associados, e o tratamento pela NONIO dos dados associados \xe0 minha experi\xeancia de navega\xe7\xe3o, para poder beneficiar do registo \xfanico e conte\xfados e campanhas personalizados da NONIO, seus Associados e Parceiros (Servi\xe7o N\xf3nio)"),p(),p(),h(79,"div",43),I(80,"input",44),p(),x(81,kU,2,1,"div",45),x(82,FU,5,1,"div",45),h(83,"p",46),h(84,"a",47),v(85,"Regressar ao login"),p(),p(),I(86,"hr"),h(87,"div",48),h(88,"p"),v(89,"O sistema de login "),h(90,"a",49),v(91,"NONIO"),p(),v(92," permite, com o mesmo email e password, o acesso aos principais sites nacionais. "),p(),I(93,"img",50),h(94,"p"),h(95,"a",51),v(96,"Pol\xedtica de privacidade"),p(),h(97,"a",52),v(98,"Saiba mais em nonio.net"),p(),p(),p(),h(99,"a",53),I(100,"i",54),p(),p(),p(),p()}if(2&t){const n=Dd(62),r=Dd(73),o=F();E(1),T("formGroup",o.formGroup),E(3),T("ngIf",o.logoUrl),E(20),T("ngIf",!o.formGroup.controls.firstName.valid&&o.formGroup.controls.firstName.touched||!o.formGroup.controls.lastName.valid&&o.formGroup.controls.lastName.touched),E(3),T("ngIf",!o.formGroup.controls.email.valid&&o.formGroup.controls.email.touched),E(5),T("ngIf",o.formGroup.controls.passwordAgain.touched&&!o.formGroup.controls.passwordAgain.valid||!o.formGroup.controls.password.valid&&o.formGroup.controls.password.touched),E(22),T("ngIf",o.invalidBirthDate||!o.formGroup.controls.birthDay.valid&&o.formGroup.controls.birthDay.touched||!o.formGroup.controls.birthMonth.valid&&o.formGroup.controls.birthMonth.touched||!o.formGroup.controls.birthYear.valid&&o.formGroup.controls.birthYear.touched),E(26),Ar("value",o.buttonTitle),T("disabled",!o.formGroup.valid||!n.checked||!r.checked||o.isBusy),E(1),T("ngIf",o.errorMessage&&""!==o.errorMessage),E(1),T("ngIf",!o.errorMessage&&o.showAttemptReRegistrationErrorMessage)}}function VU(t,e){if(1&t){const n=Xt();h(0,"a",67),H("click",function(){return Ie(n),F(2).resendActivationLink()}),v(1,"Reenviar email de registo"),p()}}function UU(t,e){if(1&t&&(h(0,"div",58),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.errorMessage," ")}}function BU(t,e){if(1&t&&(h(0,"div",60),h(1,"div",4),h(2,"div",5),I(3,"img",55),p(),h(4,"h2",61),v(5,"Novo Registo"),p(),h(6,"h3",62),v(7),p(),h(8,"p",63),v(9,"Ir\xe1 receber no email uma mensagem com um link para "),h(10,"b"),v(11,"ativar e concluir o seu registo"),p(),p(),h(12,"h3"),v(13,"N\xe3o recebeu o email?"),p(),h(14,"p",64),v(15,"Verifique na sua caixa de spam uma mensagem de "),h(16,"b"),v(17,"registo@nonio.net"),p(),p(),x(18,VU,2,0,"a",65),x(19,UU,2,1,"div",45),h(20,"p",66),h(21,"a",47),v(22,"Regressar ao login"),p(),p(),I(23,"hr"),h(24,"div",48),I(25,"img",50),h(26,"p"),h(27,"a",49),v(28,"Saiba mais em nonio.net"),p(),p(),p(),h(29,"a",53),I(30,"i",54),p(),p(),p()),2&t){const n=F();E(3),en("alt","logo ",n.siteName,""),T("src",n.logoUrl,it),E(4),Gt(n.registrationMessage),E(11),T("ngIf",n.email&&""!==n.email),E(1),T("ngIf",n.errorMessage&&""!==n.errorMessage)}}function jU(t,e){1&t&&(h(0,"h3"),v(1,"Estamos a ativar a sua conta..."),p())}function HU(t,e){1&t&&(h(0,"h3",62),v(1,"A sua conta foi ativada com sucesso."),p())}function GU(t,e){1&t&&(h(0,"h3",72),v(1,"N\xe3o foi poss\xedvel ativar a sua conta."),p())}function $U(t,e){1&t&&(h(0,"p",64),v(1,"Se copiou a liga\xe7\xe3o para o seu browser certifique-se que inseriu a liga\xe7\xe3o completa."),p())}function zU(t,e){if(1&t&&(h(0,"div",60),h(1,"div",4),h(2,"div",5),I(3,"img",55),p(),h(4,"h2",61),v(5,"Ativa\xe7\xe3o do Registo"),p(),x(6,jU,2,0,"h3",68),x(7,HU,2,0,"h3",69),x(8,GU,2,0,"h3",70),x(9,$U,2,0,"p",71),I(10,"hr"),h(11,"div",48),I(12,"img",50),h(13,"p"),h(14,"a",49),v(15,"Saiba mais em nonio.net"),p(),p(),p(),h(16,"a",53),I(17,"i",54),p(),p(),p()),2&t){const n=F();E(3),en("alt","logo ",n.siteName,""),T("src",n.logoUrl,it),E(3),T("ngIf",0===n.uiActivationStatus),E(1),T("ngIf",1===n.uiActivationStatus),E(1),T("ngIf",2===n.uiActivationStatus),E(1),T("ngIf",2===n.uiActivationStatus)}}let qU=(()=>{class t{constructor(n,r,o,i,s){this.formBuilder=n,this.barService=r,this.route=o,this.router=i,this.auth=s,this.referrer=null,this.registrationMessage="Registo efetuado com sucesso.",this.newEmail="",this.buttonTitle=t.DEFAULT_BUTTON_TITLE,this.errorMessage=null,this.showAttemptReRegistrationErrorMessage=!1,this.isBusy=!1,this.invalidBirthDate=!1,this.uiContext=-1,this.uiActivationStatus=-1,this.route.queryParams.subscribe(a=>{"token"in a?(this.uiContext=2,this.activateAccount(a.token)):"email"in a?this.isEmailValid(a.email)?(this.uiContext=1,this.registrationMessage="Precisamos que verifique o seu email para concluir o registo",this.email=a.email):this.uiContext=0:-1===this.uiContext&&(this.uiContext=0),0===this.uiContext&&"new"in a&&this.isEmailValid(a.new)&&(this.newEmail=a.new)}),this.baseUrl=me.baseUrl,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||"",this.referrer=document.referrer,this.createForm()}createForm(){this.formGroup=this.formBuilder.group({email:[this.newEmail,P.compose([P.required,P.pattern(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)])],password:["",P.compose([P.required,P.minLength(8)])],passwordAgain:["",P.compose([P.required,P.minLength(8),this.passwordsMustMatch()])],acceptTerms:[!1],acceptDataHandlingTerms:[!1],birthDay:["",P.compose([P.required,P.min(1),P.max(31)])],birthMonth:["",P.compose([P.required,P.min(1),P.max(12)])],birthYear:["",P.compose([P.required,P.min(1920),P.max(2007)])],firstName:["",P.compose([P.required,P.minLength(2)])],lastName:["",P.compose([P.required,P.minLength(2)])],gender:"m"})}ngOnInit(){-1===this.uiContext&&(this.uiContext=0)}passwordsMustMatch(){return n=>{let r="";const o=n.root;return o&&o.controls&&(r=o.controls.password.value),n.value===r?null:{passwordsMismatch:!0}}}submitForm(n){if(this.errorMessage=null,this.invalidBirthDate=!1,this.formGroup.controls.acceptTerms.value&&this.formGroup.controls.acceptDataHandlingTerms.value){this.email=n.email;const r=this.formGroup.controls.birthYear.value;let o=this.formGroup.controls.birthMonth.value,i=this.formGroup.controls.birthDay.value;if(1===o.length&&(o="0"+o),1===i.length&&(i="0"+i),!this.isDateValid(i,o,r))return void(this.invalidBirthDate=!0);const s=`${r}-${o}-${i}`,a=new Date(Date.parse(s)),l=new Date(Date.now()-a.getTime());if(Math.abs(l.getUTCFullYear()-1970)<13)return this.errorMessage="Por ainda n\xe3o ter completado 13 anos n\xe3o poder\xe1 prosseguir com o registo",void k(null).pipe(Vr(8e3)).subscribe(d=>{this.errorMessage=null});const c={currentPath:document.referrer,email:n.email,firstName:n.firstName,lastName:n.lastName,name:n.firstName+" "+n.lastName,password:n.password,originUrl:document.referrer,gender:n.gender,birthdate:s};this.isBusy=!0,this.buttonTitle="Aguarde...",this.barService.registerUser(c).subscribe(d=>{this.showAttemptReRegistrationErrorMessage=!1,this.isBusy=!1,this.invalidBirthDate=!1,this.buttonTitle=t.DEFAULT_BUTTON_TITLE,this.uiContext=1},d=>{this.isBusy=!1,this.invalidBirthDate=!1,this.buttonTitle=t.DEFAULT_BUTTON_TITLE,d&&d.error&&400003===d.error.errorCode?(this.errorMessage=null,this.showAttemptReRegistrationErrorMessage=!0):this.errorMessage=t.MSG_REGISTER_USER_FAILED})}}resendActivationLink(){this.email&&this.barService.resendActivationEmail(this.email).subscribe(n=>{n&&(this.email=null)},n=>{this.errorMessage="N\xe3o nos foi poss\xedvel processar o seu pedido"})}activateAccount(n){this.barService.activateUserRegistration(n).subscribe(r=>{r?window.location.href=r:this.uiActivationStatus=1},r=>{this.uiActivationStatus=2})}loginWithFacebook(){this.errorMessage=null,this.isBusy=!0,this.auth.loginUsingFacebook().subscribe(n=>{this.isBusy=!1,this.shouldNavigateBackToToReferrer()&&this.referrer?window.location.href=this.referrer:this.router.navigate(["/"])},n=>{this.isBusy=!1,this.errorMessage=t.MSG_SOCIAL_AUTH_FAILED})}loginWithGoogle(){this.errorMessage=null,this.isBusy=!0,this.auth.loginUsingGoogle().subscribe(n=>{this.isBusy=!1,this.shouldNavigateBackToToReferrer()&&this.referrer?window.location.href=this.referrer:this.router.navigate(["/"])},n=>{this.isBusy=!1,this.errorMessage=t.MSG_SOCIAL_AUTH_FAILED})}resetBirthDateValidation(){this.invalidBirthDate=!1}isEmailValid(n){return!!/^\w+([\.\+-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(n)}shouldNavigateBackToToReferrer(){return!(!this.referrer||""===this.referrer||-1!==this.referrer.indexOf("/#/")||-1===this.referrer.indexOf(window.location.host)||this.referrer===window.location.href.replace(window.location.hash,""))}isDateValid(n,r,o){try{const i=new Date(o,r-1,n,0,0,0,0),s=i.getMonth()+1,a=i.getDate(),l=i.getFullYear();return s===r&&l===o&&a===n}catch(i){return!1}}padZeros(n,r){const o=r-n.toString().length+1;return Array(+(o>0&&o)).join("0")+n}}return t.MSG_REGISTER_USER_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.MSG_SOCIAL_AUTH_FAILED="Ocorreu um erro a executar a sua autentica\xe7\xe3o.",t.DEFAULT_BUTTON_TITLE="Registar",t.\u0275fac=function(n){return new(n||t)(D(ca),D(A),D(fr),D(Ue),D(S))},t.\u0275cmp=At({type:t,selectors:[["app-register-user"]],decls:3,vars:3,consts:[["id","nonio-register","class","nonio-modal",4,"ngIf"],["id","nonio-register-success","class","nonio-modal",4,"ngIf"],["id","nonio-register",1,"nonio-modal"],[3,"formGroup","ngSubmit"],[1,"nonio-container"],[1,"nonio-media"],[3,"src","alt",4,"ngIf"],[1,"biol-form-group","rs-login"],["href","javascript:void(0)",1,"biol-btn-login",3,"click"],["alt","Login com Facebook","width","40","src","https://cdn.iol.pt/BarraIOL/dist/assets/images/f.svg",1,"iconlogin"],["alt","Login com Google","width","40","src","https://cdn.iol.pt/BarraIOL/dist/assets/images/g.svg",1,"iconlogin"],[1,"mt-0",2,"line-height","200%"],[1,"biol-form-row","biol-row"],[1,"biol-form-group","biol-col"],["formControlName","firstName","type","text","id","biol-user-name","aria-describedby","emailHelp","placeholder","Nome","autocomplete","given-name",1,"biol-form-item"],["formControlName","lastName","type","text","id","biol-last-name","aria-describedby","emailHelp","placeholder","Apelido","autocomplete","family-name",1,"biol-form-item"],["id","biol-nonio-email-error","class","form-text text-error fz-8",4,"ngIf"],[1,"biol-form-group"],["formControlName","email","type","email","id","biol-nonio-register-email","aria-describedby","emailHelp","placeholder","EMAIL","autocomplete","email",1,"biol-form-item"],["formControlName","password","type","password","id","biol-nonio-register-password","placeholder","PASSWORD",1,"biol-form-item","biol-form-password"],["formControlName","passwordAgain","type","password","id","biol-nonio-register-password2","placeholder","CONFIRME PASSWORD",1,"biol-form-item","biol-form-password"],["id","biol-nonio-password-error","class","form-text text-error fz-8",4,"ngIf"],[1,"biol-form-group","mb-0","label-input"],["for","biol-user-birth"],[1,"biol-form-check"],["id","radio-homem","type","radio","name","gender","value","m","formControlName","gender"],["for","radio-homem"],["id","radio-mulher","type","radio","name","gender","value","f","formControlName","gender"],["for","radio-mulher"],["type","number","min","1","max","31","id","biol-user-bday","placeholder","dia","formControlName","birthDay",1,"biol-form-item",3,"change"],["type","number","min","1","max","12","id","biol-user-bmonth","placeholder","m\xeas","formControlName","birthMonth",1,"biol-form-item",3,"change"],["type","number","min","1930","max","2006","id","biol-user-byear","placeholder","ano","formControlName","birthYear",1,"biol-form-item",3,"change"],[1,"fz-9","taj"],["href","https://nonio.net/#entidades","target","_blank"],["type","checkbox","name","aceito","id","aceito","formControlName","acceptTerms"],["acceptTerms",""],["for","aceito",1,"label-sm","taj"],["href","https://nonio.net/termos-condicoes/","target","_blank"],["href","https://nonio.net/politica-de-privacidade/","target","_blank"],["type","checkbox","name","aceito-dados","id","aceito-dados","formControlName","acceptDataHandlingTerms"],["acceptDataHandlingTerms",""],["for","aceito-dados",1,"label-sm","taj"],["href","https://nonio.net/","target","_blank"],[1,"biol-form-group","mt-1"],["type","submit",1,"biol-btn","biol-btn-block","biol-btn-primary",3,"value","disabled"],["class","feedback bg-error",4,"ngIf"],[1,"mb-2"],["routerLink","/iol/login","routerLinkActive","active"],[1,"nonio-about","fz-9"],["href","https://nonio.net","target","_blank"],["src","https://cdn.iol.pt/BarraIOL/images/nonio_logo-k.png","alt","logo nonio",1,"nonio-img"],["href","https://nonio.net/politica-de-privacidade/","target","_blank",1,"fl_l"],["href","https://nonio.net","target","_blank",1,"fl_r"],["routerLink","/","routerLinkActive","active",1,"nonio-modal-close"],[1,"bicon-close"],[3,"src","alt"],["id","biol-nonio-email-error",1,"form-text","text-error","fz-8"],["id","biol-nonio-password-error",1,"form-text","text-error","fz-8"],[1,"feedback","bg-error"],[2,"text-decoration","underline","color","white",3,"href"],["id","nonio-register-success",1,"nonio-modal"],[1,"mt-0"],[1,"text-success"],[1,""],[1,"fz-9"],["href","javascript:void(0)","class","biol-btn biol-btn-block nonio-btn-primary",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],["href","javascript:void(0)",1,"biol-btn","biol-btn-block","nonio-btn-primary",3,"click"],[4,"ngIf"],["class","text-success",4,"ngIf"],["class","text-error",4,"ngIf"],["class","fz-9",4,"ngIf"],[1,"text-error"]],template:function(n,r){1&n&&(x(0,LU,101,10,"div",0),x(1,BU,31,5,"div",1),x(2,zU,18,6,"div",1)),2&n&&(T("ngIf",0===r.uiContext),E(1),T("ngIf",1===r.uiContext),E(1),T("ngIf",2===r.uiContext))},directives:[Tn,Mi,Ti,Lr,pr,_o,vo,Su,ua,la,aa,bu,Nn,hr],styles:[""]}),t})();function WU(t,e){1&t&&(h(0,"div",22),v(1,"A password que introduziu \xe9 inv\xe1lida. "),p())}function KU(t,e){1&t&&(h(0,"div",22),v(1,"A password que introduziu \xe9 inv\xe1lida. "),p())}function QU(t,e){1&t&&(h(0,"div",22),v(1,"A nova password que introduziu n\xe3o coincide. "),p())}function YU(t,e){if(1&t&&(h(0,"div",23),v(1),p()),2&t){const n=F();E(1),st(" ",n.errorMessage," ")}}function ZU(t,e){if(1&t&&(h(0,"div",24),v(1),p()),2&t){const n=F();E(1),st(" ",n.successMessage," ")}}let JU=(()=>{class t{constructor(n,r,o){this.formBuilder=n,this.barService=r,this.router=o,this.errorMessage=null,this.successMessage=null,this.feedbackMessageTimeout=1500,this.isBusy=!1,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||"",this.baseUrl=me.baseUrl,this.createForm()}ngOnInit(){this.loadData()}submitForm(){this.errorMessage=null,this.successMessage=null;const n=this.prepareToSave();this.isBusy=!0,this.barService.changePassword(n.password,n.newPassword).subscribe(r=>{this.isBusy=!1,this.successMessage=t.MSG_CHANGE_PWD_SUCCESS,k(null).pipe(Vr(this.feedbackMessageTimeout)).subscribe(o=>{this.router.navigate(["/"])})},r=>{this.isBusy=!1,this.errorMessage=t.MSG_CHANGE_PWD_FAILED})}passwordsMustMatch(){return n=>{let r="";const o=n.root;return o&&o.controls&&(r=o.controls.newPassword.value),n.value===r?null:{passwordsMismatch:!0}}}createForm(){this.formGroup=this.formBuilder.group({password:[null,P.compose([P.required])],newPassword:[null,P.compose([P.required,P.minLength(8)])],newPasswordAgain:[null,P.compose([P.required,P.minLength(8),this.passwordsMustMatch()])]})}loadData(){this.formGroup.setValue({password:"",newPassword:"",newPasswordAgain:""})}prepareToSave(){const n=this.formGroup.value;return{password:n.password,newPassword:n.newPassword,newPasswordAgain:n.newPasswordAgain}}}return t.MSG_CHANGE_PWD_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.MSG_CHANGE_PWD_SUCCESS="A sua password foi alterada com sucesso.",t.\u0275fac=function(n){return new(n||t)(D(ca),D(A),D(Ue))},t.\u0275cmp=At({type:t,selectors:[["app-change-password"]],decls:35,vars:7,consts:[["id","nonio-basiclogin",1,"nonio-modal"],[3,"formGroup","ngSubmit"],[1,"nonio-container"],[1,"nonio-intro"],[1,"mt-0"],[1,"nonio-info"],[1,"biol-form-group"],["formControlName","password","type","password","id","biol-nonio-password","placeholder","PASSWORD ACTUAL",1,"biol-form-item","biol-form-password"],["id","biol-nonio-password-error","class","form-text text-error fz-8",4,"ngIf"],[1,"biol-form-group","mt-2"],["formControlName","newPassword","type","password","id","biol-nonio-password-new","placeholder","NOVA PASSWORD",1,"biol-form-item","biol-form-password"],["formControlName","newPasswordAgain","type","password","id","biol-nonio-password-new2","placeholder","NOVA PASSWORD",1,"biol-form-item","biol-form-password"],["type","submit","value","Alterar Password",1,"biol-btn","biol-btn-block","biol-btn-primary",3,"disabled"],["class","feedback bg-error",4,"ngIf"],["class","feedback bg-success",4,"ngIf"],[1,"nonio-about","fz-9"],["href","https://nonio.net","target","_blank"],["src","https://cdn.iol.pt/BarraIOL/images/nonio_logo-k.png","alt","logo nonio",1,"nonio-img"],["href","https://nonio.net/politica-de-privacidade/","target","_blank",1,"fl_l"],["href","https://nonio.net","target","_blank",1,"fl_r"],["routerLink","/","routerLinkActive","active",1,"nonio-modal-close"],[1,"bicon-close"],["id","biol-nonio-password-error",1,"form-text","text-error","fz-8"],[1,"feedback","bg-error"],[1,"feedback","bg-success"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"form",1),H("ngSubmit",function(){return r.submitForm()}),h(2,"div",2),h(3,"div",3),h(4,"h2",4),v(5,"Alterar Password"),p(),p(),h(6,"div",5),h(7,"div",6),I(8,"input",7),x(9,WU,2,0,"div",8),p(),h(10,"div",9),I(11,"input",10),x(12,KU,2,0,"div",8),p(),h(13,"div",6),I(14,"input",11),x(15,QU,2,0,"div",8),p(),h(16,"div",6),I(17,"input",12),p(),x(18,YU,2,1,"div",13),x(19,ZU,2,1,"div",14),p(),I(20,"hr"),h(21,"div",15),h(22,"p"),v(23,"O sistema de login "),h(24,"a",16),v(25,"NONIO"),p(),v(26," permite, com o mesmo email e password, o acesso aos principais sites nacionais. "),p(),I(27,"img",17),h(28,"p"),h(29,"a",18),v(30,"Pol\xedtica de privacidade"),p(),h(31,"a",19),v(32,"Saiba mais em nonio.net"),p(),p(),p(),h(33,"a",20),I(34,"i",21),p(),p(),p(),p()),2&n&&(E(1),T("formGroup",r.formGroup),E(8),T("ngIf",!r.formGroup.controls.password.valid&&r.formGroup.controls.password.touched),E(3),T("ngIf",!r.formGroup.controls.newPassword.valid&&r.formGroup.controls.newPassword.touched),E(3),T("ngIf",r.formGroup.controls.newPasswordAgain.touched&&!r.formGroup.controls.newPasswordAgain.valid||!r.formGroup.controls.newPassword.valid&&r.formGroup.controls.newPassword.touched),E(2),T("disabled",!r.formGroup.valid||r.isBusy),E(1),T("ngIf",r.errorMessage&&""!==r.errorMessage),E(1),T("ngIf",r.successMessage&&""!==r.successMessage))},directives:[Mi,Ti,Lr,pr,_o,vo,Tn,Nn,hr],styles:[""]}),t})();function XU(t,e){if(1&t){const n=Xt();h(0,"li",19),h(1,"a",6),H("click",function(){return Ie(n),F().selectTab(3)}),I(2,"i",20),h(3,"span",8),v(4,"Recupera\xe7\xe3o palavra-chave"),p(),p(),p()}2&t&&tn("biol-active",3===F().tabIndex)}function e3(t,e){1&t&&I(0,"img",69),2&t&&T("src",F(2).userProfile.profilePicture,it)}function t3(t,e){1&t&&(h(0,"a",70),v(1,"Alterar palavra-chave"),p())}function n3(t,e){if(1&t&&(h(0,"option",71),v(1),p()),2&t){const n=e.$implicit;Ar("value",n.id),E(1),Gt(n.name)}}function r3(t,e){if(1&t&&(h(0,"option",71),v(1),p()),2&t){const n=e.$implicit;Ar("value",n.code),E(1),Gt(n.name)}}function o3(t,e){if(1&t&&(h(0,"div",72),v(1),p()),2&t){const n=F(2);E(1),Gt(n.errorMessage)}}function i3(t,e){if(1&t&&(h(0,"div",73),v(1),p()),2&t){const n=F(2);E(1),Gt(n.successMessage)}}function s3(t,e){if(1&t){const n=Xt();h(0,"div",21),h(1,"a",22),h(2,"input",23),H("change",function(o){return Ie(n),F().uploadPicture(o)}),p(),x(3,e3,1,1,"img",24),h(4,"div",25),v(5,"Alterar Foto"),p(),p(),h(6,"div",26),h(7,"label",27),v(8,"Email"),p(),I(9,"input",28),x(10,t3,2,0,"a",29),p(),h(11,"div",30),h(12,"div",31),h(13,"label",32),v(14,"Nome"),p(),I(15,"input",33),p(),h(16,"div",31),h(17,"label",34),v(18,"Apelido"),p(),I(19,"input",35),p(),p(),h(20,"div",36),h(21,"label",37),v(22,"Data de nascimento"),p(),p(),h(23,"div",30),h(24,"div",31),I(25,"input",38),p(),h(26,"div",31),I(27,"input",39),p(),h(28,"div",31),I(29,"input",40),p(),p(),h(30,"div",26),h(31,"div",41),I(32,"input",42),h(33,"label",43),v(34,"Homem"),p(),I(35,"input",44),h(36,"label",45),v(37,"Mulher"),p(),p(),p(),h(38,"div",26),h(39,"label",46),v(40,"Clube desportivo Liga NOS "),h(41,"span"),v(42,"(opcional)"),p(),p(),h(43,"select",47),I(44,"option",48),x(45,n3,2,2,"option",49),p(),p(),h(46,"div",26),h(47,"label",50),v(48,"Pa\xeds "),h(49,"span"),v(50,"(opcional)"),p(),p(),h(51,"select",51),I(52,"option",52),x(53,r3,2,2,"option",49),p(),p(),h(54,"div",26),h(55,"label",53),v(56,"Concelho "),h(57,"span"),v(58,"(opcional)"),p(),p(),I(59,"input",54),p(),h(60,"div",26),h(61,"label",55),v(62,"Morada "),h(63,"span"),v(64,"(opcional)"),p(),p(),I(65,"textarea",56),p(),h(66,"div",36),h(67,"label",27),v(68,"C\xf3digo Postal "),h(69,"span"),v(70,"(opcional)"),p(),p(),p(),h(71,"div",30),h(72,"div",31),I(73,"input",57),p(),h(74,"div",31),I(75,"input",58),p(),h(76,"div",31),I(77,"input",59),p(),p(),h(78,"div",26),h(79,"label",60),v(80,"Telem\xf3vel "),h(81,"span"),v(82,"(opcional)"),p(),p(),I(83,"input",61),p(),h(84,"div",26),h(85,"label",62),v(86,"Telefone fixo "),h(87,"span"),v(88,"(opcional)"),p(),p(),I(89,"input",63),p(),I(90,"input",64),x(91,o3,2,1,"div",65),x(92,i3,2,1,"div",66),I(93,"hr"),h(94,"a",67),H("click",function(){return Ie(n),F().signOut()}),v(95,"Logout"),p(),h(96,"a",68),v(97,"Apagar conta"),p(),p()}if(2&t){const n=F();E(3),T("ngIf",n.userProfile.profilePicture),E(7),T("ngIf",n.isIOLAccount),E(35),T("ngForOf",n.teams),E(8),T("ngForOf",n.countries),E(37),T("disabled",!n.formGroup.valid||n.isBusy),E(1),T("ngIf",n.errorMessage&&""!==n.errorMessage),E(1),T("ngIf",n.successMessage&&""!==n.successMessage)}}function a3(t,e){if(1&t&&(h(0,"div",72),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.errorMessage," ")}}function l3(t,e){if(1&t&&(h(0,"div",73),v(1),p()),2&t){const n=F(2);E(1),st(" ",n.successMessage," ")}}function u3(t,e){if(1&t&&(h(0,"div",74),h(1,"div",41),I(2,"input",75),h(3,"label",76),v(4,"Desejo receber comunica\xe7\xf5es de marketing por e-mail ou atrav\xe9s de outro meio eletr\xf3nico identificado na pol\xedtica de privacidade\n"),p(),p(),h(5,"div",41),I(6,"input",77),h(7,"label",78),v(8,"Desejo receber comunica\xe7\xf5es de marketing de empresas parceiras do Grupo Media Capital por e-mail ou atrav\xe9s de outro meio eletr\xf3nico identificado na pol\xedtica de privacidade\n"),p(),p(),h(9,"div",26),I(10,"input",79),p(),x(11,a3,2,1,"div",65),x(12,l3,2,1,"div",66),p()),2&t){const n=F();E(10),T("disabled",n.isBusy),E(1),T("ngIf",n.errorMessage&&""!==n.errorMessage),E(1),T("ngIf",n.successMessage&&""!==n.successMessage)}}function c3(t,e){if(1&t){const n=Xt();h(0,"div",80),h(1,"form",13),H("ngSubmit",function(){Ie(n);const o=F();return o.submitForm(o.formGroup.value)}),h(2,"div",26),h(3,"label",81),v(4,"PUK "),h(5,"span"),v(6,"C\xf3digo de recupera\xe7\xe3o"),p(),p(),I(7,"input",82),p(),h(8,"div",26),h(9,"label",81),v(10,"Email alternativo"),p(),I(11,"input",83),p(),h(12,"div",26),I(13,"input",84),p(),p(),p()}if(2&t){const n=F();E(1),T("formGroup",n.formGroup),E(12),T("disabled",!n.formGroup.valid||n.isBusy)}}let d3=(()=>{class t{constructor(n,r,o,i){this.formBuilder=n,this.auth=r,this.barService=o,this.changeDetector=i,this.isIOLAccount=!1,this.userProfile={},this.successMessage=null,this.errorMessage=null,this.feedbackMessageTimeout=3e3,this.isBusy=!1,this.tabIndex=0,this.tabIndex=0,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||"",this.isIOLAccount=this.auth.isLocalAccount(),this.createForm(),this.selectTab(0)}ngOnInit(){this.barService.getTeams().subscribe(n=>{this.teams=n},n=>{}),this.barService.getCountries().subscribe(n=>{this.countries=n},n=>{}),this.barService.getUserProfileData().subscribe(n=>{this.userProfile=n,this.loadData(),this.changeDetector.detectChanges()},n=>{})}submitForm(n){this.errorMessage=null,this.successMessage=null;const r=this.prepareToSave();switch(this.tabIndex){case 0:case 1:this.isBusy=!0,this.barService.setUserProfileData(r).subscribe(o=>{0===this.tabIndex&&r.name&&this.updateUserDataFromProfileData(r),this.isBusy=!1,this.successMessage=t.MSG_UPDATE_PROFILE_SUCCESS,k(null).pipe(Vr(this.feedbackMessageTimeout)).subscribe(i=>{this.successMessage=null})},o=>{this.isBusy=!1,this.errorMessage=t.MSG_UPDATE_PROFILE_FAILED});break;case 3:r.alternativeEmail&&this.barService.requestNewPassword(r.alternativeEmail).subscribe()}}uploadPicture(n){if(n&&n.target.files&&n.target.files.length>0){const r=n.target.files[0];r.size<3145728?this.barService.setUserPicture(r).subscribe(o=>{this.barService.getUserProfileData().subscribe(i=>{this.userProfile=i,this.loadData(),this.changeDetector.detectChanges()},i=>{})},o=>{this.errorMessage="N\xe3o nos foi poss\xedvel atualizar a imagem.",k(null).pipe(Vr(this.feedbackMessageTimeout)).subscribe(i=>{this.errorMessage=null})}):(this.errorMessage="O tamanho da imagem \xe9 demasiado grande.",k(null).pipe(Vr(this.feedbackMessageTimeout)).subscribe(o=>{this.errorMessage=null}))}}signOut(){this.barService.setContentGatingValue(0),this.auth.signOut()}selectTab(n){this.errorMessage=null,this.successMessage=null,this.tabIndex=n}createForm(){this.formGroup=this.formBuilder.group({email:new yo({value:"",disabled:!0}),name:"",firstName:["",P.compose([P.required,P.minLength(1)])],lastName:["",P.compose([P.required,P.minLength(1)])],birthDay:["",P.compose([P.min(1),P.max(31)])],birthMonth:["",P.compose([P.min(1),P.max(12)])],birthYear:["",P.compose([P.min(1900),P.max(2005)])],gender:"",team:"",country:"PT",city:"",address:"",zipCodeMajor:"",zipCodeMinor:"",zipCodeLocale:"",mobile:"",phone:"",acceptOwnAdvertising:!1,acceptPartnersAdvertising:!1,puk:"",alternativeEmail:""})}loadData(){if(this.userProfile){let n=null,r=null,o=null;if(this.userProfile.birthdate){const i=new Date(this.userProfile.birthdate);i&&(n=i.getDate(),r=i.getMonth()+1,o=i.getFullYear())}this.formGroup.setValue({email:this.userProfile.email,name:this.userProfile.name,firstName:this.userProfile.firstName,lastName:this.userProfile.lastName,birthDay:n,birthMonth:r,birthYear:o,gender:this.userProfile.gender,team:this.userProfile.preferredTeam,country:this.userProfile.country?this.userProfile.country.code:"PT",city:this.userProfile.city,address:this.userProfile.address,zipCodeMajor:this.userProfile.zipCodeMajor,zipCodeMinor:this.userProfile.zipCodeMinor,zipCodeLocale:this.userProfile.zipCodeLocale,mobile:this.userProfile.mobile,phone:this.userProfile.phone,acceptOwnAdvertising:"yes"===this.userProfile.acceptOwnAdvertising,acceptPartnersAdvertising:"yes"===this.userProfile.acceptPartnersAdvertising,puk:this.userProfile.puk,alternativeEmail:""}),this.updateUserDataFromProfileData(this.userProfile)}}updateUserDataFromProfileData(n){const r=this.auth.getLoggedUser();r&&(r.displayName=n.name||r.displayName,r.firstName=n.firstName||r.firstName,r.lastName=n.lastName||r.lastName,n.profilePicture&&(r.avatarUrl=n.profilePicture),this.auth.updateCachedUserData(r))}prepareToSave(){const n=this.formGroup.value;let r=null;switch(this.tabIndex){case 0:let o="";return n.birthDay&&""!==n.birthDay&&n.birthMonth&&""!==n.birthMonth&&n.birthYear&&""!==n.birthYear&&(o=n.birthYear+"-"+n.birthMonth+"-"+n.birthDay),r={email:this.userProfile.email,name:n.firstName+" "+n.lastName,firstName:n.firstName,lastName:n.lastName,phone:n.phone,mobile:n.mobile,zipCodeLocale:n.zipCodeLocale,zipCodeMinor:n.zipCodeMinor,zipCodeMajor:n.zipCodeMajor,address:n.address,city:n.city,preferredTeam:n.team,birthdate:o,gender:n.gender,countryIso:n.country,source:"user"},r;case 1:return r={email:this.userProfile.email,acceptOwnAdvertising:n.acceptOwnAdvertising?"yes":"no",acceptPartnersAdvertising:n.acceptPartnersAdvertising?"yes":"no"},r;case 3:return r={email:this.userProfile.email,alternativeEmail:n.alternativeEmail},r;default:throw Error("IOL error: Unknown tab state transition")}}}return t.MSG_UPDATE_PROFILE_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.MSG_UPDATE_PROFILE_SUCCESS="As suas altera\xe7\xf5es foram guardadas com sucesso.",t.\u0275fac=function(n){return new(n||t)(D(ca),D(S),D(A),D(Ts))},t.\u0275cmp=At({type:t,selectors:[["app-user-area"]],decls:22,vars:9,consts:[["id","biol-userarea",1,"nonio-modal"],[1,"biol-container"],[1,"biol-row"],[1,"biol-sidebar"],[1,"biol-nav","biol-tabs"],["data-tab","biol-tab-dadospessoais"],["href","javascript:void(0);",3,"click"],[1,"bicon-person"],[1,"biol-d-md-none"],["data-tab","biol-tab-notificacoes"],["href","javascript:void(0);","id","a-notificacoes",3,"click"],[1,"bicon-notifications"],["data-tab","biol-tab-recuperacao",3,"biol-active",4,"ngIf"],[3,"formGroup","ngSubmit"],["id","biol-tab-dadospessoais","class","biol-col biol-pd-10",4,"ngIf"],["id","biol-tab-notificacoes","class","biol-col biol-pd-10",4,"ngIf"],["id","biol-tab-recuperacao","class","biol-col biol-pd-10",4,"ngIf"],["routerLink","/","routerLinkActive","active",1,"nonio-modal-close"],[1,"bicon-close"],["data-tab","biol-tab-recuperacao"],[1,"bicon-lock","bicon-unlock-hover"],["id","biol-tab-dadospessoais",1,"biol-col","biol-pd-10"],["href","javascript:void(0);","title","Alterar foto","onclick","javascript:__iolpu.click()",1,"biol-pickavatar"],["id","__iolpu","type","file","accept",".jpg,.jpeg,.png,.gif",2,"position","absolute","top","-100px","opacity","0","-moz-opacity","0",3,"change"],["alt","avatar",3,"src",4,"ngIf"],[1,"biol-alterar-photo"],[1,"biol-form-group"],["for","biol-user-email"],["formControlName","email","type","text","id","biol-user-email","autocomplete","email",1,"biol-form-item"],["routerLink","/iol/change-password","routerLinkActive","active","class","btn btn-link fz-9 fl-r",4,"ngIf"],[1,"biol-form-row","biol-row"],[1,"biol-form-group","biol-col"],["for","biol-user-fname"],["formControlName","firstName","type","text","id","biol-user-fname","aria-describedby","emailHelp","placeholder","Introduza o seu nome","autocomplete","given-name",1,"biol-form-item"],["for","biol-user-lname"],["formControlName","lastName","type","text","id","biol-user-lname","aria-describedby","emailHelp","placeholder","Introduza o seu apelido","autocomplete","family-name",1,"biol-form-item"],[1,"biol-form-group","mb-0"],["for","biol-user-birth"],["type","number","min","1","max","31","id","biol-user-bday","placeholder","dia","formControlName","birthDay",1,"biol-form-item"],["type","number","min","1","max","12","id","biol-user-bmonth","placeholder","m\xeas","formControlName","birthMonth",1,"biol-form-item"],["type","number","min","1930","max","2005","id","biol-user-byear","placeholder","ano","formControlName","birthYear",1,"biol-form-item"],[1,"biol-form-check"],["id","radio-homem","type","radio","name","gender","value","m","formControlName","gender"],["for","radio-homem"],["id","radio-mulher","type","radio","name","gender","value","f","formControlName","gender"],["for","radio-mulher"],["for","biol-user-clube"],["type","text","id","biol-user-clube","formControlName","team",1,"biol-form-item"],["value","-1"],[3,"value",4,"ngFor","ngForOf"],["for","biol-user-pais"],["type","text","id","biol-user-clube","formControlName","country","autocomplete","country-name",1,"biol-form-item"],["value",""],["for","biol-user-concelho"],["formControlName","city","type","text","id","biol-user-concelho",1,"biol-form-item"],["for","biol-user-address"],["formControlName","address","autocomplete","street-address"],["formControlName","zipCodeMajor","type","number","maxlength","4","max","9999","id","biol-user-cp1",1,"biol-form-item"],["formControlName","zipCodeMinor","type","number","maxlength","3","max","999","id","biol-user-cp2",1,"biol-form-item"],["formControlName","zipCodeLocale","type","text","id","biol-user-cp3",1,"biol-form-item"],["for","biol-user-mobile"],["formControlName","mobile","type","text","id","biol-user-mobile","autocomplete","tel",1,"biol-form-item"],["for","biol-user-phone"],["formControlName","phone","type","text","id","biol-user-phone","autocomplete","tel",1,"biol-form-item"],["type","submit","value","Gravar altera\xe7\xf5es",1,"biol-btn","biol-btn-block","biol-btn-primary","mt-2","mb-2",3,"disabled"],["class","feedback bg-error",4,"ngIf"],["class","feedback bg-success",4,"ngIf"],["href","javascript:void(0);",1,"biol-btn","biol-btn-default","mt-2","mb-2",3,"click"],["routerLink","/iol/close-account","routerLinkActive","active",1,"biol-btn","mt-3","fz-9","apagar"],["alt","avatar",3,"src"],["routerLink","/iol/change-password","routerLinkActive","active",1,"btn","btn-link","fz-9","fl-r"],[3,"value"],[1,"feedback","bg-error"],[1,"feedback","bg-success"],["id","biol-tab-notificacoes",1,"biol-col","biol-pd-10"],["id","mkt-1","name","mkt-1","type","checkbox","formControlName","acceptOwnAdvertising"],["for","mkt-1"],["id","mkt-2","name","mkt-2","type","checkbox","formControlName","acceptPartnersAdvertising"],["for","mkt-2"],["type","submit","value","Gravar altera\xe7\xf5es",1,"biol-btn","biol-btn-block","biol-btn-primary",3,"disabled"],["id","biol-tab-recuperacao",1,"biol-col","biol-pd-10"],["for",""],["type","text","value","234567SE","disabled","","formControlName","puk",1,"biol-form-item"],["type","text","formControlName","alternativeEmail",1,"biol-form-item"],["type","submit","value","Recuperar",1,"biol-btn","biol-btn-block","biol-btn-primary",3,"disabled"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"div",1),h(2,"div",2),h(3,"div",3),h(4,"ul",4),h(5,"li",5),h(6,"a",6),H("click",function(){return r.selectTab(0)}),I(7,"i",7),h(8,"span",8),v(9,"Dados Pessoais"),p(),p(),p(),h(10,"li",9),h(11,"a",10),H("click",function(){return r.selectTab(1)}),I(12,"i",11),h(13,"span",8),v(14,"Notifica\xe7\xf5es"),p(),p(),p(),x(15,XU,5,2,"li",12),p(),p(),h(16,"form",13),H("ngSubmit",function(){return r.submitForm(r.formGroup.value)}),x(17,s3,98,7,"div",14),x(18,u3,13,3,"div",15),p(),x(19,c3,14,2,"div",16),p(),h(20,"a",17),I(21,"i",18),p(),p(),p()),2&n&&(E(5),tn("biol-active",0===r.tabIndex),E(5),tn("biol-active",1===r.tabIndex),E(5),T("ngIf",!1),E(1),T("formGroup",r.formGroup),E(1),T("ngIf",0===r.tabIndex),E(1),T("ngIf",1===r.tabIndex),E(1),T("ngIf",!1))},directives:[Tn,Mi,Ti,Lr,Nn,hr,pr,_o,vo,ua,la,aa,Su,Ru,nw,ow,Yf,lp,bu],styles:[""]}),t})();function f3(t,e){1&t&&I(0,"app-login",1),2&t&&Ar("gating",!0)}let _w=(()=>{class t{constructor(n){this.barService=n,this.gatingActive=!1,this.barService.shouldBlockContent().then(r=>{if(this.gatingActive=r,this.gatingActive&&window.iol&&window.iol.onGating)try{window.iol.onGating()}catch(o){console.error(o)}})}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)(D(A))},t.\u0275cmp=At({type:t,selectors:[["app-blank"]],decls:1,vars:1,consts:[[3,"gating",4,"ngIf"],[3,"gating"]],template:function(n,r){1&n&&x(0,f3,1,1,"app-login",0),2&n&&T("ngIf",r.gatingActive)},directives:[Tn,pw],styles:[""]}),t})();function h3(t,e){if(1&t&&I(0,"img",13),2&t){const n=F();en("alt","logo ",n.siteName,""),T("src",n.logoUrl,it)}}function p3(t,e){if(1&t&&(h(0,"a",16),v(1),p()),2&t){const n=F(2);E(1),Gt(n.errorLinkText)}}function g3(t,e){if(1&t&&(h(0,"div",14),v(1),x(2,p3,2,1,"a",15),p()),2&t){const n=F();E(1),st(" ",n.errorMessage," "),E(1),T("ngIf",n.errorLinkText)}}function _3(t,e){if(1&t&&I(0,"img",32),2&t){const n=F();en("alt","logo ",n.siteName,""),T("src",n.logoUrl,it)}}function y3(t,e){if(1&t&&(h(0,"div",33),v(1),p()),2&t){const n=F();E(1),Gt(n.errorMessage)}}function C3(t,e){if(1&t&&I(0,"img",14),2&t){const n=F();en("alt","logo ",n.siteName,""),T("src",n.logoUrl,it)}}const b3=[{path:"",component:_w},{path:"iol/login",component:pw},{path:"iol/recover-password",component:NU},{path:"recover",redirectTo:"iol/recover-password"},{path:"iol/register-user",component:qU},{path:"register",redirectTo:"iol/register-user"},{path:"iol/must-verify",redirectTo:"iol/register-user"},{path:"iol/change-password",component:JU,canActivate:[Ou]},{path:"iol/user-area",component:d3,canActivate:[Ou]},{path:"iol/close-account",component:(()=>{class t{constructor(n,r){this.barService=n,this.auth=r,this.errorMessage=null,this.errorLinkText=null,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||"",this.baseUrl=me.baseUrl}ngOnInit(){}closeAccount(){this.barService.closeUserAccount().subscribe(n=>{this.auth.signOut()},n=>{var r,o,i;if(n&&403===n.status)switch(n.error.errorCode){case 101:const s="\xe1rea de subscri\xe7\xe3o.";this.errorMessage=(null===(i=null===(o=null===(r=n.error)||void 0===r?void 0:r.errorMessage)||void 0===o?void 0:o.toLowerCase())||void 0===i?void 0:i.replace(s,""))||t.MSG_CLOSE_ACCOUNT_FAILED,this.errorMessage&&this.errorMessage.indexOf(s)<0&&(this.errorLinkText=s);break;case 102:this.errorMessage=n.error.errorMessage||t.MSG_CLOSE_ACCOUNT_FAILED;break;default:this.errorMessage=t.MSG_CLOSE_ACCOUNT_FAILED}else this.errorMessage=t.MSG_CLOSE_ACCOUNT_FAILED})}}return t.MSG_CLOSE_ACCOUNT_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.\u0275fac=function(n){return new(n||t)(D(A),D(S))},t.\u0275cmp=At({type:t,selectors:[["app-close-account"]],decls:19,vars:2,consts:[["id","nonio-basiclogin",1,"nonio-modal"],[1,"nonio-container"],[1,"nonio-media"],[3,"src","alt",4,"ngIf"],[1,"nonio-intro"],[1,"mt-0"],[1,"nonio-info"],[1,"biol-form-group","mt-3"],["type","submit","value","Sim, quero apagar a conta",1,"biol-btn","biol-btn-block","biol-btn-danger","mb-1",3,"click"],["routerLink","/","routerLinkActive","active",1,"biol-btn","biol-btn-login","nonio-btn-default"],["class","feedback bg-error",4,"ngIf"],["routerLink","/","routerLinkActive","active",1,"nonio-modal-close"],[1,"bicon-close"],[3,"src","alt"],[1,"feedback","bg-error"],["class","errorLink","href","https://tviplayer.iol.pt/subscricao",4,"ngIf"],["href","https://tviplayer.iol.pt/subscricao",1,"errorLink"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"div",1),h(2,"div",2),x(3,h3,1,2,"img",3),p(),h(4,"div",4),h(5,"h2",5),v(6,"Apagar conta"),p(),p(),h(7,"div",6),h(8,"p"),v(9,"Tem a certeza que deseja apagar a sua conta?"),p(),h(10,"p"),v(11,"Depois de apagar a sua conta, n\xe3o poder\xe1 entrar mais nela e os seus dados n\xe3o estar\xe3o mais acess\xedveis. "),p(),h(12,"div",7),h(13,"input",8),H("click",function(){return r.closeAccount()}),p(),h(14,"a",9),v(15,"N\xe3o, quero manter a minha conta"),p(),p(),x(16,g3,3,2,"div",10),p(),h(17,"a",11),I(18,"i",12),p(),p(),p()),2&n&&(E(3),T("ngIf",r.logoUrl),E(13),T("ngIf",r.errorMessage&&""!==r.errorMessage))},directives:[Tn,Nn,hr],styles:[".errorLink[_ngcontent-%COMP%]{text-decoration:underline!important;color:#fff!important}"]}),t})(),canActivate:[Ou]},{path:"iol/accept-terms",component:(()=>{class t{constructor(n,r,o){this.barService=n,this.auth=r,this.router=o,this.errorMessage=null,this.isBusy=!1,this.acceptNONIODataHandlingTerms=!1,this.acceptNONIOTerms=!1,this.isMale=!0,this.birthDay=null,this.birthMonth=null,this.birthYear=null,this.firstName=null,this.lastName=null,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||""}ngOnInit(){const n=this.auth.getLoggedUser();if(n&&(this.firstName=n.firstName,this.lastName=n.lastName,this.isMale="m"===n.gender,n.birthDate)){const r=new Date(n.birthDate);r&&(this.birthDay=r.getDate(),this.birthMonth=r.getMonth()+1,this.birthYear=r.getFullYear())}}accept(){this.isBusy=!0,this.errorMessage=null;const n=new Date,r=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`,o=this.isMale?"m":"f";if(!this.birthYear||!this.birthMonth||!this.birthDay)return this.errorMessage="A data de nascimento n\xe3o \xe9 v\xe1lida.",void k(null).pipe(Vr(5e3)).subscribe(c=>{this.errorMessage=null});const i=new Date(this.birthYear,this.birthMonth-1,this.birthDay),s=new Date(Date.now()-i.getTime());if(Math.abs(s.getUTCFullYear()-1970)<13)return this.errorMessage="Por ainda n\xe3o ter completado 13 anos n\xe3o poder\xe1 prosseguir com o registo",void k(null).pipe(Vr(8e3)).subscribe(c=>{this.errorMessage=null});const l=this.birthYear+"-"+this.birthMonth+"-"+this.birthDay,u=this.auth.getLoggedUser();u&&this.barService.setUserProfileData({firstName:this.firstName||"",lastName:this.lastName||"",name:this.firstName+" "+this.lastName,email:u.userName,nonioDataHandling:r,nonioTermsDate:r,refreshGigya:!0,birthdate:l,gender:o,provider:u.provider,source:"user"}).subscribe(c=>{this.errorMessage=null,u.acceptedTerms=!0,u.firstName=this.firstName||u.firstName,u.lastName=this.lastName||u.lastName,u.displayName=u.firstName+" "+u.lastName,u.birthDate=l,u.gender=o,this.auth.updateCachedUserData(u),this.auth.getAccessToken().subscribe(d=>{const f=this.auth.getCachedRefreshToken();if(f){const g=JSON.parse(this.auth.decodeRefreshToken(f));if(g&&!g.isVerified)return this.auth.signOut(!1),void this.router.navigate(["iol/must-verify"],{queryParams:{email:g.user_name}})}this.auth.setGigyaCookieFromIOLRefreshToken().subscribe(g=>{g&&(this.router.navigate(["/"]),window.setTimeout(()=>window.location.reload(),0))},g=>{})},d=>{})},c=>{this.isBusy=!1,this.errorMessage=t.MSG_ACCEPT_TERMS_FAILED})}dontAccept(){this.auth.signOut()}}return t.MSG_ACCEPT_TERMS_FAILED="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso.",t.MSG_ACCEPT_TERMS_FAILED_DUE_LOGIN="N\xe3o foi poss\xedvel concluir esta opera\xe7\xe3o com sucesso",t.\u0275fac=function(n){return new(n||t)(D(A),D(S),D(Ue))},t.\u0275cmp=At({type:t,selectors:[["app-nonio-terms"]],decls:55,vars:12,consts:[["id","biol-terms",1,"nonio-modal"],[1,"biol-container"],[1,"nonio-media"],[3,"src","alt",4,"ngIf"],[1,"biol-row"],["id","biol-terms",1,"biol-col","biol-pd-10"],[1,"biol-form-group","mb-0"],["for","biol-user-birth"],[1,"biol-form-row","biol-row"],[1,"biol-form-group","biol-col"],["type","text","id","biol-user-fname","aria-describedby","emailHelp","placeholder","Introduza o seu nome","autocomplete","given-name",1,"biol-form-item",3,"ngModel","ngModelChange"],["type","text","id","biol-user-lname","aria-describedby","emailHelp","placeholder","Introduza o seu apelido","autocomplete","family-name",1,"biol-form-item",3,"ngModel","ngModelChange"],["type","number","min","1","max","31","id","biol-user-bday","placeholder","dia",1,"biol-form-item",3,"ngModel","ngModelChange"],["type","number","min","1","max","12","id","biol-user-bmonth","placeholder","m\xeas",1,"biol-form-item",3,"ngModel","ngModelChange"],["type","number","min","1930","max","2005","id","biol-user-byear","placeholder","ano",1,"biol-form-item",3,"ngModel","ngModelChange"],[1,"biol-form-group"],[1,"biol-form-check"],["id","radio-homem","type","radio","name","gender","value","m",3,"checked","change"],["for","radio-homem"],["id","radio-mulher","type","radio","name","gender","value","f",3,"checked","change"],["for","radio-mulher"],["id","mkt-2","name","mkt-2","type","checkbox",3,"checked","change"],["for","mkt-2"],["href","https://nonio.net/termos-condicoes/","target","_blank"],["href","https://nonio.net/politica-de-privacidade/","target","_blank"],["id","mkt-1","name","mkt-1","type","checkbox",3,"checked","change"],["for","mkt-1"],["href","https://nonio.net/","target","_blank"],["type","submit","value","Aceito",1,"biol-btn","biol-btn-block","biol-btn-primary",3,"disabled","click"],["class","feedback bg-error",4,"ngIf"],["href","javascript:void(0);",1,"nonio-modal-close",3,"click"],[1,"bicon-close"],[3,"src","alt"],[1,"feedback","bg-error"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"div",1),h(2,"div",2),x(3,_3,1,2,"img",3),p(),h(4,"div",4),h(5,"div",5),h(6,"div",6),h(7,"label",7),v(8,"Nome"),p(),p(),h(9,"div",8),h(10,"div",9),h(11,"input",10),H("ngModelChange",function(i){return r.firstName=i}),p(),p(),h(12,"div",9),h(13,"input",11),H("ngModelChange",function(i){return r.lastName=i}),p(),p(),p(),h(14,"div",6),h(15,"label",7),v(16,"Data de nascimento"),p(),p(),h(17,"div",8),h(18,"div",9),h(19,"input",12),H("ngModelChange",function(i){return r.birthDay=i}),p(),p(),h(20,"div",9),h(21,"input",13),H("ngModelChange",function(i){return r.birthMonth=i}),p(),p(),h(22,"div",9),h(23,"input",14),H("ngModelChange",function(i){return r.birthYear=i}),p(),p(),p(),h(24,"div",15),h(25,"div",16),h(26,"input",17),H("change",function(){return r.isMale=!r.isMale}),p(),h(27,"label",18),v(28,"Homem"),p(),h(29,"input",19),H("change",function(){return r.isMale=!r.isMale}),p(),h(30,"label",20),v(31,"Mulher"),p(),p(),p(),h(32,"div",16),h(33,"input",21),H("change",function(){return r.acceptNONIOTerms=!r.acceptNONIOTerms}),p(),h(34,"label",22),v(35,"Li, compreendi e aceito os "),h(36,"a",23),v(37,"Termos e Condi\xe7\xf5es"),p(),v(38," e a "),h(39,"a",24),v(40,"Pol\xedtica de Privacidade"),p(),v(41," NONIO"),p(),p(),h(42,"div",16),h(43,"input",25),H("change",function(){return r.acceptNONIODataHandlingTerms=!r.acceptNONIODataHandlingTerms}),p(),h(44,"label",26),v(45,"Autorizo a recolha e comunica\xe7\xe3o dos meus dados pessoais \xe0 "),h(46,"a",27),v(47,"Plataforma de Media Privados (N\xf3nio)"),p(),v(48," e seus Associados, e o tratamento pela NONIO dos dados associados \xe0 minha experi\xeancia de navega\xe7\xe3o, para poder beneficiar do registo \xfanico e conte\xfados e campanhas personalizados da NONIO, seus Associados e Parceiros (Servi\xe7o N\xf3nio)"),p(),p(),I(49,"p"),h(50,"div",15),h(51,"input",28),H("click",function(){return r.accept()}),p(),p(),x(52,y3,2,1,"div",29),p(),p(),h(53,"a",30),H("click",function(){return r.dontAccept()}),I(54,"i",31),p(),p(),p()),2&n&&(E(3),T("ngIf",r.logoUrl),E(8),T("ngModel",r.firstName),E(2),T("ngModel",r.lastName),E(6),T("ngModel",r.birthDay),E(2),T("ngModel",r.birthMonth),E(2),T("ngModel",r.birthYear),E(3),T("checked",r.isMale),E(3),T("checked",!r.isMale),E(4),T("checked",r.acceptNONIOTerms),E(10),T("checked",r.acceptNONIODataHandlingTerms),E(8),T("disabled",!(r.acceptNONIODataHandlingTerms&&r.acceptNONIOTerms&&r.firstName&&r.firstName.length>0&&r.lastName&&r.lastName.length>0&&r.birthDay&&r.birthDay>=1&&r.birthDay<=31&&r.birthMonth&&r.birthMonth>=1&&r.birthMonth<=12&&r.birthYear&&r.birthYear>1930)),E(1),T("ngIf",r.errorMessage&&""!==r.errorMessage))},directives:[Tn,pr,_o,np,ua,la,aa],styles:[""]}),t})()},{path:"iol/about",component:(()=>{class t{constructor(n,r){this.barService=n,this.auth=r,this.logoUrl=this.barService.logoUrl||"",this.siteName=this.barService.siteName||"",this.baseUrl=me.baseUrl,this.version=me.version}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)(D(A),D(S))},t.\u0275cmp=At({type:t,selectors:[["app-about"]],decls:25,vars:2,consts:[["id","nonio-basiclogin",1,"nonio-modal"],[1,"nonio-container"],[1,"nonio-media"],[3,"src","alt",4,"ngIf"],[1,"nonio-intro"],[1,"mt-0"],[1,"nonio-info"],[1,"nonio-about","fz-9"],["href","https://nonio.net","target","_blank"],["src","https://cdn.iol.pt/BarraIOL/images/nonio_logo-k.png","alt","logo nonio",1,"nonio-img"],["href","https://nonio.net/politica-de-privacidade/","target","_blank",1,"fl_l"],["href","https://nonio.net","target","_blank",1,"fl_r"],["routerLink","/","routerLinkActive","active",1,"nonio-modal-close"],[1,"bicon-close"],[3,"src","alt"]],template:function(n,r){1&n&&(h(0,"div",0),h(1,"div",1),h(2,"div",2),x(3,C3,1,2,"img",3),p(),h(4,"div",4),h(5,"h2",5),v(6,"Acerca..."),p(),p(),h(7,"div",6),h(8,"p"),v(9),p(),p(),I(10,"hr"),h(11,"div",7),h(12,"p"),v(13,"O sistema de login "),h(14,"a",8),v(15,"NONIO"),p(),v(16," permite, com o mesmo email e password, o acesso aos principais sites nacionais. "),p(),I(17,"img",9),h(18,"p"),h(19,"a",10),v(20,"Pol\xedtica de privacidade"),p(),h(21,"a",11),v(22,"Saiba mais em nonio.net"),p(),p(),p(),h(23,"a",12),I(24,"i",13),p(),p(),p()),2&n&&(E(3),T("ngIf",r.logoUrl),E(6),st("Vers\xe3o Barra IOL: ",r.version,""))},directives:[Tn,Nn,hr],styles:[""]}),t})()},{path:"**",component:_w}],yw=[{id:eu.PROVIDER_ID,provider:new eu(S.getCurrentClient().google.clientId)},{id:hh.PROVIDER_ID,provider:new hh(S.getCurrentClient().facebook.clientId)}];let D3=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ft({type:t,bootstrap:[u2]}),t.\u0275inj=vt({providers:[A,S,Ou,{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,providers:yw}},{provide:Ll,useValue:"/"}],imports:[[cF,PF,J2,hw,CF,zV.forRoot(b3,{useHash:!0,relativeLinkResolution:"legacy"})]]}),t})();me.production&&function(){if(hC)throw new Error("Cannot enable prod mode after platform setup.");fC=!1}(),lF().bootstrapModule(D3)},147:ye=>{"use strict";ye.exports={i8:"2.3.14"}}},ye=>{ye(ye.s=643)}]);