text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("rzic")},A9V9:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="A9V9"},rzic:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e},0)}const l={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},a=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function u(e){return null!==e&&"object"==typeof e}const c=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;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 e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(r(i)){s&&(this._unsubscribe=void 0);try{i.call(this)}catch(l){t=l instanceof c?d(l.errors):[l]}}if(a(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(u(n))try{n.unsubscribe()}catch(l){t=t||[],l instanceof c?t=t.concat(d(l.errors)):t.push(l)}}}if(t)throw new c(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof c?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const r=new f(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends f{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==l&&(o=Object.create(t),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(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(e){return e}let y=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,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(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=v(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[g](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?_:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function v(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const b=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends f{constructor(e){super(e),this.destination=e}}let S=(()=>{class e extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(e){const t=new E(this,this);return t.operator=e,t}next(e){if(this.closed)throw new b;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new b;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new b;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new b;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new b;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new w(this,e))}asObservable(){const e=new y;return e.source=this,e}}return e.create=(e,t)=>new E(e,t),e})();class E extends S{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function x(e){return e&&"function"==typeof e.schedule}function T(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new k(e,t))}}class k{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new R(e,this.project,this.thisArg))}}class R extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const A=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const I=O(),P=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function N(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const D=e=>{if(e&&"function"==typeof e[g])return r=e,e=>{const t=r[g]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(P(e))return A(e);if(N(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[I])return t=e,e=>{const n=t[I]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,r};function F(e,t){return new y(n=>{const r=new h;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function M(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[g]}(e))return function(e,t){return new y(n=>{const r=new h;return r.add(t.schedule(()=>{const s=e[g]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(N(e))return function(e,t){return new y(n=>{const r=new h;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(P(e))return F(e,t);if(function(e){return e&&"function"==typeof e[I]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new y(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[I](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof y?e:new y(D(e))}class L extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class V extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function j(e,t){if(t.closed)return;if(e instanceof y)return e.subscribe(t);let n;try{n=D(e)(t)}catch(r){t.error(r)}return n}function U(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(U((n,r)=>M(e(n,r)).pipe(T((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new $(e,n)))}class ${constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new z(e,this.project,this.concurrent))}}class z extends V{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new L(this),n=this.destination;n.add(t);const r=j(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(e=Number.POSITIVE_INFINITY){return U(_,e)}function B(e,t){return t?F(e,t):new y(A(e))}function q(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return x(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof y?e[0]:H(t)(B(e,n))}function W(){return function(e){return e.lift(new Q(e))}}class Q{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new K(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class K extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class G extends y{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new Y(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return W()(this)}}const Z=(()=>{const e=G.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class Y extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(){return new S}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function ee(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ee).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const te=X({__forward_ref__:X});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return ee(this())},e}function re(e){return"function"==typeof(t=e)&&t.hasOwnProperty(te)&&t.__forward_ref__===ne?e():e;var t}class se extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function ie(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function oe(e){return le(e,ae)||le(e,ue)}function le(e,t){return e.hasOwnProperty(t)?e[t]:null}const ae=X({"\u0275prov":X}),ue=X({ngInjectableDef:X});var ce=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function he(e,t,n){const r=oe(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ce.Optional?null:void 0!==t?t:void function(e,t){throw new se("201",`No provider for ${n=e,"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():function(e){return"string"==typeof e?e:null==e?"":String(e)}(n)} found in Injector`);var n}(ee(e))}var de=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const pe="undefined"!=typeof globalThis&&globalThis,fe="undefined"!=typeof window&&window,me="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ge="undefined"!=typeof global&&global,_e=pe||ge||fe||me;class ye{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}let ve;const be="__parameters__";function we(e,t,n){return(()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(be)?e[be]:Object.defineProperty(e,be,{value:[]})[be];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})()}class Ce{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ie({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Se=new Ce("AnalyzeForEntryComponents");function Ee(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Ee(r,t)):t!==e&&t.push(r)}return t}function xe(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Te(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const ke={},Re=/\n/gm,Ae="__source",Oe=X({provide:String,useValue:X});let Ie;function Pe(e){const t=Ie;return Ie=e,t}function Ne(e,t=ce.Default){return function(e,t=ce.Default){if(void 0===Ie)throw new Error("inject() must be called from an injection context");return null===Ie?he(e,void 0,t):Ie.get(e,t&ce.Optional?null:void 0,t)}(re(e),t)}const De=Ne;function Fe(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function Me(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=ee(t);if(Array.isArray(t))s=t.map(ee).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):ee(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Re,"\n  ")}`}const Le=Fe(we("Inject",e=>({token:e})),-1),Ve=Fe(we("Optional"),8),je=Fe(we("Self"),2),Ue=Fe(we("SkipSelf"),4);let $e;function ze(e){var t;return(null===(t=function(){if(void 0===$e&&($e=null,_e.trustedTypes))try{$e=_e.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return $e}())||void 0===t?void 0:t.createHTML(e))||e}class He{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Be extends He{getTypeName(){return"HTML"}}class qe extends He{getTypeName(){return"Style"}}class We extends He{getTypeName(){return"Script"}}class Qe extends He{getTypeName(){return"URL"}}class Ke extends He{getTypeName(){return"ResourceURL"}}function Ge(e){return e instanceof He?e.changingThisBreaksApplicationSecurity:e}function Ze(e,t){const n=Ye(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ye(e){return e instanceof He&&e.getTypeName()||null}class Je{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(ze(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Xe{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=ze(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=ze(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const et=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,tt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function nt(e){return(e=String(e)).match(et)||e.match(tt)?e:"unsafe:"+e}function rt(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function st(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const it=rt("area,br,col,hr,img,wbr"),ot=rt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lt=rt("rp,rt"),at=st(lt,ot),ut=st(it,st(ot,rt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),st(lt,rt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),at),ct=rt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ht=rt("srcset"),dt=st(ct,ht,rt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),rt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),pt=rt("script,style,template");class ft{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!ut.hasOwnProperty(t))return this.sanitizedSomething=!0,!pt.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,i=t.toLowerCase();if(!dt.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;ct[i]&&(o=nt(o)),ht[i]&&(r=o,o=(r=String(r)).split(",").map(e=>nt(e.trim())).join(", ")),this.buf.push(" ",t,'="',_t(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();ut.hasOwnProperty(t)&&!it.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(_t(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const mt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gt=/([^\#-~ |!])/g;function _t(e){return e.replace(/&/g,"&amp;").replace(mt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(gt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let yt;function vt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function wt(e){return e.ngDebugContext}function Ct(e){return e.ngOriginalError}function St(e,...t){e.error(...t)}class Et{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||St}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?wt(e)?wt(e):this._findContext(Ct(e)):null}_findOriginalError(e){let t=Ct(e);for(;t&&Ct(t);)t=Ct(t);return t}}const xt=/^>|^->|<!--|-->|--!>|<!-$/g,Tt=/(<|>)/;function kt(e){return e.replace(xt,e=>e.replace(Tt,"\u200b$1\u200b"))}const Rt=/([A-Z])/g;function At(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const Ot=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(_e))();var It=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});const Pt=new Ce("INJECTOR",-1);class Nt{get(e,t=ke){if(t===ke){const t=new Error(`NullInjectorError: No provider for ${ee(e)}!`);throw t.name="NullInjectorError",t}return t}}const Dt=new Ce("Set Injector scope."),Ft=function(e,t,n){return new $t(e,t,n)};let Mt=(()=>{class e{static create(e,t){return Array.isArray(e)?Ft(e,t,""):Ft(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new Nt,e.\u0275prov=ie({token:e,providedIn:"any",factory:()=>Ne(Pt)}),e.__NG_ELEMENT_ID__=-1,e})();const Lt=function(e){return e},Vt=[],jt=Lt,Ut=function(){return Array.prototype.slice.call(arguments)};class $t{constructor(e,t=Mt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Mt,{token:Mt,fn:Lt,deps:Vt,value:this,useNew:!1}),r.set(Pt,{token:Pt,fn:Lt,deps:Vt,value:this,useNew:!1}),this.scope=Bt(r,e)}get(e,t,n=ce.Default){const r=this._records;let s=r.get(e);if(void 0===s){const t=oe(e);if(t){const n=t&&t.providedIn;("any"===n||null!=n&&n===this.scope)&&r.set(e,s=zt({provide:e,useFactory:t.factory,deps:Vt}))}void 0===s&&r.set(e,null)}let i=Pe(this);try{return qt(e,s,r,this.parent,t,n)}catch(o){return function(e,t,n,r){const s=e.ngTempTokenPath;throw t[Ae]&&s.unshift(t[Ae]),e.message=Me("\n"+e.message,s,"StaticInjectorError",r),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(o,e,0,this.source)}finally{Pe(i)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(ee(n))),`StaticInjector[${e.join(", ")}]`}}function zt(e){const t=function(e){let t=Vt;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=re(n[e]);if(Array.isArray(s))for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof Ve||n==Ve?r|=1:n instanceof Ue||n==Ue?r&=-3:n instanceof je||n==je?r&=-5:s=n instanceof Le?n.token:re(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:re(e.useExisting),options:6}];else if(!n&&!(Oe in e))throw Wt("'deps' required",e);return t}(e);let n=Lt,r=Vt,s=!1,i=re(e.provide);if(Oe in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=re(e.useClass);else{if("function"!=typeof i)throw Wt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=i}return{deps:t,fn:n,useNew:s,value:r}}function Ht(e){return Wt("Cannot mix multi providers and regular providers",e)}function Bt(e,t){let n=null;if(t)if(t=re(t),Array.isArray(t))for(let r=0;r<t.length;r++)n=Bt(e,t[r])||n;else{if("function"==typeof t)throw Wt("Function/Class not supported",t);if(!t||"object"!=typeof t||!t.provide)throw Wt("Unexpected provider",t);{let r=re(t.provide);const s=zt(t);if(!0===t.multi){let n=e.get(r);if(n){if(n.fn!==Ut)throw Ht(r)}else e.set(r,n={token:t.provide,deps:[],useNew:!1,fn:Ut,value:Vt});r=t,n.deps.push({token:r,options:6})}const i=e.get(r);if(i&&i.fn==Ut)throw Ht(r);r===Dt&&(n=s.value),e.set(r,s)}}return n}function qt(e,t,n,r,s,i){try{return function(e,t,n,r,s,i){let o;if(!t||i&ce.SkipSelf)o=i&ce.Self?Mt.NULL.get(e,i&ce.Optional?void 0!==s?s:null:s):r.get(e,s,ce.Default);else{if(o=t.value,o==jt)throw Error("\u0275Circular dependency");if(o===Vt){let e;t.value=jt;let s=t.useNew,i=t.fn,l=t.deps,a=Vt;if(l.length){a=[];for(let e=0;e<l.length;e++){const t=l[e],s=t.options,i=2&s?n.get(t.token):void 0;a.push(qt(t.token,i,n,i||4&s?r:Mt.NULL,1&s?null:Mt.THROW_IF_NOT_FOUND,ce.Default))}}t.value=o=s?new i(...a):i.apply(e,a)}}return o}(e,t,n,r,s,i)}catch(o){throw o instanceof Error||(o=new Error(o)),(o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(e),t&&t.value==jt&&(t.value=Vt),o}}function Wt(e,t){return new Error(Me(e,t,"StaticInjectorError"))}let Qt=null;function Kt(){if(!Qt){const e=_e.Symbol;if(e&&e.iterator)Qt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Qt=n)}}}return Qt}function Gt(e,t){const n=Yt(e),r=Yt(t);if(n&&r)return function(e,t,n){const r=e[Kt()](),s=t[Kt()]();for(;;){const e=r.next(),t=s.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Gt);{const s=e&&("object"==typeof e||"function"==typeof e),i=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!i)||Object.is(e,t)}}class Zt{constructor(e){this.wrapped=e}static wrap(e){return new Zt(e)}static unwrap(e){return Zt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Zt}}function Yt(e){return!!Jt(e)&&(Array.isArray(e)||!(e instanceof Map)&&Kt()in e)}function Jt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Xt(e){return!!e&&"function"==typeof e.then}const en=function(e){return!!e&&"function"==typeof e.subscribe},tn=void 0;var nn=["en",[["a","p"],["AM","PM"],tn],[["AM","PM"],tn,tn],[["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"]],tn,[["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"]],tn,[["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}",tn,"{1} 'at' {0}",tn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let rn={};function sn(e){return e in rn||(rn[e]=_e.ng&&_e.ng.common&&_e.ng.common.locales&&_e.ng.common.locales[e]),rn[e]}var on=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});class ln{}function an(e){const t=Error(`No component factory found for ${ee(e)}. Did you add it to @NgModule.entryComponents?`);return t[un]=e,t}const un="ngComponent";class cn{resolveComponentFactory(e){throw an(e)}}let hn=(()=>{class e{}return e.NULL=new cn,e})();class dn{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw an(e);return new pn(t,this._ngModule)}}class pn extends ln{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}function fn(...e){}const mn=fn;let gn=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=mn,e})();function _n(e){return e instanceof gn?e.nativeElement:e}class yn{}let vn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>bn(),e})();const bn=fn;let wn=(()=>{class e{}return e.\u0275prov=ie({token:e,providedIn:"root",factory:()=>null}),e})();class Cn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Sn=new Cn("11.2.11");class En{constructor(){}supports(e){return Yt(e)}create(e){return new Tn(e)}}const xn=(e,t)=>t;class Tn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||xn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex<On(n,r,s)?t:n,o=On(i,r,s),l=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=l-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==l&&e(i,o,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Yt(e))throw new Error(`Error trying to diff '${ee(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Kt()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new kn(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new An),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new An),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class kn{constructor(e,t){this.item=e,this.trackById=t,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 Rn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class An{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Rn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function On(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class In{constructor(){}supports(e){return e instanceof Map||Jt(e)}create(){return new Pn}}class Pn{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Jt(e)))throw new Error(`Error trying to diff '${ee(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);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 Nn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Nn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Dn(){return new Fn([new En])}let Fn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Dn()),deps:[[e,new Ue,new Ve]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ie({token:e,providedIn:"root",factory:Dn}),e})();function Mn(){return new Ln([new In])}let Ln=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Mn()),deps:[[e,new Ue,new Ve]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ie({token:e,providedIn:"root",factory:Mn}),e})();const Vn=fn;let jn=(()=>{class e{}return e.__NG_ELEMENT_ID__=Vn,e.__ChangeDetectorRef__=!0,e})();const Un=[new In],$n=new Fn([new En]),zn=new Ln(Un),Hn=fn;let Bn=(()=>{class e{}return e.__NG_ELEMENT_ID__=Hn,e})();class qn{}class Wn{}const Qn=fn;let Kn=(()=>{class e{}return e.__NG_ELEMENT_ID__=Qn,e})();function Gn(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return Zn(n,t),n}(s,e)}function Zn(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Yn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Jn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function Xn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function er(e,t){return e.nodes[t]}function tr(e,t){return e.nodes[t]}function nr(e,t){return e.nodes[t]}function rr(e,t){return e.nodes[t]}function sr(e,t){return e.nodes[t]}const ir={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},or=()=>{},lr=new Map;function ar(e){let t=lr.get(e);return t||(t=ee(e)+"_"+lr.size,lr.set(e,t)),t}const ur="$$undefined",cr="$$empty";function hr(e){return{id:ur,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let dr=0;function pr(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function fr(e,t,n,r){return!!pr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function mr(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Gt(s,r)){const i=t.bindings[n].name;throw Gn(ir.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function gr(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function _r(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function yr(e,t,n,r){try{return gr(33554432&e.def.nodes[t].flags?tr(e,t).componentView:e),ir.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function vr(e){return e.parent?tr(e.parent,e.parentNodeDef.nodeIndex):null}function br(e){return e.parent?e.parentNodeDef.parent:null}function wr(e,t){switch(201347067&t.flags){case 1:return tr(e,t.nodeIndex).renderElement;case 2:return er(e,t.nodeIndex).renderText}}function Cr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Sr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Er(e){return 1<<e%32}function xr(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=Er(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Tr(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Ae,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:ar(n)}})}function kr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&(r.element.componentRendererType.encapsulation===de.ShadowDom||1===r.element.componentRendererType.encapsulation)?tr(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Rr=new WeakMap;function Ar(e){let t=Rr.get(e);return t||(t=e(()=>or),t.factory=e,Rr.set(e,t)),t}function Or(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(wr(e,e.def.lastRenderRootNode))),Ir(e,t,0,e.def.nodes.length-1,n,r,s)}function Ir(e,t,n,r,s,i,o){for(let l=n;l<=r;l++){const n=e.def.nodes[l];11&n.flags&&Nr(e,n,t,s,i,o),l+=n.childCount}}function Pr(e,t,n,r,s,i){let o=e;for(;o&&!Cr(o);)o=o.parent;const l=o.parent,a=br(o),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=l.def.nodes[c];e.ngContentIndex===t&&Nr(l,e,n,r,s,i),c+=e.childCount}if(!l.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)Dr(e,o[t],n,r,s,i)}}function Nr(e,t,n,r,s,i){if(8&t.flags)Pr(e,t.ngContent.index,n,r,s,i);else{const o=wr(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Dr(e,o,n,r,s,i),32&t.bindingFlags&&Dr(tr(e,t.nodeIndex).componentView,o,n,r,s,i)):Dr(e,o,n,r,s,i),16777216&t.flags){const o=tr(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)Or(o[e],n,r,s,i)}1&t.flags&&!t.element.name&&Ir(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,i)}}function Dr(e,t,n,r,s,i){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,s);break;case 3:o.removeChild(r,t);break;case 0:i.push(t)}}const Fr=/^:([^:]+):(.+)$/;function Mr(e){if(":"===e[0]){const t=e.match(Fr);return[t[1],t[2]]}return["",e]}function Lr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const Vr={},jr=ar(Mt),Ur=ar(Pt),$r=ar(qn);function zr(e,t,n,r){return n=re(n),{index:-1,deps:Tr(r,ee(t)),flags:e,token:t,value:n}}function Hr(e,t,n=Mt.THROW_IF_NOT_FOUND){const r=Pe(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const s=t.tokenKey;switch(s){case jr:case Ur:case $r:return e}const i=e._def.providersByKey[s];let o;if(i){let t=e._providers[i.index];return void 0===t&&(t=e._providers[i.index]=Br(e,i)),t===Vr?void 0:t}if((o=oe(t.token))&&function(e,t){const n=t.providedIn;return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,o)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:o.factory,deps:[],index:n,token:t.token},e._providers[n]=Vr,e._providers[n]=Br(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Pe(r)}}function Br(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Hr(e,n[0]));case 2:return new t(Hr(e,n[0]),Hr(e,n[1]));case 3:return new t(Hr(e,n[0]),Hr(e,n[1]),Hr(e,n[2]));default:const s=[];for(let t=0;t<r;t++)s[t]=Hr(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(Hr(e,n[0]));case 2:return t(Hr(e,n[0]),Hr(e,n[1]));case 3:return t(Hr(e,n[0]),Hr(e,n[1]),Hr(e,n[2]));default:const s=[];for(let t=0;t<r;t++)s[t]=Hr(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=Hr(e,t.deps[0]);break;case 256:n=t.value}return n===Vr||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Vr:n}function qr(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Te(n,t),ir.dirtyParentQueries(r),Qr(r),r}function Wr(e,t,n){const r=t?wr(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);Or(n,2,s,i,void 0)}function Qr(e){Or(e,3,null,null,void 0)}const Kr={};function Gr(e,t,n,r,s,i){return new Zr(e,t,n,r,s,i)}class Zr extends ln{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=Ar(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=ir.createRootView(e,t||[],n,s,r,Kr),l=nr(o,i).instance;return n&&o.renderer.setAttribute(tr(o,0).renderElement,"ng-version",Sn.full),new Yr(o,new ts(o),l)}}class Yr extends class{}{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new gn(tr(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new is(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Jr(e,t,n){return new Xr(e,t,n)}class Xr{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new gn(this._data.renderElement)}get injector(){return new is(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=br(e),e=e.parent;return e?new is(e,t):new is(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=qr(this._data,e);ir.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new ts(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof pn||(s=i.get(qn));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,xe(s,n,r),function(e,t){const n=vr(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),ir.dirtyParentQueries(r),Wr(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,s=r[t];Te(r,t),null==n&&(n=r.length),xe(r,n,s),ir.dirtyParentQueries(s),Qr(s),Wr(e,n>0?r[n-1]:null,s)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=qr(this._data,e);t&&ir.destroyView(t)}detach(e){const t=qr(this._data,e);return t?new ts(t):null}}function es(e){return new ts(e)}class ts{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Or(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){gr(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{ir.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){ir.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ir.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Qr(this._view),ir.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function ns(e,t){return new rs(e,t)}class rs extends Bn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new ts(ir.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new gn(tr(this._parentView,this._def.nodeIndex).renderElement)}}function ss(e,t){return new is(e,t)}class is{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Mt.THROW_IF_NOT_FOUND){return ir.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:ar(e)},t)}}function os(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=tr(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return er(e,n.nodeIndex).renderText;if(20240&n.flags)return nr(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function ls(e,t,n,r){return new as(e,t,n,r)}class as{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=function(e,t){const n=[];for(let r=0;r<e;r++)n.push(undefined);return n}(t.providers.length);for(let r=0;r<t.providers.length;r++){const s=t.providers[r];4096&s.flags||void 0===n[r]&&(n[r]=Br(e,s))}}(this)}get(e,t=Mt.THROW_IF_NOT_FOUND,n=ce.Default){let r=0;return n&ce.SkipSelf?r|=1:n&ce.Self&&(r|=4),Hr(this,{token:e,tokenKey:ar(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(hn)}destroy(){if(this._destroyed)throw new Error(`The ng module ${ee(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const t=e._providers[s];if(t&&t!==Vr){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const us=ar(vn),cs=ar(gn),hs=ar(Kn),ds=ar(Bn),ps=ar(jn),fs=ar(Mt),ms=ar(Pt);function gs(e,t,n,r,s,i,o,l){const a=[];if(o)for(let c in o){const[e,t]=o[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return ys(e,t|=16384,n,r,s,s,i,a,u)}function _s(e,t,n,r,s){return ys(-1,e,t,0,n,r,s)}function ys(e,t,n,r,s,i,o,l,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=xr(n);a||(a=[]),l||(l=[]),i=re(i);const d=Tr(o,ee(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:Lr(l),outputs:a,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function vs(e,t){return Ss(e,t)}function bs(e,t){let n=e;for(;n.parent&&!Cr(n);)n=n.parent;return Es(n.parent,br(n),!0,t.provider.value,t.provider.deps)}function ws(e,t){const n=Es(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],i=n[s.propName];if(!en(i))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(Cs(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function Cs(e,t,n){return r=>yr(e,t,n,r)}function Ss(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Es(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(Ts(e,t,n,s[0]));case 2:return r(Ts(e,t,n,s[0]),Ts(e,t,n,s[1]));case 3:return r(Ts(e,t,n,s[0]),Ts(e,t,n,s[1]),Ts(e,t,n,s[2]));default:const o=[];for(let r=0;r<i;r++)o.push(Ts(e,t,n,s[r]));return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return Ts(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Es(e,t,n,r,s){const i=s.length;switch(i){case 0:return new r;case 1:return new r(Ts(e,t,n,s[0]));case 2:return new r(Ts(e,t,n,s[0]),Ts(e,t,n,s[1]));case 3:return new r(Ts(e,t,n,s[0]),Ts(e,t,n,s[1]),Ts(e,t,n,s[2]));default:const o=[];for(let r=0;r<i;r++)o.push(Ts(e,t,n,s[r]));return new r(...o)}}const xs={};function Ts(e,t,n,r,s=Mt.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=e;2&r.flags&&(s=null);const o=r.tokenKey;o===ps&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let l=e;for(;l;){if(t)switch(o){case us:return ks(l,t,n).renderer;case cs:return new gn(tr(l,t.nodeIndex).renderElement);case hs:return tr(l,t.nodeIndex).viewContainer;case ds:if(t.element.template)return tr(l,t.nodeIndex).template;break;case ps:return es(ks(l,t,n));case fs:case ms:return ss(l,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=nr(l,e.nodeIndex);return t||(t={instance:Ss(l,e)},l.nodes[e.nodeIndex]=t),t.instance}}n=Cr(l),t=br(l),l=l.parent,4&r.flags&&(l=null)}const a=i.root.injector.get(r.token,xs);return a!==xs||s===xs?a:i.root.ngModule.injector.get(r.token,s)}function ks(e,t,n){let r;if(n)r=tr(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Cr(r);)r=r.parent;return r}function Rs(e,t,n,r,s,i){if(32768&n.flags){const t=tr(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){i=i||{};const t=Zt.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new ye(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,i}function As(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const i=n[s];let o=i.parent;for(!o&&i.flags&t&&Is(e,s,i.flags&t,r++),0==(i.childFlags&t)&&(s+=i.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=Os(e,o,t,r)),o=o.parent}}function Os(e,t,n,r){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&Is(e,s,t.flags&n,r++),s+=t.childCount}return r}function Is(e,t,n,r){const s=nr(e,t);if(!s)return;const i=s.instance;i&&(ir.setCurrentNode(e,t),1048576&n&&Xn(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Xn(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const Ps=new Ce("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ot});function Ns(e){return t=>{setTimeout(e,void 0,t)}}const Ds=class extends S{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var r,s,i;let o=e,l=t||(()=>null),a=n;if(e&&"object"==typeof e){const t=e;o=null===(r=t.next)||void 0===r?void 0:r.bind(t),l=null===(s=t.error)||void 0===s?void 0:s.bind(t),a=null===(i=t.complete)||void 0===i?void 0:i.bind(t)}this.__isAsync&&(l=Ns(l),o&&(o=Ns(o)),a&&(a=Ns(a)));const u=super.subscribe({next:o,error:l,complete:a});return e instanceof h&&e.add(u),u}};function Fs(){return this._results[Kt()]()}class Ms{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Kt(),n=Ms.prototype;n[t]||(n[t]=Fs)}get changes(){return this._changes||(this._changes=new Ds)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const r=Ee(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],i=t[r];if(n&&(s=n(s),i=n(i)),i!==s)return!1}return!0}(n._results,r,t))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const Ls=new Ce("Application Initializer");class Vs{constructor(e){this.appInits=e,this.resolve=fn,this.reject=fn,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Xt(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const js=new Ce("AppId");function Us(){return`${$s()}${$s()}${$s()}`}function $s(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const zs=new Ce("Platform Initializer"),Hs=new Ce("Platform ID"),Bs=new Ce("appBootstrapListener");class qs{log(e){console.log(e)}warn(e){console.warn(e)}}const Ws=new Ce("LocaleId"),Qs=new Ce("DefaultCurrencyCode");function Ks(){throw new Error("Runtime compiler is not loaded")}const Gs=Ks,Zs=Ks,Ys=Ks,Js=Ks;class Xs{constructor(){this.compileModuleSync=Gs,this.compileModuleAsync=Zs,this.compileModuleAndAllComponentsSync=Ys,this.compileModuleAndAllComponentsAsync=Js}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class ei{}const ti=(()=>Promise.resolve(0))();function ni(e){"undefined"==typeof Zone?ti.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ri{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ds(!1),this.onMicrotaskEmpty=new Ds(!1),this.onStable=new Ds(!1),this.onError=new Ds(!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)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=_e.requestAnimationFrame,t=_e.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(_e,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,oi(e),ii(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),oi(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,l)=>{try{return li(e),n.invokeTask(s,i,o,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),ai(e)}},onInvoke:(n,r,s,i,o,l,a)=>{try{return li(e),n.invoke(s,i,o,l,a)}finally{e.shouldCoalesceRunChangeDetection&&t(),ai(e)}},onHasTask:(t,n,r,s)=>{t.hasTask(r,s),n===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,oi(e),ii(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,r,s)=>(t.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ri.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ri.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,si,fn,fn);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const si={};function ii(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function oi(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function li(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ai(e){e._nesting--,ii(e)}class ui{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ds,this.onMicrotaskEmpty=new Ds,this.onStable=new Ds,this.onError=new Ds}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}class ci{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{ri.assertNotInAngularZone(),ni(()=>{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())ni(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class hi{constructor(){this._applications=new Map,fi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return fi.findTestabilityInTree(this,e,t)}}class di{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let pi,fi=new di,mi=!0,gi=!1;function _i(){return gi=!0,mi}const yi=new Ce("AllowMultipleToken");class vi{constructor(e,t){this.name=e,this.token=t}}function bi(e,t,n=[]){const r=`Platform: ${t}`,s=new Ce(r);return(t=[])=>{let i=wi();if(!i||i.injector.get(yi,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:Dt,useValue:"platform"});!function(e){if(pi&&!pi.destroyed&&!pi.injector.get(yi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");pi=e.get(Ci);const t=e.get(zs,null);t&&t.forEach(e=>e())}(Mt.create({providers:e,name:r}))}return function(e){const t=wi();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function wi(){return pi&&!pi.destroyed?pi:null}class Ci{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new ui:("zone.js"===e?void 0:e)||new ri({enableLongStackTrace:_i(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:ri,useValue:n}];return n.run(()=>{const t=Mt.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Et,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{i.handleError(e)}});s.onDestroy(()=>{xi(this._modules,s),e.unsubscribe()})}),function(e,t,n){try{const r=n();return Xt(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(Vs);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Si({},t);return function(e,t,n){return e.get(ei).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ei);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ee(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Si(e,t){return Array.isArray(t)?t.reduce(Si,e):Object.assign(Object.assign({},e),t)}class Ei{constructor(e,t,n,r,s){this._zone=e,this._injector=t,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 y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ri.assertNotInAngularZone(),ni(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ri.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=q(i,o.pipe(e=>{return W()((t=J,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,Z);return r.source=e,r.subjectFactory=n,r})(e));var t}))}bootstrap(e,t){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=e instanceof ln?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n instanceof pn?void 0:this._injector.get(qn),s=n.create(Mt.NULL,[],t||n.selector,r),i=s.location.nativeElement,o=s.injector.get(ci,null),l=o&&s.injector.get(hi);return o&&l&&l.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),xi(this.components,s),l&&l.unregisterApplication(i)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;xi(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Bs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}function xi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ti{}class ki{}const Ri={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Ai{constructor(e,t){this._compiler=e,this._config=t||Ri}load(e){return this._compiler instanceof Xs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("A9V9")(t).then(e=>e[r]).then(e=>Oi(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("A9V9")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>Oi(e,t,r))}}function Oi(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Ii{constructor(e,t){this.name=e,this.callback=t}}class Pi{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Ni&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Ni extends Pi{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return Di(this,e,t),t}queryAllNodes(e){const t=[];return Fi(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Ni)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function Di(e,t,n){e.childNodes.forEach(e=>{e instanceof Ni&&(t(e)&&n.push(e),Di(e,t,n))})}function Fi(e,t,n){e instanceof Ni&&e.childNodes.forEach(e=>{t(e)&&n.push(e),e instanceof Ni&&Fi(e,t,n)})}const Mi=new Map;function Li(e){return Mi.get(e)||null}const Vi=Li;function ji(e){Mi.set(e.nativeNode,e)}const Ui=bi(null,"core",[{provide:Hs,useValue:"unknown"},{provide:Ci,deps:[Mt]},{provide:hi,deps:[]},{provide:qs,deps:[]}]);function $i(){return $n}function zi(){return zn}function Hi(e){return e||"en-US"}function Bi(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class qi{constructor(e){}}function Wi(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:l,matchedQueryIds:a}=xr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?Ar(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||or},provider:null,text:null,query:null,ngContent:null}}function Qi(e,t,n,r,s,i,o=[],l,a,u,c,h){u||(u=or);const{matchedQueries:d,references:p,matchedQueryIds:f}=xr(n);let m=null,g=null;i&&([m,g]=Mr(i)),l=l||[];const _=[];for(let b=0;b<l.length;b++){const[e,t,n]=l[b],[r,s]=Mr(t);let i,o;switch(15&e){case 4:o=n;break;case 1:case 8:i=n}_[b]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:i,suffix:o}}a=a||[];const y=[];for(let b=0;b<a.length;b++){const[e,t]=a[b];y[b]={type:0,target:e,eventName:t,propName:null}}const v=(o=o||[]).map(([e,t])=>{const[n,r]=Mr(e);return[n,r,t]});return h=function(e){if(e&&e.id===ur){const t=null!=e.encapsulation&&e.encapsulation!==de.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+dr++:cr}return e&&e.id===cr&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:_,bindingFlags:Lr(_),outputs:y,element:{ns:m,name:g,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||or},provider:null,text:null,query:null,ngContent:null}}function Ki(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=kr(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===de.ShadowDom);if(r.attrs)for(let l=0;l<r.attrs.length;l++){const[e,t,n]=r.attrs[l];i.setAttribute(o,t,n,e)}return o}function Gi(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const l=n.outputs[o],a=Zi(e,n.nodeIndex,(i=l.eventName,(s=l.target)?`${s}:${i}`:i));let u=l.target,c=e;"component"===l.target&&(u=null,c=t);const h=c.renderer.listen(u||r,l.eventName,a);e.disposables[n.outputIndex+o]=h}var s,i}function Zi(e,t,n){return r=>yr(e,t,n,r)}function Yi(e,t,n,r){if(!fr(e,t,n,r))return!1;const s=t.bindings[n],i=tr(e,t.nodeIndex),o=i.renderElement,l=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let l=o?e.root.sanitizer.sanitize(o,i):i;l=null!=l?l.toString():null;const a=e.renderer;null!=i?a.setAttribute(n,s,l,r):a.removeAttribute(n,s,r)}(e,s,o,s.ns,l,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,l,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(bt.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,l,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,l,r)}return!0}function Ji(e,t,n){let r=[];for(let s in n)r.push({propName:s,bindingType:n[s]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Er(t),bindings:r},ngContent:null}}function Xi(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Sr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&sr(e,s).setDirty(),!(1&r.flags&&s+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(s+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&sr(e,n).setDirty(),n+=t.childCount}}function eo(e,t){const n=sr(e,t.nodeIndex);if(!n.dirty)return;let r,s;if(67108864&t.flags){const n=t.parent.parent;s=to(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=nr(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=to(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s,_n);const i=t.query.bindings;let o=!1;for(let l=0;l<i.length;l++){const e=i[l];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function to(e,t,n,r,s){for(let i=t;i<=n;i++){const t=e.def.nodes[i],n=t.matchedQueries[r.id];if(null!=n&&s.push(no(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=tr(e,i);if((t.childMatchedQueries&r.filterId)===r.filterId&&(to(e,i+1,i+t.childCount,r,s),i+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const i=e[t],o=vr(i);o&&o===n&&to(i,0,i.def.nodes.length-1,r,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];to(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(i+=t.childCount)}return s}function no(e,t,n){if(null!=n)switch(n){case 1:return tr(e,t.nodeIndex).renderElement;case 0:return new gn(tr(e,t.nodeIndex).renderElement);case 2:return tr(e,t.nodeIndex).template;case 3:return tr(e,t.nodeIndex).viewContainer;case 4:return nr(e,t.nodeIndex).instance}}function ro(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function so(e,t,n){const r=kr(e,t,n);r&&Pr(e,n.ngContent.index,1,r,null,void 0)}function io(e,t,n){const r=[];for(let s=1;s<n.length;s++)r[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function oo(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const i=kr(e,t,n);return i&&s.appendChild(i,r),{renderText:r}}function lo(e,t){return(null!=e?e.toString():"")+t.suffix}function ao(e,t,n,r){let s=0,i=0,o=0,l=0,a=0,u=null,c=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=u,e.bindingIndex=s,e.outputIndex=i,e.renderParent=c,o|=e.flags,a|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(a|=e.element.template.nodeMatchedQueries)}if(co(u,e,t.length),s+=e.bindings.length,i+=e.outputs.length,!c&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?u.element.publicProviders[ar(e.provider.token)]=e:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[ar(e.provider.token)]=e),t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):l|=e.flags,e.childCount>0)u=e,uo(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),u=e,c=u&&uo(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:l,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||or,updateRenderer:r||or,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function uo(e){return 0!=(1&e.flags)&&null===e.element.name}function co(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function ho(e,t,n,r){const s=mo(e.root,e.renderer,e,t,n);return go(s,e.component,r),_o(s),s}function po(e,t,n){const r=mo(e,e.renderer,null,null,t);return go(r,n,n),_o(r),r}function fo(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,mo(e.root,i,e,t.element.componentProvider,n)}function mo(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function go(e,t,n){e.component=t,e.context=n}function _o(e){let t;Cr(e)&&(t=tr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];let o;switch(ir.setCurrentNode(e,s),201347067&i.flags){case 1:const n=Ki(e,t,i);let l;if(33554432&i.flags){const t=Ar(i.element.componentView);l=ir.createComponentView(e,i,t,n)}Gi(e,l,i,n),o={renderElement:n,componentView:l,viewContainer:null,template:i.element.template?ns(e,i):void 0},16777216&i.flags&&(o.viewContainer=Jr(e,i,o));break;case 2:o=oo(e,t,i);break;case 512:case 1024:case 2048:case 256:o=r[s],o||4096&i.flags||(o={instance:vs(e,i)});break;case 16:o={instance:bs(e,i)};break;case 16384:o=r[s],o||(o={instance:ws(e,i)}),32768&i.flags&&go(tr(e,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Ms(-2147483648==(-2147483648&i.flags));break;case 8:so(e,t,i),o=void 0}r[s]=o}To(e,xo.CreateViewNodes),Oo(e,201326592,268435456,0)}function yo(e){wo(e),ir.updateDirectives(e,1),ko(e,xo.CheckNoChanges),ir.updateRenderer(e,1),To(e,xo.CheckNoChanges),e.state&=-97}function vo(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Jn(e,0,256),wo(e),ir.updateDirectives(e,0),ko(e,xo.CheckAndUpdate),Oo(e,67108864,536870912,0);let t=Jn(e,256,512);As(e,2097152|(t?1048576:0)),ir.updateRenderer(e,0),To(e,xo.CheckAndUpdate),Oo(e,134217728,536870912,0),t=Jn(e,512,768),As(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Jn(e,768,1024)}function bo(e,t,n,r,s,i,o,l,a,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,l,a,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings.length;let p=!1;return d>0&&Yi(e,t,0,n)&&(p=!0),d>1&&Yi(e,t,1,r)&&(p=!0),d>2&&Yi(e,t,2,s)&&(p=!0),d>3&&Yi(e,t,3,i)&&(p=!0),d>4&&Yi(e,t,4,o)&&(p=!0),d>5&&Yi(e,t,5,l)&&(p=!0),d>6&&Yi(e,t,6,a)&&(p=!0),d>7&&Yi(e,t,7,u)&&(p=!0),d>8&&Yi(e,t,8,c)&&(p=!0),d>9&&Yi(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,l,a,u,c,h);case 2:return function(e,t,n,r,s,i,o,l,a,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&fr(e,t,0,n)&&(d=!0),f>1&&fr(e,t,1,r)&&(d=!0),f>2&&fr(e,t,2,s)&&(d=!0),f>3&&fr(e,t,3,i)&&(d=!0),f>4&&fr(e,t,4,o)&&(d=!0),f>5&&fr(e,t,5,l)&&(d=!0),f>6&&fr(e,t,6,a)&&(d=!0),f>7&&fr(e,t,7,u)&&(d=!0),f>8&&fr(e,t,8,c)&&(d=!0),f>9&&fr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=lo(n,p[0])),f>1&&(d+=lo(r,p[1])),f>2&&(d+=lo(s,p[2])),f>3&&(d+=lo(i,p[3])),f>4&&(d+=lo(o,p[4])),f>5&&(d+=lo(l,p[5])),f>6&&(d+=lo(a,p[6])),f>7&&(d+=lo(u,p[7])),f>8&&(d+=lo(c,p[8])),f>9&&(d+=lo(h,p[9]));const m=er(e,t.nodeIndex).renderText;e.renderer.setValue(m,d)}return d}(e,t,n,r,s,i,o,l,a,u,c,h);case 16384:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=nr(e,t.nodeIndex),p=d.instance;let f,m=!1;const g=t.bindings.length;return g>0&&pr(e,t,0,n)&&(m=!0,f=Rs(e,d,t,0,n,f)),g>1&&pr(e,t,1,r)&&(m=!0,f=Rs(e,d,t,1,r,f)),g>2&&pr(e,t,2,s)&&(m=!0,f=Rs(e,d,t,2,s,f)),g>3&&pr(e,t,3,i)&&(m=!0,f=Rs(e,d,t,3,i,f)),g>4&&pr(e,t,4,o)&&(m=!0,f=Rs(e,d,t,4,o,f)),g>5&&pr(e,t,5,l)&&(m=!0,f=Rs(e,d,t,5,l,f)),g>6&&pr(e,t,6,a)&&(m=!0,f=Rs(e,d,t,6,a,f)),g>7&&pr(e,t,7,u)&&(m=!0,f=Rs(e,d,t,7,u,f)),g>8&&pr(e,t,8,c)&&(m=!0,f=Rs(e,d,t,8,c,f)),g>9&&pr(e,t,9,h)&&(m=!0,f=Rs(e,d,t,9,h,f)),f&&p.ngOnChanges(f),65536&t.flags&&Xn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),m}(e,t,n,r,s,i,o,l,a,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&fr(e,t,0,n)&&(p=!0),f>1&&fr(e,t,1,r)&&(p=!0),f>2&&fr(e,t,2,s)&&(p=!0),f>3&&fr(e,t,3,i)&&(p=!0),f>4&&fr(e,t,4,o)&&(p=!0),f>5&&fr(e,t,5,l)&&(p=!0),f>6&&fr(e,t,6,a)&&(p=!0),f>7&&fr(e,t,7,u)&&(p=!0),f>8&&fr(e,t,8,c)&&(p=!0),f>9&&fr(e,t,9,h)&&(p=!0),p){const p=rr(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=[],f>0&&m.push(n),f>1&&m.push(r),f>2&&m.push(s),f>3&&m.push(i),f>4&&m.push(o),f>5&&m.push(l),f>6&&m.push(a),f>7&&m.push(u),f>8&&m.push(c),f>9&&m.push(h);break;case 64:m={},f>0&&(m[d[0].name]=n),f>1&&(m[d[1].name]=r),f>2&&(m[d[2].name]=s),f>3&&(m[d[3].name]=i),f>4&&(m[d[4].name]=o),f>5&&(m[d[5].name]=l),f>6&&(m[d[6].name]=a),f>7&&(m[d[7].name]=u),f>8&&(m[d[8].name]=c),f>9&&(m[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:m=e.transform(n);break;case 2:m=e.transform(r);break;case 3:m=e.transform(r,s);break;case 4:m=e.transform(r,s,i);break;case 5:m=e.transform(r,s,i,o);break;case 6:m=e.transform(r,s,i,o,l);break;case 7:m=e.transform(r,s,i,o,l,a);break;case 8:m=e.transform(r,s,i,o,l,a,u);break;case 9:m=e.transform(r,s,i,o,l,a,u,c);break;case 10:m=e.transform(r,s,i,o,l,a,u,c,h)}}p.value=m}return p}(e,t,n,r,s,i,o,l,a,u,c,h);default:throw"unreachable"}}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s<n.length;s++)Yi(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)fr(e,t,i,n[i])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=lo(n[e],r[e]);s=t.text.prefix+s;const i=er(e,t.nodeIndex).renderText;e.renderer.setValue(i,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=nr(e,t.nodeIndex),s=r.instance;let i,o=!1;for(let l=0;l<n.length;l++)pr(e,t,l,n[l])&&(o=!0,i=Rs(e,r,t,l,n[l],i));return i&&s.ngOnChanges(i),65536&t.flags&&Xn(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)fr(e,t,i,n[i])&&(s=!0);if(s){const s=rr(e,t.nodeIndex);let i;switch(201347067&t.flags){case 32:i=n;break;case 64:i={};for(let s=0;s<n.length;s++)i[r[s].name]=n[s];break;case 128:const e=n[0],t=n.slice(1);i=e.transform(...t)}s.value=i}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function wo(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=tr(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,_r(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Co(e,t,n,r,s,i,o,l,a,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings.length;d>0&&mr(e,t,0,n),d>1&&mr(e,t,1,r),d>2&&mr(e,t,2,s),d>3&&mr(e,t,3,i),d>4&&mr(e,t,4,o),d>5&&mr(e,t,5,l),d>6&&mr(e,t,6,a),d>7&&mr(e,t,7,u),d>8&&mr(e,t,8,c),d>9&&mr(e,t,9,h)}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){for(let r=0;r<n.length;r++)mr(e,t,r,n[r])}(e,t,r),!1}function So(e,t){if(sr(e,t.nodeIndex).dirty)throw Gn(ir.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Eo(e){if(!(128&e.state)){if(ko(e,xo.Destroy),To(e,xo.Destroy),As(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=vr(e);if(t){const n=t.template._projectedViews;n&&(Te(n,n.indexOf(e)),ir.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(tr(e,n).renderElement):2&t.flags?e.renderer.destroyNode(er(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&sr(e,n).destroy()}}(e),Cr(e)&&e.renderer.destroy(),e.state|=128}}var xo=function(e){return e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy",e}({});function To(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];33554432&s.flags?Ro(tr(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function ko(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];if(16777216&s.flags){const n=tr(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Ro(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function Ro(e,t){const n=e.state;switch(t){case xo.CheckNoChanges:0==(128&n)&&(12==(12&n)?yo(e):64&n&&Ao(e,xo.CheckNoChangesProjectedViews));break;case xo.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?yo(e):64&n&&Ao(e,t));break;case xo.CheckAndUpdate:0==(128&n)&&(12==(12&n)?vo(e):64&n&&Ao(e,xo.CheckAndUpdateProjectedViews));break;case xo.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?vo(e):64&n&&Ao(e,t));break;case xo.Destroy:Eo(e);break;case xo.CreateViewNodes:_o(e)}}function Ao(e,t){ko(e,t),To(e,t)}function Oo(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let i=0;i<s;i++){const s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(ir.setCurrentNode(e,s.nodeIndex),r){case 0:eo(e,s);break;case 1:So(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}let Io=!1;function Po(e,t,n,r,s,i){const o=s.injector.get(yn);return po(Do(e,s,o,t,n),r,i)}function No(e,t,n,r,s,i){const o=s.injector.get(yn),l=Do(e,s,new dl(o),t,n),a=Bo(r);return cl(Zo.create,po,null,[l,a,i])}function Do(e,t,n,r,s){const i=t.injector.get(wn),o=t.injector.get(Et),l=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:i,rendererFactory:n,renderer:l,errorHandler:o}}function Fo(e,t,n,r){const s=Bo(n);return cl(Zo.create,ho,null,[e,t,s,r])}function Mo(e,t,n,r){return n=Uo.get(t.element.componentProvider.provider.token)||Bo(n),cl(Zo.create,fo,null,[e,t,n,r])}function Lo(e,t,n,r){return ls(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Vo.size||(e.providers.forEach(e=>{const r=Vo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{jo.forEach((r,s)=>{oe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const s=Vo.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=Tr(s.deps),r.value=s.value)}if(jo.size>0){let t=new Set(e.modules);jo.forEach((r,s)=>{if(t.has(oe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:Tr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[ar(s)]=t}})}}(e=e.factory(()=>or)),e):e}(r))}const Vo=new Map,jo=new Map,Uo=new Map;function $o(e){let t;Vo.set(e.token,e),"function"==typeof e.token&&(t=oe(e.token))&&"function"==typeof t.providedIn&&jo.set(e.token,e)}function zo(e,t){const n=Ar(t.viewDefFactory),r=Ar(n.nodes[0].element.componentView);Uo.set(e,r)}function Ho(){Vo.clear(),jo.clear(),Uo.clear()}function Bo(e){if(0===Vo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];1&s.flags&&(n=s),n&&3840&s.flags&&Vo.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>or);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Vo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=Tr(n.deps),e.value=n.value)}}}}function qo(e,t,n,r,s,i,o,l,a,u,c,h,d){const p=e.def.nodes[t];return bo(e,p,n,r,s,i,o,l,a,u,c,h,d),224&p.flags?rr(e,t).value:void 0}function Wo(e,t,n,r,s,i,o,l,a,u,c,h,d){const p=e.def.nodes[t];return Co(e,p,n,r,s,i,o,l,a,u,c,h,d),224&p.flags?rr(e,t).value:void 0}function Qo(e){return cl(Zo.detectChanges,vo,null,[e])}function Ko(e){return cl(Zo.checkNoChanges,yo,null,[e])}function Go(e){return cl(Zo.destroy,Eo,null,[e])}var Zo=function(e){return e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent",e}({});let Yo,Jo,Xo;function el(e,t){Jo=e,Xo=t}function tl(e,t,n,r){return el(e,t),cl(Zo.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function nl(e,t){if(128&e.state)throw Yn(Zo[Yo]);return el(e,ol(e,0)),e.def.updateDirectives(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?sl(e,i,r,s):il(e,i,r,s),16384&i.flags&&el(e,ol(e,n)),224&i.flags?rr(e,i.nodeIndex).value:void 0},e)}function rl(e,t){if(128&e.state)throw Yn(Zo[Yo]);return el(e,ll(e,0)),e.def.updateRenderer(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?sl(e,i,r,s):il(e,i,r,s),3&i.flags&&el(e,ll(e,n)),224&i.flags?rr(e,i.nodeIndex).value:void 0},e)}function sl(e,t,n,r){if(bo(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],l=o[e];8&r.flags&&(n[(s=r.nonMinifiedName,i=void 0,i=s.replace(/[$@]/g,"_"),`ng-reflect-${s=i.replace(Rt,(...e)=>"-"+e[1].toLowerCase())}`)]=At(l))}const r=t.parent,l=tr(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(l,t,r):e.renderer.removeAttribute(l,t)}else e.renderer.setValue(l,kt(`bindings=${JSON.stringify(n,null,2)}`))}}var s,i}function il(e,t,n,r){Co(e,t,n,...r)}function ol(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function ll(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class al{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=br(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return tr(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return ss(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){ul(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&ul(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!Cr(e);)e=e.parent;return e.parent?tr(e.parent,br(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?wr(this.view,this.nodeDef):wr(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let i=-1;n.factory(()=>(i++,i===s?e.error.bind(e,...t):or)),i<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function ul(e,t,n){for(let r in t.references)n[r]=no(e,t,t.references[r])}function cl(e,t,n,r){const s=Yo,i=Jo,o=Xo;try{Yo=e;const l=t.apply(n,r);return Jo=i,Xo=o,Yo=s,l}catch(u){if(wt(u)||!Jo)throw u;throw l=u,a=hl(),l instanceof Error||(l=new Error(l.toString())),Zn(l,a),l}var l,a}function hl(){return Jo?new al(Jo,Xo):null}class dl{constructor(e){this.delegate=e}createRenderer(e,t){return new pl(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class pl{constructor(e){this.delegate=e,this.debugContextFactory=hl,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=Vi(e);t&&(function(e){Mi.delete(e.nativeNode)}(t),t instanceof Pi&&(t.listeners.length=0)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new Ni(n,null,r);t.name=e,ji(t)}return n}createComment(e){const t=this.delegate.createComment(kt(e)),n=this.createDebugContext(t);return n&&ji(new Pi(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&ji(new Pi(t,null,n)),t}appendChild(e,t){const n=Vi(e),r=Vi(t);n&&r&&n instanceof Ni&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n,r){const s=Vi(e),i=Vi(t),o=Vi(n);s&&i&&s instanceof Ni&&s.insertBefore(o,i),this.delegate.insertBefore(e,t,n,r)}removeChild(e,t){const n=Vi(e),r=Vi(t);n&&r&&n instanceof Ni&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=hl();return r&&ji(new Ni(n,null,r)),n}setAttribute(e,t,n,r){const s=Vi(e);s&&s instanceof Ni&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=Vi(e);r&&r instanceof Ni&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=Vi(e);n&&n instanceof Ni&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=Vi(e);n&&n instanceof Ni&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=Vi(e);s&&s instanceof Ni&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=Vi(e);r&&r instanceof Ni&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=Vi(e);r&&r instanceof Ni&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=Vi(e);r&&r.listeners.push(new Ii(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function fl(e,t,n){return new ml(e,t,n)}class ml extends Wn{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(Io)return;Io=!0;const e=_i()?{setCurrentNode:el,createRootView:No,createEmbeddedView:Fo,createComponentView:Mo,createNgModuleRef:Lo,overrideProvider:$o,overrideComponentView:zo,clearOverrides:Ho,checkAndUpdateView:Qo,checkNoChangesView:Ko,destroyView:Go,createDebugContext:(e,t)=>new al(e,t),handleEvent:tl,updateDirectives:nl,updateRenderer:rl}:{setCurrentNode:()=>{},createRootView:Po,createEmbeddedView:ho,createComponentView:fo,createNgModuleRef:ls,overrideProvider:or,overrideComponentView:or,clearOverrides:or,checkAndUpdateView:vo,checkNoChangesView:yo,destroyView:Eo,createDebugContext:(e,t)=>new al(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?qo:Wo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?qo:Wo,e)};ir.setCurrentNode=e.setCurrentNode,ir.createRootView=e.createRootView,ir.createEmbeddedView=e.createEmbeddedView,ir.createComponentView=e.createComponentView,ir.createNgModuleRef=e.createNgModuleRef,ir.overrideProvider=e.overrideProvider,ir.overrideComponentView=e.overrideComponentView,ir.clearOverrides=e.clearOverrides,ir.checkAndUpdateView=e.checkAndUpdateView,ir.checkNoChangesView=e.checkNoChangesView,ir.destroyView=e.destroyView,ir.resolveDep=Ts,ir.createDebugContext=e.createDebugContext,ir.handleEvent=e.handleEvent,ir.updateDirectives=e.updateDirectives,ir.updateRenderer=e.updateRenderer,ir.dirtyParentQueries=Xi}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:r}}(Ar(this._ngModuleDefFactory));return ir.createNgModuleRef(this.moduleType,e||Mt.NULL,this._bootstrapComponents,t)}}function gl(e,t,n,r){return new(n||(n=Promise))(function(s,i){function o(e){try{a(r.next(e))}catch(t){i(t)}}function l(e){try{a(r.throw(e))}catch(t){i(t)}}function a(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,l)}a((r=r.apply(e,t||[])).next())})}const _l="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.23.0/",yl={theme:"vs",language:"typescript",contextmenu:!1,minimap:{enabled:!1},autoIndent:!1,formatOnPaste:!1,formatOnType:!1,renderIndentGuides:!1,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0,scrollbar:{vertical:"hidden",horizontal:"hidden",useShadows:!1,alwaysConsumeMouseWheel:!1,handleMouseWheel:!1},wordWrap:"off",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,fontFamily:"Roboto",fontSize:16,fixedOverflowWidgets:!0,scrollBeyondLastLine:!1,renderLineHighlight:"none"},vl=new Ce("NGX_EXPRESSIONS_CONFIG");class bl{constructor(e){this.monacoBaseUrl=_l,this.monacoDefaultOptions=yl,this.log=null,null!=e&&(null!=e.monacoBaseUrl&&(this.monacoBaseUrl=e.monacoBaseUrl),null!=e.monacoDefaultOptions&&(this.monacoDefaultOptions=e.monacoDefaultOptions),null!=e.configure&&(this.configure=e.configure),null!=e.log&&(this.log=e.log))}}function wl(e,t){console.debug(e,t)}function Cl(e){return gl(this,void 0,void 0,function*(){e.languages.typescript.typescriptDefaults.addExtraLib("\ndeclare interface MyWorld {\n    worldPrefix: string;\n    worldName: string;\n}\n","ts:helper.d.ts")})}function Sl(){return new bl({log:wl,configure:Cl})}class El{}class xl{constructor(){this.codeExpression='myWorld.worldPrefix === "Hello" && myWorld.worldName !== "World"',this.codeInterpolation="Welcome to my ${ myWorld.worldName }",this.codeInterpolationArea="Where ${ myWorld.worldPrefix } the bit before\n\n...\n\nAnd ${ myWorld.worldName } is after!",this.codeErrors="1 + 2 * c",this.codeAutosize="// Updated from https://github.com/jsatk/Hey-Jude/blob/master/script.js ;)\nconst heyJude = [\n    [\n        // Line 1\n        ' make it bad. Take a sad song and make it better. ',\n        ' be afraid. You were made to go out and get her. ',\n        ' let me down. You have found her, now go and get her. '\n    ],\n    [\n        // Line 2\n        ' let her into your heart. ',\n        ' let her under your skin. '\n    ],\n    [\n        // Line 3\n        ' can start ',\n        ' begin '\n    ]\n];\nconst other = ['Hey, Jude. Don\\'t', 'Remember to', 'Then you', 'to make it better. '];\nconst len = heyJude.length;\nlet lyrics = '';\nfor (let i = 0; i < len; i += 1) {\n    for (let j = 0; j < len; j += 1) {\n        if (i + 1 === len && j > 0) {\n            const x = heyJude[j].length - 1;\n\n            lyrics += other[j] + heyJude[j][x];\n        } else {\n            lyrics += other[j] + heyJude[j][i];\n        }\n    }\n    lyrics += other[heyJude.length];\n}\nlyrics += 'better better betTER BETTER WAAA! ';\nfor (let i = 0; i < 214; i++) {\n    lyrics += 'NA ';\n}\nreturn lyrics;",this.codeRequiredNumber=""}build(){}}let Tl=null;function kl(){return Tl}const Rl=new Ce("DocumentToken");let Al=(()=>{class e{}return e.\u0275prov=ie({factory:Ol,token:e,providedIn:"platform"}),e})();function Ol(){return Ne(Pl)}const Il=new Ce("Location Initialized");let Pl=(()=>{class e extends Al{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=kl().getLocation(),this._history=kl().getHistory()}getBaseHrefFromDOM(){return kl().getBaseHref(this._doc)}onPopState(e){kl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){kl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!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(e){this.location.pathname=e}pushState(e,t,n){Nl()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Nl()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275prov=ie({factory:Dl,token:e,providedIn:"platform"}),e})();function Nl(){return!!window.history.pushState}function Dl(){return new Pl(Ne(Rl))}function Fl(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Ml(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Ll(e){return e&&"?"!==e[0]?"?"+e:e}let Vl=(()=>{class e{}return e.\u0275prov=ie({factory:jl,token:e,providedIn:"root"}),e})();function jl(e){const t=Ne(Rl).location;return new $l(Ne(Al),t&&t.origin||"")}const Ul=new Ce("appBaseHref");class $l extends Vl{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Fl(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Ll(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+Ll(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+Ll(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class zl extends Vl{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Fl(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+Ll(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+Ll(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}let Hl=(()=>{class e{constructor(e,t){this._subject=new Ds,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Ml(ql(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Ll(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ql(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ll(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ll(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.normalizeQueryParams=Ll,e.joinWithSlash=Fl,e.stripTrailingSlash=Ml,e.\u0275prov=ie({factory:Bl,token:e,providedIn:"root"}),e})();function Bl(){return new Hl(Ne(Vl),Ne(Al))}function ql(e){return e.replace(/\/index.html$/,"")}var Wl=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class Ql{}class Kl extends Ql{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=sn(t);if(n)return n;const r=t.split("-")[0];if(n=sn(r),n)return n;if("en"===r)return nn;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[on.PluralCase]}(t||this.locale)(e)){case Wl.Zero:return"zero";case Wl.One:return"one";case Wl.Two:return"two";case Wl.Few:return"few";case Wl.Many:return"many";default:return"other"}}}class Gl{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Yt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ee(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}class Zl{constructor(e,t){this._viewContainer=e,this._context=new Yl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Jl("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Jl("ngIfElse",e),this._elseTemplateRef=e,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(e,t){return!0}}class Yl{constructor(){this.$implicit=null,this.ngIf=null}}function Jl(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ee(t)}'.`)}class Xl{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}class ea{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}class ta{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Xl(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}class na{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}class ra{}let sa=(()=>{class e{}return e.\u0275prov=ie({token:e,providedIn:"root",factory:()=>new ia(Ne(Rl),window)}),e})();class ia{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const e=r.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=oa(this.window.history)||oa(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function oa(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}function la(...e){let t=e[e.length-1];return x(t)?(e.pop(),F(e,t)):B(e)}class aa extends S{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(e){super.next(this._value=e)}}class ua extends f{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class ca extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function ha(e,t,n,r,s=new ca(e,n,r)){if(!s.closed)return t instanceof y?t.subscribe(s):D(t)(s)}const da={};class pa{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new fa(e,this.resultSelector))}}class fa extends ua{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(da),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(ha(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const r=this.values,s=this.toRespond?r[n]===da?--this.toRespond:this.toRespond:0;r[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const ma=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();function ga(...e){return H(1)(la(...e))}const _a=new y(e=>e.complete());function ya(e){return e?function(e){return new y(t=>e.schedule(()=>t.complete()))}(e):_a}function va(e){return new y(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?M(n):ya()).subscribe(t)})}function ba(e,t){return"function"==typeof t?n=>n.pipe(ba((n,r)=>M(e(n,r)).pipe(T((e,s)=>t(n,e,r,s))))):t=>t.lift(new wa(e))}class wa{constructor(e){this.project=e}call(e,t){return t.subscribe(new Ca(e,this.project))}}class Ca extends V{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new L(this),r=this.destination;r.add(n),this.innerSubscription=j(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Sa=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function Ea(e){return t=>0===e?ya():t.lift(new xa(e))}class xa{constructor(e){if(this.total=e,this.total<0)throw new Sa}call(e,t){return t.subscribe(new Ta(e,this.total))}}class Ta extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function ka(...e){const t=e[e.length-1];return x(t)?(e.pop(),n=>ga(e,n,t)):t=>ga(e,t)}function Ra(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Aa(e,t,n))}}class Aa{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Oa(e,this.accumulator,this.seed,this.hasSeed))}}class Oa extends f{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Ia(e,t){return function(n){return n.lift(new Pa(e,t))}}class Pa{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Na(e,this.predicate,this.thisArg))}}class Na extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Da(e){return function(t){const n=new Fa(e),r=t.lift(n);return n.caught=r}}class Fa{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Ma(e,this.selector,this.caught))}}class Ma extends V{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new L(this);this.add(r);const s=j(n,r);s!==r&&this.add(s)}}}function La(e,t){return U(e,t,1)}function Va(e){return function(t){return 0===e?ya():t.lift(new ja(e))}}class ja{constructor(e){if(this.total=e,this.total<0)throw new Sa}call(e,t){return t.subscribe(new Ua(e,this.total))}}class Ua extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}function $a(e=Ba){return t=>t.lift(new za(e))}class za{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Ha(e,this.errorFactory))}}class Ha extends f{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Ba(){return new ma}function qa(e=null){return t=>t.lift(new Wa(e))}class Wa{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Qa(e,this.defaultValue))}}class Qa extends f{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ka(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ia((t,n)=>e(t,n,r)):_,Ea(1),n?qa(t):$a(()=>new ma))}function Ga(){}function Za(e,t,n){return function(r){return r.lift(new Ya(e,t,n))}}class Ya{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Ja(e,this.nextOrObserver,this.error,this.complete))}}class Ja extends f{constructor(e,t,n,s){super(e),this._tapNext=Ga,this._tapError=Ga,this._tapComplete=Ga,this._tapError=n||Ga,this._tapComplete=s||Ga,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Ga,this._tapError=t.error||Ga,this._tapComplete=t.complete||Ga)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class Xa{constructor(e){this.callback=e}call(e,t){return t.subscribe(new eu(e,this.callback))}}class eu extends f{constructor(e,t){super(e),this.add(new h(t))}}class tu{constructor(e,t){this.id=e,this.url=t}}class nu extends tu{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ru extends tu{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class su extends tu{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class iu extends tu{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ou extends tu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lu extends tu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class au extends tu{constructor(e,t,n,r,s){super(e,t),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 uu extends tu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cu extends tu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hu{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class du{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class pu{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fu{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mu{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gu{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _u{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const yu="primary";class vu{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function bu(e){return new vu(e)}function wu(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Cu(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let i=0;i<r.length;i++){const t=r[i],n=e[i];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}function Su(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!Eu(e[s],t[s]))return!1;return!0}function Eu(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>r[t]===e)}return e===t}function xu(e){return Array.prototype.concat.apply([],e)}function Tu(e){return e.length>0?e[e.length-1]:null}function ku(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ru(e){return en(e)?e:Xt(e)?M(Promise.resolve(e)):la(e)}function Au(e,t,n){return n?function(e,t){return Su(e,t)}(e.queryParams,t.queryParams)&&Ou(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Eu(e[n],t[n]))}(e.queryParams,t.queryParams)&&Iu(e.root,t.root)}function Ou(e,t){if(!Mu(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!Ou(e.children[n],t.children[n]))return!1}return!0}function Iu(e,t){return Pu(e,t,t.segments)}function Pu(e,t,n){if(e.segments.length>n.length)return!!Mu(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Mu(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!Iu(e.children[n],t.children[n]))return!1}return!0}{const r=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!Mu(e.segments,r)&&!!e.children.primary&&Pu(e.children.primary,t,s)}}class Nu{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bu(this.queryParams)),this._queryParamMap}toString(){return ju.serialize(this)}}class Du{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ku(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Uu(this)}}class Fu{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=bu(this.parameters)),this._parameterMap}toString(){return Qu(this)}}function Mu(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class Lu{}class Vu{parse(e){const t=new Ju(e);return new Nu(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${$u(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Hu(t)}=${Hu(e)}`).join("&"):`${Hu(t)}=${Hu(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const ju=new Vu;function Uu(e){return e.segments.map(e=>Qu(e)).join("/")}function $u(e,t){if(!e.hasChildren())return Uu(e);if(t){const t=e.children.primary?$u(e.children.primary,!1):"",n=[];return ku(e.children,(e,t)=>{t!==yu&&n.push(`${t}:${$u(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ku(e.children,(e,r)=>{r===yu&&(n=n.concat(t(e,r)))}),ku(e.children,(e,r)=>{r!==yu&&(n=n.concat(t(e,r)))}),n}(e,(t,n)=>n===yu?[$u(e.children.primary,!1)]:[`${n}:${$u(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Uu(e)}/${t[0]}`:`${Uu(e)}/(${t.join("//")})`}}function zu(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hu(e){return zu(e).replace(/%3B/gi,";")}function Bu(e){return zu(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qu(e){return decodeURIComponent(e)}function Wu(e){return qu(e.replace(/\+/g,"%20"))}function Qu(e){return`${Bu(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Bu(e)}=${Bu(t[e])}`).join("")}`;var t}const Ku=/^[^\/()?;=#]+/;function Gu(e){const t=e.match(Ku);return t?t[0]:""}const Zu=/^[^=?&#]+/,Yu=/^[^?&#]+/;class Ju{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Du([],{}):new Du([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Du(e,t)),n}parseSegment(){const e=Gu(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Fu(qu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Gu(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Gu(this.remaining);e&&(n=e,this.capture(n))}e[qu(t)]=qu(n)}parseQueryParam(e){const t=function(e){const t=e.match(Zu);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Yu);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=Wu(t),s=Wu(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gu(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(":")):e&&(s=yu);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i.primary:new Du([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Xu{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=ec(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=ec(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=tc(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return tc(e,this._root).map(e=>e.value)}}function ec(e,t){if(e===t.value)return t;for(const n of t.children){const t=ec(e,n);if(t)return t}return null}function tc(e,t){if(e===t.value)return[t];for(const n of t.children){const r=tc(e,n);if(r.length)return r.unshift(t),r}return[]}class nc{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function rc(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class sc extends Xu{constructor(e,t){super(e),this.snapshot=t,cc(this,e)}toString(){return this.snapshot.toString()}}function ic(e,t){const n=function(e,t){const n=new ac([],{},{},"",{},yu,t,null,e.root,-1,{});return new uc("",new nc(n,[]))}(e,t),r=new aa([new Fu("",{})]),s=new aa({}),i=new aa({}),o=new aa({}),l=new aa(""),a=new oc(r,s,o,l,i,yu,t,n.root);return a.snapshot=n.root,new sc(new nc(a,[]),n)}class oc{constructor(e,t,n,r,s,i,o,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(T(e=>bu(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(e=>bu(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function lc(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ac{constructor(e,t,n,r,s,i,o,l,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=l,this._urlSegment=a,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=bu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class uc extends Xu{constructor(e,t){super(t),this.url=e,cc(this,t)}toString(){return hc(this._root)}}function cc(e,t){t.value._routerState=e,t.children.forEach(t=>cc(e,t))}function hc(e){const t=e.children.length>0?` { ${e.children.map(hc).join(", ")} } `:"";return`${e.value}${t}`}function dc(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Su(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Su(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Su(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Su(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function pc(e,t){var n,r;return Su(e.params,t.params)&&Mu(n=e.url,r=t.url)&&n.every((e,t)=>Su(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||pc(e.parent,t.parent))}function fc(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const s=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return fc(e,t,r);return fc(e,t)})}(e,t,n);return new nc(r,s)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return mc(t,e),e}}const n=new oc(new aa((r=t.value).url),new aa(r.params),new aa(r.queryParams),new aa(r.fragment),new aa(r.data),r.outlet,r.component,r),s=t.children.map(t=>fc(e,t));return new nc(n,s)}var r}function mc(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)mc(e.children[n],t.children[n])}function gc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function _c(e){return"object"==typeof e&&null!=e&&e.outlets}function yc(e,t,n,r,s){let i={};return r&&ku(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Nu(n.root===e?t:vc(n.root,e,t),i,s)}function vc(e,t,n){const r={};return ku(e.children,(e,s)=>{r[s]=e===t?n:vc(e,t,n)}),new Du(e.segments,r)}class bc{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&gc(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(_c);if(r&&r!==Tu(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wc{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Cc(e,t,n){if(e||(e=new Du([],{})),0===e.segments.length&&e.hasChildren())return Sc(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return i;const t=e.segments[s],o=n[r];if(_c(o))break;const l=`${o}`,a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===l)break;if(l&&a&&"object"==typeof a&&void 0===a.outlets){if(!kc(l,a,t))return i;r+=2}else{if(!kc(l,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Du(e.segments.slice(0,r.pathIndex),{});return t.children.primary=new Du(e.segments.slice(r.pathIndex),e.children),Sc(t,0,s)}return r.match&&0===s.length?new Du(e.segments,{}):r.match&&!e.hasChildren()?Ec(e,t,n):r.match?Sc(e,0,s):Ec(e,t,n)}function Sc(e,t,n){if(0===n.length)return new Du(e.segments,{});{const r=function(e){return _c(e[0])?e[0].outlets:{[yu]:e}}(n),s={};return ku(r,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=Cc(e.children[r],t,n))}),ku(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Du(e.segments,s)}}function Ec(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){const i=n[s];if(_c(i)){const e=xc(i.outlets);return new Du(r,e)}if(0===s&&gc(n[0])){r.push(new Fu(e.segments[t].path,Tc(n[0]))),s++;continue}const o=_c(i)?i.outlets.primary:`${i}`,l=s<n.length-1?n[s+1]:null;o&&l&&gc(l)?(r.push(new Fu(o,Tc(l))),s+=2):(r.push(new Fu(o,{})),s++)}return new Du(r,{})}function xc(e){const t={};return ku(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=Ec(new Du([],{}),0,e))}),t}function Tc(e){const t={};return ku(e,(e,n)=>t[n]=`${e}`),t}function kc(e,t,n){return e==n.path&&Su(t,n.parameters)}class Rc{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),dc(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=rc(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),ku(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,s=rc(e);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(e,t,n){const r=rc(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new gu(e.value.snapshot))}),e.children.length&&this.forwardEvent(new fu(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(dc(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Ac(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Ac(e){dc(e.value),e.children.forEach(Ac)}class Oc{constructor(e,t){this.routes=e,this.module=t}}function Ic(e){return"function"==typeof e}function Pc(e){return e instanceof Nu}const Nc=Symbol("INITIAL_VALUE");function Dc(){return ba(e=>function(...e){let t,n;return x(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),B(e,n).lift(new pa(t))}(e.map(e=>e.pipe(Ea(1),ka(Nc)))).pipe(Ra((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Nc)return e;if(r===Nc&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||Pc(r))return r}return e},e)},Nc),Ia(e=>e!==Nc),T(e=>Pc(e)?e:!0===e),Ea(1)))}class Fc{}function Mc(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];Lc(r,Vc(t,r))}}function Lc(e,t){e.children&&Mc(e.children,t)}function Vc(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function jc(e){const t=e.children&&e.children.map(jc),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==yu&&(n.component=Fc),n}function Uc(e){return e.outlet||yu}function $c(e,t){const n=e.filter(e=>Uc(e)===t);return n.push(...e.filter(e=>Uc(e)!==t)),n}const zc={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Hc(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},zc):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||Cu)(n,e,t);if(!s)return Object.assign({},zc);const i={};ku(s.posParams,(e,t)=>{i[t]=e.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 Bc(e,t,n,r,s="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>qc(e,t,n)&&Uc(n)!==yu)}(e,n,r)){const s=new Du(t,function(e,t,n,r){const s={};s.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Uc(i)!==yu){const n=new Du([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[Uc(i)]=n}return s}(e,t,r,new Du(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>qc(e,t,n))}(e,n,r)){const i=new Du(e.segments,function(e,t,n,r,s,i){const o={};for(const l of r)if(qc(e,n,l)&&!s[Uc(l)]){const n=new Du([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[Uc(l)]=n}return Object.assign(Object.assign({},s),o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Du(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function qc(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Wc(e,t,n,r){return!!(Uc(e)===r||r!==yu&&qc(t,n,e))&&("**"===e.path||Hc(t,e,n).matched)}function Qc(e,t,n){return 0===t.length&&!e.children[n]}class Kc{constructor(e){this.segmentGroup=e||null}}class Gc{constructor(e){this.urlTree=e}}function Zc(e){return new y(t=>t.error(new Kc(e)))}function Yc(e){return new y(t=>t.error(new Gc(e)))}function Jc(e){return new y(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Xc{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(qn)}apply(){const e=Bc(this.urlTree.root,[],[],this.config).segmentGroup,t=new Du(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,yu).pipe(T(e=>this.createUrlTree(eh(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Da(e=>{if(e instanceof Gc)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Kc)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,yu).pipe(T(t=>this.createUrlTree(eh(t),e.queryParams,e.fragment))).pipe(Da(e=>{if(e instanceof Kc)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Du([],{[yu]:e}):e;return new Nu(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(T(e=>new Du([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return M(r).pipe(La(r=>{const s=n.children[r],i=$c(t,r);return this.expandSegmentGroup(e,i,s,r).pipe(T(e=>({segment:e,outlet:r})))}),Ra((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ia((t,n)=>e(t,n,r)):_,Va(1),n?qa(t):$a(()=>new ma))}())}expandSegment(e,t,n,r,s,i){return M(n).pipe(La(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(Da(e=>{if(e instanceof Kc)return la(null);throw e}))),Ka(e=>!!e),Da((e,n)=>{if(e instanceof ma||"EmptyError"===e.name){if(Qc(t,r,s))return la(new Du([],{}));throw new Kc(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return Wc(r,t,s,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Zc(t):Zc(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Yc(s):this.lineralizeSegments(n,s).pipe(U(n=>{const s=new Du(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:l,lastChild:a,positionalParamSegments:u}=Hc(t,r,s);if(!o)return Zc(t);const c=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Yc(c):this.lineralizeSegments(r,c).pipe(U(r=>this.expandSegment(e,t,n,r.concat(s.slice(a)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?la(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(T(e=>(n._loadedConfig=e,new Du(r,{})))):la(new Du(r,{}));const{matched:i,consumedSegments:o,lastChild:l}=Hc(t,n,r);if(!i)return Zc(t);const a=r.slice(l);return this.getChildConfig(e,n,r).pipe(U(e=>{const r=e.module,i=e.routes,{segmentGroup:l,slicedSegments:u}=Bc(t,o,a,i),c=new Du(l.segments,l.children);if(0===u.length&&c.hasChildren())return this.expandChildren(r,i,c).pipe(T(e=>new Du(o,e)));if(0===i.length&&0===u.length)return la(new Du(o,{}));const h=Uc(n)===s;return this.expandSegment(r,c,i,u,h?yu:s,!0).pipe(T(e=>new Du(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?la(new Oc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?la(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(U(n=>n?this.configLoader.load(e.injector,t).pipe(T(e=>(t._loadedConfig=e,e))):function(e){return new y(t=>t.error(wu(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):la(new Oc([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;return r&&0!==r.length?la(r.map(r=>{const s=e.get(r);let i;if(function(e){return e&&Ic(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!Ic(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return Ru(i)})).pipe(Dc(),Za(e=>{if(!Pc(e))return;const t=wu(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),T(e=>!0===e)):la(!0)}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return la(n);if(r.numberOfChildren>1||!r.children.primary)return Jc(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Nu(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ku(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return ku(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Du(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function eh(e){const t={};for(const n of Object.keys(e.children)){const r=eh(e.children[n]);(r.segments.length>0||r.hasChildren())&&(t[n]=r)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new Du(e.segments.concat(t.segments),t.children)}return e}(new Du(e.segments,t))}class th{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class nh{constructor(e,t){this.component=e,this.route=t}}function rh(e,t,n){const r=e._root;return ih(r,t?t._root:null,n,[r.value])}function sh(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function ih(e,t,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=rc(t);return e.children.forEach(e=>{!function(e,t,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,o=t?t.value:null,l=n?n.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const a=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Mu(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Mu(e.url,t.url)||!Su(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pc(e,t)||!Su(e.queryParams,t.queryParams);case"paramsChange":default:return!pc(e,t)}}(o,i,i.routeConfig.runGuardsAndResolvers);a?s.canActivateChecks.push(new th(r)):(i.data=o.data,i._resolvedData=o._resolvedData),ih(e,t,i.component?l?l.children:null:n,r,s),a&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new nh(l.outlet.component,o))}else o&&oh(t,l,s),s.canActivateChecks.push(new th(r)),ih(e,null,i.component?l?l.children:null:n,r,s)}(e,i[e.value.outlet],n,r.concat([e.value]),s),delete i[e.value.outlet]}),ku(i,(e,t)=>oh(e,n.getContext(t),s)),s}function oh(e,t,n){const r=rc(e),s=e.value;ku(r,(e,r)=>{oh(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new nh(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}class lh{}function ah(e){return new y(t=>t.error(e))}class uh{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){const e=Bc(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,yu);if(null===t)return null;const n=new ac([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},yu,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new nc(n,t),s=new uc(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const t=e.value,n=lc(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const s of Object.keys(t.children)){const r=t.children[s],i=$c(e,s),o=this.processSegmentGroup(i,r,s);if(null===o)return null;n.push(...o)}const r=hh(n);return r.sort((e,t)=>e.value.outlet===yu?-1:t.value.outlet===yu?1:e.value.outlet.localeCompare(t.value.outlet)),r}processSegment(e,t,n,r){for(const s of e){const e=this.processSegmentAgainstRoute(s,t,n,r);if(null!==e)return e}return Qc(t,n,r)?[]:null}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo||!Wc(e,t,n,r))return null;let s,i=[],o=[];if("**"===e.path){const r=n.length>0?Tu(n).parameters:{};s=new ac(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fh(e),Uc(e),e.component,e,dh(t),ph(t)+n.length,mh(e))}else{const r=Hc(t,e,n);if(!r.matched)return null;i=r.consumedSegments,o=n.slice(r.lastChild),s=new ac(i,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fh(e),Uc(e),e.component,e,dh(t),ph(t)+i.length,mh(e))}const l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:a,slicedSegments:u}=Bc(t,i,o,l.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const e=this.processChildren(l,a);return null===e?null:[new nc(s,e)]}if(0===l.length&&0===u.length)return[new nc(s,[])];const c=Uc(e)===r,h=this.processSegment(l,a,u,c?yu:r);return null===h?null:[new nc(s,h)]}}function ch(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function hh(e){const t=[],n=new Set;for(const r of e){if(!ch(r)){t.push(r);continue}const e=t.find(e=>r.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...r.children),n.add(e)):t.push(r)}for(const r of n){const e=hh(r.children);t.push(new nc(r.value,e))}return t.filter(e=>!n.has(e))}function dh(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function ph(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function fh(e){return e.data||{}}function mh(e){return e.resolve||{}}function gh(e){return ba(t=>{const n=e(t);return n?M(n).pipe(T(()=>t)):la(t)})}class _h{}class yh extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const vh=new Ce("ROUTES");class bh{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(T(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Oc(xu(r.injector.get(vh,void 0,ce.Self|ce.Optional)).map(jc),r)}),Da(e=>{throw t._loader$=void 0,e}));return t._loader$=new G(n,()=>new S).pipe(W()),t._loader$}loadModuleFactory(e){return"string"==typeof e?M(this.loader.load(e)):Ru(e()).pipe(U(e=>e instanceof Wn?la(e):M(this.compiler.compileModuleAsync(e))))}}class wh{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ch,this.attachRef=null}}class Ch{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new wh,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Sh{}class Eh{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function xh(e){throw e}function Th(e,t,n){return t.parse("/")}function kh(e,t){return la(null)}class Rh{constructor(e,t,n,r,s,i,o,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=xh,this.malformedUriErrorHandler=Th,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kh,afterPreactivation:kh},this.urlHandlingStrategy=new Eh,this.routeReuseStrategy=new yh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(qn),this.console=s.get(qs);const a=s.get(ri);this.isNgZoneEnabled=a instanceof ri&&ri.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new Nu(new Du([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new bh(i,o,e=>this.triggerEvent(new hu(e)),e=>this.triggerEvent(new du(e))),this.routerState=ic(this.currentUrlTree,this.rootComponentType),this.transitions=new aa({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(e){const t=this.events;return e.pipe(Ia(e=>0!==e.id),T(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),ba(e=>{let n=!1,r=!1;return la(e).pipe(Za(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ba(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return la(e).pipe(ba(e=>{const n=this.transitions.getValue();return t.next(new nu(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?_a:Promise.resolve(e)}),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,ba(e=>function(e,t,n,r,s){return new Xc(e,t,n,r,s).apply()}(r,s,i,e.extractedUrl,o).pipe(T(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Za(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return U(i=>function(e,t,n,r,s="emptyOnly",i="legacy"){try{const o=new uh(e,t,n,r,s,i).recognize();return null===o?ah(new lh):la(o)}catch(o){return ah(o)}}(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(T(e=>Object.assign(Object.assign({},i),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Za(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new ou(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.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}=e,l=new nu(n,this.serializeUrl(r),s,i);t.next(l);const a=ic(r,this.rootComponentType).snapshot;return la(Object.assign(Object.assign({},e),{targetSnapshot:a,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),_a}),gh(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Za(e=>{const t=new lu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),T(e=>Object.assign(Object.assign({},e),{guards:rh(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return U(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?la(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return M(e).pipe(U(e=>function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?la(i.map(i=>{const o=sh(i,t,s);let l;if(function(e){return e&&Ic(e.canDeactivate)}(o))l=Ru(o.canDeactivate(e,t,n,r));else{if(!Ic(o))throw new Error("Invalid CanDeactivate guard");l=Ru(o(e,t,n,r))}return l.pipe(Ka())})).pipe(Dc()):la(!0)}(e.component,e.route,n,t,r)),Ka(e=>!0!==e,!0))}(o,r,s,e).pipe(U(n=>n&&"boolean"==typeof n?function(e,t,n,r){return M(t).pipe(La(t=>ga(function(e,t){return null!==e&&t&&t(new pu(e)),la(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new mu(e)),la(!0)}(t.route,r),function(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>va(()=>la(t.guards.map(s=>{const i=sh(s,t.node,n);let o;if(function(e){return e&&Ic(e.canActivateChild)}(i))o=Ru(i.canActivateChild(r,e));else{if(!Ic(i))throw new Error("Invalid CanActivateChild guard");o=Ru(i(r,e))}return o.pipe(Ka())})).pipe(Dc())));return la(s).pipe(Dc())}(e,t.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?la(r.map(r=>va(()=>{const s=sh(r,t,n);let i;if(function(e){return e&&Ic(e.canActivate)}(s))i=Ru(s.canActivate(t,e));else{if(!Ic(s))throw new Error("Invalid CanActivate guard");i=Ru(s(t,e))}return i.pipe(Ka())}))).pipe(Dc()):la(!0)}(e,t.route,n))),Ka(e=>!0!==e,!0))}(r,i,e,t):la(n)),T(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Za(e=>{if(Pc(e.guardsResult)){const t=wu(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new au(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Ia(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new su(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),gh(e=>{if(e.guards.canActivateChecks.length)return la(e).pipe(Za(e=>{const t=new uu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),ba(e=>{let n=!1;return la(e).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,U(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return la(e);let i=0;return M(n).pipe(La(e=>function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return la({});const i={};return M(s).pipe(U(s=>function(e,t,n,r){const s=sh(e,t,r);return Ru(s.resolve?s.resolve(t,n):s(t,n))}(e[s],t,n,r).pipe(Za(e=>{i[s]=e}))),Va(1),U(()=>Object.keys(i).length===s.length?la(i):_a))}(e._resolve,e,t,r).pipe(T(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),lc(e,n).resolve),null)))}(e.route,t,r,s)),Za(()=>i++),Va(1),U(t=>i===n.length?la(e):_a))})),Za({next:()=>n=!0,complete:()=>{if(!n){const n=new su(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var r,s}),Za(e=>{const t=new cu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),gh(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),T(e=>{const t=function(e,t,n){const r=fc(e,t._root,n?n._root:void 0);return new sc(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Za(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,l=e=>this.triggerEvent(e),T(e=>(new Rc(o,e.targetRouterState,e.currentRouterState,l).activate(i),e))),Za({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new su(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new Xa(s))),Da(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Pc(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new su(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),r?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new iu(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(i){e.reject(i)}}var s;return _a}));var s,i,o,l}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:r}=t,s={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(s.state=e)}this.scheduleNavigation(r,e,n,s)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Mc(e),this.config=e.map(jc),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(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:i,preserveFragment:o}=t,l=n||this.routerState.root,a=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(e,t,n,r,s){if(0===n.length)return yc(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bc(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return ku(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new bc(n,t,r)}(n);if(i.toRoot())return yc(t.root,new Du([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new wc(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new wc(e,e===t.root,0)}const r=gc(e.commands[0])?0:1;return function(e,t,n){let r=e,s=t,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new wc(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),l=o.processChildren?Sc(o.segmentGroup,o.index,i.commands):Cc(o.segmentGroup,o.index,i.commands);return yc(o.segmentGroup,l,t,r,s)}(l,this.currentUrlTree,e,u,a)}navigateByUrl(e,t={skipLocationChange:!1}){const n=Pc(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Pc(e))return Au(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Au(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new ru(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r,s){if(this.disposed)return Promise.resolve(!1);const i=this.getTransition(),o="imperative"!==t&&"imperative"===(null==i?void 0:i.source),l=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===e.toString();if(o&&l)return Promise.resolve(!0);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((e,t)=>{a=e,u=t});const h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class Ah{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ds,this.deactivateEvents=new Ds,this.name=r||yu,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Oh(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class Oh{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===oc?this.route:e===Ch?this.childContexts:this.parent.get(e,t)}}class Ih{}class Ph{preload(e,t){return t().pipe(Da(()=>la(null)))}}class Nh{preload(e,t){return la(null)}}class Dh{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new bh(t,n,t=>e.triggerEvent(new hu(t)),t=>e.triggerEvent(new du(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ia(e=>e instanceof ru),La(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(qn);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return M(n).pipe(H(),T(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?la(t._loadedConfig):this.loader.load(e.injector,t)).pipe(U(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Fh{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,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(e=>{e instanceof nu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ru&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof _u&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new _u(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Mh=new Ce("ROUTER_CONFIGURATION"),Lh=new Ce("ROUTER_FORROOT_GUARD"),Vh=[Hl,{provide:Lu,useClass:Vu},{provide:Rh,useFactory:qh,deps:[Lu,Ch,Hl,Mt,Ti,Xs,vh,Mh,[Sh,new Ve],[_h,new Ve]]},Ch,{provide:oc,useFactory:Wh,deps:[Rh]},{provide:Ti,useClass:Ai},Dh,Nh,Ph,{provide:Mh,useValue:{enableTracing:!1}}];function jh(){return new vi("Router",Rh)}class Uh{constructor(e,t){}static forRoot(e,t){return{ngModule:Uh,providers:[Vh,Bh(e),{provide:Lh,useFactory:Hh,deps:[[Rh,new Ve,new Ue]]},{provide:Mh,useValue:t||{}},{provide:Vl,useFactory:zh,deps:[Al,[new Le(Ul),new Ve],Mh]},{provide:Fh,useFactory:$h,deps:[Rh,sa,Mh]},{provide:Ih,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Nh},{provide:vi,multi:!0,useFactory:jh},[Qh,{provide:Ls,multi:!0,useFactory:Kh,deps:[Qh]},{provide:Zh,useFactory:Gh,deps:[Qh]},{provide:Bs,multi:!0,useExisting:Zh}]]}}static forChild(e){return{ngModule:Uh,providers:[Bh(e)]}}}function $h(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Fh(e,t,n)}function zh(e,t,n={}){return n.useHash?new zl(e,t):new $l(e,t)}function Hh(e){return"guarded"}function Bh(e){return[{provide:Se,multi:!0,useValue:e},{provide:vh,multi:!0,useValue:e}]}function qh(e,t,n,r,s,i,o,l={},a,u){const c=new Rh(null,e,t,n,r,s,i,xu(o));if(a&&(c.urlHandlingStrategy=a),u&&(c.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(l,c),l.enableTracing){const e=kl();c.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return c}function Wh(e){return e.routerState.root}class Qh{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Il,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Rh),r=this.injector.get(Mh);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?la(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(Mh),n=this.injector.get(Dh),r=this.injector.get(Fh),s=this.injector.get(Rh),i=this.injector.get(Ei);e===i.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}function Kh(e){return e.appInitializer.bind(e)}function Gh(e){return e.bootstrapListener.bind(e)}const Zh=new Ce("Router Initializer");var Yh=hr({encapsulation:2,styles:[],data:{}});function Jh(e){return ao(0,[(e()(),Qi(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),gs(1,212992,null,0,Ah,[Ch,Kn,hn,[8,null],jn],null,null)],function(e,t){e(t,1,0)},null)}function Xh(e){return ao(0,[(e()(),Qi(0,0,null,null,1,"ng-component",[],null,null,null,Jh,Yh)),gs(1,49152,null,0,Fc,[],null,null)],null,null)}var ed=Gr("ng-component",Fc,Xh,{},{},[]);class td extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class nd extends td{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(s){r=!0,n=!!s&&s||new Error(s)}if(r)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let rd=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class sd extends rd{constructor(e,t=rd.now){super(e,()=>sd.delegate&&sd.delegate!==this?sd.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return sd.delegate&&sd.delegate!==this?sd.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const id=new sd(nd);class od{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new ld(e,this.dueTime,this.scheduler))}}class ld extends f{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ad,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function ad(e){e.debouncedNext()}function ud(e){return null!=e&&"false"!=`${e}`}function cd(e){return e instanceof gn?e.nativeElement:e}let hd;try{hd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(V_){hd=!1}let dd,pd,fd=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!hd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275prov=ie({factory:function(){return new e(Ne(Hs))},token:e,providedIn:"root"}),e})();class md{}function gd(e){return function(){if(null==dd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dd=!0}))}finally{dd=dd||!1}return dd}()?e:!!e.capture}"undefined"!=typeof Element&&Element;const _d=new Ce("cdk-focus-monitor-default-options"),yd=gd({passive:!0,capture:!0});let vd=(()=>{class e{constructor(e,t,n,r){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=function(e){return 0===e.buttons}(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{!function(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e)?(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=bd(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)):this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard")},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=bd(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let r=t;r;r=r.parentElement)n.call(this,e,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(e,t=!1){const n=cd(e);if(!this._platform.isBrowser||1!==n.nodeType)return la(null);const r=function(e){if(function(){if(null==pd){const e="undefined"!=typeof document?document.head:null;pd=!(!e||!e.createShadowRoot&&!e.attachShadow)}return pd}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject;const i={checkChildren:t,subject:new S,rootNode:r};return this._elementInfo.set(n,i),this._registerGlobalListeners(i),i.subject}stopMonitoring(e){const t=cd(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const r=cd(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([e,n])=>this._originChanged(e,t,n)):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=bd(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);n&&(n.checkChildren||t===bd(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,yd),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,yd)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,yd),e.addEventListener("mousedown",this._documentMousedownListener,yd),e.addEventListener("touchstart",this._documentTouchstartListener,yd),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,yd),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yd),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,yd),e.removeEventListener("mousedown",this._documentMousedownListener,yd),e.removeEventListener("touchstart",this._documentTouchstartListener,yd),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n])}),t}}return e.\u0275prov=ie({factory:function(){return new e(Ne(ri),Ne(fd),Ne(Rl,8),Ne(_d,8))},token:e,providedIn:"root"}),e})();function bd(e){return e.composedPath?e.composedPath()[0]:e.target}const wd="cdk-high-contrast-black-on-white",Cd="cdk-high-contrast-white-on-black",Sd="cdk-high-contrast-active";let Ed=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Sd),e.remove(wd),e.remove(Cd);const t=this.getHighContrastMode();1===t?(e.add(Sd),e.add(wd)):2===t&&(e.add(Sd),e.add(Cd))}}}return e.\u0275prov=ie({factory:function(){return new e(Ne(fd),Ne(Rl))},token:e,providedIn:"root"}),e})();const xd=new Cn("11.2.10"),Td=new Cn("11.2.10"),kd=new Ce("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});class Rd{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return _i()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Td.full!==xd.full&&console.warn("The Angular Material version ("+Td.full+") does not match the Angular CDK version ("+xd.full+").\nPlease ensure the versions of these two packages exactly match.")}}function Ad(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}let Od;try{Od="undefined"!=typeof Intl}catch(V_){Od=!1}let Id=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275prov=ie({factory:function(){return new e},token:e,providedIn:"root"}),e})();function Pd(e,t,n,s){return r(n)&&(s=n,n=void 0),s?Pd(e,t,n).pipe(T(e=>a(e)?s(...e):s(e))):new y(r=>{Nd(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function Nd(e,t,n,r,s){let i;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,s),i=()=>r.removeEventListener(t,n,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),i=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),i=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let i=0,o=e.length;i<o;i++)Nd(e[i],t,n,r,s)}r.add(i)}function Dd(e){return t=>t.lift(new Fd(e))}class Fd{constructor(e){this.notifier=e}call(e,t){const n=new Md(e),r=j(this.notifier,new L(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class Md extends V{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class Ld{}const Vd="*";function jd(e,t=null){return{type:2,steps:e,options:t}}function Ud(e){return{type:6,styles:e,offset:null}}function $d(e){Promise.resolve(null).then(e)}class zd{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$d(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Hd{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const s=this.players.length;0==s?$d(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}let Bd=0;const qd=new Ce("MatError");class Wd{constructor(){this.id="mat-error-"+Bd++}}class Qd{}let Kd=0;const Gd=new Ce("MatHint");class Zd{constructor(){this.align="start",this.id="mat-hint-"+Kd++}}class Yd{}let Jd=0;class Xd{constructor(e){this._elementRef=e}}const ep=Ad(Xd,"primary"),tp=new Ce("MAT_FORM_FIELD_DEFAULT_OPTIONS"),np=new Ce("MatFormField");class rp extends ep{constructor(e,t,n,r,s,i,o,l){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this._defaults=s,this._platform=i,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new S,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Jd++,this._labelId="mat-form-field-label-"+Jd++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ud(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(ka(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Dd(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Dd(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),q(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ka(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ka(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Dd(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Pd(this._label.nativeElement,"transitionend").pipe(Ea(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const r=this._connectionContainerRef.nativeElement,s=r.querySelectorAll(".mat-form-field-outline-start"),i=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=r.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const i=this._getStartEnd(s),o=e.children,l=this._getStartEnd(o[0].getBoundingClientRect());let a=0;for(let e=0;e<o.length;e++)a+=o[e].offsetWidth;t=Math.abs(l-i)-5,n=a>0?.75*a+10:0}for(let o=0;o<s.length;o++)s[o].style.width=`${t}px`;for(let o=0;o<i.length;o++)i[o].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}class sp{}let ip=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275prov=ie({factory:function(){return new e},token:e,providedIn:"root"}),e})(),op=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=cd(e);return new y(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new S,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275prov=ie({factory:function(){return new e(Ne(ip))},token:e,providedIn:"root"}),e})();class lp{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new Ds,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ud(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=function(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(function(e,t=id){return n=>n.lift(new od(e,t))}(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}class ap{}const up=new Ce("cdk-dir-doc",{providedIn:"root",factory:function(){return De(Rl)}});let cp=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new Ds,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275prov=ie({factory:function(){return new e(Ne(up,8))},token:e,providedIn:"root"}),e})();class hp{}class dp extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new dp,Tl||(Tl=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=fp||(fp=document.querySelector("base"),fp)?fp.getAttribute("href"):null;return null==t?null:(n=t,pp||(pp=document.createElement("a")),pp.setAttribute("href",n),"/"===pp.pathname.charAt(0)?pp.pathname:"/"+pp.pathname);var n}resetBaseElement(){fp=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,e)}}let pp,fp=null;const mp=new Ce("TRANSITION_ID"),gp=[{provide:Ls,useFactory:function(e,t,n){return()=>{n.get(Vs).donePromise.then(()=>{const n=kl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[mp,Rl,Mt],multi:!0}];class _p{static init(){var e;e=new _p,fi=e}addToWindow(e){_e.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},_e.getAllAngularTestabilities=()=>e.getAllTestabilities(),_e.getAllAngularRootElements=()=>e.getAllRootElements(),_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(e=>{const t=_e.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?kl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}function yp(e,t){"undefined"!=typeof COMPILED&&COMPILED||((_e.ng=_e.ng||{})[e]=t)}const vp=(()=>({ApplicationRef:Ei,NgZone:ri}))();function bp(e){return Li(e)}const wp=new Ce("EventManagerPlugins");class Cp{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}class Sp{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=kl().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}class Ep{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class xp extends Ep{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>kl().remove(e))}}const Tp={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/"},kp=/%COMP%/g;function Rp(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?Rp(e,s,n):(s=s.replace(kp,e),n.push(s))}return n}function Ap(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class Op{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ip(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case de.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Pp(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case de.ShadowDom:return new Np(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Rp(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class Ip{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Tp[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=Tp[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Tp[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(It.DashCase|It.Important)?e.style.setProperty(t,n,r&It.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&It.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ap(n)):this.eventManager.addEventListener(e,t,Ap(n))}}class Pp extends Ip{constructor(e,t,n,r){super(e),this.component=n;const s=Rp(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(kp,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(kp,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Np extends Ip{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Rp(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}class Dp extends Sp{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}const Fp={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Mp=new Ce("HammerGestureConfig"),Lp=new Ce("HammerLoader");class Vp{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}class jp extends Sp{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r,this._loaderPromise=null}supports(e){return!(!Fp.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let r=!1,s=()=>{r=!0};return this._loaderPromise.then(()=>{window.Hammer?r||(s=this.addEventListener(e,t,n)):s=()=>{}}).catch(()=>{s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded(function(){n(e)})};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Up=["alt","control","meta","shift"],$p={"\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"},zp={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"},Hp={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Bp extends Sp{constructor(e){super(e)}supports(e){return null!=Bp.parseEventName(e)}addEventListener(e,t,n){const r=Bp.parseEventName(t),s=Bp.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kl().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=Bp._normalizeKey(t.pop());let s="";if(Up.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")}),s+=r,0!=t.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&zp.hasOwnProperty(t)&&(t=zp[t]))}return $p[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Up.forEach(r=>{r!=n&&(0,Hp[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(e,t,n){return r=>{Bp.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}let qp=(()=>{class e{}return e.\u0275prov=ie({factory:function(){return Ne(Wp)},token:e,providedIn:"root"}),e})(),Wp=(()=>{class e extends qp{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case bt.NONE:return t;case bt.HTML:return Ze(t,"HTML")?Ge(t):function(e,t){let n=null;try{yt=yt||function(e){const t=new Xe(e);return function(){try{return!!(new window.DOMParser).parseFromString(ze(""),"text/html")}catch(V_){return!1}}()?new Je(t):t}(e);let r=t?String(t):"";n=yt.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=yt.getInertBodyElement(r)}while(r!==i);return ze((new ft).sanitizeChildren(vt(n)||n))}finally{if(n){const e=vt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)).toString();case bt.STYLE:return Ze(t,"Style")?Ge(t):t;case bt.SCRIPT:if(Ze(t,"Script"))return Ge(t);throw new Error("unsafe value used in a script context");case bt.URL:return Ye(t),Ze(t,"URL")?Ge(t):nt(String(t));case bt.RESOURCE_URL:if(Ze(t,"ResourceURL"))return Ge(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new Be(e)}bypassSecurityTrustStyle(e){return new qe(e)}bypassSecurityTrustScript(e){return new We(e)}bypassSecurityTrustUrl(e){return new Qe(e)}bypassSecurityTrustResourceUrl(e){return new Ke(e)}}return e.\u0275prov=ie({factory:function(){return e=Ne(Pt),new Wp(e.get(Rl));var e},token:e,providedIn:"root"}),e})();function Qp(){return new Et}const Kp=bi(Ui,"browser",[{provide:Hs,useValue:"browser"},{provide:zs,useValue:function(){dp.makeCurrent(),_p.init()},multi:!0},{provide:Rl,useFactory:function(){return function(e){ve=e}(document),document},deps:[]}]);class Gp{constructor(e){if(e)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:Gp,providers:[{provide:js,useValue:e.appId},{provide:mp,useExisting:js},gp]}}}function Zp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Yp(e){switch(e.length){case 0:return new zd;case 1:return e[0];default:return new Hd(e)}}function Jp(e,t,n,r,s={},i={}){const o=[],l=[];let a=-1,u=null;if(r.forEach(e=>{const n=e.offset,r=n==a,c=r&&u||{};Object.keys(e).forEach(n=>{let r=n,l=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,o),l){case"!":l=s[n];break;case Vd:l=i[n];break;default:l=t.normalizeStyleValue(n,r,l,o)}c[r]=l}),r||l.push(c),u=c,a=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return l}function Xp(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&ef(n,"start",e)));break;case"done":e.onDone(()=>r(n&&ef(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&ef(n,"destroy",e)))}}function ef(e,t,n){const r=n.totalTime,s=tf(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),i=e._data;return null!=i&&(s._data=i),s}function tf(e,t,n,r,s="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function nf(e,t,n){let r;return e instanceof Map?(r=e.get(t),r||e.set(t,r=n)):(r=e[t],r||(r=e[t]=n)),r}function rf(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}"undefined"!=typeof window&&window;let sf=(e,t)=>!1,of=(e,t)=>!1,lf=(e,t,n)=>[];const af=Zp();(af||"undefined"!=typeof Element)&&(sf=(e,t)=>e.contains(t),of=(()=>{if(af||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):of}})(),lf=(e,t,n)=>{let r=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)r.push(n[e])}else{const n=e.querySelector(t);n&&r.push(n)}return r});let uf=null,cf=!1;function hf(e){uf||(uf=("undefined"!=typeof document?document.body:null)||{},cf=!!uf.style&&"WebkitAppearance"in uf.style);let t=!0;return uf.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in uf.style,!t&&cf)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in uf.style),t}const df=of,pf=sf,ff=lf;function mf(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}class gf{validateStyleProperty(e){return hf(e)}matchesElement(e,t){return df(e,t)}containsElement(e,t){return pf(e,t)}query(e,t,n){return ff(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,s,i=[],o){return new zd(n,r)}}let _f=(()=>{class e{}return e.NOOP=new gf,e})();const yf="ng-enter",vf="ng-leave",bf="ng-trigger",wf=".ng-trigger",Cf="ng-animating",Sf=".ng-animating";function Ef(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xf(parseFloat(t[1]),t[2])}function xf(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Tf(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,s=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=xf(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=xf(parseFloat(o),n[4]));const l=n[5];l&&(i=l)}else r=e;if(!n){let n=!1,i=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:s,easing:i}}(e,t,n)}function kf(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Rf(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else kf(e,n);return n}function Af(e,t,n){return n?t+":"+n+";":""}function Of(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=Af(0,r,e.style.getPropertyValue(r))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Af(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function If(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const s=jf(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[s]),e.style[s]=t[r]}),Zp()&&Of(e))}function Pf(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=jf(t);e.style[n]=""}),Zp()&&Of(e))}function Nf(e){return Array.isArray(e)?1==e.length?e[0]:jd(e):e}const Df=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ff(e){let t=[];if("string"==typeof e){let n;for(;n=Df.exec(e);)t.push(n[1]);Df.lastIndex=0}return t}function Mf(e,t,n){const r=e.toString(),s=r.replace(Df,(e,r)=>{let s=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),s=""),s.toString()});return s==r?e:s}function Lf(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Vf=/-+([a-z0-9])/g;function jf(e){return e.replace(Vf,(...e)=>e[1].toUpperCase())}function Uf(e,t){return 0===e||0===t}function $f(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let i=t[0],o=[];if(r.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var s=1;s<t.length;s++){let n=t[s];o.forEach(function(t){n[t]=Hf(e,t)})}}return t}function zf(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function Hf(e,t){return window.getComputedStyle(e)[t]}const Bf="*";function qf(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=r[1],i=r[2],o=r[3];t.push(Kf(s,o)),"<"!=i[0]||s==Bf&&o==Bf||t.push(Kf(o,s))}(e,n,t)):n.push(e),n}const Wf=new Set(["true","1"]),Qf=new Set(["false","0"]);function Kf(e,t){const n=Wf.has(e)||Qf.has(e),r=Wf.has(t)||Qf.has(t);return(s,i)=>{let o=e==Bf||e==s,l=t==Bf||t==i;return!o&&n&&"boolean"==typeof s&&(o=s?Wf.has(e):Qf.has(e)),!l&&r&&"boolean"==typeof i&&(l=i?Wf.has(t):Qf.has(t)),o&&l}}const Gf=new RegExp("s*:selfs*,?","g");function Zf(e,t,n){return new Yf(e).build(t,n)}class Yf{constructor(e){this._driver=e}build(e,t){const n=new Jf(t);return this._resetContextStyleTimingState(n),zf(this,Nf(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const s=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,r+=s.depCount,i.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(e=>{if(Xf(e)){const t=e;Object.keys(t).forEach(e=>{Ff(t[e]).forEach(e=>{i.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=Lf(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=zf(this,Nf(e.animation),t);return{type:1,matchers:qf(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:em(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>zf(this,e,t)),options:em(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const s=e.steps.map(e=>{t.currentTime=n;const s=zf(this,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:em(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return tm(Tf(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=tm(0,0,"");return e.dynamic=!0,e.strValue=r,e}return n=n||Tf(r,t),tm(n.duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let s=e.styles?e.styles:Ud({});if(5==s.type)r=this.visitKeyframes(s,t);else{let s=e.styles,i=!1;if(!s){i=!0;const e={};n.easing&&(e.easing=n.easing),s=Ud(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,t);o.isEmptyStep=i,r=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Vd?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,s=null;return n.forEach(e=>{if(Xf(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let l=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(t.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"`),l=!1),s=o.startTime),l&&(i[n]={startTime:s,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},s=Ff(e);s.length&&s.forEach(e=>{r.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,l=0;const a=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let a=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Xf(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Xf(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=a&&(r++,u=n.offset=a),o=o||u<0||u>1,i=i||u<l,l=u,s.push(u),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const u=e.steps.length;let c=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(c=1/(u-1));const h=u-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return a.forEach((e,r)=>{const i=c>0?r==h?1:c*r:s[r],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:zf(this,Nf(e.animation),t),options:em(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:em(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:em(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(Gf,"")),[e=e.replace(/@\*/g,wf).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,Sf),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,nf(t.collectedStyles,t.currentQuerySelector,{});const o=zf(this,Nf(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:em(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Tf(e.timings,t.errors,!0);return{type:12,animation:zf(this,Nf(e.animation),t),timings:n,options:null}}}class Jf{constructor(e){this.errors=e,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 Xf(e){return!Array.isArray(e)&&"object"==typeof e}function em(e){var t;return e?(e=kf(e)).params&&(e.params=(t=e.params)?kf(t):null):e={},e}function tm(e,t,n){return{duration:e,delay:t,easing:n}}function nm(e,t,n,r,s,i,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:l}}class rm{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const sm=new RegExp(":enter","g"),im=new RegExp(":leave","g");function om(e,t,n,r,s,i={},o={},l,a,u=[]){return(new lm).buildKeyframes(e,t,n,r,s,i,o,l,a,u)}class lm{buildKeyframes(e,t,n,r,s,i,o,l,a,u=[]){a=a||new rm;const c=new um(e,t,a,r,s,u,[]);c.options=l,c.currentTimeline.setStyles([i],null,c.errors,l),zf(this,n,c);const h=c.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,c.errors,l)}return h.length?h.map(e=>e.buildKeyframes()):[nm(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const s=null!=n.duration?Ef(n.duration):null,i=null!=n.delay?Ef(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),zf(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=am);const e=Ef(s.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>zf(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ef(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);s&&o.delayNextStep(s),zf(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Tf(t.params?Mf(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*s),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ef(r.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=am);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((n,r)=>{t.currentQueryIndex=r;const o=t.createSubContext(e.options,n);s&&o.delayNextStep(s),n===t.element&&(l=o.currentTimeline),zf(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,s=e.timings,i=Math.abs(s.duration),o=i*(t.currentQueryTotal-1);let l=i*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=o-l;break;case"full":l=n.currentStaggerTime}const a=t.currentTimeline;l&&a.delayNextStep(l);const u=a.currentTime;zf(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const am={};class um{constructor(e,t,n,r,s,i,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=am,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new cm(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=Ef(n.duration)),null!=n.delay&&(r.delay=Ef(n.delay));const s=n.params;if(s){let e=r.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Mf(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,s=new um(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(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=am,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new hm(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,i){let o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(sm,"."+this._enterClassName)).replace(im,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return s||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class cm{constructor(e,t,n,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new cm(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Vd,this._currentKeyframe[e]=Vd}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},i=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t),r.forEach(e=>{n[e]=Vd})):Rf(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=Mf(i[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Vd),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=Rf(s,!0);Object.keys(o).forEach(n=>{const r=o[n];"!"==r?e.add(n):r==Vd&&t.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=e.size?Lf(e.values()):[],i=t.size?Lf(t.values()):[];if(n){const e=r[0],t=kf(e);e.offset=0,t.offset=1,r=[e,t]}return nm(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class hm extends cm{constructor(e,t,n,r,s,i,o=!1){super(e,t,i.delay),this.element=t,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 e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],i=n+t,o=t/i,l=Rf(e[0],!1);l.offset=0,s.push(l);const a=Rf(e[0],!1);a.offset=dm(o),s.push(a);const u=e.length-1;for(let r=1;r<=u;r++){let o=Rf(e[r],!1);o.offset=dm((t+o.offset*n)/i),s.push(o)}n=i,t=0,r="",e=s}return nm(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function dm(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class pm{}class fm extends pm{normalizePropertyName(e,t){return jf(e)}normalizeStyleValue(e,t,n,r){let s="";const i=n.toString().trim();if(mm[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+s}}const mm=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("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 gm(e,t,n,r,s,i,o,l,a,u,c,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:l,queriedElements:a,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const _m={};class ym{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,s){return e.some(e=>e(t,n,r,s))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],s=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return s?s.buildStyles(t,n):i}build(e,t,n,r,s,i,o,l,a,u){const c=[],h=this.ast.options&&this.ast.options.params||_m,d=this.buildStyles(n,o&&o.params||_m,c),p=l&&l.params||_m,f=this.buildStyles(r,p,c),m=new Set,g=new Map,_=new Map,y="void"===r,v={params:Object.assign(Object.assign({},h),p)},b=u?[]:om(e,t,this.ast.animation,s,i,d,f,v,a,c);let w=0;if(b.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),c.length)return gm(t,this._triggerName,n,r,y,d,f,[],[],g,_,w,c);b.forEach(e=>{const n=e.element,r=nf(g,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const s=nf(_,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&m.add(n)});const C=Lf(m.values());return gm(t,this._triggerName,n,r,y,d,f,b,C,g,_,w)}}class vm{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=kf(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let i=s[e];i.length>1&&(i=Mf(i,r,t)),n[e]=i})}}),n}}class bm{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new vm(e.style,e.options&&e.options.params||{})}),wm(this.states,"true","1"),wm(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new ym(e,t,this.states))}),this.fallbackTransition=new ym(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(s=>s.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function wm(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Cm=new rm;class Sm{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=Zf(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,s=Jp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],s=this._animations[e];let i;const o=new Map;if(s?(i=om(this._driver,t,s,yf,vf,{},{},n,Cm,r),i.forEach(e=>{const t=nf(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=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((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Vd)})});const l=Yp(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const s=tf(t,"","","");return Xp(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);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(e)}}}const Em="ng-animate-queued",xm="ng-animate-disabled",Tm=".ng-animate-disabled",km=[],Rm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Am={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Om{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(r=n?e.value:e)?r:null,n){const t=kf(e);delete t.value,this.options=t}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Im="void",Pm=new Om(Im);class Nm{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Um(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" 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 "${t}" is not supported!`);var s;const i=nf(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};i.push(o);const l=nf(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Um(e,bf),Um(e,"ng-trigger-"+t),l[t]=Pm),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete l[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const s=this._getTrigger(t),i=new Fm(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Um(e,bf),Um(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let l=o[t];const a=new Om(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&a.absorbOptions(l.options),o[t]=a,l||(l=Pm),a.value!==Im&&l.value===a.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(l.params,a.params)){const t=[],n=s.matchStyles(l.value,l.params,t),r=s.matchStyles(a.value,a.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Pf(e,n),If(e,r)})}return}const u=nf(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let c=s.matchTransition(l.value,a.value,e,a.params),h=!1;if(!c){if(!r)return;c=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:l,toState:a,player:i,isFallbackTransition:h}),h||(Um(e,Em),i.onStart(()=>{$m(e,Em)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),u.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,wf,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,r){const s=this._engine.statesByElement.get(e);if(s){const i=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Im,r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Yp(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const r=new Set;t.forEach(t=>{const s=t.name;if(r.has(s))return;r.add(s);const i=this._triggers[s].fallbackTransition,o=n[s]||Pm,l=new Om(Im),a=new Fm(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:i,fromState:o,toState:l,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const r=e.__ng_removed;r&&r!==Rm||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Um(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];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(t=>{if(t.name==n.triggerName){const r=tf(s,n.triggerName,n.fromState.value,n.toState.value);r._data=e,Xp(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Dm{constructor(e,t,n){this.bodyNode=e,this.driver=t,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Nm(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){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,t)){this._namespaceList.splice(s+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r<e.length;r++){const s=n[e[r]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(Mm(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!Mm(t))return;const s=t.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Um(e,xm)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$m(e,xm))}removeNode(e,t,n,r){if(Mm(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,s){return Mm(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,wf,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Sf,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Yp(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Rm,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Tm)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Tm,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Um(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Yp(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new rm,r=[],s=new Map,i=[],o=new Map,l=new Map,a=new Map,u=new Set;this.disabledNodes.forEach(e=>{u.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)u.add(t[n])});const c=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=jm(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n=yf+f++;p.set(t,n),e.forEach(e=>Um(e,n))});const m=[],g=new Set,_=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>g.add(e)):_.add(e))}const y=new Map,v=jm(h,Array.from(g));v.forEach((e,t)=>{const n=vf+f++;y.set(t,n),e.forEach(e=>Um(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>$m(e,n))}),v.forEach((e,t)=>{const n=y.get(t);e.forEach(e=>$m(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const b=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(b.push(t),this.collectedEnterElements.length){const e=s.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const u=!c||!this.driver.containsElement(c,s),h=y.get(s),d=p.get(s),f=this._buildInstruction(e,n,d,h,u);if(f.errors&&f.errors.length)w.push(f);else{if(u)return t.onStart(()=>Pf(s,f.fromStyles)),t.onDestroy(()=>If(s,f.toStyles)),void r.push(t);if(e.isFallbackTransition)return t.onStart(()=>Pf(s,f.fromStyles)),t.onDestroy(()=>If(s,f.toStyles)),void r.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,f.timelines),i.push({instruction:f,player:t,element:s}),f.queriedElements.forEach(e=>nf(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=l.get(t);e||l.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=a.get(t);r||a.set(t,r=new Set),n.forEach(e=>r.add(e))})}});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),b.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,S=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(S.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{nf(C,t,[]).push(e),e.destroy()})});const E=m.filter(e=>Bm(e,l,a)),x=new Map;Vm(x,this.driver,_,a,Vd).forEach(e=>{Bm(e,l,a)&&E.push(e)});const T=new Map;d.forEach((e,t)=>{Vm(T,this.driver,new Set(e),l,"!")}),E.forEach(e=>{const t=x.get(e),n=T.get(e);x.set(e,Object.assign(Object.assign({},t),n))});const k=[],R=[],A={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(u.has(t))return i.onDestroy(()=>If(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let e=A;if(S.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=S.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>S.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,C,s,T,x);if(i.setRealPlayer(n),e===A)k.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Yp(t)),r.push(i)}}else Pf(t,o.fromStyles),i.onDestroy(()=>If(t,o.toStyles)),R.push(i),u.has(t)&&r.push(i)}),R.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=Yp(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<m.length;O++){const e=m[O],t=e.__ng_removed;if($m(e,vf),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let r=this.driver.query(e,Sf,!0);for(let e=0;e<r.length;e++){let t=o.get(r[e]);t&&t.length&&n.push(...t)}}const r=n.filter(e=>!e.destroyed);r.length?zm(this,e,r):this.processLeaveNode(e)}return m.length=0,k.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),k}elementContainsData(e,t){let n=!1;const r=t.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,s){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||s==Im;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&i.push(t)})}}return(n||r)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const r=t.element,s=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,l=e!==r,a=nf(n,e,[]);this._getPreviousPlayers(e,l,s,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),a.push(e)})}Pf(r,t.fromStyles)}_buildAnimation(e,t,n,r,s,i){const o=t.triggerName,l=t.element,a=[],u=new Set,c=new Set,h=t.timelines.map(t=>{const h=t.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new zd(t.duration,t.delay);const p=h!==l,f=function(e){const t=[];return Hm(e,t),t}((n.get(h)||km).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=s.get(h),g=i.get(h),_=Jp(0,this._normalizer,0,t.keyframes,m,g),y=this._buildPlayer(t,_,f);if(t.subTimeline&&r&&c.add(h),p){const t=new Fm(e,o,h);t.setRealPlayer(y),a.push(t)}return y});a.forEach(e=>{nf(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t),r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t],r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r}(this.playersByQueriedElement,e.element,e))}),u.forEach(e=>Um(e,Cf));const d=Yp(h);return d.onDestroy(()=>{u.forEach(e=>$m(e,Cf)),If(l,t.toStyles)}),c.forEach(e=>{nf(r,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new zd(e.duration,e.delay)}}class Fm{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new zd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Xp(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){nf(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Mm(e){return e&&1===e.nodeType}function Lm(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Vm(e,t,n,r,s){const i=[];n.forEach(e=>i.push(Lm(e)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(r,e,s);n&&0!=n.length||(r.__ng_removed=Am,o.push(r))}),e.set(r,i)});let l=0;return n.forEach(e=>Lm(e,i[l++])),o}function jm(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),s=new Map;function i(e){if(!e)return 1;let t=s.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:r.has(o)?1:i(o),s.set(e,t),t}return t.forEach(e=>{const t=i(e);1!==t&&n.get(t).push(e)}),n}function Um(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function $m(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function zm(e,t,n){Yp(n).onDone(()=>e.processLeaveNode(t))}function Hm(e,t){for(let n=0;n<e.length;n++){const r=e[n];r instanceof Hd?Hm(r.players,t):t.push(r)}}function Bm(e,t,n){const r=n.get(e);if(!r)return!1;let s=t.get(e);return s?r.forEach(e=>s.add(e)):t.set(e,r),n.delete(e),!0}class qm{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Dm(e,t,n),this._timelineEngine=new Sm(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,s){const i=e+"-"+r;let o=this._triggerCache[i];if(!o){const e=[],t=Zf(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new bm(e,t)}(r,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,r,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,s]=rf(n);this._timelineEngine.command(e,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if("@"==n.charAt(0)){const[e,r]=rf(n);return this._timelineEngine.listen(e,t,r,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Wm(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Km(t[0]),t.length>1&&(r=Km(t[t.length-1]))):t&&(n=Km(t)),n||r?new Qm(e,n,r):null}let Qm=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&If(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(If(this._element,this._initialStyles),this._endStyles&&(If(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Pf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pf(this._element,this._endStyles),this._endStyles=null),If(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Km(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=n[r];Gm(s)&&(t=t||{},t[s]=e[s])}return t}function Gm(e){return"display"===e||"position"===e}const Zm="animation",Ym="animationend";class Jm{constructor(e,t,n,r,s,i,o){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=s,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=sg(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r<e.length;r++)","===e.charAt(r)&&n++}(n),t=`${n}, ${t}`),rg(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ng(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Xm(this._element,this._name,"paused")}resume(){Xm(this._element,this._name,"running")}setPosition(e){const t=eg(this._element,this._name);this._position=e*this._duration,rg(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ng(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=sg(e,"").split(","),r=tg(n,t);r>=0&&(n.splice(r,1),rg(e,"",n.join(",")))}(this._element,this._name))}}function Xm(e,t,n){rg(e,"PlayState",n,eg(e,t))}function eg(e,t){const n=sg(e,"");return n.indexOf(",")>0?tg(n.split(","),t):tg([n],t)}function tg(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ng(e,t,n){n?e.removeEventListener(Ym,t):e.addEventListener(Ym,t)}function rg(e,t,n,r){const s=Zm+t;if(null!=r){const t=e.style[s];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[s]=n}function sg(e,t){return e.style[Zm+t]||""}class ig{constructor(e,t,n,r,s,i,o,l){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=r+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Hf(this.element,n))})}this.currentSnapshot=e}}class og extends zd{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=mf(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class lg{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return hf(e)}matchesElement(e,t){return df(e,t)}containsElement(e,t){return pf(e,t)}query(e,t,n){return ff(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>mf(e));let r=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=" ";const t=parseFloat(e.offset);r+=`${s}${100*t}% {\n`,s+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${t}: ${n};\n`)}}),r+=`${s}}\n`}),r+="}\n";const i=document.createElement("style");return i.textContent=r,i}animate(e,t,n,r,s,i=[],o){const l=i.filter(e=>e instanceof ig),a={};Uf(n,r)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const u=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=$f(e,t,a));if(0==n)return new og(e,u);const c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);const d=Wm(e,t),p=new ig(e,t,c,n,r,s,u,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}}class ag{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Hf(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ug{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(cg().toString()),this._cssKeyframesDriver=new lg}validateStyleProperty(e){return hf(e)}matchesElement(e,t){return df(e,t)}containsElement(e,t){return pf(e,t)}query(e,t,n){return ff(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,s,i);const l={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const a={},u=i.filter(e=>e instanceof ag);Uf(n,r)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const c=Wm(e,t=$f(e,t=t.map(e=>Rf(e,!1)),a));return new ag(e,t,l,c)}}function cg(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}class hg extends Ld{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:de.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?jd(e):e;return fg(this._renderer,null,t,"register",[n]),new dg(t,this._renderer)}}class dg extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new pg(this._id,e,t||{},this._renderer)}}class pg{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return fg(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function fg(e,t,n,r,s){return e.setProperty(t,`@@${n}:${r}`,s)}const mg="@",gg="@.disabled";class _g{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new yg("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(r,s,e,t.name,t)};return t.data.animation.forEach(i),new vg(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}class yg{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==mg&&t==gg?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class vg extends yg{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==mg?"."==t.charAt(1)&&t==gg?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==mg){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),i="";return s.charAt(0)!=mg&&([s,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}class bg extends qm{constructor(e,t,n){super(e.body,t,n)}}function wg(){return"function"==typeof cg()?new ug:new lg}function Cg(){return new fm}function Sg(e,t,n){return new _g(e,t,n)}const Eg=new Ce("AnimationModuleType");class xg{}var Tg=hr({encapsulation:2,styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],data:{animation:[{type:7,name:"transitionMessages",definitions:[{type:0,name:"enter",styles:{type:6,styles:{opacity:1,transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-5px)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function kg(e){return ao(0,[(e()(),Qi(0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),Qi(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(e()(),Qi(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),Qi(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),Qi(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(e()(),Qi(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(e()(),Qi(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),Qi(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),Qi(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function Rg(e){return ao(0,[(e()(),Qi(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),ro(null,0)],null,null)}function Ag(e){return ao(0,[(e()(),Qi(0,0,null,null,3,null,null,null,null,null,null,null)),ro(null,2),(e()(),Qi(2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),io(3,null,["",""]))],null,function(e,t){e(t,3,0,t.component._control.placeholder)})}function Og(e){return ao(0,[ro(null,3),(e()(),Wi(0,null,null,0))],null,null)}function Ig(e){return ao(0,[(e()(),Qi(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(e()(),io(-1,null,[" *"]))],null,null)}function Pg(e){return ao(0,[(e()(),Qi(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],function(e,t,n){var r=!0;return"cdkObserveContent"===t&&(r=!1!==e.component.updateOutlineGap()&&r),r},null,null)),gs(1,16384,null,0,ea,[],{ngSwitch:[0,"ngSwitch"]},null),gs(2,1196032,null,0,lp,[op,gn,ri],{disabled:[0,"disabled"]},{event:"cdkObserveContent"}),(e()(),Wi(16777216,null,null,1,null,Ag)),gs(4,278528,null,0,ta,[Kn,Bn,ea],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Wi(16777216,null,null,1,null,Og)),gs(6,278528,null,0,ta,[Kn,Bn,ea],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Wi(16777216,null,null,1,null,Ig)),gs(8,16384,null,0,Zl,[Kn,Bn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n._hasLabel()),e(t,2,0,"outline"!=n.appearance),e(t,4,0,!1),e(t,6,0,!0),e(t,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(e,t){var n=t.component;e(t,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat(),n._control.empty&&!n._shouldAlwaysFloat(),"accent"==n.color,"warn"==n.color)})}function Ng(e){return ao(0,[(e()(),Qi(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),ro(null,4)],null,null)}function Dg(e){return ao(0,[(e()(),Qi(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(e()(),Qi(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,1,0,"accent"==n.color,"warn"==n.color)})}function Fg(e){return ao(0,[(e()(),Qi(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),ro(null,5)],null,function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function Mg(e){return ao(0,[(e()(),Qi(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(e()(),io(1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n._hintLabelId),e(t,1,0,n.hintLabel)})}function Lg(e){return ao(0,[(e()(),Qi(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(e()(),Wi(16777216,null,null,1,null,Mg)),gs(2,16384,null,0,Zl,[Kn,Bn],{ngIf:[0,"ngIf"]},null),ro(null,6),(e()(),Qi(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),ro(null,7)],function(e,t){e(t,2,0,t.component.hintLabel)},function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function Vg(e){return ao(2,[Ji(671088640,1,{underlineRef:0}),Ji(402653184,2,{_connectionContainerRef:0}),Ji(671088640,3,{_inputContainerRef:0}),Ji(671088640,4,{_label:0}),(e()(),Qi(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(e()(),Qi(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(e,t,n){var r=!0,s=e.component;return"click"===t&&(r=!1!==(s._control.onContainerClick&&s._control.onContainerClick(n))&&r),r},null,null)),(e()(),Wi(16777216,null,null,1,null,kg)),gs(7,16384,null,0,Zl,[Kn,Bn],{ngIf:[0,"ngIf"]},null),(e()(),Wi(16777216,null,null,1,null,Rg)),gs(9,16384,null,0,Zl,[Kn,Bn],{ngIf:[0,"ngIf"]},null),(e()(),Qi(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),ro(null,1),(e()(),Qi(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(e()(),Wi(16777216,null,null,1,null,Pg)),gs(14,16384,null,0,Zl,[Kn,Bn],{ngIf:[0,"ngIf"]},null),(e()(),Wi(16777216,null,null,1,null,Ng)),gs(16,16384,null,0,Zl,[Kn,Bn],{ngIf:[0,"ngIf"]},null),(e()(),Wi(16777216,null,null,1,null,Dg)),gs(18,16384,null,0,Zl,[Kn,Bn],{ngIf:[0,"ngIf"]},null),(e()(),Qi(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),gs(20,16384,null,0,ea,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),Wi(16777216,null,null,1,null,Fg)),gs(22,278528,null,0,ta,[Kn,Bn,ea],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Wi(16777216,null,null,1,null,Lg)),gs(24,278528,null,0,ta,[Kn,Bn,ea],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,t){var n=t.component;e(t,7,0,"outline"==n.appearance),e(t,9,0,n._prefixChildren.length),e(t,14,0,n._hasFloatingLabel()),e(t,16,0,n._suffixChildren.length),e(t,18,0,"outline"!=n.appearance),e(t,20,0,n._getDisplayedMessages()),e(t,22,0,"error"),e(t,24,0,"hint")},null)}let jg=(()=>{class e{constructor(e,t){this.elementRef=e,this.monacoLoader=t,this.language="typescript",this.monacoOptions=yl,this.editorReady=new Ds,this.valueChanged=new Ds,this.validationChange=new Ds}get id(){return null==this._id&&(this._id=`code-${e._identity}`,e._identity++),this._id}ngAfterViewInit(){return gl(this,void 0,void 0,function*(){this.editor=yield this.monacoLoader.createEditor(this.codeRef.nativeElement,"",this.language),this.editor.updateOptions(this.monacoOptions),yield this.init(),this.editorReady.emit(this.editor)})}ngOnDestroy(){return gl(this,void 0,void 0,function*(){null!=this.editor&&(this.editor.dispose(),this.editor=void 0)})}init(){return gl(this,void 0,void 0,function*(){this.editor.onKeyUp(e=>{this.valueChanged.emit(this.editor.getModel().getValue())}),this.editor.onDidChangeModelDecorations(e=>{setTimeout(()=>{const e=this.editor.getModel();if(null===e||"typescript"!==e.getModeId())return;const t=e.getModeId();window.monaco.editor.getModelMarkers({owner:t}).filter(e=>e.severity>1&&e.resource.path===`/${this.id}`).map(e=>e).map(e=>e.message)},100)})})}}return e._identity=1e3,e})();class Ug{constructor(e){this.config=e,this.isReady=!1,this.baseUrl=null!=this.config&&null!=this.config.monacoBaseUrl?this.config.monacoBaseUrl:_l}createEditor(e,t,n="typescript"){return gl(this,void 0,void 0,function*(){return yield this.loadRequire(),window.monaco.editor.create(e,{language:n})})}loadRequire(){return gl(this,void 0,void 0,function*(){if(null!=window.require)return yield this.waitForNamespace(e=>null!=e.monaco),!0;this.addScript(`${this.baseUrl}min/vs/loader.js`),yield this.waitForNamespace(e=>null!=e.require),window.require.config({paths:{vs:`${this.baseUrl}min/vs`}}),window.require([`${this.baseUrl}min/vs/editor/editor.main`],()=>{}),yield this.waitForNamespace(e=>null!=e.monaco),window.MonacoEnvironment={getWorkerUrl:()=>e};const e=URL.createObjectURL(new Blob([`\tself.MonacoEnvironment = {\n\t\tbaseUrl: '${this.baseUrl}min/'\n\t};\n\timportScripts('${this.baseUrl}min/vs/base/worker/workerMain.js');`],{type:"text/javascript"}));null!=this.config&&null!=this.config.configure&&(yield this.config.configure(window.monaco))})}waitForNamespace(e,t=6e4){return gl(this,void 0,void 0,function*(){yield new Promise((n,r)=>gl(this,void 0,void 0,function*(){let s=!0;const i=setTimeout(()=>{console.error("Timeout waiting for monaco to become ready"),s=!1,r("Timeout")},t);for(;!0===s;){if(!0===e(window))return clearTimeout(i),n();yield new Promise(e=>{setTimeout(()=>{e()},500)})}n()}))})}addScript(e){const t=document.createElement("script");t.type="text/javascript",t.src=e,t.addEventListener("load",e=>{}),document.body.appendChild(t)}}var $g=hr({encapsulation:0,styles:[[".expr.editor[_ngcontent-%COMP%]{display:block;height:calc(100% + 100px);min-height:100px}.expr.editor[_ngcontent-%COMP%]     .monaco-editor, .expr.editor[_ngcontent-%COMP%]     .monaco-editor-background{background-color:transparent!important}.expr.editor[_ngcontent-%COMP%]     .decorationsOverviewRuler{display:none}"]],data:{}});function zg(e){return ao(0,[Ji(671088640,1,{codeRef:0}),(e()(),Qi(1,0,[[1,0],["codeRef",1]],null,0,"div",[["class","expr editor"]],[[1,"id",0]],null,null,null,null))],null,function(e,t){e(t,1,0,t.component.id)})}let Hg=(()=>{class e{constructor(t,n,r,s,i){this.config=t,this.focusMonitor=n,this.elementRef=r,this.ngControl=s,this.formatter=i,this.language="typescript",this.output="template",this.describedBy="",this.id="expr-input-"+ ++e.nextId,this.autofilled=!1,this.controlType="expression",this.stateChanges=new S,this._parameters="",this._mode="interpolation",this._returnType="string",this._validations=[],this._busy=!0,this._disabled=!1,this._focused=!1,this._placeholder="",this._required=!1,this._destroy=new S,this._autosize=!1,s&&(this.ngControl.valueAccessor=this,s.valueAccessor=this)}get busy(){return!0===this._busy}get returnType(){return this._returnType}set returnType(e){const t=this.getTargetCode();this._returnType=e,this.writeValue(t)}get disabled(){return this._disabled}set disabled(e){this._disabled=ud(e),this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get autosize(){return"extended"===this.mode||this._autosize}set autosize(e){this._autosize=e,setTimeout(()=>{this.updateLayout()},50)}get required(){return this._required}set required(e){this._required=ud(e),this.stateChanges.next()}get value(){const e=this.getParseResult();if(null==e)return null;if("template"===this.output)return e.targetCode;if("function"===this.output)return e.fullCode;throw new Error(`Output mode '${this.output}' not implemented!`)}set value(e){this.writeValue(e),this.stateChanges.next()}get shouldLabelFloat(){return this.focused||!this.empty||this.busy}get validationErrors(){return this._validations}get styles(){if(!1===this.autosize)return null;const e=this.getParseResult();return null!=e&&e.targetLineCount>1?{height:22*e.targetLineCount+"px"}:null}get scrolling(){if(!1===this.autosize)return!1;const e=this.getParseResult();return null!=e&&e.targetLineCount>8}get empty(){return null==this._value||null==this._parseResult||null==this._parseResult.targetCode||0===this._parseResult.targetCode.trim().length}get errorState(){const e=this.getParseResult();return(!0===this.required||null!=e&&e.targetCode.trim().length>0)&&null!=this._validations&&this._validations.length>0}get focused(){return this._focused}set focused(e){this._focused=e,!0===this._focused?this.updateLayout():this.reloadParseResult(),this.stateChanges.next()}get parameters(){return this._parameters}set parameters(e){const t=this.getTargetCode();this._parameters=e,this.writeValue(t)}get mode(){return this._mode}set mode(e){const t=this.getTargetCode();this._mode=e,this.writeValue(t)}updateLayout(){this.updateHiddenRanges(),null!=this.editorRef&&null!=this.editorRef.editor&&(this.editorRef.editor.layout(),this.editorRef.elementRef.nativeElement.scrollTop=0)}ngAfterViewInit(){this.focusMonitor.monitor(this.elementRef.nativeElement,!0).subscribe(e=>{this.focused=!!e})}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this.focusMonitor.stopMonitoring(this.elementRef.nativeElement)}onContainerClick(e){"input"!==e.target.tagName.toLowerCase()&&this.focusMonitor.focusVia(this.editorRef.codeRef.nativeElement,"mouse")}onEditorReady(){return gl(this,void 0,void 0,function*(){this.addListeners(),this.applyValue();const e=this.getParseResult();null!=e&&this.editorRef.editor.setPosition(e.startingPosition),setTimeout(()=>{this.updateLayout()},50),this._busy=!1})}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDescribedByIds(e){this.describedBy=e.join(" ")}setDisabledState(e){this.editorRef.editor.updateOptions({readOnly:e}),this.disabled=e}writeValue(e){this._value=this.formatter.getTemplate(this.language,this.mode,this.parameters,this.returnType,e||""),this.applyValue()}onTouched(){null!=this._onTouched&&this._onTouched()}onChange(e){null!=this._onChange&&this._onChange(e||"")}applyValue(){if(null==this.editorRef||null==this.editorRef.editor||null==this._value||0===this._value.length)return;let e=this.editorRef.editor.getModel();null==e?(e=window.monaco.editor.createModel(this._value,this.language,window.monaco.Uri.parse(`inmemory://${this.id}.ts`)),this.editorRef.editor.setModel(e)):e.setValue(this._value),this.formatter.setHiddenRanges(this.editorRef.editor,this.reloadParseResult())}addListeners(){if(null==this.editorRef||null==this.editorRef.editor)throw new Error("Cannot add listeners as editor not ready.");this.editorRef.editor.onDidChangeModelContent(e=>{this.formatter.setHiddenRanges(this.editorRef.editor,this.reloadParseResult());const t=this.getParseResult();null!=t&&this.onChange(t.targetCode)}),this.editorRef.editor.onDidChangeCursorPosition(e=>{this.formatter.updatedCursorPosition(this.editorRef.editor,this.getParseResult(),e),this.onTouched()}),this.editorRef.editor.onDidChangeCursorSelection(e=>{this.formatter.updatedCursorSelection(this.editorRef.editor,this.getParseResult(),e),this.onTouched()}),this.editorRef.editor.onKeyDown(e=>{!1===this.formatter.isKeypressAllowed(this.editorRef.editor,this.getParseResult(),e,this.autosize)&&(e.stopPropagation(),e.preventDefault()),this.onTouched()}),this.editorRef.editor.onDidScrollChange(e=>{this.formatter.updateScrollPosition(this.editorRef.editor,this.getParseResult())}),this.editorRef.editor.onDidChangeModelDecorations(e=>{this._validations=this.formatter.updateModelDecorations(this.editorRef.editor,this.getParseResult(),this.id,e),null!=this.validationErrors&&this.validationErrors.length>0&&this.onChange(this._value)})}reloadParseResult(){if(null==this.editorRef||null==this.editorRef.editor)return null;const e=null!=this._parseResult?this._parseResult.targetLineCount:-1;return this._parseResult=this.formatter.parseModel(this.language,this.mode,this.editorRef.editor.getModel()),null!=this._parseResult&&this._parseResult.targetLineCount!==e&&this.updateLayout(),this._parseResult}getParseResult(){return null!=this._parseResult?this._parseResult:this.reloadParseResult()}updateHiddenRanges(){this.formatter.setHiddenRanges(this.editorRef.editor,this.getParseResult())}getTargetCode(){const e=this.reloadParseResult();return null==e?"":e.targetCode}}return e.nextId=0,e})();const Bg=(e,t,n)=>{const r=n.getValue();if(!r.match(t)){t.lastIndex=0;const e=t.exec(r);return console.warn("Failed to parse code",{failedGroups:e,fullCode:r,regex:t}),null}t.lastIndex=0;const s=t.exec(r);if(null==s)return null;const i=s[2]||"",o=s[3]||"",l=s[4]||"";let a=null,u=null,c=null;const h=n.findNextMatch(s[1]||"",new window.monaco.Position(1,1),!1,!0,null,!1);if(null==h||null==h.range)throw new Error("Cannot match header");a=h.range;const d=n.findNextMatch(o,a.getEndPosition(),!1,!0,null,!1);if(null!=o&&o.length>0){if(null==d||null==d.range)throw null!=e&&e("Cannot match target",[o,s]),new Error("Cannot match target");u=d.range}else u=new window.monaco.Range(3,1,3,1);const p=n.findNextMatch(l,u.getEndPosition(),!1,!0,null,!1);if(null==p||null==p.range)throw new Error("Cannot match end");c=window.monaco.Range.fromPositions(new window.monaco.Position(u.endLineNumber+1,1),p.range.getEndPosition());const f=u.getStartPosition(),m=window.monaco.Range.fromPositions(f,c.getStartPosition());return{fullCode:r,targetCode:o,fullLineCount:r.split(/\r\n|\r|\n/).length,targetLineCount:o.split(/\r\n|\r|\n/).length,headerRange:a,workingRange:m,footerRange:c,parameters:i,startingPosition:f}},qg={typescript:{interpolation:{regex:/^(\((.*?)\):\s?\w*\s?=>\s?\{\s*return\s*\(`?\s*?)\n(.*?)\n(`?\);\s*\})\s*$/s,getTemplate:(e,t,n)=>(null!=n&&0!==n.length||(n=""),"string"!==t&&(t="string"),`(${e}): ${t} => {\nreturn (\`\n${n}\n\`);\n}\n`),parseTemplate:Bg},expression:{regex:/^(\((.*?)\):\s?\w*\s?=>\s?\{\s*return\s*\(?\s*?)\n(.*?)\n(\);\s*\})\s*$/s,getTemplate:(e,t,n)=>(null!=n&&0!==n.length||(n=""),`(${e}): ${t} => {\nreturn (\n${n}\n);\n}\n`),parseTemplate:Bg},extended:{regex:/^(\((.*?)\):\s?\w*\s?=>\s?\{\s*\(?\s*?)\n(.*?)\n(\})\s*$/s,getTemplate:(e,t,n)=>(null!=n&&0!==n.length||(n=""),`(${e}): ${t} => {\n${n}\n}`),parseTemplate:Bg}}};class Wg{constructor(e){this.config=e,this.logger=null,null!=this.config&&null!=this.config.log&&(this.logger=this.config.log)}parseModel(e,t,n){if(null==n)return null;if(this.previousFullCode===n.getValue())return this.previousParseResult;this.previousFullCode=n.getValue();const r=this.getRule(e,t);return this.previousParseResult=r.parseTemplate(this.logger,r.regex,n),null!=this.config&&null!=this.config.log&&this.config.log("NgxExpressions Parse Result",[this.previousParseResult]),this.previousParseResult}getTemplate(e,t,n,r,s){const i=this.getRule(e,t);if(null==i)throw new Error(`Invalid formatRuleName '${t}'`);return i.regex.lastIndex=0,null!=s&&s.trim().length>0&&s.match(i.regex)?(this.log("Provided code already matches template.",s),s):i.getTemplate(n,r,s||"")}setHiddenRanges(e,t){this.log("NgxExpressions setHiddenRanges",{editor:e,parseResult:t}),null!=t&&(e.setHiddenAreas([t.headerRange,t.footerRange]),e.revealPositionNearTop(e.getPosition(),window.monaco.editor.ScrollType.Immediate))}updatedCursorPosition(e,t,n){if(this.log("NgxExpressions updatedCursorPosition",{editor:e,parseResult:t}),null!=t)if(null==t.workingRange)e.setPosition(t.startingPosition),e.setScrollPosition({scrollTop:0,scrollLeft:0}),e.revealPositionNearTop(new window.monaco.Position(1,1));else{if(!t.workingRange.containsPosition(n.position))if(n.position.isBefore(t.workingRange.getStartPosition()))e.revealPositionNearTop(t.workingRange.getStartPosition());else{const n=t.workingRange.getEndPosition();e.setPosition(n)}e.revealPositionNearTop(e.getPosition(),window.monaco.editor.ScrollType.Immediate)}}updatedCursorSelection(e,t,n){if(this.log("NgxExpressions updatedCursorSelection",{editor:e,parseResult:t}),"api"===n.source||n.reason===window.monaco.editor.CursorChangeReason.NotSet)return;if(n.selection.isEmpty())return;if(null==t)return;if(null==t.workingRange)return e.setSelection(window.monaco.Selection.fromPositions(t.headerRange.getEndPosition(),t.headerRange.getEndPosition())),void e.revealPositionNearTop(e.getPosition(),window.monaco.editor.ScrollType.Immediate);let r=n.selection,s=!1;r.intersectRanges(t.headerRange)&&(s=!0,r=r.setStartPosition(t.headerRange.endLineNumber+1,1)),r.intersectRanges(t.footerRange)&&(s=!0,r=r.setEndPosition(t.footerRange.startLineNumber-1,e.getModel().getLineLength(t.footerRange.startLineNumber-1)+1)),s&&e.setSelection(r),e.revealPositionNearTop(e.getPosition(),window.monaco.editor.ScrollType.Immediate)}updateScrollPosition(e,t){e.revealPositionNearTop(e.getPosition(),window.monaco.editor.ScrollType.Immediate)}updateModelDecorations(e,t,n,r){if(this.log("NgxExpressions updateModelDecorations",{editor:e,parseResult:t}),null==t)return;const s=e.getModel();if(null===s||"typescript"!==s.getModeId())return[];const i=s.getModeId(),o=window.monaco.editor.getModelMarkers({owner:i});return this.log("NgxExpressions updateModelDecorations markers",{markers:o}),o.filter(t=>t.severity>1&&t.resource.path===e.getModel().uri.path).map(e=>e.message)}isKeypressAllowed(e,t,n,r=!1){if(this.log("NgxExpressions isKeypressAllowed",{editor:e,parseResult:t}),null!=t)return!("Enter"===n.code&&!1===r||n.code.startsWith("F")&&2===n.code.length||"Delete"===n.code&&!this.isDeleteKeyAllowed(e,t)||"Backspace"===n.code&&!this.isBackspaceKeyAllowed(e,t))}isDeleteKeyAllowed(e,t){if(this.log("NgxExpressions isDeleteKeyAllowed",{editor:e,parseResult:t}),null==t)return;const n=e.getPosition();return n.lineNumber<t.fullLineCount-3||n.lineNumber===t.fullLineCount-3&&n.column<=e.getModel().getLineLength(n.lineNumber)||!e.getSelection().isEmpty()}isBackspaceKeyAllowed(e,t){if(this.log("NgxExpressions isBackspaceKeyAllowed",{editor:e,parseResult:t}),null==t)return;const n=e.getPosition();return new window.monaco.Position(3,1).isBefore(n)}getRule(e,t){if(null==qg[e])throw new Error(`Formatting rules for language '${e}' are not implemented.`);const n=qg[e][t];if(null==n)throw new Error(`Invalid formatter rule name ${t}`);return n}log(e,...t){null!=this.config&&null!=this.config.log&&this.config.log(e,t)}}var Qg=hr({encapsulation:0,styles:[[".expr.input[_ngcontent-%COMP%]{position:relative;width:100%;min-height:22px;line-height:22px;height:22px;overflow:hidden;margin-bottom:-7px}.expr.input[_ngcontent-%COMP%]     .monaco-editor .scrollbar{display:none!important}.expr.input.autosize.scrolling[_ngcontent-%COMP%]   .monaco-editor[_ngcontent-%COMP%]   .scrollbar[_ngcontent-%COMP%]{display:inherit!important}.expr.input[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%], .expr.input[_ngcontent-%COMP%]   expr-editor[_ngcontent-%COMP%]{transition:opacity .3s ease;display:block}.expr.input[_ngcontent-%COMP%]   expr-editor[_ngcontent-%COMP%]{opacity:1}.expr.input[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%], .expr.input[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{display:none;opacity:0}.expr.input[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:9998}.expr.input[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:22px;height:22px}.expr.input[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;top:0;left:4px;display:inline-block;width:16px;height:16px;-webkit-animation:circ-anim .7s linear infinite;animation:circ-anim .7s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:1px solid grey;transform-origin:center;z-index:9999}@-webkit-keyframes circ-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes circ-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.expr.input.busy[_ngcontent-%COMP%]   expr-editor[_ngcontent-%COMP%]{opacity:0}.expr.input.busy[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%], .expr.input.busy[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{display:block;opacity:1;z-index:99999}.expr.input.disabled[_ngcontent-%COMP%]   expr-editor[_ngcontent-%COMP%]{opacity:.8}.expr.input.disabled[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]{display:block;z-index:99999}.expr.input[_ngcontent-%COMP%]     .mtk1{color:#2d2d2d!important}.expr.input[_ngcontent-%COMP%]     .mtk20{color:#474747!important}"]],data:{}});function Kg(e){return ao(0,[Ji(671088640,1,{editorRef:0}),(e()(),Qi(1,0,null,null,8,"div",[["class","expr input"]],[[2,"busy",null],[2,"disabled",null],[2,"primary",null],[2,"accent",null],[2,"autosize",null],[2,"scrolling",null]],null,null,null,null)),gs(2,278528,null,0,Gl,[Fn,Ln,gn,vn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),gs(3,278528,null,0,na,[gn,Ln,vn],{ngStyle:[0,"ngStyle"]},null),(e()(),Qi(4,0,null,null,2,"expr-editor",[],null,[[null,"editorReady"]],function(e,t,n){var r=!0;return"editorReady"===t&&(r=!1!==e.component.onEditorReady()&&r),r},zg,$g)),gs(5,278528,null,0,na,[gn,Ln,vn],{ngStyle:[0,"ngStyle"]},null),gs(6,4374528,[[1,4],["editorRef",4]],0,jg,[gn,Ug],{language:[0,"language"]},{editorReady:"editorReady"}),(e()(),Qi(7,0,null,null,0,"div",[["class","overlay"]],null,null,null,null,null)),(e()(),Qi(8,0,null,null,1,"div",[["class","spinner"]],null,null,null,null,null)),(e()(),Qi(9,0,null,null,0,"i",[],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,"expr input",n.mode),e(t,3,0,n.styles),e(t,5,0,n.styles),e(t,6,0,n.language)},function(e,t){var n=t.component;e(t,1,0,!0===n.busy,!0===n.disabled,"primary"===n.color,"accent"===n.color,!0===n.autosize,!0===n.scrolling)})}function Gg(e,t){return new y(n=>{const r=e.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let l=0;l<r;l++){const a=M(e[l]);let u=!1;n.add(a.subscribe({next:e=>{u||(u=!0,o++),s[l]=e},error:e=>n.error(e),complete:()=>{i++,i!==r&&u||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=s[n],e),{}):s),n.complete())}}))}})}const Zg=new Ce("NgValidators");function Yg(e){return null!=e}function Jg(e){const t=Xt(e)?M(e):e;return en(t),t}function Xg(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function e_(e,t){return t.map(t=>t(e))}function t_(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function n_(e){return null!=e?function(e){if(!e)return null;const t=e.filter(Yg);return 0==t.length?null:function(e){return Xg(e_(e,t))}}(t_(e)):null}function r_(e){return null!=e?function(e){if(!e)return null;const t=e.filter(Yg);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(a(t))return Gg(t,null);if(u(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Gg(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Gg(e=1===e.length&&a(e[0])?e[0]:e,null).pipe(T(e=>t(...e)))}return Gg(e,null)}(e_(e,t).map(Jg)).pipe(T(Xg))}}(t_(e)):null}function s_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}class i_ extends class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=n_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=r_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class o_ extends class{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}{constructor(e){super(e)}}function l_(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function a_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function u_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const c_="VALID",h_="INVALID",d_="PENDING",p_="DISABLED";function f_(e){return(y_(e)?e.validators:e)||null}function m_(e){return Array.isArray(e)?n_(e):e||null}function g_(e,t){return(y_(t)?t.asyncValidators:e)||null}function __(e){return Array.isArray(e)?r_(e):e||null}function y_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class v_{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=m_(this._rawValidators),this._composedAsyncValidatorFn=__(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===c_}get invalid(){return this.status===h_}get pending(){return this.status==d_}get disabled(){return this.status===p_}get enabled(){return this.status!==p_}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=m_(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=__(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=d_,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=p_,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=c_,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==c_&&this.status!==d_||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?p_:c_}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=d_,this._hasOwnPendingAsyncValidator=!0;const t=Jg(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let r=e;return t.forEach(e=>{r=r instanceof w_?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof C_&&r.at(e)||null}),r}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ds,this.statusChanges=new Ds}_calculateStatus(){return this._allControlsDisabled()?p_:this.errors?h_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(d_)?d_:this._anyControlsHaveStatus(h_)?h_:c_}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){y_(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class b_ extends v_{constructor(e=null,t,n){super(f_(t),g_(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){u_(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){u_(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class w_ extends v_{constructor(e,t,n){super(f_(t),g_(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof b_?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class C_ extends v_{constructor(e,t,n){super(f_(t),g_(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof b_?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const S_=(()=>Promise.resolve(null))();class E_ extends i_{constructor(e,t,n,r){super(),this.control=new b_,this._registered=!1,this.update=new Ds,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=function(e,t){if(!t)return null;let n,r,s;return Array.isArray(t),t.forEach(e=>{e.constructor===class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=kl()?kl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}?n=e:Object.getPrototypeOf(e.constructor)===class{}?r=e:s=e}),s||r||n||null}(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){var e,t;(function(e,t,n){const r=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(s_(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const s=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(s_(s,t.asyncValidator)):"function"==typeof s&&e.setAsyncValidators([s]);{const n=()=>e.updateValueAndValidity();l_(t._rawValidators,n),l_(t._rawAsyncValidators,n)}})(e=this.control,t=this),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&a_(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&a_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){S_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;S_.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}class x_{}class T_{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?function(e){return null==(t=e.value)||0===t.length?{required:!0}:null;var t}(e):null}registerOnValidatorChange(e){this._onChange=e}}class k_{}class R_{}var A_=hr({encapsulation:0,styles:[["a[_ngcontent-%COMP%]{text-decoration:none;color:inherit}h1[_ngcontent-%COMP%]{padding:96px 64px 12px}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{margin:0}h2[_ngcontent-%COMP%]{padding:12px 64px;font-weight:400}.wrapper[_ngcontent-%COMP%]{padding:32px 64px 64px}.wrapper[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{border:1px solid #dcdcdc;padding:32px}.wrapper[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}"]],data:{}});function O_(e){return ao(0,[(e()(),Qi(0,0,null,null,2,"a",[["href","https://github.com/scottphilip/ngx-expressions"]],null,null,null,null,null)),(e()(),Qi(1,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),io(-1,null,["ngx-expressions"])),(e()(),Qi(3,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),io(-1,null,["Demo"])),(e()(),Qi(5,0,null,null,223,"div",[["class","wrapper"]],null,null,null,null,null)),(e()(),Qi(6,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),io(-1,null,["Boolean Expression"])),(e()(),Qi(8,0,null,null,29,"div",[["class","field"]],null,null,null,null,null)),(e()(),Qi(9,0,null,null,28,"mat-form-field",[["appearance","outline"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,Vg,Tg)),_s(6144,null,np,null,[rp]),gs(11,7520256,null,9,rp,[gn,jn,gn,[2,cp],[2,tp],fd,ri,[2,Eg]],{appearance:[0,"appearance"]},null),Ji(603979776,1,{_controlNonStatic:0}),Ji(335544320,2,{_controlStatic:0}),Ji(603979776,3,{_labelChildNonStatic:0}),Ji(335544320,4,{_labelChildStatic:0}),Ji(603979776,5,{_placeholderChild:0}),Ji(603979776,6,{_errorChildren:1}),Ji(603979776,7,{_hintChildren:1}),Ji(603979776,8,{_prefixChildren:1}),Ji(603979776,9,{_suffixChildren:1}),(e()(),Qi(21,0,null,3,2,"mat-label",[],null,null,null,null,null)),gs(22,16384,[[3,4],[4,4]],0,Yd,[],null,null),(e()(),io(-1,null,["Boolean Expression"])),(e()(),Qi(24,0,null,1,5,"expr-input",[["mode","expression"],["parameters","myWorld: MyWorld"],["returnType","boolean"]],[[2,"floating",null],[1,"aria-describedby",0],[8,"id",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"],[null,"focusout"]],function(e,t,n){var r=!0,s=e.component;return"window:resize"===t&&(r=!1!==os(e,27).updateLayout(n)&&r),"focusout"===t&&(r=!1!==os(e,27).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(s.codeExpression=n)&&r),r},Kg,Qg)),gs(25,671744,null,0,E_,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),_s(2048,null,i_,null,[E_]),gs(27,4374528,[["exprBoolean",4]],0,Hg,[vl,vd,gn,[6,i_],Wg],{returnType:[0,"returnType"],parameters:[1,"parameters"],mode:[2,"mode"]},null),gs(28,16384,null,0,o_,[[4,i_]],null,null),_s(2048,[[1,4],[2,4]],Qd,null,[Hg]),(e()(),Qi(30,0,null,6,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),gs(31,16384,null,0,Zd,[],null,null),_s(2048,[[7,4]],Gd,null,[Zd]),(e()(),io(33,null,["Available parameters: ",""])),(e()(),Qi(34,0,null,5,3,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),gs(35,16384,null,0,Wd,[],null,null),_s(2048,[[6,4]],qd,null,[Wd]),(e()(),io(37,null,["",""])),(e()(),Qi(38,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),io(-1,null,["Optional String Expression"])),(e()(),Qi(40,0,null,null,26,"div",[["class","field"]],null,null,null,null,null)),(e()(),Qi(41,0,null,null,25,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,Vg,Tg)),_s(6144,null,np,null,[rp]),gs(43,7520256,null,9,rp,[gn,jn,gn,[2,cp],[2,tp],fd,ri,[2,Eg]],null,null),Ji(603979776,10,{_controlNonStatic:0}),Ji(335544320,11,{_controlStatic:0}),Ji(603979776,12,{_labelChildNonStatic:0}),Ji(335544320,13,{_labelChildStatic:0}),Ji(603979776,14,{_placeholderChild:0}),Ji(603979776,15,{_errorChildren:1}),Ji(603979776,16,{_hintChildren:1}),Ji(603979776,17,{_prefixChildren:1}),Ji(603979776,18,{_suffixChildren:1}),(e()(),Qi(53,0,null,3,2,"mat-label",[],null,null,null,null,null)),gs(54,16384,[[12,4],[13,4]],0,Yd,[],null,null),(e()(),io(-1,null,["Empty Expression"])),(e()(),Qi(56,0,null,1,2,"expr-input",[["mode","expression"],["parameters","myWorld: MyWorld"],["returnType","string"],["value",""]],[[2,"floating",null],[1,"aria-describedby",0],[8,"id",0]],[["window","resize"],[null,"focusout"]],function(e,t,n){var r=!0;return"window:resize"===t&&(r=!1!==os(e,57).updateLayout(n)&&r),"focusout"===t&&(r=!1!==os(e,57).onTouched()&&r),r},Kg,Qg)),gs(57,4374528,[["exprBlank",4]],0,Hg,[vl,vd,gn,[8,null],Wg],{returnType:[0,"returnType"],value:[1,"value"],parameters:[2,"parameters"],mode:[3,"mode"]},null),_s(2048,[[10,4],[11,4]],Qd,null,[Hg]),(e()(),Qi(59,0,null,6,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),gs(60,16384,null,0,Zd,[],null,null),_s(2048,[[16,4]],Gd,null,[Zd]),(e()(),io(62,null,["Available parameters: ",""])),(e()(),Qi(63,0,null,5,3,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),gs(64,16384,null,0,Wd,[],null,null),_s(2048,[[15,4]],qd,null,[Wd]),(e()(),io(66,null,["",""])),(e()(),Qi(67,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),io(-1,null,["Interpolated/Template String"])),(e()(),Qi(69,0,null,null,29,"div",[["class","field"]],null,null,null,null,null)),(e()(),Qi(70,0,null,null,28,"mat-form-field",[["class","mat-form-field"],["color","accent"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,Vg,Tg)),_s(6144,null,np,null,[rp]),gs(72,7520256,null,9,rp,[gn,jn,gn,[2,cp],[2,tp],fd,ri,[2,Eg]],{color:[0,"color"]},null),Ji(603979776,19,{_controlNonStatic:0}),Ji(335544320,20,{_controlStatic:0}),Ji(603979776,21,{_labelChildNonStatic:0}),Ji(335544320,22,{_labelChildStatic:0}),Ji(603979776,23,{_placeholderChild:0}),Ji(603979776,24,{_errorChildren:1}),Ji(603979776,25,{_hintChildren:1}),Ji(603979776,26,{_prefixChildren:1}),Ji(603979776,27,{_suffixChildren:1}),(e()(),Qi(82,0,null,3,2,"mat-label",[],null,null,null,null,null)),gs(83,16384,[[21,4],[22,4]],0,Yd,[],null,null),(e()(),io(-1,null,["String Interpolation"])),(e()(),Qi(85,0,null,1,5,"expr-input",[["color","accent"],["mode","interpolation"],["parameters","myWorld: MyWorld"],["returnType","string"]],[[2,"floating",null],[1,"aria-describedby",0],[8,"id",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"],[null,"focusout"]],function(e,t,n){var r=!0,s=e.component;return"window:resize"===t&&(r=!1!==os(e,88).updateLayout(n)&&r),"focusout"===t&&(r=!1!==os(e,88).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(s.codeInterpolation=n)&&r),r},Kg,Qg)),gs(86,671744,null,0,E_,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),_s(2048,null,i_,null,[E_]),gs(88,4374528,[["exprInput",4]],0,Hg,[vl,vd,gn,[6,i_],Wg],{returnType:[0,"returnType"],color:[1,"color"],parameters:[2,"parameters"],mode:[3,"mode"]},null),gs(89,16384,null,0,o_,[[4,i_]],null,null),_s(2048,[[19,4],[20,4]],Qd,null,[Hg]),(e()(),Qi(91,0,null,6,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),gs(92,16384,null,0,Zd,[],null,null),_s(2048,[[25,4]],Gd,null,[Zd]),(e()(),io(94,null,["Available parameters: ",""])),(e()(),Qi(95,0,null,5,3,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),gs(96,16384,null,0,Wd,[],null,null),_s(2048,[[24,4]],qd,null,[Wd]),(e()(),io(98,null,["",""])),(e()(),Qi(99,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),io(-1,null,["Interpolated Textarea"])),(e()(),Qi(101,0,null,null,29,"div",[["class","field"]],null,null,null,null,null)),(e()(),Qi(102,0,null,null,28,"mat-form-field",[["class","mat-form-field"],["color","accent"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,Vg,Tg)),_s(6144,null,np,null,[rp]),gs(104,7520256,null,9,rp,[gn,jn,gn,[2,cp],[2,tp],fd,ri,[2,Eg]],{color:[0,"color"]},null),Ji(603979776,28,{_controlNonStatic:0}),Ji(335544320,29,{_controlStatic:0}),Ji(603979776,30,{_labelChildNonStatic:0}),Ji(335544320,31,{_labelChildStatic:0}),Ji(603979776,32,{_placeholderChild:0}),Ji(603979776,33,{_errorChildren:1}),Ji(603979776,34,{_hintChildren:1}),Ji(603979776,35,{_prefixChildren:1}),Ji(603979776,36,{_suffixChildren:1}),(e()(),Qi(114,0,null,3,2,"mat-label",[],null,null,null,null,null)),gs(115,16384,[[30,4],[31,4]],0,Yd,[],null,null),(e()(),io(-1,null,["Textarea"])),(e()(),Qi(117,0,null,1,5,"expr-input",[["color","primary"],["parameters","myWorld: MyWorld"]],[[2,"floating",null],[1,"aria-describedby",0],[8,"id",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"],[null,"focusout"]],function(e,t,n){var r=!0,s=e.component;return"window:resize"===t&&(r=!1!==os(e,120).updateLayout(n)&&r),"focusout"===t&&(r=!1!==os(e,120).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(s.codeInterpolationArea=n)&&r),r},Kg,Qg)),gs(118,671744,null,0,E_,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),_s(2048,null,i_,null,[E_]),gs(120,4374528,[["exprArea",4]],0,Hg,[vl,vd,gn,[6,i_],Wg],{autosize:[0,"autosize"],color:[1,"color"],parameters:[2,"parameters"]},null),gs(121,16384,null,0,o_,[[4,i_]],null,null),_s(2048,[[28,4],[29,4]],Qd,null,[Hg]),(e()(),Qi(123,0,null,6,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),gs(124,16384,null,0,Zd,[],null,null),_s(2048,[[34,4]],Gd,null,[Zd]),(e()(),io(126,null,["Available parameters: ",""])),(e()(),Qi(127,0,null,5,3,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),gs(128,16384,null,0,Wd,[],null,null),_s(2048,[[33,4]],qd,null,[Wd]),(e()(),io(130,null,["",""])),(e()(),Qi(131,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),io(-1,null,["Syntax Errors"])),(e()(),Qi(133,0,null,null,29,"div",[["class","field"]],null,null,null,null,null)),(e()(),Qi(134,0,null,null,28,"mat-form-field",[["appearance","fill"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,Vg,Tg)),_s(6144,null,np,null,[rp]),gs(136,7520256,null,9,rp,[gn,jn,gn,[2,cp],[2,tp],fd,ri,[2,Eg]],{appearance:[0,"appearance"]},null),Ji(603979776,37,{_controlNonStatic:0}),Ji(335544320,38,{_controlStatic:0}),Ji(603979776,39,{_labelChildNonStatic:0}),Ji(335544320,40,{_labelChildStatic:0}),Ji(603979776,41,{_placeholderChild:0}),Ji(603979776,42,{_errorChildren:1}),Ji(603979776,43,{_hintChildren:1}),Ji(603979776,44,{_prefixChildren:1}),Ji(603979776,45,{_suffixChildren:1}),(e()(),Qi(146,0,null,3,2,"mat-label",[],null,null,null,null,null)),gs(147,16384,[[39,4],[40,4]],0,Yd,[],null,null),(e()(),io(-1,null,["Syntax Errors (Expects a number)"])),(e()(),Qi(149,0,null,1,5,"expr-input",[["mode","expression"],["parameters","myWorld: MyWorld"],["returnType","number"]],[[2,"floating",null],[1,"aria-describedby",0],[8,"id",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"],[null,"focusout"]],function(e,t,n){var r=!0,s=e.component;return"window:resize"===t&&(r=!1!==os(e,152).updateLayout(n)&&r),"focusout"===t&&(r=!1!==os(e,152).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(s.codeErrors=n)&&r),r},Kg,Qg)),gs(150,671744,null,0,E_,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),_s(2048,null,i_,null,[E_]),gs(152,4374528,[["exprWithErrors",4]],0,Hg,[vl,vd,gn,[6,i_],Wg],{returnType:[0,"returnType"],parameters:[1,"parameters"],mode:[2,"mode"]},null),gs(153,16384,null,0,o_,[[4,i_]],null,null),_s(2048,[[37,4],[38,4]],Qd,null,[Hg]),(e()(),Qi(155,0,null,6,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),gs(156,16384,null,0,Zd,[],null,null),_s(2048,[[43,4]],Gd,null,[Zd]),(e()(),io(158,null,["Available parameters: ",""])),(e()(),Qi(159,0,null,5,3,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),gs(160,16384,null,0,Wd,[],null,null),_s(2048,[[42,4]],qd,null,[Wd]),(e()(),io(162,null,["",""])),(e()(),Qi(163,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),io(-1,null,["Required Number Expression"])),(e()(),Qi(165,0,null,null,31,"div",[["class","field"]],null,null,null,null,null)),(e()(),Qi(166,0,null,null,30,"mat-form-field",[["appearance","outline"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,Vg,Tg)),_s(6144,null,np,null,[rp]),gs(168,7520256,null,9,rp,[gn,jn,gn,[2,cp],[2,tp],fd,ri,[2,Eg]],{appearance:[0,"appearance"]},null),Ji(603979776,46,{_controlNonStatic:0}),Ji(335544320,47,{_controlStatic:0}),Ji(603979776,48,{_labelChildNonStatic:0}),Ji(335544320,49,{_labelChildStatic:0}),Ji(603979776,50,{_placeholderChild:0}),Ji(603979776,51,{_errorChildren:1}),Ji(603979776,52,{_hintChildren:1}),Ji(603979776,53,{_prefixChildren:1}),Ji(603979776,54,{_suffixChildren:1}),(e()(),Qi(178,0,null,3,2,"mat-label",[],null,null,null,null,null)),gs(179,16384,[[48,4],[49,4]],0,Yd,[],null,null),(e()(),io(-1,null,["Number Expression"])),(e()(),Qi(181,0,null,1,7,"expr-input",[["mode","expression"],["parameters","myWorld: MyWorld"],["returnType","number"]],[[1,"required",0],[2,"floating",null],[1,"aria-describedby",0],[8,"id",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"],[null,"focusout"]],function(e,t,n){var r=!0,s=e.component;return"window:resize"===t&&(r=!1!==os(e,186).updateLayout(n)&&r),"focusout"===t&&(r=!1!==os(e,186).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(s.codeRequiredNumber=n)&&r),r},Kg,Qg)),gs(182,16384,null,0,T_,[],{required:[0,"required"]},null),_s(1024,null,Zg,function(e){return[e]},[T_]),gs(184,671744,null,0,E_,[[8,null],[6,Zg],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),_s(2048,null,i_,null,[E_]),gs(186,4374528,[["exprRequiredNumber",4]],0,Hg,[vl,vd,gn,[6,i_],Wg],{returnType:[0,"returnType"],required:[1,"required"],parameters:[2,"parameters"],mode:[3,"mode"]},null),gs(187,16384,null,0,o_,[[4,i_]],null,null),_s(2048,[[46,4],[47,4]],Qd,null,[Hg]),(e()(),Qi(189,0,null,6,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),gs(190,16384,null,0,Zd,[],null,null),_s(2048,[[52,4]],Gd,null,[Zd]),(e()(),io(192,null,["Available parameters: ",""])),(e()(),Qi(193,0,null,5,3,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),gs(194,16384,null,0,Wd,[],null,null),_s(2048,[[51,4]],qd,null,[Wd]),(e()(),io(196,null,["",""])),(e()(),Qi(197,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),io(-1,null,["Autosize Extended Expression"])),(e()(),Qi(199,0,null,null,29,"div",[["class","field"]],null,null,null,null,null)),(e()(),Qi(200,0,null,null,28,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,Vg,Tg)),_s(6144,null,np,null,[rp]),gs(202,7520256,null,9,rp,[gn,jn,gn,[2,cp],[2,tp],fd,ri,[2,Eg]],null,null),Ji(603979776,55,{_controlNonStatic:0}),Ji(335544320,56,{_controlStatic:0}),Ji(603979776,57,{_labelChildNonStatic:0}),Ji(335544320,58,{_labelChildStatic:0}),Ji(603979776,59,{_placeholderChild:0}),Ji(603979776,60,{_errorChildren:1}),Ji(603979776,61,{_hintChildren:1}),Ji(603979776,62,{_prefixChildren:1}),Ji(603979776,63,{_suffixChildren:1}),(e()(),Qi(212,0,null,3,2,"mat-label",[],null,null,null,null,null)),gs(213,16384,[[57,4],[58,4]],0,Yd,[],null,null),(e()(),io(-1,null,["Expression"])),(e()(),Qi(215,0,null,1,5,"expr-input",[["color","accent"],["mode","extended"],["parameters","myWorld: MyWorld"],["returnType","string"]],[[2,"floating",null],[1,"aria-describedby",0],[8,"id",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"],[null,"focusout"]],function(e,t,n){var r=!0,s=e.component;return"window:resize"===t&&(r=!1!==os(e,218).updateLayout(n)&&r),"focusout"===t&&(r=!1!==os(e,218).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(s.codeAutosize=n)&&r),r},Kg,Qg)),gs(216,671744,null,0,E_,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),_s(2048,null,i_,null,[E_]),gs(218,4374528,[["exprAutosize",4]],0,Hg,[vl,vd,gn,[6,i_],Wg],{returnType:[0,"returnType"],autosize:[1,"autosize"],color:[2,"color"],parameters:[3,"parameters"],mode:[4,"mode"]},null),gs(219,16384,null,0,o_,[[4,i_]],null,null),_s(2048,[[55,4],[56,4]],Qd,null,[Hg]),(e()(),Qi(221,0,null,6,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),gs(222,16384,null,0,Zd,[],null,null),_s(2048,[[61,4]],Gd,null,[Zd]),(e()(),io(224,null,["Available parameters: ",""])),(e()(),Qi(225,0,null,5,3,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),gs(226,16384,null,0,Wd,[],null,null),_s(2048,[[60,4]],qd,null,[Wd]),(e()(),io(228,null,["",""]))],function(e,t){var n=t.component;e(t,11,0,"outline"),e(t,25,0,n.codeExpression),e(t,27,0,"boolean","myWorld: MyWorld","expression"),e(t,57,0,"string","","myWorld: MyWorld","expression"),e(t,72,0,"accent"),e(t,86,0,n.codeInterpolation),e(t,88,0,"string","accent","myWorld: MyWorld","interpolation"),e(t,104,0,"accent"),e(t,118,0,n.codeInterpolationArea),e(t,120,0,!0,"primary","myWorld: MyWorld"),e(t,136,0,"fill"),e(t,150,0,n.codeErrors),e(t,152,0,"number","myWorld: MyWorld","expression"),e(t,168,0,"outline"),e(t,182,0,!0),e(t,184,0,n.codeRequiredNumber),e(t,186,0,"number",!0,"myWorld: MyWorld","expression"),e(t,216,0,n.codeAutosize),e(t,218,0,"string",!0,"accent","myWorld: MyWorld","extended")},function(e,t){e(t,9,1,["standard"==os(t,11).appearance,"fill"==os(t,11).appearance,"outline"==os(t,11).appearance,"legacy"==os(t,11).appearance,os(t,11)._control.errorState,os(t,11)._canLabelFloat(),os(t,11)._shouldLabelFloat(),os(t,11)._hasFloatingLabel(),os(t,11)._hideControlPlaceholder(),os(t,11)._control.disabled,os(t,11)._control.autofilled,os(t,11)._control.focused,os(t,11)._shouldForward("untouched"),os(t,11)._shouldForward("touched"),os(t,11)._shouldForward("pristine"),os(t,11)._shouldForward("dirty"),os(t,11)._shouldForward("valid"),os(t,11)._shouldForward("invalid"),os(t,11)._shouldForward("pending"),!os(t,11)._animationsEnabled]),e(t,24,0,os(t,27).shouldLabelFloat,os(t,27).describedBy,os(t,27).id,os(t,28).is("untouched"),os(t,28).is("touched"),os(t,28).is("pristine"),os(t,28).is("dirty"),os(t,28).is("valid"),os(t,28).is("invalid"),os(t,28).is("pending")),e(t,30,0,"end"===os(t,31).align,os(t,31).id,null),e(t,33,0,os(t,27).parameters),e(t,34,0,os(t,35).id),e(t,37,0,os(t,27).validationErrors.join(" ")),e(t,41,1,["standard"==os(t,43).appearance,"fill"==os(t,43).appearance,"outline"==os(t,43).appearance,"legacy"==os(t,43).appearance,os(t,43)._control.errorState,os(t,43)._canLabelFloat(),os(t,43)._shouldLabelFloat(),os(t,43)._hasFloatingLabel(),os(t,43)._hideControlPlaceholder(),os(t,43)._control.disabled,os(t,43)._control.autofilled,os(t,43)._control.focused,os(t,43)._shouldForward("untouched"),os(t,43)._shouldForward("touched"),os(t,43)._shouldForward("pristine"),os(t,43)._shouldForward("dirty"),os(t,43)._shouldForward("valid"),os(t,43)._shouldForward("invalid"),os(t,43)._shouldForward("pending"),!os(t,43)._animationsEnabled]),e(t,56,0,os(t,57).shouldLabelFloat,os(t,57).describedBy,os(t,57).id),e(t,59,0,"end"===os(t,60).align,os(t,60).id,null),e(t,62,0,os(t,57).parameters),e(t,63,0,os(t,64).id),e(t,66,0,null==os(t,57).validationErrors?null:os(t,57).validationErrors.join(" ")),e(t,70,1,["standard"==os(t,72).appearance,"fill"==os(t,72).appearance,"outline"==os(t,72).appearance,"legacy"==os(t,72).appearance,os(t,72)._control.errorState,os(t,72)._canLabelFloat(),os(t,72)._shouldLabelFloat(),os(t,72)._hasFloatingLabel(),os(t,72)._hideControlPlaceholder(),os(t,72)._control.disabled,os(t,72)._control.autofilled,os(t,72)._control.focused,os(t,72)._shouldForward("untouched"),os(t,72)._shouldForward("touched"),os(t,72)._shouldForward("pristine"),os(t,72)._shouldForward("dirty"),os(t,72)._shouldForward("valid"),os(t,72)._shouldForward("invalid"),os(t,72)._shouldForward("pending"),!os(t,72)._animationsEnabled]),e(t,85,0,os(t,88).shouldLabelFloat,os(t,88).describedBy,os(t,88).id,os(t,89).is("untouched"),os(t,89).is("touched"),os(t,89).is("pristine"),os(t,89).is("dirty"),os(t,89).is("valid"),os(t,89).is("invalid"),os(t,89).is("pending")),e(t,91,0,"end"===os(t,92).align,os(t,92).id,null),e(t,94,0,os(t,88).parameters),e(t,95,0,os(t,96).id),e(t,98,0,os(t,88).validationErrors.join(" ")),e(t,102,1,["standard"==os(t,104).appearance,"fill"==os(t,104).appearance,"outline"==os(t,104).appearance,"legacy"==os(t,104).appearance,os(t,104)._control.errorState,os(t,104)._canLabelFloat(),os(t,104)._shouldLabelFloat(),os(t,104)._hasFloatingLabel(),os(t,104)._hideControlPlaceholder(),os(t,104)._control.disabled,os(t,104)._control.autofilled,os(t,104)._control.focused,os(t,104)._shouldForward("untouched"),os(t,104)._shouldForward("touched"),os(t,104)._shouldForward("pristine"),os(t,104)._shouldForward("dirty"),os(t,104)._shouldForward("valid"),os(t,104)._shouldForward("invalid"),os(t,104)._shouldForward("pending"),!os(t,104)._animationsEnabled]),e(t,117,0,os(t,120).shouldLabelFloat,os(t,120).describedBy,os(t,120).id,os(t,121).is("untouched"),os(t,121).is("touched"),os(t,121).is("pristine"),os(t,121).is("dirty"),os(t,121).is("valid"),os(t,121).is("invalid"),os(t,121).is("pending")),e(t,123,0,"end"===os(t,124).align,os(t,124).id,null),e(t,126,0,os(t,120).parameters),e(t,127,0,os(t,128).id),e(t,130,0,os(t,120).validationErrors.join(" ")),e(t,134,1,["standard"==os(t,136).appearance,"fill"==os(t,136).appearance,"outline"==os(t,136).appearance,"legacy"==os(t,136).appearance,os(t,136)._control.errorState,os(t,136)._canLabelFloat(),os(t,136)._shouldLabelFloat(),os(t,136)._hasFloatingLabel(),os(t,136)._hideControlPlaceholder(),os(t,136)._control.disabled,os(t,136)._control.autofilled,os(t,136)._control.focused,os(t,136)._shouldForward("untouched"),os(t,136)._shouldForward("touched"),os(t,136)._shouldForward("pristine"),os(t,136)._shouldForward("dirty"),os(t,136)._shouldForward("valid"),os(t,136)._shouldForward("invalid"),os(t,136)._shouldForward("pending"),!os(t,136)._animationsEnabled]),e(t,149,0,os(t,152).shouldLabelFloat,os(t,152).describedBy,os(t,152).id,os(t,153).is("untouched"),os(t,153).is("touched"),os(t,153).is("pristine"),os(t,153).is("dirty"),os(t,153).is("valid"),os(t,153).is("invalid"),os(t,153).is("pending")),e(t,155,0,"end"===os(t,156).align,os(t,156).id,null),e(t,158,0,os(t,152).parameters),e(t,159,0,os(t,160).id),e(t,162,0,os(t,152).validationErrors.join(" ")),e(t,166,1,["standard"==os(t,168).appearance,"fill"==os(t,168).appearance,"outline"==os(t,168).appearance,"legacy"==os(t,168).appearance,os(t,168)._control.errorState,os(t,168)._canLabelFloat(),os(t,168)._shouldLabelFloat(),os(t,168)._hasFloatingLabel(),os(t,168)._hideControlPlaceholder(),os(t,168)._control.disabled,os(t,168)._control.autofilled,os(t,168)._control.focused,os(t,168)._shouldForward("untouched"),os(t,168)._shouldForward("touched"),os(t,168)._shouldForward("pristine"),os(t,168)._shouldForward("dirty"),os(t,168)._shouldForward("valid"),os(t,168)._shouldForward("invalid"),os(t,168)._shouldForward("pending"),!os(t,168)._animationsEnabled]),e(t,181,1,[os(t,182).required?"":null,os(t,186).shouldLabelFloat,os(t,186).describedBy,os(t,186).id,os(t,187).is("untouched"),os(t,187).is("touched"),os(t,187).is("pristine"),os(t,187).is("dirty"),os(t,187).is("valid"),os(t,187).is("invalid"),os(t,187).is("pending")]),e(t,189,0,"end"===os(t,190).align,os(t,190).id,null),e(t,192,0,os(t,186).parameters),e(t,193,0,os(t,194).id),e(t,196,0,os(t,186).validationErrors.join(" ")),e(t,200,1,["standard"==os(t,202).appearance,"fill"==os(t,202).appearance,"outline"==os(t,202).appearance,"legacy"==os(t,202).appearance,os(t,202)._control.errorState,os(t,202)._canLabelFloat(),os(t,202)._shouldLabelFloat(),os(t,202)._hasFloatingLabel(),os(t,202)._hideControlPlaceholder(),os(t,202)._control.disabled,os(t,202)._control.autofilled,os(t,202)._control.focused,os(t,202)._shouldForward("untouched"),os(t,202)._shouldForward("touched"),os(t,202)._shouldForward("pristine"),os(t,202)._shouldForward("dirty"),os(t,202)._shouldForward("valid"),os(t,202)._shouldForward("invalid"),os(t,202)._shouldForward("pending"),!os(t,202)._animationsEnabled]),e(t,215,0,os(t,218).shouldLabelFloat,os(t,218).describedBy,os(t,218).id,os(t,219).is("untouched"),os(t,219).is("touched"),os(t,219).is("pristine"),os(t,219).is("dirty"),os(t,219).is("valid"),os(t,219).is("invalid"),os(t,219).is("pending")),e(t,221,0,"end"===os(t,222).align,os(t,222).id,null),e(t,224,0,null==os(t,218)?null:os(t,218).parameters),e(t,225,0,os(t,226).id),e(t,228,0,null==os(t,218).validationErrors?null:os(t,218).validationErrors.join(" "))})}function I_(e){return ao(0,[(e()(),Qi(0,0,null,null,1,"app-root",[],null,null,null,O_,A_)),gs(1,49152,null,0,xl,[],null,null)],null,null)}var P_=Gr("app-root",xl,I_,{},{},[]);class N_{}class D_{static forRoot(e){return{ngModule:D_,providers:[Ug,Wg,{provide:vl,useValue:e}]}}}class F_{}class M_{}var L_=fl(El,[xl],function(e){return function(e){const t={},n=[];let r=null;for(let s=0;s<e.length;s++){const i=e[s];i.token===Dt&&(r=i.value),1073741824&i.flags&&n.push(i.token),i.index=s,t[ar(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,scope:r}}([zr(512,hn,dn,[[8,[ed,P_]],[3,hn],qn]),zr(5120,Ws,Hi,[[3,Ws]]),zr(4608,Ql,Kl,[Ws]),zr(5120,Ps,Bi,[ri]),zr(5120,js,Us,[]),zr(5120,Fn,$i,[]),zr(5120,Ln,zi,[]),zr(4608,qp,Wp,[Rl]),zr(6144,wn,null,[qp]),zr(4608,Mp,Vp,[]),zr(5120,wp,function(e,t,n,r,s,i,o,l){return[new Dp(e,t,n),new Bp(r),new jp(s,i,o,l)]},[Rl,ri,Hs,Rl,Rl,Mp,qs,[2,Lp]]),zr(4608,Cp,Cp,[wp,ri]),zr(135680,xp,xp,[Rl]),zr(4608,Op,Op,[Cp,xp,js]),zr(5120,_f,wg,[]),zr(5120,pm,Cg,[]),zr(4608,qm,bg,[Rl,_f,pm]),zr(5120,yn,Sg,[Op,qm,ri]),zr(6144,Ep,null,[xp]),zr(4608,ci,ci,[ri]),zr(5120,oc,Wh,[Rh]),zr(4608,Nh,Nh,[]),zr(6144,Ih,null,[Nh]),zr(135680,Dh,Dh,[Rh,Ti,Xs,Mt,Ih]),zr(4608,Ph,Ph,[]),zr(5120,Fh,$h,[Rh,sa,Mh]),zr(5120,Zh,Gh,[Qh]),zr(5120,Bs,function(e){return[e]},[Zh]),zr(4608,ip,ip,[]),zr(4608,Ld,hg,[yn,Rl]),zr(4608,Id,Id,[]),zr(4608,Ug,Ug,[vl]),zr(4608,Wg,Wg,[vl]),zr(1073742336,ra,ra,[]),zr(1024,Et,Qp,[]),zr(1024,vi,function(){return[jh()]},[]),zr(512,Qh,Qh,[Mt]),zr(1024,Ls,function(e,t){return[(n=e,yp("probe",bp),yp("coreTokens",Object.assign(Object.assign({},vp),(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>bp),Kh(t)];var n},[[2,vi],Qh]),zr(512,Vs,Vs,[[2,Ls]]),zr(131584,Ei,Ei,[ri,Mt,Et,hn,Vs]),zr(1073742336,qi,qi,[Ei]),zr(1073742336,Gp,Gp,[[3,Gp]]),zr(1024,Lh,Hh,[[3,Rh]]),zr(512,Lu,Vu,[]),zr(512,Ch,Ch,[]),zr(256,Mh,{},[]),zr(1024,Vl,zh,[Al,[2,Ul],Mh]),zr(512,Hl,Hl,[Vl,Al]),zr(512,Xs,Xs,[]),zr(512,Ti,Ai,[Xs,[2,ki]]),zr(1024,vh,function(){return[[]]},[]),zr(1024,Rh,qh,[Lu,Ch,Hl,Mt,Ti,Xs,vh,Mh,[2,Sh],[2,_h]]),zr(1073742336,Uh,Uh,[[2,Lh],[2,Rh]]),zr(1073742336,N_,N_,[]),zr(1073742336,hp,hp,[]),zr(1073742336,Rd,Rd,[Ed,[2,kd],Rl]),zr(1073742336,ap,ap,[]),zr(1073742336,sp,sp,[]),zr(1073742336,x_,x_,[]),zr(1073742336,k_,k_,[]),zr(1073742336,R_,R_,[]),zr(1073742336,D_,D_,[]),zr(1073742336,xg,xg,[]),zr(1073742336,md,md,[]),zr(1073742336,F_,F_,[]),zr(1073742336,M_,M_,[]),zr(1073742336,El,El,[]),zr(256,Qs,"USD",[]),zr(256,Dt,"root",[]),zr(256,Eg,"BrowserAnimations",[]),zr(1024,vl,Sl,[])])});(function(){if(gi)throw new Error("Cannot enable prod mode after platform setup.");mi=!1})(),Kp().bootstrapModuleFactory(L_).catch(e=>console.error(e))}},[[0,0]]]);