MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux instance-20230208-1745 6.8.0-1013-oracle #13~22.04.1-Ubuntu SMP Mon Sep 2 13:02:56 UTC 2024 x86_64
  SOFT : Apache/2.4.52 (Ubuntu) PHP : 8.1.2-1ubuntu2.19
/var/www/barra_do_choca/public_html/formulario/
10.0.0.135

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
3rdpartylicenses.txt 13.132 KB -rw-rw-r-- 2021-08-06 15:19 R E G D
favicon.ico 233.061 KB -rw-rw-r-- 2021-08-06 15:19 R E G D
index.html 0.61 KB -rw-rw-r-- 2021-08-06 15:19 R E G D
main.7d991116c50ac68d34bc.js 398.481 KB -rw-rw-r-- 2021-05-25 19:56 R E G D
main.a6d37d41ba0e578f1c45.js 378.103 KB -rw-rw-r-- 2021-08-06 15:19 R E G D
polyfills.00096ed7d93ed26ee6df.js 35.982 KB -rw-rw-r-- 2021-08-06 15:19 R E G D
polyfills.94daefd414b8355106ab.js 35.982 KB -rw-rw-r-- 2021-05-25 19:56 R E G D
runtime.26d884ffb3e235a0cfbc.js 1.462 KB -rw-rw-r-- 2021-08-06 15:19 R E G D
styles.3c13d05acc199962074e.css 145.202 KB -rw-rw-r-- 2021-08-06 15:19 R E G D
REQUEST EXIT
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof c?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=_(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=_(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function _(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new E(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew E(t,e),t})();class E extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function x(t){return t&&"function"==typeof t.schedule}function T(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new A(t,e))}}class A{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new O(t,this.project,this.thisArg))}}class O extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const k=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function N(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[g])return r=t,t=>{const e=r[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(I(t))return k(t);if(N(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[R])return e=t,t=>{const n=e[R]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,r};function j(t,e){return new v(n=>{const r=new h;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function F(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[g]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(N(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(I(t))return j(t,e);if(function(t){return t&&"function"==typeof t[R]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[R](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(D(t))}class M extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class V extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function L(t,e){if(e.closed)return;if(t instanceof v)return t.subscribe(e);let n;try{n=D(t)(e)}catch(r){e.error(r)}return n}function U(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(U((n,r)=>F(t(n,r)).pipe(T((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends V{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t=Number.POSITIVE_INFINITY){return U(y,t)}function $(t,e){return e?j(t,e):new v(k(t))}function B(){return function(t){return t.lift(new G(t))}}class G{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new Q(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class Q extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class W extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new K(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return B()(this)}}const Z=(()=>{const t=W.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class K extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function J(){return new S}function Y(t){for(let e in t)if(t[e]===Y)return e;throw Error("Could not find renamed property on target object.")}function X(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(tt).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 et(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const nt=Y({__forward_ref__:Y});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return tt(this())},t}function st(t){return it(t)?t():t}function it(t){return"function"==typeof t&&t.hasOwnProperty(nt)&&t.__forward_ref__===rt}class ot extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function at(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():at(t)}function ut(t,e){const n=e?` in ${e}`:"";throw new ot("201",`No provider for ${lt(t)} found${n}`)}function ct(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,mt)||pt(t,yt)}function pt(t,e){return t.hasOwnProperty(e)?t[e]:null}function ft(t){return t&&(t.hasOwnProperty(gt)||t.hasOwnProperty(vt))?t[gt]:null}const mt=Y({"\u0275prov":Y}),gt=Y({"\u0275inj":Y}),yt=Y({ngInjectableDef:Y}),vt=Y({ngInjectorDef:Y});var _t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let bt;function wt(t){const e=bt;return bt=t,e}function Ct(t,e,n){const r=dt(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&_t.Optional?null:void 0!==e?e:void ut(tt(t),"Injector")}function St(t){return{toString:t}.toString()}var Et=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),xt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Tt="undefined"!=typeof globalThis&&globalThis,At="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kt="undefined"!=typeof global&&global,Pt=Tt||kt||At||Ot,Rt={},It=[],Nt=[],Dt=Y({"\u0275cmp":Y}),jt=Y({"\u0275dir":Y}),Ft=Y({"\u0275pipe":Y}),Mt=Y({"\u0275mod":Y}),Vt=Y({"\u0275loc":Y}),Lt=Y({"\u0275fac":Y}),Ut=Y({__NG_ELEMENT_ID__:Y});let Ht=0;function zt(t){return St(()=>{const e={},n={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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Et.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Nt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xt.Emulated,id:"c",styles:t.styles||Nt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,i=t.pipes;return n.id+=Ht++,n.inputs=Qt(t.inputs,e),n.outputs=Qt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(qt):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map($t):null,n})}function qt(t){return Zt(t)||function(t){return t[jt]||null}(t)}function $t(t){return function(t){return t[Ft]||null}(t)}const Bt={};function Gt(t){const e={type:t.type,bootstrap:t.bootstrap||Nt,declarations:t.declarations||Nt,imports:t.imports||Nt,exports:t.exports||Nt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&St(()=>{Bt[t.id]=t.type}),e}function Qt(t,e){if(null==t)return Rt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const Wt=zt;function Zt(t){return t[Dt]||null}function Kt(t,e){const n=t[Mt]||null;if(!n&&!0===e)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return n}const Jt=20,Yt=10;function Xt(t){return Array.isArray(t)&&"object"==typeof t[1]}function te(t){return Array.isArray(t)&&!0===t[1]}function ee(t){return 0!=(8&t.flags)}function ne(t){return 2==(2&t.flags)}function re(t){return 1==(1&t.flags)}function se(t){return null!==t.template}function ie(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}class oe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ae(){return le}function le(t){return t.type.prototype.ngOnChanges&&(t.setInput=ce),ue}function ue(){const t=he(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Rt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function ce(t,e,n,r){const s=he(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Rt,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new oe(l&&l.currentValue,e,o===Rt),t[r]=e}function he(t){return t.__ngSimpleChanges__||null}let de;function pe(){return void 0!==de?de:"undefined"!=typeof document?document:void 0}function fe(t){return!!t.listen}ae.ngInherit=!0;const me={createRenderer:(t,e)=>pe()};function ge(t){for(;Array.isArray(t);)t=t[0];return t}function ye(t,e){return ge(e[t])}function ve(t,e){return ge(e[t.index])}function _e(t,e){return t.data[e]}function be(t,e){const n=e[t];return Xt(n)?n:n[0]}function we(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ce(t){return 128==(128&t[2])}function Se(t,e){return null==e?null:t[e]}function Ee(t){t[18]=0}function xe(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 Te={lFrame:We(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ae(){return Te.bindingsEnabled}function Oe(){return Te.lFrame.lView}function ke(){return Te.lFrame.tView}function Pe(t){Te.lFrame.contextLView=t}function Re(){let t=Ie();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ie(){return Te.lFrame.currentTNode}function Ne(t,e){const n=Te.lFrame;n.currentTNode=t,n.isParent=e}function De(){return Te.lFrame.isParent}function je(){Te.lFrame.isParent=!1}function Fe(){return Te.isInCheckNoChangesMode}function Me(t){Te.isInCheckNoChangesMode=t}function Ve(){return Te.lFrame.bindingIndex++}function Le(t){const e=Te.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ue(t,e){const n=Te.lFrame;n.bindingIndex=n.bindingRootIndex=t,He(e)}function He(t){Te.lFrame.currentDirectiveIndex=t}function ze(t){const e=Te.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function qe(t){Te.lFrame.currentQueryIndex=t}function $e(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Be(t,e,n){if(n&_t.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&_t.Host||(r=$e(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=Te.lFrame=Qe();return r.currentTNode=e,r.lView=t,!0}function Ge(t){const e=Qe(),n=t[1];Te.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Qe(){const t=Te.lFrame,e=null===t?null:t.child;return null===e?We(t):e}function We(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 Ze(){const t=Te.lFrame;return Te.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ke=Ze;function Je(){const t=Ze();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 Ye(){return Te.lFrame.selectedIndex}function Xe(t){Te.lFrame.selectedIndex=t}function tn(){const t=Te.lFrame;return _e(t.tView,t.selectedIndex)}function en(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(o)}finally{}}}else try{i.call(o)}finally{}}const ln=-1;class un{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function cn(t,e,n){const r=fe(t);let s=0;for(;se){o=i-1;break}}}for(;i>16,r=e;for(;n>0;)r=r[15],n--;return r}let vn=!0;function _n(t){const e=vn;return vn=t,e}let bn=0;function wn(t,e){const n=Sn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Cn(r.data,t),Cn(e,null),Cn(r.blueprint,null));const s=En(t,e),i=t.injectorIndex;if(mn(s)){const t=gn(s),n=yn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function Cn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Sn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function En(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return ln;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ln}function xn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ut)&&(r=n[Ut]),null==r&&(r=n[Ut]=bn++);const s=255&r;e.data[t+(s>>5)]|=1<=0?255&e:Pn:e}(n);if("function"==typeof i){if(!Be(e,t,r))return r&_t.Host?Tn(s,n,r):An(e,n,r,s);try{const t=i();if(null!=t||r&_t.Optional)return t;ut(n)}finally{Ke()}}else if("number"==typeof i){let s=null,o=Sn(t,e),a=ln,l=r&_t.Host?e[16][6]:null;for((-1===o||r&_t.SkipSelf)&&(a=-1===o?En(t,e):e[o+8],a!==ln&&Dn(r,!1)?(s=e[1],o=gn(a),e=yn(a,e)):o=-1);-1!==o;){const t=e[1];if(Nn(i,o,t.data)){const t=Rn(o,e,n,s,r,l);if(t!==kn)return t}a=e[o+8],a!==ln&&Dn(r,e[1].data[o+8]===l)&&Nn(i,o,e)?(s=t,o=gn(a),e=yn(a,e)):o=-1}}}return An(e,n,r,s)}const kn={};function Pn(){return new jn(Re(),Oe())}function Rn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=function(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,u=i>>20,c=s?a+u:t.directiveEnd;for(let h=r?a:a+u;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&se(t)&&t.type===n)return l}return null}(a,o,n,null==r?ne(a)&&vn:r!=o&&0!=(3&a.type),s&_t.Host&&i===a);return null!==l?In(e,o,l,a):kn}function In(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof un){const o=s;o.resolving&&function(t,e){throw new ot("200",`Circular dependency in DI detected for ${t}`)}(lt(i[n]));const a=_n(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?wt(o.injectImpl):null;Be(t,r,_t.Default);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=e.type.prototype;if(r){const r=le(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&wt(l),_n(a),o.resolving=!1,Ke()}}return s}function Nn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Lt]||Mn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Lt]||Mn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Mn(t){return it(t)?()=>{const e=Mn(st(t));return e&&e()}:ie(t)}const Vn="__parameters__";function Ln(t,e,n){return St(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(Vn)?t[Vn]:Object.defineProperty(t,Vn,{value:[]})[Vn];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Un{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ct({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Hn=new Un("AnalyzeForEntryComponents"),zn=Function;function qn(t,e){t.forEach(t=>Array.isArray(t)?qn(t,e):e(t))}function $n(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Bn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Gn(t,e,n){let r=Wn(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function Qn(t,e){const n=Wn(t,e);if(n>=0)return t[1|n]}function Wn(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}const Zn={},Kn=/\n/gm,Jn="__source",Yn=Y({provide:String,useValue:Y});let Xn;function tr(t){const e=Xn;return Xn=t,e}function er(t,e=_t.Default){if(void 0===Xn)throw new Error("inject() must be called from an injection context");return null===Xn?Ct(t,void 0,e):Xn.get(t,e&_t.Optional?null:void 0,e)}function nr(t,e=_t.Default){return(bt||er)(st(t),e)}function rr(t){const e=[];for(let n=0;n({token:t})),-1),or=sr(Ln("Optional"),8),ar=sr(Ln("SkipSelf"),4);let lr,ur;function cr(t){var e;return(null===(e=function(){if(void 0===lr&&(lr=null,Pt.trustedTypes))try{lr=Pt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return lr}())||void 0===e?void 0:e.createHTML(t))||t}function hr(t){var e;return(null===(e=function(){if(void 0===ur&&(ur=null,Pt.trustedTypes))try{ur=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ur}())||void 0===e?void 0:e.createHTML(t))||t}class dr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class pr extends dr{getTypeName(){return"HTML"}}class fr extends dr{getTypeName(){return"Style"}}class mr extends dr{getTypeName(){return"Script"}}class gr extends dr{getTypeName(){return"URL"}}class yr extends dr{getTypeName(){return"ResourceURL"}}function vr(t){return t instanceof dr?t.changingThisBreaksApplicationSecurity:t}function _r(t,e){const n=br(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 br(t){return t instanceof dr&&t.getTypeName()||null}class wr{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(cr(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Cr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=cr(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=cr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0xr(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ur(o),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ir.hasOwnProperty(e)&&!Or.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Ur(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Vr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Lr=/([^\#-~ |!])/g;function Ur(t){return t.replace(/&/g,"&").replace(Vr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Lr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Hr;function zr(t,e){let n=null;try{Hr=Hr||function(t){const e=new Cr(t);return function(){try{return!!(new window.DOMParser).parseFromString(cr(""),"text/html")}catch(t){return!1}}()?new wr(e):e}(t);let r=e?String(e):"";n=Hr.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Hr.getInertBodyElement(r)}while(r!==i);return cr((new Mr).sanitizeChildren(qr(n)||n))}finally{if(n){const t=qr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function qr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var $r=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Br(t){const e=function(){const t=Oe();return t&&t[12]}();return e?hr(e.sanitize($r.HTML,t)||""):_r(t,"HTML")?hr(vr(t)):zr(pe(),at(t))}function Gr(t){return t.ngDebugContext}function Qr(t){return t.ngOriginalError}function Wr(t,...e){t.error(...e)}class Zr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Wr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Gr(t)?Gr(t):this._findContext(Qr(t)):null}_findOriginalError(t){let e=Qr(t);for(;e&&Qr(e);)e=Qr(e);return e}}function Kr(t,e){t.__ngContext__=e}const Jr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function Yr(t){return t instanceof Function?t():t}var Xr=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function ts(t,e){return(void 0)(t,e)}function es(t){const e=t[3];return te(e)?e[3]:e}function ns(t){return ss(t[13])}function rs(t){return ss(t[4])}function ss(t){for(;null!==t&&!te(t);)t=t[4];return t}function is(t,e,n,r,s){if(null!=r){let i,o=!1;te(r)?i=r:Xt(r)&&(o=!0,r=r[0]);const a=ge(r);0===t&&null!==n?null==s?ds(e,n,a):hs(e,n,a,s||null,!0):1===t&&null!==n?hs(e,n,a,s||null,!0):2===t?function(t,e,n){const r=fs(t,e);r&&function(t,e,n,r){fe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==ge(n)&&is(e,t,r,i,s);for(let o=Yt;o0&&(t[n-1][4]=r[4]);const o=Bn(t,Yt+e);bs(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function us(t,e){if(!(256&e[2])){const n=e[11];fe(n)&&n.destroyNode&&bs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return cs(t[1],t);for(;e;){let n=null;if(Xt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Xt(e)&&cs(e[1],e),e=e[3];null===e&&(e=t),Xt(e)&&cs(e[1],e),n=e&&e[4]}e=n}}(e)}}function cs(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[s=l]():r[s=-l].unsubscribe(),i+=2}else{const t=r[s=n[i+1]];n[i].call(t)}if(null!==r){for(let t=s+1;ti?"":s[c+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Es(e,u,0)||2&r&&u!==t){if(Ps(r))return!1;o=!0}}}}else{if(!o&&!Ps(r)&&!Ps(l))return!1;if(o&&Ps(l))continue;o=!1,r=l|1&r}}return Ps(r)||o}function Ps(t){return 0==(1&t)}function Rs(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||Ps(o)||(e+=Ns(i,s),s=""),r=o,i=i||!Ps(r);n++}return""!==s&&(e+=Ns(i,s)),e}const js={};function Fs(t){Ms(ke(),Oe(),Ye()+t,Fe())}function Ms(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&nn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&rn(e,r,0,n)}Xe(n)}function Vs(t,e){return t<<17|e<<2}function Ls(t){return t>>17&32767}function Us(t){return 2|t}function Hs(t){return(131068&t)>>2}function zs(t,e){return-131069&t|e<<2}function qs(t){return 1|t}function $s(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;rJt&&Ms(t,e,Jt,Fe()),n(r,s)}finally{Xe(i)}}function Ys(t,e,n){if(ee(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(r,s,o)}}function ai(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function li(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ui(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&yi(n)}}function yi(t){for(let n=ns(t);null!==n;n=rs(n))for(let t=Yt;t0&&yi(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&yi(r)}}function vi(t,e){const n=be(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function xi(t){return t[7]||(t[7]=[])}function Ti(t){return t.cleanup||(t.cleanup=[])}function Ai(t,e){const n=t[9],r=n?n.get(Zr,null):null;r&&r.handleError(e)}function Oi(t,e,n,r,s){for(let i=0;ithis.processProvider(n,t,e)),qn([t],t=>this.processInjectorType(t,[],s)),this.records.set(Pi,zi(void 0,this));const i=this.records.get(Ii);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:tt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Zn,n=_t.Default){this.assertNotDestroyed();const r=tr(this);try{if(!(n&_t.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Un)&&dt(t);e=n&&this.injectableDefInScope(n)?zi(Ui(t),Ni):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&_t.Self?Mi():this.parent).get(t,e=n&_t.Optional&&e===Zn?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(tt(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[Jn]&&s.unshift(e[Jn]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=tt(e);if(Array.isArray(e))s=e.map(tt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):tt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Kn,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{tr(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(tt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=st(t)))return!1;let r=ft(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=ft(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{qn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||ji))}}this.injectorDefTypes.add(i);const a=ie(i)||(()=>new i);this.records.set(i,zi(a,Ni));const l=r.providers;if(null!=l&&!o){const e=t;qn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=$i(t=st(t))?t:st(t&&t.provide);const s=function(t,e,n){return qi(t)?zi(void 0,t.useValue):zi(Hi(t),Ni)}(t);if($i(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=zi(void 0,Ni,!0),e.factory=()=>rr(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Ni&&(e.value=Di,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Ui(t){const e=dt(t),n=null!==e?e.factory:ie(t);if(null!==n)return n;if(t instanceof Un)throw new Error(`Token ${tt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function Hi(t,e,n){let r;if($i(t)){const e=st(t);return ie(e)||Ui(e)}if(qi(t))r=()=>st(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...rr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>nr(st(t.useExisting));else{const e=st(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ie(e)||Ui(e);r=()=>new e(...rr(t.deps))}var s;return r}function zi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function qi(t){return null!==t&&"object"==typeof t&&Yn in t}function $i(t){return"function"==typeof t}const Bi=function(t,e,n){return function(t,e=null,n=null,r){const s=Vi(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Gi=(()=>{class t{static create(t,e){return Array.isArray(t)?Bi(t,e,""):Bi(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Zn,t.NULL=new Ri,t.\u0275prov=ct({token:t,providedIn:"any",factory:()=>nr(Pi)}),t.__NG_ELEMENT_ID__=-1,t})();function Qi(t,e){en(we(t)[1],Re())}function Wi(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s;if(se(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=Zi(t.inputs),e.declaredInputs=Zi(t.declaredInputs),e.outputs=Zi(t.outputs);const n=s.hostBindings;n&&Yi(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&Ki(t,i),o&&Ji(t,o),X(t.inputs,s.inputs),X(t.declaredInputs,s.declaredInputs),X(t.outputs,s.outputs),se(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let r=0;r=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=pn(s.hostAttrs,n=pn(n,s.hostAttrs))}}(r)}function Zi(t){return t===Rt?{}:t===Nt?[]:t}function Ki(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Ji(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function Yi(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let Xi=null;function to(){if(!Xi){const t=Pt.Symbol;if(t&&t.iterator)Xi=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ge(t[r.index])).target:r.index;if(fe(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;in?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=bo(r,e,0,i,!1);const t=n.listen(p.name||f,s,i);c.push(i,t),u&&u.push(s,g,m,m+1)}}else i=bo(r,e,0,i,!0),f.addEventListener(s,i,o),c.push(i),u&&u.push(s,g,m,o)}else i=bo(r,e,0,i,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Te.lFrame.contextLView))[8]}(t)}function Co(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?Ls(i):Hs(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];So(t[a],e)&&(l=!0,t[a+1]=r?qs(n):Us(n)),a=r?Ls(n):Hs(n)}l&&(t[n+1]=r?Us(i):qs(i))}function So(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Wn(t,e)>=0}const Eo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xo(t){return t.substring(Eo.key,Eo.keyEnd)}function To(t,e){const n=Eo.textEnd;return n===e?-1:(e=Eo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Eo.key=e,n),Ao(t,e,n))}function Ao(t,e,n){for(;e=0;n=To(e,n))Gn(t,xo(e),!0)}function Io(t,e,n,r){const s=Oe(),i=ke(),o=Le(2);i.firstUpdatePass&&Do(i,t,o,r),e!==js&&ro(s,o,e)&&Mo(i,i.data[Ye()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=tt(vr(t)))),t}(e,n),r,o)}function No(t,e){return e>=t.expandoStartIndex}function Do(t,e,n,r){const s=t.data;if(null===s[n+1]){const i=s[Ye()],o=No(t,n);Uo(i,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const s=ze(t);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=Fo(n=jo(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=jo(s,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Hs(r))return t[Ls(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=jo(null,t,e,n[1],r),n=Fo(n,e.attrs,r),function(t,e,n,r){t[Ls(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(c=!0)}else u=n;if(s)if(0!==l){const e=Ls(t[a+1]);t[r+1]=Vs(e,a),0!==e&&(t[e+1]=zs(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Vs(a,0),0!==a&&(t[a+1]=zs(t[a+1],r)),a=r;else t[r+1]=Vs(l,0),0===a?a=r:t[l+1]=zs(t[l+1],r),l=r;c&&(t[r+1]=Us(t[r+1])),Co(t,u,r,!0),Co(t,u,r,!1),function(t,e,n,r,s){const i=s?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&Wn(i,e)>=0&&(n[r+1]=qs(n[r+1]))}(e,u,t,r,i),o=Vs(a,l),i?e.classBindings=o:e.styleBindings=o}(s,i,e,n,o,r)}}function jo(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,u=null===l;let c=n[s+1];c===js&&(c=u?It:void 0);let h=u?Qn(c,r):l===r?c:void 0;if(i&&!Lo(h)&&(h=Qn(e,r)),Lo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ls(d):Hs(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=Qn(t,r))}return a}function Lo(t){return void 0!==t}function Uo(t,e){return 0!=(t.flags&(e?16:32))}function Ho(t,e=""){const n=Oe(),r=ke(),s=t+Jt,i=r.firstCreatePass?Gs(r,s,1,e,null):r.data[s],o=n[s]=function(t,e){return fe(t)?t.createText(e):t.createTextNode(e)}(n[11],e);ms(r,n,o,i),Ne(i,!1)}function zo(t,e,n){const r=Oe(),s=function(t,e,n,r){return ro(t,Ve(),n)?e+at(n)+r:js}(r,t,e,n);return s!==js&&function(t,e,n){const r=ye(e,t);!function(t,e,n){fe(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,Ye(),s),zo}function qo(t,e,n){const r=Oe();if(ro(r,Ve(),e)){const s=ke(),i=tn();si(s,i,r,t,e,function(t,e,n){return(null===t||se(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}(ze(s.data),i,r),n,!0)}return qo}const $o=void 0;var Bo=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["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"]],$o,[["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"]],$o,[["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}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Go={};function Qo(t){return t in Go||(Go[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),Go[t]}var Wo=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Zo="en-US";let Ko=Zo;function Jo(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ko=t.toLowerCase().replace(/_/g,"-"))}function Yo(t,e,n,r,s){if(t=st(t),Array.isArray(t))for(let i=0;i>20;if($i(t)||!t.multi){const r=new un(l,s,oo),p=ea(a,e,s?c:c+d,h);-1===p?(xn(wn(u,o),i,a),Xo(i,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=ea(a,e,c+d,h),f=ea(a,e,c,c+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){xn(wn(u,o),i,a);const c=function(t,e,n,r,s){const i=new un(t,n,oo);return i.multi=[],i.index=e,i.componentProviders=0,ta(i,s,r&&!n),i}(s?ra:na,n.length,s,r,l);!s&&g&&(n[f].providerFactory=c),Xo(i,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(c),o.push(c)}else Xo(i,t,p>-1?p:f,ta(n[s?f:p],l,!s&&r));!s&&r&&g&&n[f].componentProviders++}}}function Xo(t,e,n,r){const s=$i(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function ta(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ea(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=ke();if(r.firstCreatePass){const s=se(t);Yo(n,r.data,r.blueprint,s,!0),Yo(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class oa{}class aa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${tt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let la=(()=>{class t{}return t.NULL=new aa,t})();function ua(...t){}function ca(t,e){return new da(ve(t,e))}const ha=function(){return ca(Re(),Oe())};let da=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ha,t})();class pa{}let fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ma(),t})();const ma=function(){const t=Oe(),e=be(Re().index,t);return function(t){return t[11]}(Xt(e)?e:t)};let ga=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>null}),t})();class ya{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const va=new ya("11.2.14");class _a{constructor(){}supports(t){return eo(t)}create(t){return new wa(t)}}const ba=(t,e)=>e;class wa{constructor(t){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=t||ba}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new Ca(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ea),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ea),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ca{constructor(t,e){this.item=t,this.trackById=e,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 Sa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ea{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Sa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xa(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Oa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Oa{constructor(t){this.key=t,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 ka(){return new Pa([new _a])}let Pa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ka()),deps:[[t,new ar,new or]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ct({token:t,providedIn:"root",factory:ka}),t})();function Ra(){return new Ia([new Ta])}let Ia=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ra()),deps:[[t,new ar,new or]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ct({token:t,providedIn:"root",factory:Ra}),t})();function Na(t,e,n,r,s=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(ge(i)),te(i))for(let t=Yt;t-1&&(ls(t,n),Bn(e,n))}this._attachedToViewContainer=!1}us(this._lView[1],this._lView)}onDestroy(t){!function(t,e,n,r){const s=xi(e);s.push(r)}(0,this._lView,0,t)}markForCheck(){bi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){wi(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Me(!0);try{wi(t,e,n)}finally{Me(!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 t;this._appRef=null,bs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ja extends Da{constructor(t){super(t),this._view=t}detectChanges(){Ci(this._view)}checkNoChanges(){!function(t){Me(!0);try{Ci(t)}finally{Me(!1)}}(this._view)}get context(){return null}}const Fa=function(t=!1){return function(t,e,n){if(!n&&ne(t)){const n=be(t.index,e);return new Da(n,n)}return 47&t.type?new Da(e[16],e):null}(Re(),Oe(),t)};let Ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=Fa,t.__ChangeDetectorRef__=!0,t})();const Va=[new Ta],La=new Pa([new _a]),Ua=new Ia(Va),Ha=function(){return t=Re(),e=Oe(),4&t.type?new $a(e,t,ca(t,e)):null;var t,e};let za=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ha,t})();const qa=za,$a=class extends qa{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Bs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Ws(e,n,t),new Da(n)}};class Ba{}class Ga{}const Qa=function(){return function(t,e){let n;const r=e[t.index];if(te(r))n=r;else{let s;if(8&t.type)s=ge(r);else{const n=e[11];s=n.createComment("");const r=ve(t,e);hs(n,fs(n,r),s,function(t,e){return fe(t)?t.nextSibling(e):e.nextSibling}(n,r),!1)}e[t.index]=n=mi(r,e,s,t),_i(e,n)}return new Ka(n,t,e)}(Re(),Oe())};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Qa,t})();const Za=Wa,Ka=class extends Za{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return ca(this._hostTNode,this._hostLView)}get injector(){return new jn(this._hostTNode,this._hostLView)}get parentInjector(){const t=En(this._hostTNode,this._hostLView);if(mn(t)){const e=yn(t,this._hostLView),n=gn(t);return new jn(e[1].data[n+8],e)}return new jn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ja(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Yt}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(Ba,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Ka(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),i=this._lContainer;!function(t,e,n,r){const s=Yt+r,i=n.length;r>0&&(n[s-1][4]=e),rJr});class rl extends oa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ds).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return el(this.componentDef.inputs)}get outputs(){return el(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,Xa,s);return i!==Xa||r===Xa?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(pa,me),o=s.get(ga,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(fe(t))return t.selectRootElement(e,n===xt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):os(i.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:Jr,clean:Ei,playerHandler:null,flags:0},d=ni(0,null,null,1,0,null,null,null,null,null),p=Bs(null,d,h,c,null,null,i,a,o,s);let f,m;Ge(p);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=Gs(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ki(a,l,!0),null!==t&&(cn(s,t,l),null!==a.classes&&Ss(s,t,a.classes),null!==a.styles&&Cs(s,t,a.styles)));const u=r.createRenderer(t,e),c=Bs(n,ei(e),null,e.onPush?64:16,n[20],a,r,u,null,null);return o.firstCreatePass&&(xn(wn(a,n),o,e.type),li(o,a),ci(a,n.length,1)),_i(n,c),n[20]=c}(u,this.componentDef,p,i,a);if(u)if(n)cn(a,u,["ng-version",va.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&Ss(a,u,e.join(" "))}if(m=_e(d,Jt),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Re();e.contentQueries(1,o,t.directiveStart)}const a=Re();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Xe(a.index),oi(n[1],a,0,a.directiveStart,a.directiveEnd,e),ai(e,o)),o}(t,this.componentDef,p,h,[Qi]),Ws(d,p,null)}finally{Je()}return new sl(this.componentType,f,ca(m,p),p,m)}}class sl extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new ja(r),this.componentType=t}get injector(){return new jn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const il=new Map;class ol extends Ba{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tl(this);const n=Kt(t),r=t[Vt]||null;r&&Jo(r),this._bootstrapComponents=Yr(n.bootstrap),this._r3Injector=Vi(t,e,[{provide:Ba,useValue:this},{provide:la,useValue:this.componentFactoryResolver}],tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Gi.THROW_IF_NOT_FOUND,n=_t.Default){return t===Gi||t===Ba||t===Pi?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class al extends Ga{constructor(t){super(),this.moduleType=t,null!==Kt(t)&&function(t){const e=new Set;!function t(n){const r=Kt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${tt(e)} vs ${tt(e.name)}`)}(s,il.get(s),n),il.set(s,n));const i=Yr(r.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new ol(this.moduleType,t)}}function ll(t){return e=>{setTimeout(t,void 0,e)}}const ul=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,i;let o=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(r=e.next)||void 0===r?void 0:r.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(i=e.complete)||void 0===i?void 0:i.bind(e)}this.__isAsync&&(a=ll(a),o&&(o=ll(o)),l&&(l=ll(l)));const u=super.subscribe({next:o,error:a,complete:l});return t instanceof h&&t.add(u),u}},cl=new Un("Application Initializer");let hl=(()=>{class t{constructor(t){this.appInits=t,this.resolve=ua,this.reject=ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(nr(cl,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const dl=new Un("AppId"),pl={provide:dl,useFactory:function(){return`${fl()}${fl()}${fl()}`},deps:[]};function fl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ml=new Un("Platform Initializer"),gl=new Un("Platform ID"),yl=new Un("appBootstrapListener");let vl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const _l=new Un("LocaleId"),bl=new Un("DefaultCurrencyCode");class wl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Cl=function(t){return new al(t)},Sl=Cl,El=function(t){return Promise.resolve(Cl(t))},xl=function(t){const e=Cl(t),n=Yr(Kt(t).declarations).reduce((t,e)=>{const n=Zt(e);return n&&t.push(new rl(n)),t},[]);return new wl(e,n)},Tl=xl,Al=function(t){return Promise.resolve(xl(t))};let Ol=(()=>{class t{constructor(){this.compileModuleSync=Sl,this.compileModuleAsync=El,this.compileModuleAndAllComponentsSync=Tl,this.compileModuleAndAllComponentsAsync=Al}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const kl=(()=>Promise.resolve(0))();function Pl(t){"undefined"==typeof Zone?kl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Rl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ul(!1),this.onMicrotaskEmpty=new ul(!1),this.onStable=new ul(!1),this.onError=new ul(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.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){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Dl(t),Nl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Dl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,a)=>{try{return jl(t),n.invokeTask(s,i,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),Fl(t)}},onInvoke:(n,r,s,i,o,a,l)=>{try{return jl(t),n.invoke(s,i,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Fl(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Dl(t),Nl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Rl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Rl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,Il,ua,ua);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Il={};function Nl(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 Dl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function jl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Fl(t){t._nesting--,Nl(t)}class Ml{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ul,this.onMicrotaskEmpty=new ul,this.onStable=new ul,this.onError=new ul}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Vl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{Rl.assertNotInAngularZone(),Pl(()=>{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())Pl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(nr(Rl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Ll=(()=>{class t{constructor(){this._applications=new Map,zl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return zl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Ul{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Hl,zl=new Ul,ql=!0,$l=!1;const Bl=new Un("AllowMultipleToken");class Gl{constructor(t,e){this.name=t,this.token=e}}function Ql(t,e,n=[]){const r=`Platform: ${e}`,s=new Un(r);return(e=[])=>{let i=Wl();if(!i||i.injector.get(Bl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ii,useValue:"platform"});!function(t){if(Hl&&!Hl.destroyed&&!Hl.injector.get(Bl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Hl=t.get(Zl);const e=t.get(ml,null);e&&e.forEach(t=>t())}(Gi.create({providers:t,name:r}))}return function(t){const e=Wl();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}(s)}}function Wl(){return Hl&&!Hl.destroyed?Hl:null}let Zl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Ml:("zone.js"===t?void 0:t)||new Rl({enableLongStackTrace:($l=!0,ql),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:Rl,useValue:n}];return n.run(()=>{const e=Gi.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(Zr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{i.handleError(t)}});s.onDestroy(()=>{Yl(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const r=n();return go(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(hl);return t.runInitializers(),t.donePromise.then(()=>(Jo(s.injector.get(_l,Zo)||Zo),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Kl({},e);return function(t,e,n){const r=new al(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Jl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${tt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(nr(Gi))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Kl(t,e){return Array.isArray(e)?e.reduce(Kl,t):Object.assign(Object.assign({},t),e)}let Jl=(()=>{class t{constructor(t,e,n,r,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,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 i=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Rl.assertNotInAngularZone(),Pl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Rl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return x(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof v?t[0]:q(e)($(t,n))}(i,o.pipe(t=>{return B()((e=J,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Z);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){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 n;n=t instanceof oa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Ba),s=n.create(Gi.NULL,[],e||n.selector,r),i=s.location.nativeElement,o=s.injector.get(Vl,null),a=o&&s.injector.get(Ll);return o&&a&&a.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),Yl(this.components,s),a&&a.unregisterApplication(i)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Yl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(yl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(nr(Rl),nr(Gi),nr(Zr),nr(la),nr(hl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Yl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Xl{}class tu{}const eu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let nu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||eu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>ru(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>ru(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(nr(Ol),nr(tu,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function ru(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const su=Ql(null,"core",[{provide:gl,useValue:"unknown"},{provide:Zl,deps:[Gi]},{provide:Ll,deps:[]},{provide:vl,deps:[]}]),iu=[{provide:Jl,useClass:Jl,deps:[Rl,Gi,Zr,la,hl]},{provide:nl,deps:[Rl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:hl,useClass:hl,deps:[[new or,cl]]},{provide:Ol,useClass:Ol,deps:[]},pl,{provide:Pa,useFactory:function(){return La},deps:[]},{provide:Ia,useFactory:function(){return Ua},deps:[]},{provide:_l,useFactory:function(t){return Jo(t=t||"undefined"!=typeof $localize&&$localize.locale||Zo),t},deps:[[new ir(_l),new or,new ar]]},{provide:bl,useValue:"USD"}];let ou=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(nr(Jl))},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({providers:iu}),t})(),au=null;function lu(){return au}const uu=new Un("DocumentToken");let cu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:hu,token:t,providedIn:"platform"}),t})();function hu(){return nr(pu)}const du=new Un("Location Initialized");let pu=(()=>{class t extends cu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=lu().getLocation(),this._history=lu().getHistory()}getBaseHrefFromDOM(){return lu().getBaseHref(this._doc)}onPopState(t){lu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){lu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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(t){this.location.pathname=t}pushState(t,e,n){fu()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){fu()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(nr(uu))},t.\u0275prov=ct({factory:mu,token:t,providedIn:"platform"}),t})();function fu(){return!!window.history.pushState}function mu(){return new pu(nr(uu))}function gu(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 yu(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 vu(t){return t&&"?"!==t[0]?"?"+t:t}let _u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:bu,token:t,providedIn:"root"}),t})();function bu(t){const e=nr(uu).location;return new Cu(nr(cu),e&&e.origin||"")}const wu=new Un("appBaseHref");let Cu=(()=>{class t extends _u{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return gu(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+vu(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+vu(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+vu(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(nr(cu),nr(wu,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Su=(()=>{class t extends _u{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=gu(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+vu(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+vu(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(nr(cu),nr(wu,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Eu=(()=>{class t{constructor(t,e){this._subject=new ul,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=yu(Tu(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+vu(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Tu(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+vu(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+vu(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(nr(_u),nr(cu))},t.normalizeQueryParams=vu,t.joinWithSlash=gu,t.stripTrailingSlash=yu,t.\u0275prov=ct({factory:xu,token:t,providedIn:"root"}),t})();function xu(){return new Eu(nr(_u),nr(cu))}function Tu(t){return t.replace(/\/index.html$/,"")}var Au=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Ou{}let ku=(()=>{class t extends Ou{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Qo(e);if(n)return n;const r=e.split("-")[0];if(n=Qo(r),n)return n;if("en"===r)return Bo;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Wo.PluralCase]}(e||this.locale)(t)){case Au.Zero:return"zero";case Au.One:return"one";case Au.Two:return"two";case Au.Few:return"few";case Au.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(nr(_l))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Pu(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let Ru=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Iu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Nu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Nu("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(oo(Wa),oo(za))},t.\u0275dir=Wt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Iu{constructor(){this.$implicit=null,this.ngIf=null}}function Nu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${tt(e)}'.`)}let Du=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({providers:[{provide:Ou,useClass:ku}]}),t})(),ju=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new Fu(nr(uu),window)}),t})();class Fu{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=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 n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Mu(this.window.history)||Mu(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Mu(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Vu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Vu,au||(au=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Uu||(Uu=document.querySelector("base"),Uu)?Uu.getAttribute("href"):null;return null==e?null:(n=e,Lu||(Lu=document.createElement("a")),Lu.setAttribute("href",n),"/"===Lu.pathname.charAt(0)?Lu.pathname:"/"+Lu.pathname);var n}resetBaseElement(){Uu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Pu(document.cookie,t)}}let Lu,Uu=null;const Hu=new Un("TRANSITION_ID"),zu=[{provide:cl,useFactory:function(t,e,n){return()=>{n.get(hl).donePromise.then(()=>{const n=lu();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Hu,uu,Gi],multi:!0}];class qu{static init(){var t;t=new qu,zl=t}addToWindow(t){Pt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?lu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const $u=new Un("EventManagerPlugins");let Bu=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Wu=(()=>{class t extends Qu{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(Zu),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Zu))}}return t.\u0275fac=function(e){return new(e||t)(nr(uu))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Zu(t){lu().remove(t)}const Ku={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ju=/%COMP%/g;function Yu(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let tc=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new ec(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case xt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new nc(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case xt.ShadowDom:return new rc(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Yu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(nr(Bu),nr(Wu),nr(dl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class ec{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ku[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=Ku[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Ku[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(Xr.DashCase|Xr.Important)?t.style.setProperty(e,n,r&Xr.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Xr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Xu(n)):this.eventManager.addEventListener(t,e,Xu(n))}}class nc extends ec{constructor(t,e,n,r){super(t),this.component=n;const s=Yu(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Ju,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Ju,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class rc extends ec{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Yu(r.id,r.styles,[]);for(let i=0;i{class t extends Gu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(nr(uu))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const ic=["alt","control","meta","shift"],oc={"\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"},ac={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"},lc={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let uc=(()=>{class t extends Gu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),i=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>lu().onAndCancel(e,s.domEventName,i))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(ic.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=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&&ac.hasOwnProperty(e)&&(e=ac[e]))}return oc[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),ic.forEach(r=>{r!=n&&(0,lc[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(nr(uu))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),cc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return nr(hc)},token:t,providedIn:"root"}),t})(),hc=(()=>{class t extends cc{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case $r.NONE:return e;case $r.HTML:return _r(e,"HTML")?vr(e):zr(this._doc,String(e)).toString();case $r.STYLE:return _r(e,"Style")?vr(e):e;case $r.SCRIPT:if(_r(e,"Script"))return vr(e);throw new Error("unsafe value used in a script context");case $r.URL:return br(e),_r(e,"URL")?vr(e):xr(String(e));case $r.RESOURCE_URL:if(_r(e,"ResourceURL"))return vr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new pr(t)}bypassSecurityTrustStyle(t){return new fr(t)}bypassSecurityTrustScript(t){return new mr(t)}bypassSecurityTrustUrl(t){return new gr(t)}bypassSecurityTrustResourceUrl(t){return new yr(t)}}return t.\u0275fac=function(e){return new(e||t)(nr(uu))},t.\u0275prov=ct({factory:function(){return t=nr(Pi),new hc(t.get(uu));var t},token:t,providedIn:"root"}),t})();const dc=Ql(su,"browser",[{provide:gl,useValue:"browser"},{provide:ml,useValue:function(){Vu.makeCurrent(),qu.init()},multi:!0},{provide:uu,useFactory:function(){return function(t){de=t}(document),document},deps:[]}]),pc=[[],{provide:Ii,useValue:"root"},{provide:Zr,useFactory:function(){return new Zr},deps:[]},{provide:$u,useClass:sc,multi:!0,deps:[uu,Rl,gl]},{provide:$u,useClass:uc,multi:!0,deps:[uu]},[],{provide:tc,useClass:tc,deps:[Bu,Wu,dl]},{provide:pa,useExisting:tc},{provide:Qu,useExisting:Wu},{provide:Wu,useClass:Wu,deps:[uu]},{provide:Vl,useClass:Vl,deps:[Rl]},{provide:Bu,useClass:Bu,deps:[$u,Rl]},[]];let fc=(()=>{class t{constructor(t){if(t)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(e){return{ngModule:t,providers:[{provide:dl,useValue:e.appId},{provide:Hu,useExisting:dl},zu]}}}return t.\u0275fac=function(e){return new(e||t)(nr(t,12))},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({providers:pc,imports:[Du,ou]}),t})();function mc(t,e){return new v(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}"undefined"!=typeof window&&window;const gc=new Un("NgValueAccessor"),yc={provide:gc,useExisting:rt(()=>_c),multi:!0},vc=new Un("CompositionEventMode");let _c=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=lu()?lu().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(oo(fa),oo(da),oo(vc,8))},t.\u0275dir=Wt({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(t,e){1&t&&vo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[ia([yc])]}),t})();function bc(t){return null==t||0===t.length}function wc(t){return null!=t&&"number"==typeof t.length}const Cc=new Un("NgValidators"),Sc=new Un("NgAsyncValidators"),Ec=/^(?=.{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 xc{static min(t){return function(t){return e=>{if(bc(e.value)||bc(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(bc(e.value)||bc(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return Tc(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return bc(t.value)||Ec.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>bc(e.value)||!wc(e.value)?null:e.value.lengthwc(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return Ac;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(bc(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Nc(t)}static composeAsync(t){return jc(t)}}function Tc(t){return bc(t.value)?{required:!0}:null}function Ac(t){return null}function Oc(t){return null!=t}function kc(t){const e=go(t)?F(t):t;return yo(e),e}function Pc(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Rc(t,e){return e.map(e=>e(t))}function Ic(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Nc(t){if(!t)return null;const e=t.filter(Oc);return 0==e.length?null:function(t){return Pc(Rc(t,e))}}function Dc(t){return null!=t?Nc(Ic(t)):null}function jc(t){if(!t)return null;const e=t.filter(Oc);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return mc(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return mc(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return mc(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(T(t=>e(...t)))}return mc(t,null)}(Rc(t,e).map(kc)).pipe(T(Pc))}}function Fc(t){return null!=t?jc(Ic(t)):null}function Mc(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Vc(t){return t._rawValidators}function Lc(t){return t._rawAsyncValidators}let Uc=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=Dc(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Fc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t}),t})(),Hc=(()=>{class t extends Uc{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return zc(e||t)},t.\u0275dir=Wt({type:t,features:[Wi]}),t})();const zc=Fn(Hc);class qc extends Uc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $c{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let Bc=(()=>{class t extends $c{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(oo(qc,2))},t.\u0275dir=Wt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ko("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Wi]}),t})(),Gc=(()=>{class t extends $c{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(oo(Hc,10))},t.\u0275dir=Wt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ko("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Wi]}),t})();function Qc(t,e){Kc(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Yc(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Yc(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Wc(t,e,n=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Jc(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Zc(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Kc(t,e,n){const r=Vc(t);null!==e.validator?t.setValidators(Mc(r,e.validator)):"function"==typeof r&&t.setValidators([r]);const s=Lc(t);if(null!==e.asyncValidator?t.setAsyncValidators(Mc(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();Zc(e._rawValidators,n),Zc(e._rawAsyncValidators,n)}}function Jc(t,e,n){let r=!1;if(null!==t){if(null!==e.validator){const n=Vc(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(r=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=Lc(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(r=!0,t.setAsyncValidators(s))}}}if(n){const t=()=>{};Zc(e._rawValidators,t),Zc(e._rawAsyncValidators,t)}return r}function Yc(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Xc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const th="VALID",eh="INVALID",nh="PENDING",rh="DISABLED";function sh(t){return(lh(t)?t.validators:t)||null}function ih(t){return Array.isArray(t)?Dc(t):t||null}function oh(t,e){return(lh(e)?e.asyncValidators:t)||null}function ah(t){return Array.isArray(t)?Fc(t):t||null}function lh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class uh{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ih(this._rawValidators),this._composedAsyncValidatorFn=ah(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===th}get invalid(){return this.status===eh}get pending(){return this.status==nh}get disabled(){return this.status===rh}get enabled(){return this.status!==rh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ih(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ah(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=nh,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=rh,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=th,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==th&&this.status!==nh||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?rh:th}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=nh,this._hasOwnPendingAsyncValidator=!0;const e=kc(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof hh?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof dh&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ul,this.statusChanges=new ul}_calculateStatus(){return this._allControlsDisabled()?rh:this.errors?eh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nh)?nh:this._anyControlsHaveStatus(eh)?eh:th}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){lh(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ch extends uh{constructor(t=null,e,n){super(sh(e),oh(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Xc(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Xc(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class hh extends uh{constructor(t,e,n){super(sh(e),oh(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof ch?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class dh extends uh{constructor(t,e,n){super(sh(e),oh(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ch?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}let ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({}),t})();const mh=new Un("NgModelWithFormControlWarning"),gh={provide:Hc,useExisting:rt(()=>yh)};let yh=(()=>{class t extends Hc{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ul,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Jc(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Qc(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Wc(t.control||null,t,!1),Xc(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,e=this.directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(Wc(e||null,t),n instanceof ch&&(Qc(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){Kc(t,e,!1)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Jc(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Kc(this.form,this,!1),this._oldForm&&Jc(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(oo(Cc,10),oo(Sc,10))},t.\u0275dir=Wt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&vo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ia([gh]),Wi,ae]}),t})();const vh={provide:qc,useExisting:rt(()=>_h)};let _h=(()=>{class t extends qc{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ul,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,r,s;return Array.isArray(e),e.forEach(t=>{t.constructor===_c?n=t:Object.getPrototypeOf(t.constructor)===class{}?r=t:s=t}),s||r||n||null}(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return t=null==this.name?this.name:this.name.toString(),[...this._parent.path,t];var t}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.\u0275fac=function(e){return new(e||t)(oo(Hc,13),oo(Cc,10),oo(Sc,10),oo(gc,10),oo(mh,8))},t.\u0275dir=Wt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ia([vh]),Wi,ae]}),t._ngModelWarningSentOnce=!1,t})();const bh={provide:Cc,useExisting:rt(()=>wh),multi:!0};let wh=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Tc(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&so("required",e.required?"":null)},inputs:{required:"required"},features:[ia([bh])]}),t})(),Ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({imports:[[fh]]}),t})(),Sh=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mh,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({imports:[Ch]}),t})(),Eh=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r,s=null,i=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new hh(n,{asyncValidators:i,updateOn:r,validators:s})}control(t,e,n){return new ch(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new dh(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof ch||t instanceof hh||t instanceof dh?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:Sh}),t})(),xh=(()=>{class t{constructor(){let t=localStorage.getItem("form"),e=JSON.parse(t);this.form=e}ngOnInit(){this.exibir()}exibir(){"OUTRO \xd3RG\xc3O"===this.form.label3&&(document.getElementById("oo").classList.remove("displayNone"),document.getElementById("cEf").classList.remove("displayNone"),document.getElementById("cHs").classList.remove("displayNone"))}print(){window.print(),localStorage.removeItem("form")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=zt({type:t,selectors:[["app-imp"]],decls:212,vars:44,consts:[["id","content",1,"container"],["id","dados",1,"title"],[1,"page-header"],["name","cadastro","id","form","action","/send","method","POST"],[1,"row"],[1,"mb-1","col-sm-4"],["for","mat",1,"form-label"],["type","text","id","mat","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"mb-1","col-sm-8"],["for","nome",1,"form-label"],["type","text","id","nome","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"mb-1","col-sm-12"],["for","nomeM",1,"form-label"],["type","text","id","nomeM","disabled","",1,"form-control","text-capitalize",3,"value"],["for","nomeP",1,"form-label"],["type","text","id","nomeP","disabled","",1,"form-control","text-capitalize",3,"value"],["for","dataN",1,"form-label"],["type","text","id","date","disabled","",1,"form-control","text-capitalize",3,"value"],["for","naturalidade",1,"form-label"],["type","text","id","naturalidade","disabled","",1,"form-control","text-capitalize",3,"value"],["for","ufn",1,"form-label"],["type","text","id","ufn","disabled","",1,"form-control","text-capitalize",3,"value"],["for","naoAcumuloionalidade",1,"form-label"],["type","text","id","naoAcumuloionalidade","disabled","",1,"form-control","text-capitalize",3,"value"],["for","estadoC",1,"form-label"],["type","text","id","estadoC","disabled","",1,"form-control","text-capitalize",3,"value"],["for","sexo",1,"form-select"],["type","text","id","sexo","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"mb-1","col-sm-6"],["for","pd",1,"form-label"],["type","text","id","pd","disabled","",1,"form-control","text-capitalize",3,"value"],["for","td",1,"form-label"],["type","text","id","td","disabled","",1,"form-control","text-capitalize",3,"value"],["id","doc",1,"title"],["for","cpf",1,"form-label"],["type","text","id","cpf","disabled","",1,"form-control","text-capitalize",3,"value"],["for","ppn",1,"form-label"],["type","text","id","ppn","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"mb-1","col-sm-3"],["for","rg",1,"form-label"],["type","text","id","rg","disabled","",1,"form-control","text-capitalize",3,"value"],["for","oe",1,"form-label"],["type","text","id","oe","disabled","",1,"form-control","text-capitalize",3,"value"],["for","ufrg",1,"form-label"],["type","text","id","ufrg","disabled","",1,"form-control","text-capitalize",3,"value"],["for","dataE",1,"form-label"],["type","text","id","dataE","disabled","",1,"form-control","text-capitalize",3,"value"],["for","te",1,"form-label"],["type","text","id","te","disabled","",1,"form-control","text-capitalize",3,"value"],["for","zona",1,"form-label"],["type","text","id","zona","disabled","",1,"form-control","text-capitalize",3,"value"],["for","secao",1,"form-label"],["type","text","id","secao","disabled","",1,"form-control","text-capitalize",3,"value"],["for","uft",1,"form-label"],["type","text","id","uft","disabled","",1,"form-control","text-capitalize",3,"value"],["id","end",1,"title"],[1,"mb-1","col-sm-10"],["for","logradouro",1,"form-label"],["type","text","id","logradouro","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"mb-1","col-sm-2"],["for","numero",1,"form-label"],["type","text","id","numero","disabled","",1,"form-control","text-capitalize",3,"value"],["for","cpomlemento",1,"form-label"],["type","text","id","complemento","disabled","",1,"form-control","text-capitalize",3,"value"],["for","bairro",1,"form-label"],["type","text","id","bairro","disabled","",1,"form-control","text-capitalize",3,"value"],["for","cep",1,"form-label"],["type","text","id","cep","placeholder","00000-000","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"mb-1","col-sm-5"],["for","cidade",1,"form-label"],["type","text","id","cidade","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"mb-1","col-sm-1"],["for","uf",1,"form-label"],["type","text","id","uf","disabled","",1,"form-control","text-capitalize",3,"value"],["for","telefone",1,"form-label"],["type","text","id","telefone","disabled","",1,"form-control","text-capitalize",3,"value"],["for","celular",1,"form-label"],["type","text","id","celular","placeholder","(00) 00000-0000","disabled","",1,"form-control","text-capitalize",3,"value"],["for","email",1,"form-label"],["type","text","id","email","disabled","",1,"form-control",3,"value"],["for","dataA",1,"form-label"],["type","text","id","dataA","disabled","",1,"form-control","text-capitalize",3,"value"],["for","ts",1,"form-label"],["type","text","id","ts","disabled","",1,"form-control","text-capitalize",3,"value"],[1,"row","mb-5"],["for","oc",1,"form-label"],["type","text","id","oc","disabled","",1,"form-control","text-capitalize",3,"value"],["id","dcl1"],[1,"row","ml-2","mb-5"],[1,"form-label","dcl"],["type","text","id","dcl1","disabled","",1,"form-control",2,"background","transparent",3,"value"],[1,"row","ml-2","mb-3"],["type","text","id","dcl2","disabled","",1,"form-control",2,"background","transparent",3,"value"],[1,"form-label","mr-5"],["id","inputs",1,"row","col"],["type","text","id","dcl3",1,"form-control","col-sm-6",2,"background","transparent",3,"value"],["type","text","id","oo","disabled","",1,"form-control","text-capitalize","displayNone",3,"value"],["type","text","id","cEf","disabled","",1,"form-control","text-capitalize","displayNone",3,"value"],["type","text","id","cHs","disabled","",1,"form-control","text-capitalize","displayNone",3,"value"],["type","text","id","dcl4","disabled","",1,"form-control",2,"background","transparent",3,"value"],["type","text","id","dcl5","disabled","",1,"form-control",2,"background","transparent",3,"value"],[1,"row","mt-4","offset-sm-4"],["type","text","id","nomeA","disabled","",1,"mb-5","col-sm-10","font-weight-bold","ml-3","mr-2",3,"value"],["size","10","width","50%","color","black"],[1,"offset-5"],["type","button","value","IMPRIMIR",1,"btn","btn-primary","btn-md","mb-1","displayNone1","pl-sm-5","pr-sm-5",3,"click"]],template:function(t,e){1&t&&(uo(0,"div",0),uo(1,"div",1),uo(2,"h3",2),Ho(3,"DADOS PESSOAIS"),co(),co(),uo(4,"form",3),uo(5,"section"),uo(6,"div",4),uo(7,"div",5),uo(8,"label",6),Ho(9,"Matr\xedcula:"),co(),ho(10,"input",7),co(),uo(11,"div",8),uo(12,"label",9),Ho(13,"Nome:"),co(),ho(14,"input",10),co(),co(),uo(15,"div",4),uo(16,"div",11),uo(17,"label",12),Ho(18,"Nome da m\xe3e:"),co(),ho(19,"input",13),co(),co(),uo(20,"div",4),uo(21,"div",11),uo(22,"label",14),Ho(23,"Nome do pai:"),co(),ho(24,"input",15),co(),co(),uo(25,"div",4),uo(26,"div",5),uo(27,"label",16),Ho(28,"Data de nascimento:"),co(),ho(29,"input",17),co(),uo(30,"div",5),uo(31,"label",18),Ho(32,"Naturalidade:"),co(),ho(33,"input",19),co(),uo(34,"div",5),uo(35,"label",20),Ho(36,"UF de nascimento:"),co(),ho(37,"input",21),co(),co(),uo(38,"div",4),uo(39,"div",5),uo(40,"label",22),Ho(41,"Nacionalidade:"),co(),ho(42,"input",23),co(),uo(43,"div",5),uo(44,"label",24),Ho(45,"Estado Civil:"),co(),ho(46,"input",25),co(),uo(47,"div",5),uo(48,"label",26),Ho(49,"Sexo:"),co(),ho(50,"input",27),co(),co(),uo(51,"div",4),uo(52,"div",28),uo(53,"label",29),Ho(54,"Possui defici\xeancia:"),co(),ho(55,"input",30),co(),uo(56,"div",28),uo(57,"label",31),Ho(58,"Tipo de defici\xeancia:"),co(),ho(59,"input",32),co(),co(),co(),uo(60,"div",33),uo(61,"h3",2),Ho(62,"DOCUMENTOS"),co(),co(),uo(63,"section"),uo(64,"div",4),uo(65,"div",28),uo(66,"label",34),Ho(67,"CPF:"),co(),ho(68,"input",35),co(),uo(69,"div",28),uo(70,"label",36),Ho(71,"PIS/PASEP/NIT.:"),co(),ho(72,"input",37),co(),co(),uo(73,"div",4),uo(74,"div",38),uo(75,"label",39),Ho(76,"RG n\xba:"),co(),ho(77,"input",40),co(),uo(78,"div",38),uo(79,"label",41),Ho(80,"\xd3rg\xe3o Emissor:"),co(),ho(81,"input",42),co(),uo(82,"div",38),uo(83,"label",43),Ho(84,"UF RG:"),co(),ho(85,"input",44),co(),uo(86,"div",38),uo(87,"label",45),Ho(88,"Data de Emiss\xe3o RG:"),co(),ho(89,"input",46),co(),co(),uo(90,"div",4),uo(91,"div",38),uo(92,"label",47),Ho(93,"T\xedtulo de Eleitor n\xba:"),co(),ho(94,"input",48),co(),uo(95,"div",38),uo(96,"label",49),Ho(97,"Zona n\xba:"),co(),ho(98,"input",50),co(),uo(99,"div",38),uo(100,"label",51),Ho(101,"Se\xe7\xe3o n\xba:"),co(),ho(102,"input",52),co(),uo(103,"div",38),uo(104,"label",53),Ho(105,"UF t\xedtulo:"),co(),ho(106,"input",54),co(),co(),co(),uo(107,"div",55),uo(108,"h3",2),Ho(109,"ENDERE\xc7O"),co(),co(),uo(110,"section"),uo(111,"div",4),uo(112,"div",56),uo(113,"label",57),Ho(114,"Logradouro:"),co(),ho(115,"input",58),co(),uo(116,"div",59),uo(117,"label",60),Ho(118,"N\xfamero:"),co(),ho(119,"input",61),co(),co(),uo(120,"div",4),uo(121,"div",5),uo(122,"label",62),Ho(123,"Complemento:"),co(),ho(124,"input",63),co(),uo(125,"div",28),uo(126,"label",64),Ho(127,"Bairro:"),co(),ho(128,"input",65),co(),uo(129,"div",59),uo(130,"label",66),Ho(131,"CEP:"),co(),ho(132,"input",67),co(),co(),uo(133,"div",4),uo(134,"div",68),uo(135,"label",69),Ho(136,"Cidade:"),co(),ho(137,"input",70),co(),uo(138,"div",71),uo(139,"label",72),Ho(140,"UF:"),co(),ho(141,"input",73),co(),uo(142,"div",38),uo(143,"label",74),Ho(144,"Telefone:"),co(),ho(145,"input",75),co(),uo(146,"div",38),uo(147,"label",76),Ho(148,"Celular:"),co(),ho(149,"input",77),co(),co(),uo(150,"div",4),uo(151,"div",11),uo(152,"label",78),Ho(153,"Email:"),co(),ho(154,"input",79),co(),co(),co(),uo(155,"div",55),uo(156,"h3",2),Ho(157,"DADOS FUNCIONAIS"),co(),co(),uo(158,"section"),uo(159,"div",4),uo(160,"div",5),uo(161,"label",80),Ho(162,"Data de Admiss\xe3o:"),co(),ho(163,"input",81),co(),uo(164,"div",8),uo(165,"label",82),Ho(166,"Tipo de Servidor:"),co(),ho(167,"input",83),co(),co(),uo(168,"div",84),uo(169,"div",11),uo(170,"label",85),Ho(171,"\xd3rg\xe3o de Cess\xe3o:"),co(),ho(172,"input",86),co(),co(),uo(173,"div",87),uo(174,"div",88),uo(175,"label",89),Ho(176,"DECLARA\xc7\xc3O 1:"),co(),ho(177,"textarea",90),co(),co(),uo(178,"div",87),uo(179,"div",91),uo(180,"label",89),Ho(181,"DECLARA\xc7\xc3O 2:"),co(),ho(182,"textarea",92),co(),co(),uo(183,"div",87),uo(184,"div",91),uo(185,"div"),uo(186,"label",93),Ho(187,"DECLARA\xc7\xc3O 3:"),co(),co(),ho(188,"br"),uo(189,"div",94),ho(190,"textarea",95),uo(191,"div",4),ho(192,"input",96),ho(193,"input",97),ho(194,"input",98),co(),co(),co(),co(),uo(195,"div",87),uo(196,"div",91),uo(197,"label",89),Ho(198,"DECLARA\xc7\xc3O 4:"),co(),ho(199,"textarea",99),co(),co(),uo(200,"div",87),uo(201,"div",91),uo(202,"label",89),Ho(203,"DECLARA\xc7\xc3O 5:"),co(),ho(204,"textarea",100),co(),co(),co(),uo(205,"div",101),ho(206,"input",102),co(),uo(207,"div"),ho(208,"hr",103),co(),uo(209,"div",4),uo(210,"form",104),uo(211,"input",105),vo("click",function(){return e.print()}),co(),co(),co(),co(),co()),2&t&&(Fs(10),ao("value",e.form.matricula),Fs(4),ao("value",e.form.nome),Fs(5),ao("value",e.form.nomeM),Fs(5),ao("value",e.form.nomeP),Fs(5),ao("value",e.form.dataN),Fs(4),ao("value",e.form.naturalidade),Fs(4),ao("value",e.form.ufN),Fs(5),ao("value",e.form.naoAcumuloionalidade),Fs(4),ao("value",e.form.estadoC),Fs(4),ao("value",e.form.sexo),Fs(5),ao("value",e.form.pd),Fs(4),ao("value",e.form.td),Fs(9),ao("value",e.form.cpf),Fs(4),ao("value",e.form.ppn),Fs(5),ao("value",e.form.rg),Fs(4),ao("value",e.form.oe),Fs(4),ao("value",e.form.ufrg),Fs(4),ao("value",e.form.dataE),Fs(5),ao("value",e.form.te),Fs(4),ao("value",e.form.zona),Fs(4),ao("value",e.form.secao),Fs(4),ao("value",e.form.uftitulo),Fs(9),ao("value",e.form.logradouro),Fs(4),ao("value",e.form.numero),Fs(5),ao("value",e.form.complemento),Fs(4),ao("value",e.form.bairro),Fs(4),ao("value",e.form.cep),Fs(5),ao("value",e.form.cidade),Fs(4),ao("value",e.form.uf),Fs(4),ao("value",e.form.telefone),Fs(4),ao("value",e.form.celular),Fs(5),ao("value",e.form.email),Fs(9),ao("value",e.form.dataA),Fs(4),ao("value",e.form.ts),Fs(5),ao("value",e.form.oc),Fs(5),ao("value",e.form.label1),Fs(5),ao("value",e.form.label2),Fs(8),ao("value",e.form.label3),Fs(2),ao("value",e.form.oo),Fs(1),ao("value",e.form.cEf),Fs(1),ao("value",e.form.cHs),Fs(5),ao("value",e.form.label4),Fs(5),ao("value",e.form.label5),Fs(2),ao("value",e.form.nome))},directives:[ph,Gc],styles:["body[_ngcontent-%COMP%]{font-size:3px}#content[_ngcontent-%COMP%]{width:auto;height:auto;border:1px solid grey;margin:5px auto}.displayNone[_ngcontent-%COMP%]{display:none}input#nomeA[_ngcontent-%COMP%]{border:none;background:#0000;padding-left:27px;font-size:22px}textarea[_ngcontent-%COMP%]{height:95px;resize:none}textarea#dcl3[_ngcontent-%COMP%]{width:100%;height:60px}@media print{.displayNone1[_ngcontent-%COMP%]{display:none}}@page{size[_ngcontent-%COMP%]:auto;margin:0}"]}),t})();function Th(...t){let e=t[t.length-1];return x(e)?(t.pop(),j(t,e)):$(t)}class Ah extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(t){super.next(this._value=t)}}class Oh extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class kh extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Ph(t,e,n,r,s=new kh(t,n,r)){if(!s.closed)return e instanceof v?e.subscribe(s):D(e)(s)}const Rh={};class Ih{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Nh(t,this.resultSelector))}}class Nh extends Oh{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Rh),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function jh(...t){return q(1)(Th(...t))}const Fh=new v(t=>t.complete());function Mh(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):Fh}function Vh(t){return new v(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?F(n):Mh()).subscribe(e)})}function Lh(t,e){return"function"==typeof e?n=>n.pipe(Lh((n,r)=>F(t(n,r)).pipe(T((t,s)=>e(n,t,r,s))))):e=>e.lift(new Uh(t))}class Uh{constructor(t){this.project=t}call(t,e){return e.subscribe(new Hh(t,this.project))}}class Hh extends V{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new M(this),r=this.destination;r.add(n),this.innerSubscription=L(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const zh=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function qh(t){return e=>0===t?Mh():e.lift(new $h(t))}class $h{constructor(t){if(this.total=t,this.total<0)throw new zh}call(t,e){return e.subscribe(new Bh(t,this.total))}}class Bh extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function Gh(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Qh(t,e,n))}}class Qh{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Wh(t,this.accumulator,this.seed,this.hasSeed))}}class Wh extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Zh(t,e){return function(n){return n.lift(new Kh(t,e))}}class Kh{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Jh(t,this.predicate,this.thisArg))}}class Jh extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}function Yh(t){return function(e){const n=new Xh(t),r=e.lift(n);return n.caught=r}}class Xh{constructor(t){this.selector=t}call(t,e){return e.subscribe(new td(t,this.selector,this.caught))}}class td extends V{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new M(this);this.add(r);const s=L(n,r);s!==r&&this.add(s)}}}function ed(t,e){return U(t,e,1)}function nd(t){return function(e){return 0===t?Mh():e.lift(new rd(t))}}class rd{constructor(t){if(this.total=t,this.total<0)throw new zh}call(t,e){return e.subscribe(new sd(t,this.total))}}class sd extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;se.lift(new od(t))}class od{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new ad(t,this.errorFactory))}}class ad extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function ld(){return new Dh}function ud(t=null){return e=>e.lift(new cd(t))}class cd{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new hd(t,this.defaultValue))}}class hd extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function dd(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Zh((e,n)=>t(e,n,r)):y,qh(1),n?ud(e):id(()=>new Dh))}function pd(){}function fd(t,e,n){return function(r){return r.lift(new md(t,e,n))}}class md{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new gd(t,this.nextOrObserver,this.error,this.complete))}}class gd extends f{constructor(t,e,n,s){super(t),this._tapNext=pd,this._tapError=pd,this._tapComplete=pd,this._tapError=n||pd,this._tapComplete=s||pd,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||pd,this._tapError=e.error||pd,this._tapComplete=e.complete||pd)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class yd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new vd(t,this.callback))}}class vd extends f{constructor(t,e){super(t),this.add(new h(e))}}class _d{constructor(t,e){this.id=t,this.url=e}}class bd extends _d{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wd extends _d{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Cd extends _d{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Sd extends _d{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ed extends _d{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xd extends _d{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Td extends _d{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ad extends _d{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Od extends _d{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kd{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Pd{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Rd{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Id{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Nd{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dd{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jd{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Fd="primary";class Md{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Vd(t){return new Md(t)}function Ld(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ud(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthr[e]===t)}return t===e}function qd(t){return Array.prototype.concat.apply([],t)}function $d(t){return t.length>0?t[t.length-1]:null}function Bd(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Gd(t){return yo(t)?t:go(t)?F(Promise.resolve(t)):Th(t)}function Qd(t,e,n){return n?function(t,e){return Hd(t,e)}(t.queryParams,e.queryParams)&&Wd(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>zd(t[n],e[n]))}(t.queryParams,e.queryParams)&&Zd(t.root,e.root)}function Wd(t,e){if(!tp(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Wd(t.children[n],e.children[n]))return!1}return!0}function Zd(t,e){return Kd(t,e,e.segments)}function Kd(t,e,n){if(t.segments.length>n.length)return!!tp(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!tp(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Zd(t.children[n],e.children[n]))return!1}return!0}{const r=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!tp(t.segments,r)&&!!t.children.primary&&Kd(t.children.primary,e,s)}}class Jd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Vd(this.queryParams)),this._queryParamMap}toString(){return rp.serialize(this)}}class Yd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Bd(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return sp(this)}}class Xd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Vd(this.parameters)),this._parameterMap}toString(){return hp(this)}}function tp(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class ep{}class np{parse(t){const e=new gp(t);return new Jd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${ip(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ap(e)}=${ap(t)}`).join("&"):`${ap(e)}=${ap(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const rp=new np;function sp(t){return t.segments.map(t=>hp(t)).join("/")}function ip(t,e){if(!t.hasChildren())return sp(t);if(e){const e=t.children.primary?ip(t.children.primary,!1):"",n=[];return Bd(t.children,(t,e)=>{e!==Fd&&n.push(`${e}:${ip(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Bd(t.children,(t,r)=>{r===Fd&&(n=n.concat(e(t,r)))}),Bd(t.children,(t,r)=>{r!==Fd&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>n===Fd?[ip(t.children.primary,!1)]:[`${n}:${ip(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${sp(t)}/${e[0]}`:`${sp(t)}/(${e.join("//")})`}}function op(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ap(t){return op(t).replace(/%3B/gi,";")}function lp(t){return op(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function up(t){return decodeURIComponent(t)}function cp(t){return up(t.replace(/\+/g,"%20"))}function hp(t){return`${lp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${lp(t)}=${lp(e[t])}`).join("")}`;var e}const dp=/^[^\/()?;=#]+/;function pp(t){const e=t.match(dp);return e?e[0]:""}const fp=/^[^=?&#]+/,mp=/^[^?&#]+/;class gp{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yd([],{}):new Yd([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Yd(t,e)),n}parseSegment(){const t=pp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Xd(up(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=pp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=pp(this.remaining);t&&(n=t,this.capture(n))}t[up(e)]=up(n)}parseQueryParam(t){const e=function(t){const e=t.match(fp);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(mp);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=cp(e),s=cp(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=pp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Fd);const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new Yd([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class yp{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=vp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=vp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=_p(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return _p(t,this._root).map(t=>t.value)}}function vp(t,e){if(t===e.value)return e;for(const n of e.children){const e=vp(t,n);if(e)return e}return null}function _p(t,e){if(t===e.value)return[e];for(const n of e.children){const r=_p(t,n);if(r.length)return r.unshift(e),r}return[]}class bp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function wp(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Cp extends yp{constructor(t,e){super(t),this.snapshot=e,Op(this,t)}toString(){return this.snapshot.toString()}}function Sp(t,e){const n=function(t,e){const n=new Tp([],{},{},"",{},Fd,e,null,t.root,-1,{});return new Ap("",new bp(n,[]))}(t,e),r=new Ah([new Xd("",{})]),s=new Ah({}),i=new Ah({}),o=new Ah({}),a=new Ah(""),l=new Ep(r,s,o,a,i,Fd,e,n.root);return l.snapshot=n.root,new Cp(new bp(l,[]),n)}class Ep{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}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(T(t=>Vd(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(t=>Vd(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xp(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Tp{constructor(t,e,n,r,s,i,o,a,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}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=Vd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Vd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ap extends yp{constructor(t,e){super(e),this.url=t,Op(this,e)}toString(){return kp(this._root)}}function Op(t,e){e.value._routerState=t,e.children.forEach(e=>Op(t,e))}function kp(t){const e=t.children.length>0?` { ${t.children.map(kp).join(", ")} } `:"";return`${t.value}${e}`}function Pp(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Hd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Hd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nHd(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Rp(t.parent,e.parent))}function Ip(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return Ip(t,e,r);return Ip(t,e)})}(t,e,n);return new bp(r,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Np(e,t),t}}const n=new Ep(new Ah((r=e.value).url),new Ah(r.params),new Ah(r.queryParams),new Ah(r.fragment),new Ah(r.data),r.outlet,r.component,r),s=e.children.map(e=>Ip(t,e));return new bp(n,s)}var r}function Np(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Jd(n.root===t?e:Mp(n.root,t,e),i,s)}function Mp(t,e,n){const r={};return Bd(t.children,(t,s)=>{r[s]=t===e?n:Mp(t,e,n)}),new Yd(t.segments,r)}class Vp{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Dp(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(jp);if(r&&r!==$d(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lp{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Up(t,e,n){if(t||(t=new Yd([],{})),0===t.segments.length&&t.hasChildren())return Hp(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const e=t.segments[s],o=n[r];if(jp(o))break;const a=`${o}`,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Bp(a,l,e))return i;r+=2}else{if(!Bp(a,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=Up(t.children[r],e,n))}),Bd(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new Yd(t.segments,s)}}function zp(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=zp(new Yd([],{}),0,t))}),e}function $p(t){const e={};return Bd(t,(t,n)=>e[n]=`${t}`),e}function Bp(t,e,n){return t==n.path&&Hd(e,n.parameters)}class Gp{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Pp(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=wp(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Bd(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=wp(t);for(const i of Object.keys(s))this.deactivateRouteAndItsChildren(s[i],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=wp(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Dd(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Id(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(Pp(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Qp(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Qp(t){Pp(t.value),t.children.forEach(Qp)}class Wp{constructor(t,e){this.routes=t,this.module=e}}function Zp(t){return"function"==typeof t}function Kp(t){return t instanceof Jd}const Jp=Symbol("INITIAL_VALUE");function Yp(){return Lh(t=>function(...t){let e,n;return x(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new Ih(e))}(t.map(t=>t.pipe(qh(1),function(...t){const e=t[t.length-1];return x(e)?(t.pop(),n=>jh(t,n,e)):e=>jh(t,e)}(Jp)))).pipe(Gh((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==Jp)return t;if(r===Jp&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Kp(r))return r}return t},t)},Jp),Zh(t=>t!==Jp),T(t=>Kp(t)?t:!0===t),qh(1)))}let Xp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=zt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&ho(0,"router-outlet")},directives:function(){return[Gf]},encapsulation:2}),t})();function tf(t,e=""){for(let n=0;nsf(t)===e);return n.push(...t.filter(t=>sf(t)!==e)),n}const af={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function lf(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},af):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Ud)(n,t,e);if(!s)return Object.assign({},af);const i={};Bd(s.posParams,(t,e)=>{i[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},i),s.consumed[s.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function uf(t,e,n,r,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>cf(t,e,n)&&sf(n)!==Fd)}(t,n,r)){const s=new Yd(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&sf(i)!==Fd){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[sf(i)]=n}return s}(t,e,r,new Yd(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(n=>cf(t,e,n))}(t,n,r)){const i=new Yd(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(cf(t,n,a)&&!s[sf(a)]){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[sf(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new Yd(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function cf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function hf(t,e,n,r){return!!(sf(t)===r||r!==Fd&&cf(e,n,t))&&("**"===t.path||lf(e,t,n).matched)}function df(t,e,n){return 0===e.length&&!t.children[n]}class pf{constructor(t){this.segmentGroup=t||null}}class ff{constructor(t){this.urlTree=t}}function mf(t){return new v(e=>e.error(new pf(t)))}function gf(t){return new v(e=>e.error(new ff(t)))}function yf(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class vf{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Ba)}apply(){const t=uf(this.urlTree.root,[],[],this.config).segmentGroup,e=new Yd(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Fd).pipe(T(t=>this.createUrlTree(_f(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Yh(t=>{if(t instanceof ff)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof pf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Fd).pipe(T(e=>this.createUrlTree(_f(e),t.queryParams,t.fragment))).pipe(Yh(t=>{if(t instanceof pf)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Yd([],{[Fd]:t}):t;return new Jd(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(T(t=>new Yd([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return F(r).pipe(ed(r=>{const s=n.children[r],i=of(e,r);return this.expandSegmentGroup(t,i,s,r).pipe(T(t=>({segment:t,outlet:r})))}),Gh((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Zh((e,n)=>t(e,n,r)):y,nd(1),n?ud(e):id(()=>new Dh))}())}expandSegment(t,e,n,r,s,i){return F(n).pipe(ed(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(Yh(t=>{if(t instanceof pf)return Th(null);throw t}))),dd(t=>!!t),Yh((t,n)=>{if(t instanceof Dh||"EmptyError"===t.name){if(df(e,r,s))return Th(new Yd([],{}));throw new pf(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return hf(r,e,s,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):mf(e):mf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?gf(s):this.lineralizeSegments(n,s).pipe(U(n=>{const s=new Yd(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=lf(e,r,s);if(!o)return mf(e);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?gf(c):this.lineralizeSegments(r,c).pipe(U(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Th(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(T(t=>(n._loadedConfig=t,new Yd(r,{})))):Th(new Yd(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=lf(e,n,r);if(!i)return mf(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(U(t=>{const r=t.module,i=t.routes,{segmentGroup:a,slicedSegments:u}=uf(e,o,l,i),c=new Yd(a.segments,a.children);if(0===u.length&&c.hasChildren())return this.expandChildren(r,i,c).pipe(T(t=>new Yd(o,t)));if(0===i.length&&0===u.length)return Th(new Yd(o,{}));const h=sf(n)===s;return this.expandSegment(r,c,i,u,h?Fd:s,!0).pipe(T(t=>new Yd(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Th(new Wp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Th(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(U(n=>n?this.configLoader.load(t.injector,e).pipe(T(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(Ld(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Th(new Wp([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Th(r.map(r=>{const s=t.get(r);let i;if(function(t){return t&&Zp(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!Zp(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Gd(i)})).pipe(Yp(),fd(t=>{if(!Kp(t))return;const e=Ld(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),T(t=>!0===t)):Th(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Th(n);if(r.numberOfChildren>1||!r.children.primary)return yf(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Jd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Bd(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return Bd(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new Yd(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function _f(t){const e={};for(const n of Object.keys(t.children)){const r=_f(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Yd(t.segments.concat(e.segments),e.children)}return t}(new Yd(t.segments,e))}class bf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class wf{constructor(t,e){this.component=t,this.route=e}}function Cf(t,e,n){const r=t._root;return Ef(r,e?e._root:null,n,[r.value])}function Sf(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Ef(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=wp(e);return t.children.forEach(t=>{!function(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!tp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!tp(t.url,e.url)||!Hd(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rp(t,e)||!Hd(t.queryParams,e.queryParams);case"paramsChange":default:return!Rp(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new bf(r)):(i.data=o.data,i._resolvedData=o._resolvedData),Ef(t,e,i.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new wf(a.outlet.component,o))}else o&&xf(e,a,s),s.canActivateChecks.push(new bf(r)),Ef(t,null,i.component?a?a.children:null:n,r,s)}(t,i[t.value.outlet],n,r.concat([t.value]),s),delete i[t.value.outlet]}),Bd(i,(t,e)=>xf(t,n.getContext(e),s)),s}function xf(t,e,n){const r=wp(t),s=t.value;Bd(r,(t,r)=>{xf(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new wf(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Tf{}function Af(t){return new v(e=>e.error(t))}class Of{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){const t=uf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Fd);if(null===e)return null;const n=new Tp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Fd,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new bp(n,e),s=new Ap(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=xp(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const r=e.children[s],i=of(t,s),o=this.processSegmentGroup(i,r,s);if(null===o)return null;n.push(...o)}const r=Pf(n);return r.sort((t,e)=>t.value.outlet===Fd?-1:e.value.outlet===Fd?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,n,r){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,r);if(null!==t)return t}return df(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!hf(t,e,n,r))return null;let s,i=[],o=[];if("**"===t.path){const r=n.length>0?$d(n).parameters:{};s=new Tp(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Nf(t),sf(t),t.component,t,Rf(e),If(e)+n.length,Df(t))}else{const r=lf(e,t,n);if(!r.matched)return null;i=r.consumedSegments,o=n.slice(r.lastChild),s=new Tp(i,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Nf(t),sf(t),t.component,t,Rf(e),If(e)+i.length,Df(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:u}=uf(e,i,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new bp(s,t)]}if(0===a.length&&0===u.length)return[new bp(s,[])];const c=sf(t)===r,h=this.processSegment(a,l,u,c?Fd:r);return null===h?null:[new bp(s,h)]}}function kf(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Pf(t){const e=[],n=new Set;for(const r of t){if(!kf(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=Pf(r.children);e.push(new bp(r.value,t))}return e.filter(t=>!n.has(t))}function Rf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function If(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 Nf(t){return t.data||{}}function Df(t){return t.resolve||{}}function jf(t){return Lh(e=>{const n=t(e);return n?F(n).pipe(T(()=>e)):Th(e)})}class Ff extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Mf=new Un("ROUTES");class Vf{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(T(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Wp(qd(r.injector.get(Mf,void 0,_t.Self|_t.Optional)).map(rf),r)}),Yh(t=>{throw e._loader$=void 0,t}));return e._loader$=new W(n,()=>new S).pipe(B()),e._loader$}loadModuleFactory(t){return"string"==typeof t?F(this.loader.load(t)):Gd(t()).pipe(U(t=>t instanceof Ga?Th(t):F(this.compiler.compileModuleAsync(t))))}}class Lf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Uf,this.attachRef=null}}class Uf{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Lf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Hf{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function zf(t){throw t}function qf(t,e,n){return e.parse("/")}function $f(t,e){return Th(null)}let Bf=(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=zf,this.malformedUriErrorHandler=qf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:$f,afterPreactivation:$f},this.urlHandlingStrategy=new Hf,this.routeReuseStrategy=new Ff,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(Ba),this.console=s.get(vl);const l=s.get(Rl);this.isNgZoneEnabled=l instanceof Rl&&Rl.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new Jd(new Yd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Vf(i,o,t=>this.triggerEvent(new kd(t)),t=>this.triggerEvent(new Pd(t))),this.routerState=Sp(this.currentUrlTree,this.rootComponentType),this.transitions=new Ah({id: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()}setupNavigations(t){const e=this.events;return t.pipe(Zh(t=>0!==t.id),T(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Lh(t=>{let n=!1,r=!1;return Th(t).pipe(fd(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Lh(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Th(t).pipe(Lh(t=>{const n=this.transitions.getValue();return e.next(new bd(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Fh:Promise.resolve(t)}),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,Lh(t=>function(t,e,n,r,s){return new vf(t,e,n,r,s).apply()}(r,s,i,t.extractedUrl,o).pipe(T(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),fd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return U(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){try{const o=new Of(t,e,n,r,s,i).recognize();return null===o?Af(new Tf):Th(o)}catch(o){return Af(o)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(T(t=>Object.assign(Object.assign({},i),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),fd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new Ed(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new bd(n,this.serializeUrl(r),s,i);e.next(a);const l=Sp(r,this.rootComponentType).snapshot;return Th(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Fh}),jf(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),fd(t=>{const e=new xd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),T(t=>Object.assign(Object.assign({},t),{guards:Cf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return U(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Th(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return F(t).pipe(U(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Th(i.map(i=>{const o=Sf(i,e,s);let a;if(function(t){return t&&Zp(t.canDeactivate)}(o))a=Gd(o.canDeactivate(t,e,n,r));else{if(!Zp(o))throw new Error("Invalid CanDeactivate guard");a=Gd(o(t,e,n,r))}return a.pipe(dd())})).pipe(Yp()):Th(!0)}(t.component,t.route,n,e,r)),dd(t=>!0!==t,!0))}(o,r,s,t).pipe(U(n=>n&&"boolean"==typeof n?function(t,e,n,r){return F(e).pipe(ed(e=>jh(function(t,e){return null!==t&&e&&e(new Rd(t)),Th(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Nd(t)),Th(!0)}(e.route,r),function(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Vh(()=>Th(e.guards.map(s=>{const i=Sf(s,e.node,n);let o;if(function(t){return t&&Zp(t.canActivateChild)}(i))o=Gd(i.canActivateChild(r,t));else{if(!Zp(i))throw new Error("Invalid CanActivateChild guard");o=Gd(i(r,t))}return o.pipe(dd())})).pipe(Yp())));return Th(s).pipe(Yp())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Th(r.map(r=>Vh(()=>{const s=Sf(r,e,n);let i;if(function(t){return t&&Zp(t.canActivate)}(s))i=Gd(s.canActivate(e,t));else{if(!Zp(s))throw new Error("Invalid CanActivate guard");i=Gd(s(e,t))}return i.pipe(dd())}))).pipe(Yp()):Th(!0)}(t,e.route,n))),dd(t=>!0!==t,!0))}(r,i,t,e):Th(n)),T(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),fd(t=>{if(Kp(t.guardsResult)){const e=Ld(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Td(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Zh(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Cd(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),jf(t=>{if(t.guards.canActivateChecks.length)return Th(t).pipe(fd(t=>{const e=new Ad(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Lh(t=>{let n=!1;return Th(t).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,U(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Th(t);let i=0;return F(n).pipe(ed(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Th({});const i={};return F(s).pipe(U(s=>function(t,e,n,r){const s=Sf(t,e,r);return Gd(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(fd(t=>{i[s]=t}))),nd(1),U(()=>Object.keys(i).length===s.length?Th(i):Fh))}(t._resolve,t,e,r).pipe(T(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),xp(t,n).resolve),null)))}(t.route,e,r,s)),fd(()=>i++),nd(1),U(e=>i===n.length?Th(t):Fh))})),fd({next:()=>n=!0,complete:()=>{if(!n){const n=new Cd(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,s}),fd(t=>{const e=new Od(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),jf(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),T(t=>{const e=function(t,e,n){const r=Ip(t,e._root,n?n._root:void 0);return new Cp(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),fd(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),T(t=>(new Gp(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),fd({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Cd(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new yd(s))),Yh(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Kp(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Cd(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Sd(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return Fh}));var s,i,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(r,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){tf(t),this.config=t.map(rf),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(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:i,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let u=null;switch(i){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,s){if(0===n.length)return Fp(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Vp(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Bd(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new Vp(n,e,r)}(n);if(i.toRoot())return Fp(e.root,new Yd([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new Lp(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Lp(t,t===e.root,0)}const r=Dp(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Lp(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?Hp(o.segmentGroup,o.index,i.commands):Up(o.segmentGroup,o.index,i.commands);return Fp(o.segmentGroup,a,e,r,s)}(a,this.currentUrlTree,t,u,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Kp(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new wd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){if(this.disposed)return Promise.resolve(!1);const i=this.getTransition(),o="imperative"!==e&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,u,c;s?(l=s.resolve,u=s.reject,c=s.promise):c=new Promise((t,e)=>{l=t,u=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(nr(zn),nr(ep),nr(Uf),nr(Eu),nr(Gi),nr(Xl),nr(Ol),nr(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Gf=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ul,this.deactivateEvents=new ul,this.name=r||Fd,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Qf(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(oo(Uf),oo(Wa),oo(la),("name",function(t,e){const n=t.attrs;if(n){const t=n.length;let r=0;for(;r{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new Vf(e,n,e=>t.triggerEvent(new kd(e)),e=>t.triggerEvent(new Pd(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Zh(t=>t instanceof wd),ed(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Ba);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return F(n).pipe(q(),T(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Th(e._loadedConfig):this.loader.load(t.injector,e)).pipe(U(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(nr(Bf),nr(Xl),nr(Ol),nr(Gi),nr(Wf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Jf=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof bd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof wd&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof jd&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new jd(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(nr(Bf),nr(ju),nr(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Yf=new Un("ROUTER_CONFIGURATION"),Xf=new Un("ROUTER_FORROOT_GUARD"),tm=[Eu,{provide:ep,useClass:np},{provide:Bf,useFactory:function(t,e,n,r,s,i,o,a={},l,u){const c=new Bf(null,t,e,n,r,s,i,qd(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),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)}(a,c),a.enableTracing){const t=lu();c.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c},deps:[ep,Uf,Eu,Gi,Xl,Ol,Mf,Yf,[class{},new or],[class{},new or]]},Uf,{provide:Ep,useFactory:function(t){return t.routerState.root},deps:[Bf]},{provide:Xl,useClass:nu},Kf,Zf,class{preload(t,e){return e().pipe(Yh(()=>Th(null)))}},{provide:Yf,useValue:{enableTracing:!1}}];function em(){return new Gl("Router",Bf)}let nm=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[tm,om(e),{provide:Xf,useFactory:im,deps:[[Bf,new or,new ar]]},{provide:Yf,useValue:n||{}},{provide:_u,useFactory:sm,deps:[cu,[new ir(wu),new or],Yf]},{provide:Jf,useFactory:rm,deps:[Bf,ju,Yf]},{provide:Wf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Zf},{provide:Gl,multi:!0,useFactory:em},[am,{provide:cl,multi:!0,useFactory:lm,deps:[am]},{provide:cm,useFactory:um,deps:[am]},{provide:yl,multi:!0,useExisting:cm}]]}}static forChild(e){return{ngModule:t,providers:[om(e)]}}}return t.\u0275fac=function(e){return new(e||t)(nr(Xf,8),nr(Bf,8))},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({}),t})();function rm(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Jf(t,e,n)}function sm(t,e,n={}){return n.useHash?new Su(t,e):new Cu(t,e)}function im(t){return"guarded"}function om(t){return[{provide:Hn,multi:!0,useValue:t},{provide:Mf,multi:!0,useValue:t}]}let am=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(du,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Bf),r=this.injector.get(Yf);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Th(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Yf),n=this.injector.get(Kf),r=this.injector.get(Jf),s=this.injector.get(Bf),i=this.injector.get(Jl);t===i.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(nr(Gi))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function lm(t){return t.appInitializer.bind(t)}function um(t){return t.bootstrapListener.bind(t)}const cm=new Un("Router Initializer");let hm=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}redirect(){this.router.navigate(["imp"])}}return t.\u0275fac=function(e){return new(e||t)(oo(Bf))},t.\u0275cmp=zt({type:t,selectors:[["app-mail"]],decls:7,vars:0,consts:[["id","content"],["id","dados",1,"container"],[1,"title"],[1,"page-header"],[1,"mb-1","col-sm-12"],["type","button","value","IMPRIMIR",1,"btn","btn-primary","btn-lg","ml-5","mt-2",3,"click"]],template:function(t,e){1&t&&(uo(0,"div",0),uo(1,"div",1),uo(2,"div",2),uo(3,"h3",3),Ho(4,"Seu formul\xe1rio foi enviado com sucesso!"),co(),uo(5,"div",4),uo(6,"input",5),vo("click",function(){return e.redirect()}),co(),co(),co(),co(),co())},styles:["#content[_ngcontent-%COMP%]{font-size:2rem;border:1px solid grey;margin:100px auto;width:75%;height:100%}#dados[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:600px){#content[_ngcontent-%COMP%]{font-size:.2rem}}"]}),t})();class dm{constructor(){this.matricula="",this.nome="",this.nomeM="",this.nomeP="",this.dataN=null,this.naturalidade="",this.ufN="",this.naoAcumuloionalidade="",this.estadoC="",this.sexo="",this.pd="",this.td="",this.cpf="",this.ppn="",this.rg="",this.oe="",this.ufrg="",this.dataE=null,this.te="",this.zona="",this.secao="",this.uftitulo="",this.logradouro="",this.numero="",this.complemento="",this.bairro="",this.cep="",this.cidade="",this.uf="",this.telefone="",this.celular="",this.email="",this.dataA=null,this.ts="",this.oc="",this.ac=null,this.label1="",this.label2="",this.label3="",this.oo="",this.cEf="",this.cHs="",this.label4="",this.label5=""}}class pm{}class fm{}class mm{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof mm?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new mm;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof mm?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class gm{encodeKey(t){return ym(t)}encodeValue(t){return ym(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function ym(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class vm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new gm,t.fromString){if(t.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(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new vm({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function _m(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function bm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function wm(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Cm{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new mm),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new Cm(e,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}var Sm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Em{constructor(t,e=200,n="OK"){this.headers=t.headers||new mm,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class xm extends Em{constructor(t={}){super(t),this.type=Sm.ResponseHeader}clone(t={}){return new xm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Tm extends Em{constructor(t={}){super(t),this.type=Sm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Tm({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Am extends Em{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Om(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let km=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Cm)r=t;else{let s,i;s=n.headers instanceof mm?n.headers:new mm(n.headers),n.params&&(i=n.params instanceof vm?n.params:new vm({fromObject:n.params})),r=new Cm(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Th(r).pipe(ed(t=>this.handler.handle(t)));if(t instanceof Cm||"events"===n.observe)return s;const i=s.pipe(Zh(t=>t instanceof Tm));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(T(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(T(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new vm).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Om(n,e))}post(t,e,n={}){return this.request("POST",t,Om(n,e))}put(t,e,n={}){return this.request("PUT",t,Om(n,e))}}return t.\u0275fac=function(e){return new(e||t)(nr(pm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Pm{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Rm=new Un("HTTP_INTERCEPTORS");let Im=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Nm=/^\)\]\}',?\n/;class Dm{}let jm=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Fm=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new mm(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new xm({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Nm,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=t,u&&(u=!1,l={error:c,text:l})}}u?(e.next(new Tm({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Am({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new Am({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const u=r=>{l||(e.next(i()),l=!0);let s={type:Sm.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},c=t=>{let n={type:Sm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),e.next({type:Sm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(nr(Dm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Mm=new Un("XSRF_COOKIE_NAME"),Vm=new Un("XSRF_HEADER_NAME");class Lm{}let Um=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Pu(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(nr(uu),nr(gl),nr(Mm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Hm=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(nr(Lm),nr(Vm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),zm=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Rm,[]);this.chain=t.reduceRight((t,e)=>new Pm(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(nr(fm),nr(Gi))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),qm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Hm,useClass:Im}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Mm,useValue:e.cookieName}:[],e.headerName?{provide:Vm,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({providers:[Hm,{provide:Rm,useExisting:Hm,multi:!0},{provide:Lm,useClass:Um},{provide:Mm,useValue:"XSRF-TOKEN"},{provide:Vm,useValue:"X-XSRF-TOKEN"}]}),t})(),$m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({providers:[km,{provide:pm,useClass:zm},Fm,{provide:fm,useExisting:Fm},jm,{provide:Dm,useExisting:jm}],imports:[[qm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),Bm=(()=>{class t{constructor(t,e){this.http=t,this.router=e,this.api="https://mdhouse.me:4002/",this.httpOptions={headers:new mm({"Content-Type":"application/json"})}}setRecadastramento(t){return new Promise((e,n)=>{this.http.post(this.api+"site/setRecadastramento",JSON.stringify(t),this.httpOptions).subscribe(t=>{e(t)},t=>{n(t)})})}}return t.\u0275fac=function(e){return new(e||t)(nr(km),nr(Bf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Gm{}const Qm="*";function Wm(t,e=null){return{type:4,styles:e,timings:t}}function Zm(t,e=null){return{type:2,steps:t,options:e}}function Km(t){return{type:6,styles:t,offset:null}}function Jm(t,e,n){return{type:0,name:t,styles:e,options:n}}function Ym(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Xm(t){Promise.resolve(null).then(t)}class tg{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Xm(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class eg{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const s=this.players.length;0==s?Xm(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const ng=["toast-component",""];function rg(t,e){if(1&t){const t=mo();uo(0,"button",5),vo("click",function(){return Pe(t),wo().remove()}),uo(1,"span",6),Ho(2,"\xd7"),co(),co()}}function sg(t,e){if(1&t&&(po(0),Ho(1),fo()),2&t){const t=wo(2);Fs(1),zo("[",t.duplicatesCount+1,"]")}}function ig(t,e){if(1&t&&(uo(0,"div"),Ho(1),io(2,sg,2,1,"ng-container",4),co()),2&t){const t=wo();Po(t.options.titleClass),so("aria-label",t.title),Fs(1),zo(" ",t.title," "),Fs(1),ao("ngIf",t.duplicatesCount)}}function og(t,e){if(1&t&&ho(0,"div",7),2&t){const t=wo();Po(t.options.messageClass),ao("innerHTML",t.message,Br)}}function ag(t,e){if(1&t&&(uo(0,"div",8),Ho(1),co()),2&t){const t=wo();Po(t.options.messageClass),so("aria-label",t.message),Fs(1),zo(" ",t.message," ")}}function lg(t,e){if(1&t&&(uo(0,"div"),ho(1,"div",9),co()),2&t){const t=wo();Fs(1),Oo("width",t.width+"%")}}function ug(t,e){if(1&t){const t=mo();uo(0,"button",5),vo("click",function(){return Pe(t),wo().remove()}),uo(1,"span",6),Ho(2,"\xd7"),co(),co()}}function cg(t,e){if(1&t&&(po(0),Ho(1),fo()),2&t){const t=wo(2);Fs(1),zo("[",t.duplicatesCount+1,"]")}}function hg(t,e){if(1&t&&(uo(0,"div"),Ho(1),io(2,cg,2,1,"ng-container",4),co()),2&t){const t=wo();Po(t.options.titleClass),so("aria-label",t.title),Fs(1),zo(" ",t.title," "),Fs(1),ao("ngIf",t.duplicatesCount)}}function dg(t,e){if(1&t&&ho(0,"div",7),2&t){const t=wo();Po(t.options.messageClass),ao("innerHTML",t.message,Br)}}function pg(t,e){if(1&t&&(uo(0,"div",8),Ho(1),co()),2&t){const t=wo();Po(t.options.messageClass),so("aria-label",t.message),Fs(1),zo(" ",t.message," ")}}function fg(t,e){if(1&t&&(uo(0,"div"),ho(1,"div",9),co()),2&t){const t=wo();Fs(1),Oo("width",t.width+"%")}}class mg{constructor(t,e,n,r,s,i){this.toastId=t,this.config=e,this.message=n,this.title=r,this.toastType=s,this.toastRef=i,this._onTap=new S,this._onAction=new S,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const gg={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},yg=new Un("ToastConfig");class vg{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class _g extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=n.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let bg=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(nr(uu))},t.\u0275prov=ct({factory:function(){return new t(nr(uu))},token:t,providedIn:"root"}),t})();class wg{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let Cg=(()=>{class t{constructor(t,e,n,r){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=r,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new _g(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new wg(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(nr(bg),nr(la),nr(Jl),nr(uu))},t.\u0275prov=ct({factory:function(){return new t(nr(bg),nr(la),nr(Jl),nr(uu))},token:t,providedIn:"root"}),t})();class Sg{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new S,this._activate=new S,this._manualClose=new S,this._resetTimeout=new S,this._countDuplicate=new S}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Eg{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===mg?this._toastPackage:this._parentInjector.get(t,e,n)}}let xg=(()=>{class t{constructor(t,e,n,r,s){this.overlay=e,this._injector=n,this.sanitizer=r,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},r=""){return this._preBuildNotification(r,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActivethis._buildNotification(t,e,n,r)):this._buildNotification(t,e,n,r)}_buildNotification(t,e,n,r){if(!r.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=e;let i=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(i=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const o=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let a=e;e&&r.enableHtml&&(a=this.sanitizer.sanitize($r.HTML,e));const l=new Sg(o),u=new mg(this.index,r,a,n,t,l),c=new Eg(u,this._injector),h=new vg(r.toastComponent,c),d=o.attach(h,this.toastrConfig.newestOnTop);l.componentInstance=d.instance;const p={toastId:this.index,title:n||"",message:e||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:d};return i||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{p.toastRef.activate()})),this.toasts.push(p),p}}return t.\u0275fac=function(e){return new(e||t)(nr(yg),nr(Cg),nr(Gi),nr(cc),nr(Rl))},t.\u0275prov=ct({factory:function(){return new t(nr(yg),nr(Cg),nr(Pi),nr(cc),nr(Rl))},token:t,providedIn:"root"}),t})(),Tg=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}var e;return t.\u0275fac=function(e){return new(e||t)(oo(xg),oo(mg),oo(Rl))},t.\u0275cmp=zt({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&vo("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(qo("@flyInOut",e.state),Po(e.toastClasses),Oo("display",e.displayStyle))},attrs:ng,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(io(0,rg,3,0,"button",0),io(1,ig,3,5,"div",1),io(2,og,1,3,"div",2),io(3,ag,2,4,"div",3),io(4,lg,2,2,"div",4)),2&t&&(ao("ngIf",e.options.closeButton),Fs(1),ao("ngIf",e.title),Fs(1),ao("ngIf",e.message&&e.options.enableHtml),Fs(1),ao("ngIf",e.message&&!e.options.enableHtml),Fs(1),ao("ngIf",e.options.progressBar))},directives:[Ru],encapsulation:2,data:{animation:[(e=[Jm("inactive",Km({opacity:0})),Jm("active",Km({opacity:1})),Jm("removed",Km({opacity:0})),Ym("inactive => active",Wm("{{ easeTime }}ms {{ easing }}")),Ym("active => removed",Wm("{{ easeTime }}ms {{ easing }}"))],{type:7,name:"flyInOut",definitions:e,options:{}})]}}),t})();const Ag=Object.assign(Object.assign({},gg),{toastComponent:Tg});let Og=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:yg,useValue:{default:Ag,config:e}}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({imports:[[Du]]}),t})(),kg=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return t.\u0275fac=function(e){return new(e||t)(oo(xg),oo(mg),oo(Jl))},t.\u0275cmp=zt({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&vo("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(Po(e.toastClasses),Oo("display",e.displayStyle))},attrs:ng,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(io(0,ug,3,0,"button",0),io(1,hg,3,5,"div",1),io(2,dg,1,3,"div",2),io(3,pg,2,4,"div",3),io(4,fg,2,2,"div",4)),2&t&&(ao("ngIf",e.options.closeButton),Fs(1),ao("ngIf",e.title),Fs(1),ao("ngIf",e.message&&e.options.enableHtml),Fs(1),ao("ngIf",e.message&&!e.options.enableHtml),Fs(1),ao("ngIf",e.options.progressBar))},directives:[Ru],encapsulation:2}),t})();Object.assign(Object.assign({},gg),{toastComponent:kg});const Pg=[{path:"",component:(()=>{class t{constructor(t,e,n,r){this.formBuilder=t,this.router=e,this.service=n,this.toastr=r}ngOnInit(){this.createCadastro(new dm)}createCadastro(t){this.formCadastro=this.formBuilder.group({matricula:[t.matricula,xc.required],nome:[t.nome,xc.required],nomeM:[t.nomeM,xc.required],nomeP:[t.nomeP,xc.required],dataN:[t.dataN,xc.required],naturalidade:[t.naturalidade,xc.required],ufN:[t.ufN,xc.required],naoAcumuloionalidade:[t.naoAcumuloionalidade,xc.required],estadoC:[t.estadoC,xc.required],sexo:[t.sexo,xc.required],pd:[t.pd,xc.required],td:[t.td,xc.required],cpf:[t.cpf,xc.required],ppn:[t.ppn,xc.required],rg:[t.rg,xc.required],oe:[t.oe,xc.required],ufrg:[t.ufrg,xc.required],dataE:[t.dataE,xc.required],te:[t.te,xc.required],zona:[t.zona,xc.required],secao:[t.secao,xc.required],uftitulo:[t.uftitulo,xc.required],logradouro:[t.logradouro,xc.required],numero:[t.numero,xc.required],complemento:[t.complemento,xc.required],bairro:[t.bairro,xc.required],cep:[t.cep,xc.required],cidade:[t.cidade,xc.required],uf:[t.uf,xc.required],telefone:[t.telefone,xc.required],celular:[t.celular,xc.required],email:[t.email,xc.required],dataA:[t.dataA,xc.required],ts:[t.ts,xc.required],oc:[t.oc,xc.required],ac:[t.ac],label1:[t.label1],label2:[t.label2],label3:[t.label3],oo:[t.oo],cEf:[t.cEf],cHs:[t.cHs],label4:[t.label4],label5:[t.label5]})}onSubmit(){this.formCadastro.reset(new dm)}getDcl(){let t=document.getElementById("ac"),e=document.getElementById("naoAcumulo"),n=document.getElementById("dcl3"),r=document.getElementById("dcl4"),s=document.getElementById("dcl5");e.checked&&(n.setAttribute("hidden","hidden"),r.setAttribute("hidden","hidden"),s.setAttribute("hidden","hidden")),t.checked&&(n.removeAttribute("hidden"),r.removeAttribute("hidden"),s.removeAttribute("hidden"))}successmsg(){this.toastr.success("Formul\xe1rio enviado com sucesso!","Success")}errorsmsg(){this.toastr.error("Erro ao enviar formul\xe1rio!","Erro")}infomsg(t){this.toastr.info(t,"Preenchimento",{positionClass:"toast-top-right",closeButton:!0,timeOut:3e3})}redirect(){var t=this.formCadastro.value;let e=document.getElementById("naoRecebo"),n=document.getElementById("recebo"),r=document.getElementById("naoAcumulo"),s=document.getElementById("ac"),i=document.getElementById("dcProfessor"),o=document.getElementById("uP"),a=document.getElementById("dc"),l=document.getElementById("oo"),u=document.getElementById("cha"),c=document.getElementById("chNa"),h=document.getElementById("npAuxilio"),d=document.getElementById("pAuxilio"),p=document.getElementById("label1"),f=document.getElementById("label2"),m=document.getElementById("label3"),g=document.getElementById("label4"),y=document.getElementById("label5"),v=document.getElementById("label6"),_=document.getElementById("label7"),b=(document.getElementById("label8"),document.getElementById("label9")),w=document.getElementById("label10"),C=document.getElementById("label11"),S=document.getElementById("label12");if(e.checked&&(t.label1=p.innerHTML),n.checked&&(t.label1=f.innerHTML),r.checked&&(t.label2=m.innerHTML),s.checked&&(t.label2=g.innerHTML),i.checked&&(t.label3=y.innerHTML),o.checked&&(t.label3=v.innerHTML),a.checked&&(t.label3=_.innerHTML),l.checked&&(t.label3="OUTRO \xd3RG\xc3O"),u.checked&&(t.label4=b.innerHTML),c.checked&&(t.label4=w.innerHTML),h.checked&&(t.label5=C.innerHTML),d.checked&&(t.label5=S.innerHTML),!this.formCadastro.valid){if(!(t=this.formCadastro.value).matricula)return void this.infomsg("Preencha a matr\xedcula");if(!t.nome)return void this.infomsg("Preencha o nome");if(!t.nomeM)return void this.infomsg("Preencha o nome da m\xe3e");if(!t.nomeP)return void this.infomsg("Preencha o nome do pai");if(!t.dataN)return void this.infomsg("Preencha a data de nascimento");if(!t.naturalidade)return void this.infomsg("Preencha a naturalidade");if(!t.ufN)return void this.infomsg("Preencha o UF de nascimento");if(!t.naoAcumuloionalidade)return void this.infomsg("Preencha a naoAcumuloionalidade");if(!t.estadoC)return void this.infomsg("Preencha o estado civil");if(!t.sexo)return void this.infomsg("Preencha o sexo");if(!t.pd)return void this.infomsg("Preencha se possui defici\xeancia");if(!t.td)return void this.infomsg('Se n\xe3o possuir defici\xeancia, digite "N\xe3o possui" no campo Tipo de defici\xeancia');if(!t.cpf)return void this.infomsg("Preencha o cpf");if(!t.ppn)return void this.infomsg("Preencha PIS/PASEP/NIT.");if(!t.rg)return void this.infomsg("Preencha o RG");if(!t.oe)return void this.infomsg("Preencha o \xd3rg\xe3o emissor");if(!t.ufrg)return void this.infomsg("Preencha o UF RG");if(!t.dataE)return void this.infomsg("Preencha a Data de Emiss\xe3o");if(!t.te)return void this.infomsg("Preencha o T\xedtulo de Eleitor");if(!t.zona)return void this.infomsg("Preencha o n\xfamero da Zona");if(!t.secao)return void this.infomsg("Preencha o n\xfamero da Se\xe7\xe3o");if(!t.uftitulo)return void this.infomsg("Preencha o UF do T\xedtulo");if(!t.logradouro)return void this.infomsg("Preencha o Logradouro");if(!t.numero)return void this.infomsg("Preencha o n\xfamero");if(!t.complemento)return void this.infomsg("Preencha o Complemento");if(!t.bairro)return void this.infomsg("Preencha o Bairro");if(!t.cep)return void this.infomsg("Preencha o CEP");if(!t.ppn)return void this.infomsg("Preencha PIS/PASEP/NIT.");if(!t.cidade)return void this.infomsg("Preencha a Cidade");if(!t.uf)return void this.infomsg("Preencha o UF");if(!t.telefone)return void this.infomsg("Preencha o Telefone");if(!t.celular)return void this.infomsg("Preencha o Celular");if(!t.email)return void this.infomsg("Preencha o Email");if(!t.dataA)return void this.infomsg("Preencha a Data de Admiss\xe3o");if(!t.ts)return void this.infomsg("Preencha o Tipo de Servidor");if(!t.oc)return void this.infomsg("Preencha o \xd3rg\xe3o de Cess\xe3o")}this.service.setRecadastramento(this.formCadastro.value).then(t=>{if(1==t.dados){let t=JSON.stringify(this.formCadastro.value);localStorage.setItem("form",t),this.router.navigate(["imp"]),this.successmsg()}else this.errorsmsg()})}}return t.\u0275fac=function(e){return new(e||t)(oo(Eh),oo(Bf),oo(Bm),oo(xg))},t.\u0275cmp=zt({type:t,selectors:[["app-send"]],decls:284,vars:1,consts:[["id","content",1,"container"],["id","dados",1,"title"],[1,"page-header"],["name","cadastro","id","form","action","/send","method","POST",3,"formGroup","change","ngSubmit"],[1,"row"],[1,"mb-1","col-sm-4"],["for","mat",1,"form-label"],["type","text","id","mat","formControlName","matricula","required","",1,"form-control","text-capitalize"],[1,"mb-1","col-sm-8"],["for","nome",1,"form-label"],["type","text","id","nome","formControlName","nome","required","",1,"form-control","text-capitalize"],[1,"mb-1","col-sm-12"],["for","nomeM",1,"form-label"],["type","text","id","nomeM","formControlName","nomeM","required","",1,"form-control","text-capitalize"],["for","nomeP",1,"form-label"],["type","text","id","nomeP","formControlName","nomeP","required","",1,"form-control","text-capitalize"],["for","dataN",1,"form-label"],["type","date","id","date","formControlName","dataN","required","",1,"form-control","text-lowercase"],["for","naturalidade",1,"form-label"],["type","text","id","naturalidade","formControlName","naturalidade","required","",1,"form-control","text-capitalize"],["for","ufn",1,"form-label"],["type","text","id","ufn","formControlName","ufN","required","",1,"form-control","text-capitalize"],["for","naoAcumuloionalidade",1,"form-label"],["type","text","id","naoAcumuloionalidade","formControlName","naoAcumuloionalidade","required","",1,"form-control","text-capitalize"],["for","estadoC",1,"form-label"],["type","text","id","estadoC","formControlName","estadoC","required","",1,"form-control","text-capitalize"],["for","sexo",1,"form-select"],["type","text","id","sexo","formControlName","sexo","required","",1,"form-control","text-capitalize"],[1,"mb-1","col-sm-6"],["for","pd",1,"form-label"],["type","text","id","pd","formControlName","pd","required","",1,"form-control","text-capitalize"],["for","td",1,"form-label"],["type","text","id","td","formControlName","td","required","",1,"form-control","text-capitalize"],["id","doc",1,"title"],["for","cpf",1,"form-label"],["type","text","id","cpf","formControlName","cpf","required","",1,"form-control","text-capitalize"],["for","ppn",1,"form-label"],["type","text","id","ppn","formControlName","ppn","required","",1,"form-control","text-capitalize"],[1,"mb-1","col-sm-3"],["for","rg",1,"form-label"],["type","text","id","rg","formControlName","rg","required","",1,"form-control","text-capitalize"],["for","oe",1,"form-label"],["type","text","id","oe","formControlName","oe","required","",1,"form-control","text-capitalize"],["for","ufrg",1,"form-label"],["type","text","id","ufrg","formControlName","ufrg","required","",1,"form-control","text-capitalize"],["for","dataE",1,"form-label"],["type","date","id","dataE","formControlName","dataE","required","",1,"form-control","text-lowercase"],["for","te",1,"form-label"],["type","text","id","te","formControlName","te","required","",1,"form-control","text-capitalize"],["for","zona",1,"form-label"],["type","text","id","zona","formControlName","zona","required","",1,"form-control","text-capitalize"],["for","secao",1,"form-label"],["type","text","id","secao","formControlName","secao","required","",1,"form-control","text-capitalize"],["for","uft",1,"form-label"],["type","text","id","uft","formControlName","uftitulo","required","",1,"form-control","text-capitalize"],["id","end",1,"title"],[1,"mb-1","col-sm-10"],["for","logradouro",1,"form-label"],["type","text","id","logradouro","formControlName","logradouro","required","",1,"form-control","text-capitalize"],[1,"mb-1","col-sm-2"],["for","numero",1,"form-label"],["type","text","id","numero","formControlName","numero","required","",1,"form-control","text-capitalize"],["for","complemento",1,"form-label"],["type","text","id","complemento","formControlName","complemento","required","",1,"form-control","text-capitalize"],["for","bairro",1,"form-label"],["type","text","id","bairro","formControlName","bairro","required","",1,"form-control","text-capitalize"],["for","cep",1,"form-label"],["type","text","id","cep","placeholder","00000-000","formControlName","cep","required","",1,"form-control","text-capitalize"],[1,"mb-1","col-sm-5"],["for","cidade",1,"form-label"],["type","text","id","cidade","formControlName","cidade","required","",1,"form-control","text-capitalize"],[1,"mb-1","col-sm-1"],["for","uf",1,"form-label"],["type","text","id","uf","formControlName","uf","required","",1,"form-control","text-capitalize"],["for","telefone",1,"form-label"],["type","text","id","telefone","formControlName","telefone","required","",1,"form-control","text-capitalize"],["for","celular",1,"form-label"],["type","text","id","celular","placeholder","(00) 00000-0000","formControlName","celular","required","",1,"form-control","text-capitalize"],["for","email",1,"form-label"],["type","text","id","email","formControlName","email","required","",1,"form-control","text-lowercase"],["for","dataA",1,"form-label"],["type","date","id","dataA","formControlName","dataA","required","",1,"form-control","text-lowercase"],["for","ts",1,"form-label"],["type","text","id","ts","formControlName","ts","required","",1,"form-control","text-capitalize"],[1,"mb-5","col-sm-12"],["for","oc",1,"form-label"],["type","text","id","oc","formControlName","oc","required","",1,"form-control","text-capitalize"],["id","dcl1"],[1,"row","ml-2","mb-3"],[1,"form-label","dcl"],[1,"form-check"],["type","radio","value","naoRecebo","id","naoRecebo","name","dc1",1,"form-check-input"],["for","naoRecebo","id","label1",1,"form-check-label","ml-4",2,"text-align","justify","max-width","75%"],[1,"row","ml-2"],["type","radio","value","recebo","id","recebo","name","dc1",1,"form-check-input"],["for","recebo","id","label2",1,"form-check-label","ml-4",2,"text-align","justify","max-width","75%"],["color","black","size","4"],["id","dcl2"],["type","radio","value","naoAcumulo","id","naoAcumulo","name","dc2",1,"form-check-input"],["for","naoAcumulo","id","label3",1,"form-check-label","ml-4",2,"text-align","justify","max-width","75%"],["type","radio","value","ac","id","ac","name","dc2",1,"form-check-input"],["for","ac","id","label4",1,"form-check-label","ml-4",2,"text-align","justify","max-width","75%"],["id","dcl3","hidden",""],[1,"form-check","ml-3"],["type","radio","value","dcProfessor","id","dcProfessor","name","dc3",1,"form-check-input"],["for","dcProfessor","id","label5",1,"form-check-label","ml-4",2,"text-align","justify","max-width","100%"],[1,"row","mb-3",2,"margin-left","-7px"],["type","radio","value","uP","id","uP","name","dc3",1,"form-check-input"],["for","uP","id","label6",1,"form-check-label","ml-4",2,"text-align","justify"],["type","radio","value","dc","id","dc","name","dc3",1,"form-check-input"],["for","dc","id","label7",1,"form-check-label","ml-4",2,"text-align","justify"],[1,"row",2,"margin-left","-7px"],["type","radio","value","oo","id","oo","name","dc3",1,"form-check-input"],[1,"col","ml-4"],["id","label8","for","oo"],["type","text","id","oo","formControlName","oo",1,"form-control",2,"width","320px"],[1,"mr-5"],["for","cEf"],["type","text","id","cEf","formControlName","cEf",1,"form-control",2,"width","700px"],[1,"ml-4"],["for","cHs"],["type","text","id","cHs","formControlName","cHs",1,"form-control",2,"width","450px"],["id","dcl4","hidden",""],["type","radio","value","cha","id","cha","name","dc4",1,"form-check-input"],["for","cha","id","label9",1,"form-check-label","ml-4",2,"text-align","justify","max-width","75%"],["type","radio","value","chNa","id","chNa","name","dc4",1,"form-check-input"],["for","chNa","id","label10",1,"form-check-label","ml-4",2,"text-align","justify","max-width","75%"],["id","dcl5","hidden",""],[2,"width","100%"],[2,"text-decoration","underline"],["type","radio","value","npAuxilio","id","npAuxilio","name","dc5",1,"form-check-input"],["for","npAuxilio","id","label11",1,"form-check-label","ml-4",2,"text-align","justify","max-width","100%"],[1,"row","mb-5",2,"margin-left","9px"],["type","radio","value","pAuxilio","id","pAuxilio","name","dc5",1,"form-check-input"],["for","pAuxilio","id","label12",1,"form-check-label","ml-4",2,"text-align","justify","max-width","100%"],[1,"offset-5","mt-3","mb-2","ml-3col-sm-6"],["type","button","value","ENVIAR",1,"btn","btn-primary","btn-lg",3,"click"]],template:function(t,e){1&t&&(uo(0,"div",0),uo(1,"div",1),uo(2,"h3",2),Ho(3,"DADOS PESSOAIS"),co(),co(),uo(4,"form",3),vo("change",function(){return e.getDcl()})("ngSubmit",function(){return e.onSubmit()}),uo(5,"section"),uo(6,"div",4),uo(7,"div",5),uo(8,"label",6),Ho(9,"Matr\xedcula:"),co(),ho(10,"input",7),co(),uo(11,"div",8),uo(12,"label",9),Ho(13,"Nome:"),co(),ho(14,"input",10),co(),co(),uo(15,"div",4),uo(16,"div",11),uo(17,"label",12),Ho(18,"Nome da m\xe3e:"),co(),ho(19,"input",13),co(),co(),uo(20,"div",4),uo(21,"div",11),uo(22,"label",14),Ho(23,"Nome do pai:"),co(),ho(24,"input",15),co(),co(),uo(25,"div",4),uo(26,"div",5),uo(27,"label",16),Ho(28,"Data de nascimento:"),co(),ho(29,"input",17),co(),uo(30,"div",5),uo(31,"label",18),Ho(32,"Naturalidade:"),co(),ho(33,"input",19),co(),uo(34,"div",5),uo(35,"label",20),Ho(36,"UF de nascimento:"),co(),ho(37,"input",21),co(),co(),uo(38,"div",4),uo(39,"div",5),uo(40,"label",22),Ho(41,"Nacionalidade:"),co(),ho(42,"input",23),co(),uo(43,"div",5),uo(44,"label",24),Ho(45,"Estado Civil:"),co(),ho(46,"input",25),co(),uo(47,"div",5),uo(48,"label",26),Ho(49,"Sexo:"),co(),ho(50,"input",27),co(),co(),uo(51,"div",4),uo(52,"div",28),uo(53,"label",29),Ho(54,"Possui defici\xeancia:"),co(),ho(55,"input",30),co(),uo(56,"div",28),uo(57,"label",31),Ho(58,"Tipo de defici\xeancia:"),co(),ho(59,"input",32),co(),co(),co(),uo(60,"div",33),uo(61,"h3",2),Ho(62,"DOCUMENTOS"),co(),co(),uo(63,"section"),uo(64,"div",4),uo(65,"div",28),uo(66,"label",34),Ho(67,"CPF:"),co(),ho(68,"input",35),co(),uo(69,"div",28),uo(70,"label",36),Ho(71,"PIS/PASEP/NIT.:"),co(),ho(72,"input",37),co(),co(),uo(73,"div",4),uo(74,"div",38),uo(75,"label",39),Ho(76,"RG n\xba:"),co(),ho(77,"input",40),co(),uo(78,"div",38),uo(79,"label",41),Ho(80,"\xd3rg\xe3o Emissor:"),co(),ho(81,"input",42),co(),uo(82,"div",38),uo(83,"label",43),Ho(84,"UF RG:"),co(),ho(85,"input",44),co(),uo(86,"div",38),uo(87,"label",45),Ho(88,"Data de Emiss\xe3o RG:"),co(),ho(89,"input",46),co(),co(),uo(90,"div",4),uo(91,"div",38),uo(92,"label",47),Ho(93,"T\xedtulo de Eleitor n\xba:"),co(),ho(94,"input",48),co(),uo(95,"div",38),uo(96,"label",49),Ho(97,"Zona n\xba:"),co(),ho(98,"input",50),co(),uo(99,"div",38),uo(100,"label",51),Ho(101,"Se\xe7\xe3o n\xba:"),co(),ho(102,"input",52),co(),uo(103,"div",38),uo(104,"label",53),Ho(105,"UF t\xedtulo:"),co(),ho(106,"input",54),co(),co(),co(),uo(107,"div",55),uo(108,"h3",2),Ho(109,"ENDERE\xc7O"),co(),co(),uo(110,"section"),uo(111,"div",4),uo(112,"div",56),uo(113,"label",57),Ho(114,"Logradouro:"),co(),ho(115,"input",58),co(),uo(116,"div",59),uo(117,"label",60),Ho(118,"N\xfamero:"),co(),ho(119,"input",61),co(),co(),uo(120,"div",4),uo(121,"div",5),uo(122,"label",62),Ho(123,"Complemento:"),co(),ho(124,"input",63),co(),uo(125,"div",28),uo(126,"label",64),Ho(127,"Bairro:"),co(),ho(128,"input",65),co(),uo(129,"div",59),uo(130,"label",66),Ho(131,"CEP:"),co(),ho(132,"input",67),co(),co(),uo(133,"div",4),uo(134,"div",68),uo(135,"label",69),Ho(136,"Cidade:"),co(),ho(137,"input",70),co(),uo(138,"div",71),uo(139,"label",72),Ho(140,"UF:"),co(),ho(141,"input",73),co(),uo(142,"div",38),uo(143,"label",74),Ho(144,"Telefone:"),co(),ho(145,"input",75),co(),uo(146,"div",38),uo(147,"label",76),Ho(148,"Celular:"),co(),ho(149,"input",77),co(),co(),uo(150,"div",4),uo(151,"div",11),uo(152,"label",78),Ho(153,"Email:"),co(),ho(154,"input",79),co(),co(),co(),uo(155,"div",55),uo(156,"h3",2),Ho(157,"DADOS FUNCIONAIS"),co(),co(),uo(158,"section"),uo(159,"div",4),uo(160,"div",5),uo(161,"label",80),Ho(162,"Data de Admiss\xe3o:"),co(),ho(163,"input",81),co(),uo(164,"div",8),uo(165,"label",82),Ho(166,"Tipo de Servidor:"),co(),ho(167,"input",83),co(),co(),uo(168,"div",4),uo(169,"div",84),uo(170,"label",85),Ho(171,"\xd3rg\xe3o de Cess\xe3o:"),co(),ho(172,"input",86),co(),co(),uo(173,"div",87),uo(174,"div",88),uo(175,"label",89),Ho(176,"DECLARA\xc7\xc3O 1:"),co(),uo(177,"div",90),ho(178,"input",91),uo(179,"label",92),Ho(180," N\xc3O RECEBO proventos de aposentadoria decorrentes de cargo(s), emprego(s) e/ou fun\xe7\xe3o(\xf5es) p\xfablica(s), inclu\xeddas as autarquias, empresas p\xfablicas, sociedades de economia mista da Uni\xe3o, dos Estados, do Distrito Federal e dos Munic\xedpios e Funda\xe7\xf5es mantidas pelo Poder P\xfablico. "),co(),co(),co(),uo(181,"div",93),uo(182,"div",90),ho(183,"input",94),uo(184,"label",95),Ho(185," Recebo proventos de aposentadoria decorrentes de cargo(s), emprego(s) e/ou fun\xe7\xe3o(\xf5es) p\xfablica(s), inclu\xeddas as autarquias, empresas p\xfablicas, sociedades de economia mista da Uni\xe3o, dos Estados, do Distrito Federal e dos Munic\xedpios e Funda\xe7\xf5es mantidas pelo Poder P\xfablico, conforme c\xf3pia do contracheque em anexo. "),co(),co(),co(),co(),ho(186,"hr",96),uo(187,"div",97),uo(188,"div",88),uo(189,"label",89),Ho(190,"DECLARA\xc7\xc3O 2:"),co(),uo(191,"div",90),ho(192,"input",98),uo(193,"label",99),Ho(194," N\xe3o acumulo cargo(s), emprego(s) e/ou fun\xe7\xe3o(\xf5es) p\xfablica(s), inclu\xeddas as autarquias, empresas p\xfablicas, sociedades de economia mista da Uni\xe3o, dos Estados, do Distrito Federal e dos Munic\xedpios e Funda\xe7\xf5es mantidas pelo Poder P\xfablico. "),co(),co(),co(),uo(195,"div",93),uo(196,"div",90),ho(197,"input",100),uo(198,"label",101),Ho(199," Acumulo cargo(s), emprego(s) e/ou fun\xe7\xe3o(\xf5es) p\xfablica(s), inclu\xeddas as autarquias, empresas p\xfablicas, sociedades de economia mista da Uni\xe3o, dos Estados, do Distrito Federal e dos Munic\xedpios e Funda\xe7\xf5es mantidas pelo Poder P\xfablico, conforme c\xf3pia do contracheque em anexo. "),co(),co(),co(),co(),ho(200,"hr",96),uo(201,"div",102),uo(202,"div",88),uo(203,"div"),uo(204,"label",89),Ho(205,"DECLARA\xc7\xc3O 3:"),co(),uo(206,"label",89),Ho(207,"SOMENTE PREENCHA ESTA DECLARA\xc7\xc3O EM CASO DE ACUMULA\xc7\xc3O DE CARGOS NA DECLARA\xc7\xc3O 02."),co(),uo(208,"label"),Ho(209,"Declaro que acumulo os seguintes cargos:"),co(),co(),ho(210,"br"),uo(211,"div",4),uo(212,"div",103),ho(213,"input",104),uo(214,"label",105),Ho(215," Dois cargos de professor; "),co(),co(),co(),co(),uo(216,"div",106),uo(217,"div",103),ho(218,"input",107),uo(219,"label",108),Ho(220," Um cargo de professor com outro t\xe9cnico ou cient\xedfico; "),co(),co(),co(),uo(221,"div",106),uo(222,"div",103),ho(223,"input",109),uo(224,"label",110),Ho(225," Dois cargos ou empregos privativos de profissionais de sa\xfade; "),co(),co(),co(),uo(226,"div",111),uo(227,"div",103),ho(228,"input",112),uo(229,"form"),uo(230,"div",4),uo(231,"div",113),uo(232,"label",114),Ho(233,"OUTRO \xd3RG\xc3O:"),co(),ho(234,"input",115),co(),uo(235,"div",116),uo(236,"label",117),Ho(237,"CARGO/EMPREGO/FUN\xc7\xc3O:"),co(),ho(238,"input",118),co(),co(),uo(239,"div",119),uo(240,"label",120),Ho(241,"CARGA HOR\xc1RIA SEMANAL:"),co(),ho(242,"input",121),co(),co(),co(),co(),ho(243,"hr",96),co(),uo(244,"div",122),uo(245,"div",88),uo(246,"label",89),Ho(247,"DECLARA\xc7\xc3O 4:"),co(),uo(248,"label",89),Ho(249,"SOMENTE PREENCHA ESTA DECLARA\xc7\xc3O EM CASO DE ACUMULA\xc7\xc3O DE CARGOS NA DECLARA\xc7\xc3O 02."),co(),uo(250,"div",90),ho(251,"input",123),uo(252,"label",124),Ho(253," A carga hor\xe1ria dos cargos acumulados, respeita a jornada semanal m\xe1xima de 60 (sessenta) horas de trabalho, em observ\xe2ncia ao entendimento consolidado pelo Tribunal de Contas da Uni\xe3o no Ac\xf3rd\xe3o no 54/2007, publicado no DOU de 8/2/2007, conforme anexa Declara\xe7\xe3o do \xf3rg\xe3o informado. "),co(),co(),co(),uo(254,"div",93),uo(255,"div",90),ho(256,"input",125),uo(257,"label",126),Ho(258," A carga hor\xe1ria dos cargos acumulados, N\xc3O respeita a jornada semanal m\xe1xima de 60 (sessenta) horas de trabalho, em observ\xe2ncia ao entendimento consolidado pelo Tribunal de Contas da Uni\xe3o no Ac\xf3rd\xe3o no 54/2007, publicado no DOU de 8/2/2007, conforme anexa Declara\xe7\xe3o do \xf3rg\xe3o informado. "),co(),co(),co(),ho(259,"hr",96),co(),uo(260,"div",127),uo(261,"div",88),uo(262,"div"),uo(263,"label",89),Ho(264,"DECLARA\xc7\xc3O 5:"),co(),uo(265,"label",89),Ho(266,"SOMENTE PREENCHA ESTA DECLARA\xc7\xc3O EM CASO DE ACUMULA\xc7\xc3O DE CARGOS NA DECLARA\xc7\xc3O 02."),co(),co(),ho(267,"br"),uo(268,"div",128),uo(269,"label",129),Ho(270,"Declaro que:"),co(),co(),uo(271,"div",4),uo(272,"div",103),ho(273,"input",130),uo(274,"label",131),Ho(275," N\xe3o percebo aux\xedlio-alimenta\xe7\xe3o no \xf3rg\xe3o/empresa em que acumulo cargo "),co(),co(),co(),co(),uo(276,"div",132),uo(277,"div",90),ho(278,"input",133),uo(279,"label",134),Ho(280," Percebo aux\xedlio-alimenta\xe7\xe3o no \xf3rg\xe3o/empresa em que acumulo cargo. "),co(),co(),co(),co(),co(),uo(281,"div",4),uo(282,"div",135),uo(283,"input",136),vo("click",function(){return e.redirect()}),co(),co(),co(),co(),co()),2&t&&(Fs(4),ao("formGroup",e.formCadastro))},directives:[ph,Gc,yh,_c,Bc,_h,wh],styles:["#content[_ngcontent-%COMP%]{width:auto;height:auto;border:1px solid grey;margin:5px auto}input[type=radio][_ngcontent-%COMP%]{position:absolute;width:35px;height:35px;border:2px solid}.title[_ngcontent-%COMP%]{text-align:center;height:60px;width:100%;background-color:grey;border:2px solid #000;margin-bottom:2px;margin-top:2px;padding:10px}a[_ngcontent-%COMP%]{border:1px solid #000}input[type=checkbox][_ngcontent-%COMP%]{width:35px;height:35px}.dcl[_ngcontent-%COMP%]{font-size:20px;text-decoration:underline}"]}),t})()},{path:"mail",component:hm},{path:"imp",component:xh}];let Rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=ht({imports:[[nm.forRoot(Pg),Du,fc],nm]}),t})(),Ig=(()=>{class t{constructor(){this.title="cadastro-app"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=zt({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(t,e){1&t&&(uo(0,"body"),ho(1,"router-outlet"),co())},directives:[Gf],styles:["body[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box;font-size:1.04em;font-weight:700}"]}),t})();function Ng(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Dg(t){switch(t.length){case 0:return new tg;case 1:return t[0];default:return new eg(t)}}function jg(t,e,n,r,s={},i={}){const o=[],a=[];let l=-1,u=null;if(r.forEach(t=>{const n=t.offset,r=n==l,c=r&&u||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,o),a){case"!":a=s[n];break;case Qm:a=i[n];break;default:a=e.normalizeStyleValue(n,r,a,o)}c[r]=a}),r||a.push(c),u=c,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Fg(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Mg(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Mg(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Mg(n,"destroy",t)))}}function Mg(t,e,n){const r=n.totalTime,s=Vg(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(s._data=i),s}function Vg(t,e,n,r,s="",i=0,o){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function Lg(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function Ug(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Hg=(t,e)=>!1,zg=(t,e)=>!1,qg=(t,e,n)=>[];const $g=Ng();($g||"undefined"!=typeof Element)&&(Hg=(t,e)=>t.contains(e),zg=(()=>{if($g||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):zg}})(),qg=(t,e,n)=>{let r=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let Yg=(()=>{class t{validateStyleProperty(t){return Qg(t)}matchesElement(t,e){return Wg(t,e)}containsElement(t,e){return Zg(t,e)}query(t,e,n){return Kg(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,s,i=[],o){return new tg(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Xg=(()=>{class t{}return t.NOOP=new Yg,t})();const ty="ng-enter",ey="ng-leave",ny="ng-trigger",ry=".ng-trigger",sy="ng-animating",iy=".ng-animating";function oy(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ay(parseFloat(e[1]),e[2])}function ay(t,e){switch(e){case"s":return 1e3*t;default:return t}}function ly(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,s=0,i="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=ay(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=ay(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=t;if(!n){let n=!1,i=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:s,easing:i}}(t,e,n)}function uy(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function cy(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else uy(t,n);return n}function hy(t,e,n){return n?e+":"+n+";":""}function dy(t){let e="";for(let n=0;n{const s=wy(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[s]),t.style[s]=e[r]}),Ng()&&dy(t))}function fy(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=wy(e);t.style[n]=""}),Ng()&&dy(t))}function my(t){return Array.isArray(t)?1==t.length?t[0]:Zm(t):t}const gy=new RegExp("{{\\s*(.+?)\\s*}}","g");function yy(t){let e=[];if("string"==typeof t){let n;for(;n=gy.exec(t);)e.push(n[1]);gy.lastIndex=0}return e}function vy(t,e,n){const r=t.toString(),s=r.replace(gy,(t,r)=>{let s=e[r];return e.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),s=""),s.toString()});return s==r?t:s}function _y(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const by=/-+([a-z0-9])/g;function wy(t){return t.replace(by,(...t)=>t[1].toUpperCase())}function Cy(t,e){return 0===t||0===e}function Sy(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let i=e[0],o=[];if(r.forEach(t=>{i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=r[1],i=r[2],o=r[3];e.push(Py(s,o)),"<"!=i[0]||s==Ty&&o==Ty||e.push(Py(o,s))}(t,n,e)):n.push(t),n}const Oy=new Set(["true","1"]),ky=new Set(["false","0"]);function Py(t,e){const n=Oy.has(t)||ky.has(t),r=Oy.has(e)||ky.has(e);return(s,i)=>{let o=t==Ty||t==s,a=e==Ty||e==i;return!o&&n&&"boolean"==typeof s&&(o=s?Oy.has(t):ky.has(t)),!a&&r&&"boolean"==typeof i&&(a=i?Oy.has(e):ky.has(e)),o&&a}}const Ry=new RegExp("s*:selfs*,?","g");function Iy(t,e,n){return new Ny(t).build(e,n)}class Ny{constructor(t){this._driver=t}build(t,e){const n=new Dy(e);return this._resetContextStyleTimingState(n),Ey(this,my(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const s=[],i=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,r+=s.depCount,i.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(t=>{if(jy(t)){const e=t;Object.keys(e).forEach(t=>{yy(e[t]).forEach(t=>{i.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=_y(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ey(this,my(t.animation),e);return{type:1,matchers:Ay(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Fy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ey(this,t,e)),options:Fy(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Ey(this,t,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:s,options:Fy(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return My(ly(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=My(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||ly(r,e),My(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let s=t.styles?t.styles:Km({});if(5==s.type)r=this.visitKeyframes(s,e);else{let s=t.styles,i=!1;if(!s){i=!0;const t={};n.easing&&(t.easing=n.easing),s=Km(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=i,r=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Qm?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,s=null;return n.forEach(t=>{if(jy(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},s=yy(t);s.length&&s.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(jy(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(jy(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),u=0;return null!=l&&(r++,u=n.offset=l),o=o||u<0||u>1,i=i||u0&&r{const i=c>0?r==h?1:c*r:s[r],o=i*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ey(this,my(t.animation),e),options:Fy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Fy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Fy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,i]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Ry,"")),[t=t.replace(/@\*/g,ry).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,iy),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,Lg(e.collectedStyles,e.currentQuerySelector,{});const o=Ey(this,my(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:t.selector,options:Fy(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:ly(t.timings,e.errors,!0);return{type:12,animation:Ey(this,my(t.animation),e),timings:n,options:null}}}class Dy{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function jy(t){return!Array.isArray(t)&&"object"==typeof t}function Fy(t){var e;return t?(t=uy(t)).params&&(t.params=(e=t.params)?uy(e):null):t={},t}function My(t,e,n){return{duration:t,delay:e,easing:n}}function Vy(t,e,n,r,s,i,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class Ly{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Uy=new RegExp(":enter","g"),Hy=new RegExp(":leave","g");function zy(t,e,n,r,s,i={},o={},a,l,u=[]){return(new qy).buildKeyframes(t,e,n,r,s,i,o,a,l,u)}class qy{buildKeyframes(t,e,n,r,s,i,o,a,l,u=[]){l=l||new Ly;const c=new By(t,e,l,r,s,u,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),Ey(this,n,c);const h=c.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,c.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Vy(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const s=null!=n.duration?oy(n.duration):null,i=null!=n.delay?oy(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),Ey(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=$y);const t=oy(s.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ey(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?oy(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Ey(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return ly(e.params?vy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(t=>{i.forwardTime((t.offset||0)*s),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?oy(r.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$y);let i=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{e.currentQueryIndex=r;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Ey(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(i),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,s=t.timings,i=Math.abs(s.duration),o=i*(e.currentQueryTotal-1);let a=i*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const u=l.currentTime;Ey(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const $y={};class By{constructor(t,e,n,r,s,i,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$y,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Gy(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=oy(n.duration)),null!=n.delay&&(r.delay=oy(n.delay));const s=n.params;if(s){let t=r.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=vy(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,s=new By(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=$y,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new Qy(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,i){let o=[];if(r&&o.push(this.element),t.length>0){t=(t=t.replace(Uy,"."+this._enterClassName)).replace(Hy,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||i.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Gy{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Gy(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Qm,this._currentKeyframe[t]=Qm}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},i=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=Qm})):cy(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(i).forEach(t=>{const e=vy(i[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Qm),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=cy(s,!0);Object.keys(o).forEach(n=>{const r=o[n];"!"==r?t.add(n):r==Qm&&e.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=t.size?_y(t.values()):[],i=e.size?_y(e.values()):[];if(n){const t=r[0],e=uy(t);t.offset=0,e.offset=1,r=[t,e]}return Vy(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class Qy extends Gy{constructor(t,e,n,r,s,i,o=!1){super(t,e,i.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],i=n+e,o=e/i,a=cy(t[0],!1);a.offset=0,s.push(a);const l=cy(t[0],!1);l.offset=Wy(o),s.push(l);const u=t.length-1;for(let r=1;r<=u;r++){let o=cy(t[r],!1);o.offset=Wy((e+o.offset*n)/i),s.push(o)}n=i,e=0,r="",t=s}return Vy(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function Wy(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Zy{}class Ky extends Zy{normalizePropertyName(t,e){return wy(t)}normalizeStyleValue(t,e,n,r){let s="";const i=n.toString().trim();if(Jy[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return i+s}}const Jy=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Yy(t,e,n,r,s,i,o,a,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const Xy={};class tv{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,s){return t.some(t=>t(e,n,r,s))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],s=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return s?s.buildStyles(e,n):i}build(t,e,n,r,s,i,o,a,l,u){const c=[],h=this.ast.options&&this.ast.options.params||Xy,d=this.buildStyles(n,o&&o.params||Xy,c),p=a&&a.params||Xy,f=this.buildStyles(r,p,c),m=new Set,g=new Map,y=new Map,v="void"===r,_={params:Object.assign(Object.assign({},h),p)},b=u?[]:zy(t,e,this.ast.animation,s,i,d,f,_,l,c);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),c.length)return Yy(e,this._triggerName,n,r,v,d,f,[],[],g,y,w,c);b.forEach(t=>{const n=t.element,r=Lg(g,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const s=Lg(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=_y(m.values());return Yy(e,this._triggerName,n,r,v,d,f,b,C,g,y,w)}}class ev{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=uy(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let i=s[t];i.length>1&&(i=vy(i,r,e)),n[t]=i})}}),n}}class nv{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new ev(t.style,t.options&&t.options.params||{})}),rv(this.states,"true","1"),rv(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new tv(t,e,this.states))}),this.fallbackTransition=new tv(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(s=>s.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function rv(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const sv=new Ly;class iv{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=Iy(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,s=jg(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],s=this._animations[t];let i;const o=new Map;if(s?(i=zy(this._driver,e,s,ty,ey,{},{},n,sv,r),i.forEach(t=>{const e=Lg(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Qm)})});const a=Dg(i.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,r){const s=Vg(e,"","","");return Fg(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const ov="ng-animate-queued",av="ng-animate-disabled",lv=".ng-animate-disabled",uv=[],cv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class dv{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=uy(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const pv="void",fv=new dv(pv);class mv{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Cv(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const i=Lg(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};i.push(o);const a=Lg(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Cv(t,ny),Cv(t,"ng-trigger-"+e),a[e]=fv),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const s=this._getTrigger(e),i=new yv(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Cv(t,ny),Cv(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new dv(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=fv),l.value!==pv&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let s=0;s{fy(t,n),py(t,r)})}return}const u=Lg(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let c=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!c){if(!r)return;c=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:c,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Cv(t,ov),i.onStart(()=>{Sv(t,ov)})),i.onDone(()=>{let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(i);t>=0&&n.splice(t,1)}}),this.players.push(i),u.push(i),i}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,ry,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const s=this._engine.statesByElement.get(t);if(s){const i=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,pv,r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Dg(i).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const r=new Set;e.forEach(e=>{const s=e.name;if(r.has(s))return;r.add(s);const i=this._triggers[s].fallbackTransition,o=n[s]||fv,a=new dv(pv),l=new yv(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:i,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==cv||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Cv(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(e=>{if(e.name==n.triggerName){const r=Vg(s,n.triggerName,n.fromState.value,n.toState.value);r._data=t,Fg(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class gv{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new mv(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Cv(t,av)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Sv(t,av))}removeNode(t,e,n,r){if(vv(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,s){return vv(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,ry,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,iy,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Dg(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=cv,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,lv)&&this.markElementAsDisabled(t,!1),this.driver.query(t,lv,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Dg(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new Ly,r=[],s=new Map,i=[],o=new Map,a=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=ty+f++;p.set(e,n),t.forEach(t=>Cv(t,n))});const m=[],g=new Set,y=new Set;for(let P=0;Pg.add(t)):y.add(t))}const v=new Map,_=wv(h,Array.from(g));_.forEach((t,e)=>{const n=ey+f++;v.set(e,n),t.forEach(t=>Cv(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Sv(t,n))}),_.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>Sv(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!c||!this.driver.containsElement(c,s),h=v.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,h,u);if(f.errors&&f.errors.length)w.push(f);else{if(u)return e.onStart(()=>fy(s,f.fromStyles)),e.onDestroy(()=>py(s,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>fy(s,f.fromStyles)),e.onDestroy(()=>py(s,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),i.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>Lg(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=l.get(e);r||l.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,S=new Map;i.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Lg(C,e,[]).push(t),t.destroy()})});const E=m.filter(t=>Tv(t,a,l)),x=new Map;bv(x,this.driver,y,l,Qm).forEach(t=>{Tv(t,a,l)&&E.push(t)});const T=new Map;d.forEach((t,e)=>{bv(T,this.driver,new Set(t),a,"!")}),E.forEach(t=>{const e=x.get(t),n=T.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const A=[],O=[],k={};i.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(u.has(e))return i.onDestroy(()=>py(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let t=k;if(S.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>S.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,C,s,T,x);if(i.setRealPlayer(n),t===k)A.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=Dg(e)),r.push(i)}}else fy(e,o.fromStyles),i.onDestroy(()=>py(e,o.toStyles)),O.push(i),u.has(e)&&r.push(i)}),O.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Dg(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let P=0;P!t.destroyed);r.length?Ev(this,t,r):this.processLeaveNode(t)}return m.length=0,A.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),A}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let i=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(i=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==pv;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),i}_beforeAnimationBuild(t,e,n){const r=e.element,s=e.isRemovalTransition?void 0:t,i=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==r,l=Lg(n,t,[]);this._getPreviousPlayers(t,a,s,i,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}fy(r,e.fromStyles)}_buildAnimation(t,e,n,r,s,i){const o=e.triggerName,a=e.element,l=[],u=new Set,c=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new tg(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return xv(t,e),e}((n.get(h)||uv).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=s.get(h),g=i.get(h),y=jg(0,this._normalizer,0,e.keyframes,m,g),v=this._buildPlayer(e,y,f);if(e.subTimeline&&r&&c.add(h),p){const e=new yv(t,o,h);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{Lg(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>Cv(t,sy));const d=Dg(h);return d.onDestroy(()=>{u.forEach(t=>Sv(t,sy)),py(a,e.toStyles)}),c.forEach(t=>{Lg(r,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new tg(t.duration,t.delay)}}class yv{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new tg,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Fg(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Lg(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function vv(t){return t&&1===t.nodeType}function _v(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function bv(t,e,n,r,s){const i=[];n.forEach(t=>i.push(_v(t)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(t=>{const n=i[t]=e.computeStyle(r,t,s);n&&0!=n.length||(r.__ng_removed=hv,o.push(r))}),t.set(r,i)});let a=0;return n.forEach(t=>_v(t,i[a++])),o}function wv(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),s=new Map;function i(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:r.has(o)?1:i(o),s.set(t,e),e}return e.forEach(t=>{const e=i(t);1!==e&&n.get(e).push(t)}),n}function Cv(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Sv(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ev(t,e,n){Dg(n).onDone(()=>t.processLeaveNode(e))}function xv(t,e){for(let n=0;ns.add(t)):e.set(t,r),n.delete(t),!0}class Av{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new gv(t,e,n),this._timelineEngine=new iv(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,s){const i=t+"-"+r;let o=this._triggerCache[i];if(!o){const t=[],e=Iy(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new nv(t,e)}(r,e),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(e,r,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,s]=Ug(n);this._timelineEngine.command(t,e,s,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if("@"==n.charAt(0)){const[t,r]=Ug(n);return this._timelineEngine.listen(t,e,r,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ov(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Pv(e[0]),e.length>1&&(r=Pv(e[e.length-1]))):e&&(n=Pv(e)),n||r?new kv(t,n,r):null}let kv=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&py(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(py(this._element,this._initialStyles),this._endStyles&&(py(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(fy(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fy(this._element,this._endStyles),this._endStyles=null),py(this._el