@drayman/elements 1.40.0 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/grid/favicon.ico +0 -0
- package/dist/nebula/main.js +3 -3
- package/dist/number-field/main.js +1 -1
- package/dist/radio-group/main.js +1 -1
- package/dist/table/favicon.ico +0 -0
- package/dist/table/main.js +1 -1
- package/dist/textarea-field/main.js +1 -1
- package/dist/timepicker/main.js +1 -1
- package/dist/types/grid/src/app/models/grid-options.d.ts +4 -0
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +1 -1
- package/package.json +1 -1
package/dist/timepicker/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var Ex={959:(J,Fe,G)=>{"use strict";J.exports=G(606)},550:(J,Fe,G)=>{"use strict";var ae,Ye,ot,oe=G(539),me="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function Qe(){ot=!1}function Q(je){if(je){if(je!==ae){if(je.length!==me.length)throw new Error("Custom alphabet for shortid must be "+me.length+" unique characters. You submitted "+je.length+" characters: "+je);var Ht=je.split("").filter(function(Ti,ys,Lo){return ys!==Lo.lastIndexOf(Ti)});if(Ht.length)throw new Error("Custom alphabet for shortid must be "+me.length+" unique characters. These characters were not unique: "+Ht.join(", "));ae=je,Qe()}}else ae!==me&&(ae=me,Qe())}function we(){return ot||(ot=function dr(){ae||Q(me);for(var ys,je=ae.split(""),Ht=[],Ti=oe.nextValue();je.length>0;)Ti=oe.nextValue(),ys=Math.floor(Ti*je.length),Ht.push(je.splice(ys,1)[0]);return Ht.join("")}())}J.exports={get:function lc(){return ae||me},characters:function Bt(je){return Q(je),ae},seed:function ke(je){oe.seed(je),Ye!==je&&(Qe(),Ye=je)},lookup:function Po(je){return we()[je]},shuffled:we}},119:(J,Fe,G)=>{"use strict";var ot,Qe,oe=G(535);G(550),J.exports=function Q(Bt){var ke="",dr=Math.floor(.001*(Date.now()-1567752802062));return dr===Qe?ot++:(ot=0,Qe=dr),ke+=oe(7),ke+=oe(Bt),ot>0&&(ke+=oe(ot)),ke+oe(dr)}},535:(J,Fe,G)=>{"use strict";var oe=G(550),me=G(68),ae=G(152);J.exports=function Ye(ot){for(var Q,Qe=0,Bt="";!Q;)Bt+=ae(me,oe.get(),1),Q=ot<Math.pow(16,Qe+1),Qe++;return Bt}},606:(J,Fe,G)=>{"use strict";var oe=G(550),me=G(119),ae=G(777),Ye=G(1)||0;function Bt(){return me(Ye)}J.exports=Bt,J.exports.generate=Bt,J.exports.seed=function ot(ke){return oe.seed(ke),J.exports},J.exports.worker=function Qe(ke){return Ye=ke,J.exports},J.exports.characters=function Q(ke){return void 0!==ke&&oe.characters(ke),oe.shuffled()},J.exports.isValid=ae},777:(J,Fe,G)=>{"use strict";var oe=G(550);J.exports=function me(ae){return!(!ae||"string"!=typeof ae||ae.length<6||new RegExp("[^"+oe.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(ae))}},68:J=>{"use strict";var Fe="object"==typeof window&&(window.crypto||window.msCrypto);J.exports=Fe&&Fe.getRandomValues?function(oe){return Fe.getRandomValues(new Uint8Array(oe))}:function(oe){for(var me=[],ae=0;ae<oe;ae++)me.push(Math.floor(256*Math.random()));return me}},539:J=>{"use strict";var Fe=1;J.exports={nextValue:function G(){return(Fe=(9301*Fe+49297)%233280)/233280},seed:function oe(me){Fe=me}}},1:J=>{"use strict";J.exports=0},152:J=>{J.exports=function(Fe,G,oe){for(var me=(2<<Math.log(G.length-1)/Math.LN2)-1,ae=-~(1.6*me*oe/G.length),Ye="";;)for(var ot=Fe(ae),Qe=ae;Qe--;)if((Ye+=G[ot[Qe]&me]||"").length===+oe)return Ye}}},qf={};function Kf(J){var Fe=qf[J];if(void 0!==Fe)return Fe.exports;var G=qf[J]={exports:{}};return Ex[J](G,G.exports,Kf),G.exports}(()=>{"use strict";function J(n){return"function"==typeof n}let Fe=!1;const G={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Fe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Fe=n},get useDeprecatedSynchronousErrorHandling(){return Fe}};function oe(n){setTimeout(()=>{throw n},0)}const me={closed:!0,next(n){},error(n){if(G.useDeprecatedSynchronousErrorHandling)throw n;oe(n)},complete(){}},ae=Array.isArray||(n=>n&&"number"==typeof n.length);function Ye(n){return null!==n&&"object"==typeof n}const Qe=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class Q{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Q)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(J(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof Qe?Bt(o.errors):[o]}}if(ae(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ye(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof Qe?t=t.concat(Bt(c.errors)):t.push(c)}}}if(t)throw new Qe(t)}add(t){let e=t;if(!t)return Q.EMPTY;switch(typeof t){case"function":e=new Q(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof Q)){const s=e;e=new Q,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof Q){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function Bt(n){return n.reduce((t,e)=>t.concat(e instanceof Qe?e.errors:e),[])}Q.EMPTY=((n=new Q).closed=!0,n);const ke="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class we extends Q{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=me;break;case 1:if(!t){this.destination=me;break}if("object"==typeof t){t instanceof we?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Po(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Po(this,t,e,i)}}[ke](){return this}static create(t,e,i){const r=new we(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Po extends we{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;J(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==me&&(o=Object.create(e),J(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;G.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=G;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):oe(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;oe(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);G.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),G.useDeprecatedSynchronousErrorHandling)throw i;oe(i)}}__tryOrSetError(t,e,i){if(!G.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return G.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(oe(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Ht="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ti(n){return n}let Ce=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function je(n,t,e){if(n){if(n instanceof we)return n;if(n[ke])return n[ke]()}return n||t||e?new we(n,t,e):new we(me)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||G.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),G.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){G.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function lc(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof we?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Yf(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ht](){return this}pipe(...e){return 0===e.length?this:function Lo(n){return 0===n.length?Ti:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Yf(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Yf(n){if(n||(n=G.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Fi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Qf extends Q{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Zf extends we{constructor(t){super(t),this.destination=t}}let ye=(()=>{class n extends Ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ke](){return new Zf(this)}lift(e){const i=new Xf(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Fi;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new Fi;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Fi;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Fi;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Fi;return this.hasError?(e.error(this.thrownError),Q.EMPTY):this.isStopped?(e.complete(),Q.EMPTY):(this.observers.push(e),new Qf(this,e))}asObservable(){const e=new Ce;return e.source=this,e}}return n.create=(t,e)=>new Xf(t,e),n})();class Xf extends ye{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):Q.EMPTY}}function hr(n){return n&&"function"==typeof n.schedule}function at(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Sx(n,t))}}class Sx{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new Mx(t,this.project,this.thisArg))}}class Mx extends we{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Jf=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},Vo=function Ix(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),ep=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function tp(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const cc=n=>{if(n&&"function"==typeof n[Ht])return(n=>t=>{const e=n[Ht]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(ep(n))return Jf(n);if(tp(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,oe),t))(n);if(n&&"function"==typeof n[Vo])return(n=>t=>{const e=n[Vo]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Ye(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function uc(n,t){return new Ce(e=>{const i=new Q;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Bo(n,t){return t?function Lx(n,t){if(null!=n){if(function Nx(n){return n&&"function"==typeof n[Ht]}(n))return function kx(n,t){return new Ce(e=>{const i=new Q;return i.add(t.schedule(()=>{const r=n[Ht]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(tp(n))return function Ox(n,t){return new Ce(e=>{const i=new Q;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(ep(n))return uc(n,t);if(function Px(n){return n&&"function"==typeof n[Vo]}(n)||"string"==typeof n)return function Rx(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ce(e=>{const i=new Q;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[Vo](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Ce?n:new Ce(cc(n))}class _s extends we{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class vs extends we{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function bs(n,t){if(!t.closed)return n instanceof Ce?n.subscribe(t):cc(n)(t)}function dc(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(dc((r,s)=>Bo(n(r,s)).pipe(at((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new Vx(n,e)))}class Vx{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new Bx(t,this.project,this.concurrent))}}class Bx extends vs{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new _s(this),i=this.destination;i.add(e);const r=bs(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function np(n=Number.POSITIVE_INFINITY){return dc(Ti,n)}function hc(n,t){return t?uc(n,t):new Ce(Jf(n))}function fr(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return hr(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Ce?n[0]:np(t)(hc(n,e))}function ip(){return function(t){return t.lift(new Hx(t))}}class Hx{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new jx(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class jx extends we{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class $x extends Ce{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new Q,t.add(this.source.subscribe(new Ux(this.getSubject(),this))),t.closed&&(this._connection=null,t=Q.EMPTY)),t}refCount(){return ip()(this)}}const Gx=(()=>{const n=$x.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Ux extends Zf{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class qx{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function Kx(){return new ye}function rp(){return n=>ip()(function Wx(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new qx(r,t));const s=Object.create(i,Gx);return s.source=i,s.subjectFactory=r,s}}(Kx)(n))}function _e(n){for(let t in n)if(n[t]===_e)return t;throw Error("Could not find renamed property on target object.")}function fc(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function de(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(de).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function pc(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Yx=_e({__forward_ref__:_e});function fe(n){return n.__forward_ref__=fe,n.toString=function(){return de(this())},n}function W(n){return sp(n)?n():n}function sp(n){return"function"==typeof n&&n.hasOwnProperty(Yx)&&n.__forward_ref__===fe}class k extends Error{constructor(t,e){super(function gc(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function H(n){return"string"==typeof n?n:null==n?"":String(n)}function lt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():H(n)}function Ho(n,t){const e=t?` in ${t}`:"";throw new k(-201,`No provider for ${lt(n)} found${e}`)}function $t(n,t){null==n&&function he(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function D(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ne(n){return{providers:n.providers||[],imports:n.imports||[]}}function mc(n){return op(n,jo)||op(n,lp)}function op(n,t){return n.hasOwnProperty(t)?n[t]:null}function ap(n){return n&&(n.hasOwnProperty(yc)||n.hasOwnProperty(nE))?n[yc]:null}const jo=_e({\u0275prov:_e}),yc=_e({\u0275inj:_e}),lp=_e({ngInjectableDef:_e}),nE=_e({ngInjectorDef:_e});var U=(()=>((U=U||{})[U.Default=0]="Default",U[U.Host=1]="Host",U[U.Self=2]="Self",U[U.SkipSelf=4]="SkipSelf",U[U.Optional=8]="Optional",U))();let _c;function ui(n){const t=_c;return _c=n,t}function cp(n,t,e){const i=mc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&U.Optional?null:void 0!==t?t:void Ho(de(n),"Injector")}function di(n){return{toString:n}.toString()}var dn=(()=>((dn=dn||{})[dn.OnPush=0]="OnPush",dn[dn.Default=1]="Default",dn))(),hn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(hn||(hn={})),hn))();const rE="undefined"!=typeof globalThis&&globalThis,sE="undefined"!=typeof window&&window,oE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,pe=rE||"undefined"!=typeof global&&global||sE||oE,pr={},ve=[],$o=_e({\u0275cmp:_e}),vc=_e({\u0275dir:_e}),bc=_e({\u0275pipe:_e}),up=_e({\u0275mod:_e}),Qn=_e({\u0275fac:_e}),ws=_e({__NG_ELEMENT_ID__:_e});let aE=0;function ki(n){return di(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===dn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ve,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||hn.Emulated,id:"c",styles:n.styles||ve,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=aE++,i.inputs=pp(n.inputs,e),i.outputs=pp(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(dp):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(hp):null,i})}function dp(n){return ct(n)||function hi(n){return n[vc]||null}(n)}function hp(n){return function Oi(n){return n[bc]||null}(n)}const fp={};function le(n){return di(()=>{const t={type:n.type,bootstrap:n.bootstrap||ve,declarations:n.declarations||ve,imports:n.imports||ve,exports:n.exports||ve,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(fp[n.id]=n.type),t})}function pp(n,t){if(null==n)return pr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const C=ki;function _t(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ct(n){return n[$o]||null}function en(n,t){const e=n[up]||null;if(!e&&!0===t)throw new Error(`Type ${de(n)} does not have '\u0275mod' property.`);return e}const z=11;function Fn(n){return Array.isArray(n)&&"object"==typeof n[1]}function pn(n){return Array.isArray(n)&&!0===n[1]}function Dc(n){return 0!=(8&n.flags)}function Wo(n){return 2==(2&n.flags)}function qo(n){return 1==(1&n.flags)}function gn(n){return null!==n.template}function fE(n){return 0!=(512&n[2])}function Li(n,t){return n.hasOwnProperty(Qn)?n[Qn]:null}class mp{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ot(){return yp}function yp(n){return n.type.prototype.ngOnChanges&&(n.setInput=yE),mE}function mE(){const n=vp(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===pr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function yE(n,t,e,i){const r=vp(n)||function _E(n,t){return n[_p]=t}(n,{previous:pr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new mp(l&&l.currentValue,t,o===pr),n[i]=t}Ot.ngInherit=!0;const _p="__ngSimpleChanges__";function vp(n){return n[_p]||null}let Ac;function Ve(n){return!!n.listen}const bp={createRenderer:(n,t)=>function Ic(){return void 0!==Ac?Ac:"undefined"!=typeof document?document:void 0}()};function Ue(n){for(;Array.isArray(n);)n=n[0];return n}function Ko(n,t){return Ue(t[n])}function Ut(n,t){return Ue(t[n.index])}function Tc(n,t){return n.data[t]}function zt(n,t){const e=t[n];return Fn(e)?e:e[0]}function wp(n){return 4==(4&n[2])}function Fc(n){return 128==(128&n[2])}function fi(n,t){return null==t?null:n[t]}function Cp(n){n[18]=0}function kc(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const j={lFrame:Fp(null),bindingsEnabled:!0};function xp(){return j.bindingsEnabled}function w(){return j.lFrame.lView}function te(){return j.lFrame.tView}function Yo(n){return j.lFrame.contextLView=n,n[8]}function Ze(){let n=Ep();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ep(){return j.lFrame.currentTNode}function kn(n,t){const e=j.lFrame;e.currentTNode=n,e.isParent=t}function Oc(){return j.lFrame.isParent}function Rc(){j.lFrame.isParent=!1}function br(){return j.lFrame.bindingIndex++}function NE(n,t){const e=j.lFrame;e.bindingIndex=e.bindingRootIndex=n,Nc(t)}function Nc(n){j.lFrame.currentDirectiveIndex=n}function Ap(){return j.lFrame.currentQueryIndex}function Lc(n){j.lFrame.currentQueryIndex=n}function LE(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Ip(n,t,e){if(e&U.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&U.Host||(r=LE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=j.lFrame=Tp();return i.currentTNode=t,i.lView=n,!0}function Zo(n){const t=Tp(),e=n[1];j.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Tp(){const n=j.lFrame,t=null===n?null:n.child;return null===t?Fp(n):t}function Fp(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function kp(){const n=j.lFrame;return j.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Op=kp;function Xo(){const n=kp();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function wt(){return j.lFrame.selectedIndex}function pi(n){j.lFrame.selectedIndex=n}function Oe(){const n=j.lFrame;return Tc(n.tView,n.selectedIndex)}function Jo(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function ea(n,t,e){Rp(n,t,3,e)}function ta(n,t,e,i){(3&n[2])===e&&Rp(n,t,e,i)}function Vc(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Rp(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(WE(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function WE(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Ss{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function na(n,t,e){const i=Ve(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Hc(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Np(n){return 3===n||4===n||6===n}function Hc(n){return 64===n.charCodeAt(0)}function ia(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Pp(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Pp(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Lp(n){return-1!==n}function wr(n){return 32767&n}function Cr(n,t){let e=function ZE(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let jc=!0;function ra(n){const t=jc;return jc=n,t}let XE=0;function As(n,t){const e=Gc(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,$c(i.data,n),$c(t,null),$c(i.blueprint,null));const r=sa(n,t),s=n.injectorIndex;if(Lp(r)){const o=wr(r),a=Cr(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function $c(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Gc(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function sa(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function oa(n,t,e){!function JE(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ws)&&(i=e[ws]),null==i&&(i=e[ws]=XE++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Hp(n,t,e){if(e&U.Optional)return n;Ho(t,"NodeInjector")}function jp(n,t,e,i){if(e&U.Optional&&void 0===i&&(i=null),0==(e&(U.Self|U.Host))){const r=n[9],s=ui(void 0);try{return r?r.get(t,i,e&U.Optional):cp(t,i,e&U.Optional)}finally{ui(s)}}return Hp(i,t,e)}function $p(n,t,e,i=U.Default,r){if(null!==n){const s=function iS(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ws)?n[ws]:void 0;return"number"==typeof t?t>=0?255&t:tS:t}(e);if("function"==typeof s){if(!Ip(t,n,i))return i&U.Host?Hp(r,e,i):jp(t,e,i,r);try{const o=s(i);if(null!=o||i&U.Optional)return o;Ho(e)}finally{Op()}}else if("number"==typeof s){let o=null,a=Gc(n,t),l=-1,c=i&U.Host?t[16][6]:null;for((-1===a||i&U.SkipSelf)&&(l=-1===a?sa(n,t):t[a+8],-1!==l&&zp(i,!1)?(o=t[1],a=wr(l),t=Cr(l,t)):a=-1);-1!==a;){const u=t[1];if(Up(s,a,u.data)){const d=nS(a,t,e,o,i,c);if(d!==Gp)return d}l=t[a+8],-1!==l&&zp(i,t[1].data[a+8]===c)&&Up(s,a,t)?(o=u,a=wr(l),t=Cr(l,t)):a=-1}}}return jp(t,e,i,r)}const Gp={};function tS(){return new Dr(Ze(),w())}function nS(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=aa(a,o,e,null==i?Wo(a)&&jc:i!=o&&0!=(3&a.type),r&U.Host&&s===a);return null!==u?Is(t,o,u,a):Gp}function aa(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&gn(f)&&f.type===e)return l}return null}function Is(n,t,e,i){let r=n[e];const s=t.data;if(function qE(n){return n instanceof Ss}(r)){const o=r;o.resolving&&function Qx(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new k(-200,`Circular dependency in DI detected for ${n}${e}`)}(lt(s[e]));const a=ra(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ui(o.injectImpl):null;Ip(n,i,U.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function zE(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=yp(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&ui(l),ra(a),o.resolving=!1,Op()}}return r}function Up(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function zp(n,t){return!(n&U.Self||n&U.Host&&t)}class Dr{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return $p(this._tNode,this._lView,t,i,e)}}function R(n){return di(()=>{const t=n.prototype.constructor,e=t[Qn]||Uc(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Qn]||Uc(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Uc(n){return sp(n)?()=>{const t=Uc(W(n));return t&&t()}:Li(n)}function Ts(n){return function eS(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(Np(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(Ze(),n)}const Er="__parameters__";function Mr(n,t,e){return di(()=>{const i=function zc(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Er)?l[Er]:Object.defineProperty(l,Er,{value:[]})[Er];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class M{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=D({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function rn(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),rn(i,t)):t!==n&&t.push(i)}return t}function On(n,t){n.forEach(e=>Array.isArray(e)?On(e,t):t(e))}function qp(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function la(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Os(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function Wt(n,t,e){let i=Ar(n,t);return i>=0?n[1|i]=e:(i=~i,function aS(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function qc(n,t){const e=Ar(n,t);if(e>=0)return n[1|e]}function Ar(n,t){return function Qp(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const Rs={},Yc="__NG_DI_FLAG__",ua="ngTempTokenPath",pS=/\n/gm,Xp="__source",mS=_e({provide:String,useValue:_e});let Ns;function Jp(n){const t=Ns;return Ns=n,t}function yS(n,t=U.Default){if(void 0===Ns)throw new k(203,"");return null===Ns?cp(n,void 0,t):Ns.get(n,t&U.Optional?null:void 0,t)}function v(n,t=U.Default){return(function iE(){return _c}()||yS)(W(n),t)}const Ir=v;function Qc(n){const t=[];for(let e=0;e<n.length;e++){const i=W(n[e]);if(Array.isArray(i)){if(0===i.length)throw new k(900,"");let r,s=U.Default;for(let o=0;o<i.length;o++){const a=i[o],l=_S(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(v(r,s))}else t.push(v(i))}return t}function Ps(n,t){return n[Yc]=t,n.prototype[Yc]=t,n}function _S(n){return n[Yc]}const Vi=Ps(Mr("Optional"),8),Ls=Ps(Mr("SkipSelf"),4);var qt=(()=>((qt=qt||{})[qt.Important=1]="Important",qt[qt.DashCase=2]="DashCase",qt))();const ag="__ngContext__";function mt(n,t){n[ag]=t}function eu(n){const t=function Bs(n){return n[ag]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function nu(n,t){return undefined(n,t)}function Hs(n){const t=n[3];return pn(t)?t[3]:t}function iu(n){return pg(n[13])}function ru(n){return pg(n[4])}function pg(n){for(;null!==n&&!pn(n);)n=n[4];return n}function Fr(n,t,e,i,r){if(null!=i){let s,o=!1;pn(i)?s=i:Fn(i)&&(o=!0,i=i[0]);const a=Ue(i);0===n&&null!==e?null==r?bg(t,e,a):Bi(t,e,a,r||null,!0):1===n&&null!==e?Bi(t,e,a,r||null,!0):2===n?function du(n,t,e){const i=ha(n,t);i&&function YS(n,t,e,i){Ve(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function XS(n,t,e,i,r){const s=e[7];s!==Ue(e)&&Fr(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];js(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function ou(n,t,e){if(Ve(n))return n.createElement(t,e);{const i=null!==e?function CE(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function mg(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,kc(r,-1)),e.splice(i,1)}function au(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&mg(r,i),t>0&&(n[e-1][4]=i[4]);const s=la(n,10+t);!function jS(n,t){js(n,t,t[z],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function yg(n,t){if(!(256&t[2])){const e=t[z];Ve(e)&&e.destroyNode&&js(n,t,e,3,null,null),function US(n){let t=n[13];if(!t)return lu(n[1],n);for(;t;){let e=null;if(Fn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Fn(t)&&lu(t[1],t),t=t[3];null===t&&(t=n),Fn(t)&&lu(t[1],t),e=t&&t[4]}t=e}}(t)}}function lu(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function KS(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof Ss)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function qS(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Ue(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Ve(t[z])&&t[z].destroy();const e=t[17];if(null!==e&&pn(t[3])){e!==t[3]&&mg(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function _g(n,t,e){return function vg(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===hn.None||r===hn.Emulated)return null}return Ut(i,e)}(n,t.parent,e)}function Bi(n,t,e,i,r){Ve(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function bg(n,t,e){Ve(n)?n.appendChild(t,e):t.appendChild(e)}function wg(n,t,e,i,r){null!==i?Bi(n,t,e,i,r):bg(n,t,e)}function ha(n,t){return Ve(n)?n.parentNode(t):t.parentNode}function Cg(n,t,e){return xg(n,t,e)}let ga,xg=function Dg(n,t,e){return 40&n.type?Ut(n,e):null};function fa(n,t,e,i){const r=_g(n,i,t),s=t[z],a=Cg(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)wg(s,r,e[l],a,!1);else wg(s,r,e,a,!1)}function pa(n,t){if(null!==t){const e=t.type;if(3&e)return Ut(t,n);if(4&e)return uu(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return pa(n,i);{const r=n[t.index];return pn(r)?uu(-1,r):Ue(r)}}if(32&e)return nu(t,n)()||Ue(n[t.index]);{const i=Sg(n,t);return null!==i?Array.isArray(i)?i[0]:pa(Hs(n[16]),i):pa(n,t.next)}}return null}function Sg(n,t){return null!==t?n[16][6].projection[t.projection]:null}function uu(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return pa(i,r)}return t[7]}function hu(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&mt(Ue(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)hu(n,t,e.child,i,r,s,!1),Fr(t,n,r,a,s);else if(32&l){const c=nu(e,i);let u;for(;u=c();)Fr(t,n,r,u,s);Fr(t,n,r,a,s)}else 16&l?Mg(n,t,i,e,r,s):Fr(t,n,r,a,s);e=o?e.projectionNext:e.next}}function js(n,t,e,i,r,s){hu(e,i,n.firstChild,t,r,s,!1)}function Mg(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Fr(t,n,r,l[c],s);else hu(n,t,l,o[3],r,s,!0)}function Ag(n,t,e){Ve(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function fu(n,t,e){Ve(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function Hi(n){var t;return(null===(t=function pu(){if(void 0===ga&&(ga=null,pe.trustedTypes))try{ga=pe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ga}())||void 0===t?void 0:t.createHTML(n))||n}class ji{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class r0 extends ji{getTypeName(){return"HTML"}}class s0 extends ji{getTypeName(){return"Style"}}class o0 extends ji{getTypeName(){return"Script"}}class a0 extends ji{getTypeName(){return"URL"}}class l0 extends ji{getTypeName(){return"ResourceURL"}}function Kt(n){return n instanceof ji?n.changingThisBreaksApplicationSecurity:n}function Rn(n,t){const e=kg(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function kg(n){return n instanceof ji&&n.getTypeName()||null}class p0{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Hi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class g0{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Hi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Hi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const y0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,_0=/^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 $s(n){return(n=String(n)).match(y0)||n.match(_0)?n:"unsafe:"+n}function Rg(n){return(n=String(n)).split(",").map(t=>$s(t.trim())).join(", ")}function Nn(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Gs(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const Ng=Nn("area,br,col,hr,img,wbr"),Pg=Nn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lg=Nn("rp,rt"),mu=Gs(Ng,Gs(Pg,Nn("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")),Gs(Lg,Nn("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")),Gs(Lg,Pg)),yu=Nn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_u=Nn("srcset"),Vg=Gs(yu,_u,Nn("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"),Nn("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")),v0=Nn("script,style,template");class b0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!mu.hasOwnProperty(e))return this.sanitizedSomething=!0,!v0.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Vg.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;yu[a]&&(l=$s(l)),_u[a]&&(l=Rg(l)),this.buf.push(" ",o,'="',Bg(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();mu.hasOwnProperty(e)&&!Ng.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Bg(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const w0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C0=/([^\#-~ |!])/g;function Bg(n){return n.replace(/&/g,"&").replace(w0,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(C0,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ya;function Hg(n,t){let e=null;try{ya=ya||function Og(n){const t=new g0(n);return function m0(){try{return!!(new window.DOMParser).parseFromString(Hi(""),"text/html")}catch(n){return!1}}()?new p0(t):t}(n);let i=t?String(t):"";e=ya.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ya.getInertBodyElement(i)}while(i!==s);return Hi((new b0).sanitizeChildren(vu(e)||e))}finally{if(e){const i=vu(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function vu(n){return"content"in n&&function D0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ce=(()=>((ce=ce||{})[ce.NONE=0]="NONE",ce[ce.HTML=1]="HTML",ce[ce.STYLE=2]="STYLE",ce[ce.SCRIPT=3]="SCRIPT",ce[ce.URL=4]="URL",ce[ce.RESOURCE_URL=5]="RESOURCE_URL",ce))();function wu(n){return n.ngOriginalError}function R0(n,...t){n.error(...t)}class mi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function O0(n){return n&&n.ngErrorLogger||R0}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&wu(t);for(;e&&wu(e);)e=wu(e);return e||null}}const j0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(pe))();function Pn(n){return n instanceof Function?n():n}function Ug(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const zg="ng-template";function z0(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Ug(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Wg(n){return 4===n.type&&n.value!==zg}function W0(n,t,e){return t===(4!==n.type||e?n.value:zg)}function q0(n,t,e){let i=4;const r=n.attrs||[],s=function Q0(n){for(let t=0;t<n.length;t++)if(Np(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!W0(n,l,e)||""===l&&1===t.length){if(mn(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!z0(n.attrs,c,e)){if(mn(i))return!1;o=!0}continue}const d=K0(8&i?"class":l,r,Wg(n),e);if(-1===d){if(mn(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Ug(f,c,0)||2&i&&c!==h){if(mn(i))return!1;o=!0}}}}else{if(!o&&!mn(i)&&!mn(l))return!1;if(o&&mn(l))continue;o=!1,i=l|1&i}}return mn(i)||o}function mn(n){return 0==(1&n)}function K0(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function Z0(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function qg(n,t,e=!1){for(let i=0;i<t.length;i++)if(q0(n,t[i],e))return!0;return!1}function X0(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Kg(n,t){return n?":not("+t.trim()+")":t}function J0(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!mn(o)&&(t+=Kg(s,r),r=""),i=o,s=s||!mn(i);e++}return""!==r&&(t+=Kg(s,r)),t}const $={};function Me(n){Yg(te(),w(),wt()+n,!1)}function Yg(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&ea(t,s,e)}else{const s=n.preOrderHooks;null!==s&&ta(t,s,0,e)}pi(e)}function _a(n,t){return n<<17|t<<2}function yn(n){return n>>17&32767}function Cu(n){return 2|n}function Jn(n){return(131068&n)>>2}function Du(n,t){return-131069&n|t<<2}function xu(n){return 1|n}function om(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Lc(r),o.contentQueries(2,t[s],s)}}}function zs(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Cp(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[z]=a||n&&n[z],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function Or(n,t,e,i,r){let s=n.data[t];if(null===s)s=function Ou(n,t,e,i,r){const s=Ep(),o=Oc(),l=n.data[t]=function yM(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),function RE(){return j.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function Es(){const n=j.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return kn(s,!0),s}function Rr(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function Ws(n,t,e){Zo(t);try{const i=n.viewQuery;null!==i&&$u(1,i,e);const r=n.template;null!==r&&am(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&om(n,t),n.staticViewQueries&&$u(2,n.viewQuery,e);const s=n.components;null!==s&&function pM(n,t){for(let e=0;e<t.length;e++)NM(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Xo()}}function Nr(n,t,e,i){const r=t[2];if(256!=(256&r)){Zo(t);try{Cp(t),function Sp(n){return j.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&am(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&ea(t,c,null)}else{const c=n.preOrderHooks;null!==c&&ta(t,c,0,null),Vc(t,0)}if(function OM(n){for(let t=iu(n);null!==t;t=ru(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&kc(s,1),r[2]|=1024}}}(t),function kM(n){for(let t=iu(n);null!==t;t=ru(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];Fc(i)&&Nr(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&om(n,t),o){const c=n.contentCheckHooks;null!==c&&ea(t,c)}else{const c=n.contentHooks;null!==c&&ta(t,c,1),Vc(t,1)}!function hM(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)pi(~r);else{const s=r,o=e[++i],a=e[++i];NE(o,s),a(2,t[s])}}}finally{pi(-1)}}(n,t);const a=n.components;null!==a&&function fM(n,t){for(let e=0;e<t.length;e++)RM(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&$u(2,l,i),o){const c=n.viewCheckHooks;null!==c&&ea(t,c)}else{const c=n.viewHooks;null!==c&&ta(t,c,2),Vc(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,kc(t[3],-1))}finally{Xo()}}}function gM(n,t,e,i){const r=t[10],o=wp(t);try{!o&&r.begin&&r.begin(),o&&Ws(n,t,i),Nr(n,t,e,i)}finally{!o&&r.end&&r.end()}}function am(n,t,e,i,r){const s=wt(),o=2&i;try{pi(-1),o&&t.length>20&&Yg(n,t,20,!1),e(i,r)}finally{pi(s)}}function lm(n,t,e){if(Dc(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function Ru(n,t,e){!xp()||(function xM(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||As(e,t),mt(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=gn(l);c&&IM(t,e,l);const u=Is(t,n,a,e);mt(u,t),null!==o&&TM(0,a-r,u,l,0,o),c&&(zt(e.index,t)[8]=u)}}(n,t,e,Ut(e,t)),128==(128&e.flags)&&function EM(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function PE(){return j.lFrame.currentDirectiveIndex}();try{pi(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];Nc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&mm(c,u)}}finally{pi(-1),Nc(a)}}(n,t,e))}function Nu(n,t,e=Ut){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function cm(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=wa(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function wa(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function mM(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:$);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function hm(n,t,e,i){const r=Cm(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&Dm(n).push(i,r.length-1))}function fm(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function Yt(n,t,e,i,r,s,o,a){const l=Ut(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(Sm(n,e,u,i,r),Wo(t)&&function bM(n,t){const e=zt(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function vM(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,Ve(s)?s.setProperty(l,i,r):Hc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Pu(n,t,e,i){let r=!1;if(xp()){const s=function SM(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];qg(e,o.selectors,!1)&&(r||(r=[]),oa(As(e,t),n,o.type),gn(o)?(ym(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,_m(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Rr(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=ia(e.mergedAttrs,d.hostAttrs),vm(n,e,t,c,d),AM(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function _M(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Wg(t)?null:FM(d,s);o.push(h),a=fm(d,c,a),l=fm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function MM(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new k(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=ia(e.mergedAttrs,e.attrs),r}function gm(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function DM(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function mm(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function ym(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function AM(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;gn(t)&&(e[""]=n)}}function _m(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function vm(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=Li(r.type)),o=new Ss(s,gn(r),null);n.blueprint[i]=o,e[i]=o,gm(n,t,0,i,Rr(n,e,r.hostVars,$),r)}function IM(n,t,e){const i=Ut(t,n),r=cm(e),s=n[10],o=Ca(n,zs(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function Ln(n,t,e,i,r,s){const o=Ut(n,t);!function Lu(n,t,e,i,r,s,o){if(null==s)Ve(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?H(s):o(s,i||"",r);Ve(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[z],o,s,n.value,e,i,r)}function TM(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function FM(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function bm(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function RM(n,t){const e=zt(t,n);if(Fc(e)){const i=e[1];80&e[2]?Nr(i,e,i.template,e[8]):e[5]>0&&Vu(e)}}function Vu(n){for(let i=iu(n);null!==i;i=ru(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Nr(o,s,o.template,s[8])}else s[5]>0&&Vu(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=zt(e[i],n);Fc(r)&&r[5]>0&&Vu(r)}}function NM(n,t){const e=zt(t,n),i=e[1];(function PM(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Ws(i,e,e[8])}function Ca(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Bu(n){for(;n;){n[2]|=64;const t=Hs(n);if(fE(n)&&!t)return n;n=t}return null}function wm(n){!function Hu(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=eu(e),r=i[1];gM(r,i,r.template,e)}}(n[8])}function $u(n,t,e){Lc(0),t(n,e)}const VM=(()=>Promise.resolve(null))();function Cm(n){return n[7]||(n[7]=[])}function Dm(n){return n.cleanup||(n.cleanup=[])}function Em(n,t){const e=n[9],i=e?e.get(mi,null):null;i&&i.handleError(t)}function Sm(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function ei(n,t,e){const i=Ko(t,n);!function gg(n,t,e){Ve(n)?n.setValue(t,e):t.textContent=e}(n[z],i,e)}function Da(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=pc(r,a):2==s&&(i=pc(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const Gu=new M("INJECTOR",-1);class Mm{get(t,e=Rs){if(e===Rs){const i=new Error(`NullInjectorError: No provider for ${de(t)}!`);throw i.name="NullInjectorError",i}return e}}const Uu=new M("Set Injector scope."),qs={},jM={};let zu;function Am(){return void 0===zu&&(zu=new Mm),zu}function Im(n,t=null,e=null,i){const r=Tm(n,t,e,i);return r._resolveInjectorDefTypes(),r}function Tm(n,t=null,e=null,i){return new $M(n,e,t||Am(),i)}class $M{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&On(e,a=>this.processProvider(a,t,e)),On([t],a=>this.processInjectorType(a,[],s)),this.records.set(Gu,Pr(void 0,this));const o=this.records.get(Uu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:de(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Rs,i=U.Default){this.assertNotDestroyed();const r=Jp(this),s=ui(void 0);try{if(!(i&U.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function QM(n){return"function"==typeof n||"object"==typeof n&&n instanceof M}(t)&&mc(t);a=l&&this.injectableDefInScope(l)?Pr(Wu(t),qs):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&U.Self?Am():this.parent).get(t,e=i&U.Optional&&e===Rs?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ua]=o[ua]||[]).unshift(de(t)),r)throw o;return function vS(n,t,e,i){const r=n[ua];throw t[Xp]&&r.unshift(t[Xp]),n.message=function bS(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=de(t);if(Array.isArray(t))r=t.map(de).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):de(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(pS,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ua]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{ui(s),Jp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(de(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processInjectorType(t,e,i){if(!(t=W(t)))return!1;let r=ap(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=ap(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{On(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];On(f,p=>this.processProvider(p,h,f||ve))}}this.injectorDefTypes.add(o);const l=Li(o)||(()=>new o);this.records.set(o,Pr(l,qs));const c=r.providers;if(null!=c&&!a){const u=t;On(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=Lr(t=W(t))?t:W(t&&t.provide);const s=function UM(n,t,e){return km(n)?Pr(void 0,n.useValue):Pr(Fm(n),qs)}(t);if(Lr(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Pr(void 0,qs,!0),o.factory=()=>Qc(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===qs&&(e.value=jM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function YM(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=W(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Wu(n){const t=mc(n),e=null!==t?t.factory:Li(n);if(null!==e)return e;if(n instanceof M)throw new k(204,!1);if(n instanceof Function)return function GM(n){const t=n.length;if(t>0)throw Os(t,"?"),new k(204,!1);const e=function eE(n){const t=n&&(n[jo]||n[lp]);if(t){const e=function tE(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new k(204,!1)}function Fm(n,t,e){let i;if(Lr(n)){const r=W(n);return Li(r)||Wu(r)}if(km(n))i=()=>W(n.useValue);else if(function WM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Qc(n.deps||[]));else if(function zM(n){return!(!n||!n.useExisting)}(n))i=()=>v(W(n.useExisting));else{const r=W(n&&(n.useClass||n.provide));if(!function KM(n){return!!n.deps}(n))return Li(r)||Wu(r);i=()=>new r(...Qc(n.deps))}return i}function Pr(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function km(n){return null!==n&&"object"==typeof n&&mS in n}function Lr(n){return"function"==typeof n}let Dt=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return Im({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return Im({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Rs,n.NULL=new Mm,n.\u0275prov=D({token:n,providedIn:"any",factory:()=>v(Gu)}),n.__NG_ELEMENT_ID__=-1,n})();function rA(n,t){Jo(eu(n)[1],Ze())}function S(n){let t=function Um(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(gn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new k(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Yu(n.inputs),o.declaredInputs=Yu(n.declaredInputs),o.outputs=Yu(n.outputs);const a=r.hostBindings;a&&lA(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&oA(n,l),c&&aA(n,c),fc(n.inputs,r.inputs),fc(n.declaredInputs,r.declaredInputs),fc(n.outputs,r.outputs),gn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===S&&(e=!1)}}t=Object.getPrototypeOf(t)}!function sA(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=ia(r.hostAttrs,e=ia(e,r.hostAttrs))}}(i)}function Yu(n){return n===pr?{}:n===ve?[]:n}function oA(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function aA(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function lA(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let xa=null;function Vr(){if(!xa){const n=pe.Symbol;if(n&&n.iterator)xa=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(xa=i)}}}return xa}function Ks(n){return!!Qu(n)&&(Array.isArray(n)||!(n instanceof Map)&&Vr()in n)}function Qu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function yt(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function xt(n,t,e,i){const r=w();return yt(r,br(),t)&&(te(),Ln(Oe(),r,n,t,e,i)),xt}function Et(n,t,e,i,r,s,o,a){const l=w(),c=te(),u=n+20,d=c.firstCreatePass?function gA(n,t,e,i,r,s,o,a,l){const c=t.consts,u=Or(t,n,4,o||null,fi(c,a));Pu(t,e,u,fi(c,l)),Jo(t,u);const d=u.tViews=wa(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];kn(d,!1);const h=l[z].createComment("");fa(c,l,h,d),mt(h,l),Ca(l,l[u]=bm(h,l,h,d)),qo(d)&&Ru(c,l,d),null!=o&&Nu(l,d,a)}function g(n,t=U.Default){const e=w();return null===e?v(n,t):$p(Ze(),e,W(n),t)}function be(n,t,e){const i=w();return yt(i,br(),t)&&Yt(te(),Oe(),i,n,t,i[z],e,!1),be}function td(n,t,e,i,r){const o=r?"class":"style";Sm(n,e,t.inputs[o],o,i)}function ge(n,t,e,i){const r=w(),s=te(),o=20+n,a=r[z],l=r[o]=ou(a,t,function UE(){return j.lFrame.currentNamespace}()),c=s.firstCreatePass?function LA(n,t,e,i,r,s,o){const a=t.consts,c=Or(t,n,2,r,fi(a,s));return Pu(t,e,c,fi(a,o)),null!==c.attrs&&Da(c,c.attrs,!1),null!==c.mergedAttrs&&Da(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];kn(c,!0);const u=c.mergedAttrs;null!==u&&na(a,l,u);const d=c.classes;null!==d&&fu(a,l,d);const h=c.styles;return null!==h&&Ag(a,l,h),64!=(64&c.flags)&&fa(s,r,l,c),0===function AE(){return j.lFrame.elementDepthCount}()&&mt(l,r),function IE(){j.lFrame.elementDepthCount++}(),qo(c)&&(Ru(s,r,c),lm(s,c,r)),null!==i&&Nu(r,c),ge}function xe(){let n=Ze();Oc()?Rc():(n=n.parent,kn(n,!1));const t=n;!function TE(){j.lFrame.elementDepthCount--}();const e=te();return e.firstCreatePass&&(Jo(e,n),Dc(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function YE(n){return 0!=(16&n.flags)}(t)&&td(e,t,w(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function QE(n){return 0!=(32&n.flags)}(t)&&td(e,t,w(),t.stylesWithoutHost,!1),xe}function Gi(n,t,e,i){return ge(n,t,e,i),xe(),Gi}function Qs(n,t,e){const i=w(),r=te(),s=n+20,o=r.firstCreatePass?function VA(n,t,e,i,r){const s=t.consts,o=fi(s,i),a=Or(t,n,8,"ng-container",o);return null!==o&&Da(a,o,!0),Pu(t,e,a,fi(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,e):r.data[s];kn(o,!0);const a=i[s]=i[z].createComment("");return fa(r,i,a,o),mt(a,i),qo(o)&&(Ru(r,i,o),lm(r,o,i)),null!=e&&Nu(i,o),Qs}function Zs(){let n=Ze();const t=te();return Oc()?Rc():(n=n.parent,kn(n,!1)),t.firstCreatePass&&(Jo(t,n),Dc(n)&&t.queries.elementEnd(n)),Zs}function Ma(){return w()}function Aa(n){return!!n&&"function"==typeof n.then}function hy(n){return!!n&&"function"==typeof n.subscribe}const fy=hy;function Je(n,t,e,i){const r=w(),s=te(),o=Ze();return function gy(n,t,e,i,r,s,o,a){const l=qo(i),u=n.firstCreatePass&&Dm(n),d=t[8],h=Cm(t);let f=!0;if(3&i.type||a){const _=Ut(i,t),b=a?a(_):_,y=h.length,E=a?x=>a(Ue(x[i.index])):i.index;if(Ve(e)){let x=null;if(!a&&l&&(x=function BA(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=s,x.__ngLastListenerFn__=s,f=!1;else{s=nd(i,t,d,s,!1);const F=e.listen(b,r,s);h.push(s,F),u&&u.push(r,E,y,y+1)}}else s=nd(i,t,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,y,o)}else s=nd(i,t,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const re=t[m[b]][m[b+1]].subscribe(s),Se=h.length;h.push(s,re),u&&u.push(r,i.index,Se,-(Se+1))}}}(s,r,r[z],o,n,t,!!e,i),Je}function my(n,t,e,i){try{return!1!==e(i)}catch(r){return Em(n,r),!1}}function nd(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?zt(n.index,t):t;0==(32&t[2])&&Bu(a);let l=my(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=my(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Rt(n=1){return function VE(n){return(j.lFrame.contextLView=function BE(n,t){for(;n>0;)t=t[15],n--;return t}(n,j.lFrame.contextLView))[8]}(n)}function HA(n,t){let e=null;const i=function Y0(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?qg(n,s,!0):X0(i,s))return r}else e=r}return e}function Ia(n){const t=w()[16][6];if(!t.projection){const i=t.projection=Os(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?HA(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function vn(n,t=0,e){const i=w(),r=te(),s=Or(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),Rc(),64!=(64&s.flags)&&function ZS(n,t,e){Mg(t[z],0,t,e,_g(n,e,t),Cg(e.parent||t[6],e,t))}(r,i,s)}function Sy(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?yn(s):Jn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];GA(n[a],t)&&(l=!0,n[a+1]=i?xu(u):Cu(u)),a=i?yn(u):Jn(u)}l&&(n[e+1]=i?Cu(s):xu(s))}function GA(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Ar(n,t)>=0}function rd(n,t,e){return bn(n,t,e,!1),rd}function Nt(n,t){return bn(n,t,null,!0),Nt}function bn(n,t,e,i){const r=w(),s=te(),o=function Xn(n){const t=j.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);s.firstUpdatePass&&function Ry(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[wt()],o=function Oy(n,t){return t>=n.expandoStartIndex}(n,e);(function Vy(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function XA(n,t,e,i){const r=function Pc(n){const t=j.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Xs(e=sd(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=sd(r,n,t,e,i),null===s){let l=function JA(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Jn(i))return n[yn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=sd(null,n,t,l[1],i),l=Xs(l,t.attrs,i),function eI(n,t,e,i){n[yn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function tI(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Xs(i,n[s].hostAttrs,e);return Xs(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function jA(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=yn(o),l=Jn(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Ar(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=yn(n[a+1]);n[i+1]=_a(h,a),0!==h&&(n[h+1]=Du(n[h+1],i)),n[a+1]=function nM(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=_a(a,0),0!==a&&(n[a+1]=Du(n[a+1],i)),a=i;else n[i+1]=_a(l,0),0===a?a=i:n[l+1]=Du(n[l+1],i),l=i;c&&(n[i+1]=Cu(n[i+1])),Sy(n,u,i,!0),Sy(n,u,i,!1),function $A(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Ar(s,t)>=0&&(e[i+1]=xu(e[i+1]))}(t,u,n,i,s),o=_a(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==$&&yt(r,o,t)&&function Py(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];Ta(function Xg(n){return 1==(1&n)}(c)?Ly(l,t,e,r,Jn(c),o):void 0)||(Ta(s)||function Zg(n){return 2==(2&n)}(c)&&(s=Ly(l,null,e,r,a,o)),function JS(n,t,e,i,r){const s=Ve(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:qt.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=qt.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,Ko(wt(),e),r,s))}(s,s.data[wt()],r,r[z],n,r[o+1]=function rI(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=de(Kt(n)))),n}(t,e),i,o)}function sd(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=Xs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Xs(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Wt(n,o,!!e||t[++s]))}return void 0===n?null:n}function Ly(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===$&&(h=d?ve:void 0);let f=d?qc(h,i):u===i?h:void 0;if(c&&!Ta(f)&&(f=qc(l,i)),Ta(f)&&(a=f,o))return a;const p=n[r+1];r=o?yn(p):Jn(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=qc(l,i))}return a}function Ta(n){return void 0!==n}function ti(n,t=""){const e=w(),i=te(),r=n+20,s=i.firstCreatePass?Or(i,r,1,t,null):i.data[r],o=e[r]=function su(n,t){return Ve(n)?n.createText(t):n.createTextNode(t)}(e[z],t);fa(i,e,o,s),kn(s,!1)}function Ui(n){return Fa("",n,""),Ui}function Fa(n,t,e){const i=w(),r=function Hr(n,t,e,i){return yt(n,br(),e)?t+H(e)+i:$}(i,n,t,e);return r!==$&&ei(i,wt(),r),Fa}function od(n,t,e){const i=w();return yt(i,br(),t)&&Yt(te(),Oe(),i,n,t,i[z],e,!0),od}const ka="en-US";let s_=ka;function cd(n,t,e,i,r){if(n=W(n),Array.isArray(n))for(let s=0;s<n.length;s++)cd(n[s],t,e,i,r);else{const s=te(),o=w();let a=Lr(n)?n:W(n.provide),l=Fm(n);const c=Ze(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Lr(n)||!n.multi){const f=new Ss(l,r,g),p=dd(a,t,r?u:u+h,d);-1===p?(oa(As(c,o),s,a),ud(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[p]=f,o[p]=f)}else{const f=dd(a,t,u+h,d),p=dd(a,t,u,u+h),m=f>=0&&e[f],_=p>=0&&e[p];if(r&&!_||!r&&!m){oa(As(c,o),s,a);const b=function DT(n,t,e,i,r){const s=new Ss(n,e,g);return s.multi=[],s.index=t,s.componentProviders=0,I_(s,r,i&&!e),s}(r?CT:wT,e.length,r,i,l);!r&&_&&(e[p].providerFactory=b),ud(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(b),o.push(b)}else ud(s,n,f>-1?f:p,I_(e[r?p:f],l,!r&&i));!r&&i&&_&&e[p].componentProviders++}}}function ud(n,t,e,i){const r=Lr(t),s=function qM(n){return!!n.useClass}(t);if(r||s){const l=(s?W(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function I_(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function dd(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function wT(n,t,e,i){return hd(this.multi,[])}function CT(n,t,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Is(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),hd(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],hd(r,s);return s}function hd(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function ue(n,t=[]){return e=>{e.providersResolver=(i,r)=>function bT(n,t,e){const i=te();if(i.firstCreatePass){const r=gn(n);cd(e,i.data,i.blueprint,r,!0),cd(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class T_{}class ST{resolveComponentFactory(t){throw function ET(n){const t=Error(`No component factory found for ${de(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Wi=(()=>{class n{}return n.NULL=new ST,n})();function MT(){return Xr(Ze(),w())}function Xr(n,t){return new B(Ut(n,t))}let B=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=MT,n})();function AT(n){return n instanceof B?n.nativeElement:n}class io{}let jn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function TT(){const n=w(),e=zt(Ze().index,n);return function IT(n){return n[z]}(Fn(e)?e:n)}(),n})(),FT=(()=>{class n{}return n.\u0275prov=D({token:n,providedIn:"root",factory:()=>null}),n})();class vi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const kT=new vi("13.4.0"),fd={};function La(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Ue(s)),pn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&La(l[1],l,c,i)}const o=e.type;if(8&o)La(n,t,e.child,i);else if(32&o){const a=nu(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Sg(t,e);if(Array.isArray(a))i.push(...a);else{const l=Hs(t[16]);La(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class ro{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return La(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(pn(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(au(t,i),la(e,i))}this._attachedToViewContainer=!1}yg(this._lView[1],this._lView)}onDestroy(t){hm(this._lView[1],this._lView,null,t)}markForCheck(){Bu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ju(n,t,e){const i=t[10];i.begin&&i.begin();try{Nr(n,t,n.template,e)}catch(r){throw Em(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function GS(n,t){js(n,t,t[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new k(902,"");this._appRef=t}}class OT extends ro{constructor(t){super(t),this._view=t}detectChanges(){wm(this._view)}checkNoChanges(){}get context(){return null}}class k_ extends Wi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ct(t);return new pd(e,this.ngModule)}}function O_(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class pd extends T_{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function eM(n){return n.map(J0).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return O_(this.componentDef.inputs)}get outputs(){return O_(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function NT(n,t){return{get:(e,i,r)=>{const s=n.get(e,fd,r);return s!==fd||i===fd?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(io,bp),a=s.get(FT,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function dm(n,t,e){if(Ve(n))return n.selectRootElement(t,e===hn.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):ou(o.createRenderer(null,this.componentDef),c,function RT(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Gm(n,t){return{components:[],scheduler:n||j0,clean:VM,playerHandler:t||null,flags:0}}(),f=wa(0,null,null,1,0,null,null,null,null,null),p=zs(null,f,h,d,null,null,o,l,a,s);let m,_;Zo(p);try{const b=function jm(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=Or(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Da(l,c,!0),null!==n&&(na(r,n,c),null!==l.classes&&fu(r,n,l.classes),null!==l.styles&&Ag(r,n,l.styles)));const u=i.createRenderer(n,t),d=zs(e,cm(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(oa(As(l,e),o,t.type),ym(o,l),_m(l,e.length,1)),Ca(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)na(l,u,["ng-version",kT.full]);else{const{attrs:y,classes:E}=function tM(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!mn(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);y&&na(l,u,y),E&&E.length>0&&fu(l,u,E.join(" "))}if(_=Tc(f,20),void 0!==e){const y=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const x=e[E];y.push(null!=x?Array.from(x):null)}}m=function $m(n,t,e,i,r){const s=e[1],o=function CM(n,t,e){const i=Ze();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),vm(n,i,t,Rr(n,t,1,null),e));const r=Is(t,n,i.directiveStart,i);mt(r,t);const s=Ut(i,t);return s&&mt(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=Ze();t.contentQueries(1,o,l.directiveStart)}const a=Ze();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(pi(a.index),gm(e[1],a,0,a.directiveStart,a.directiveEnd,t),mm(t,o)),o}(b,this.componentDef,p,h,[rA]),Ws(f,p,null)}finally{Xo()}return new LT(this.componentType,m,Xr(_,p),p,_)}}class LT extends class xT{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new OT(r),this.componentType=t}get injector(){return new Dr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Jr{}const es=new Map;class P_ extends Jr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new k_(this);const i=en(t);this._bootstrapComponents=Pn(i.bootstrap),this._r3Injector=Tm(t,e,[{provide:Jr,useValue:this},{provide:Wi,useValue:this.componentFactoryResolver}],de(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Dt.THROW_IF_NOT_FOUND,i=U.Default){return t===Dt||t===Jr||t===Gu?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gd extends class BT{}{constructor(t){super(),this.moduleType=t,null!==en(t)&&function HT(n){const t=new Set;!function e(i){const r=en(i,!0),s=r.id;null!==s&&(function R_(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${de(t)} vs ${de(t.name)}`)}(s,es.get(s),i),es.set(s,i));const o=Pn(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new P_(this.moduleType,t)}}function L_(n,t,e,i,r,s){const o=t+e;return yt(n,o,r)?function Vn(n,t,e){return n[t]=e}(n,o+1,s?i.call(s,r):i(r)):function so(n,t){const e=n[t];return e===$?void 0:e}(n,o+1)}function G_(n,t,e){const i=n+20,r=w(),s=function vr(n,t){return n[t]}(r,i);return function oo(n,t){return n[1].data[t].pure}(r,i)?L_(r,function bt(){const n=j.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,s.transform,e,s):s.transform(e)}function md(n){return t=>{setTimeout(n,void 0,t)}}const tt=class nF extends ye{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=md(l),a&&(a=md(a)),c&&(c=md(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof Q&&t.add(u),u}};function iF(){return this._results[Vr()]()}class yd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Vr(),i=yd.prototype;i[e]||(i[e]=iF)}get changes(){return this._changes||(this._changes=new tt)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=rn(t);(this._changesDetected=!function sS(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.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()}}Symbol;let ni=(()=>{class n{}return n.__NG_ELEMENT_ID__=oF,n})();const rF=ni,sF=class extends rF{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=zs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Ws(e,i,t),new ro(i)}};function oF(){return Va(Ze(),w())}function Va(n,t){return 4&n.type?new sF(t,n,Xr(n,t)):null}let Cn=(()=>{class n{}return n.__NG_ELEMENT_ID__=aF,n})();function aF(){return W_(Ze(),w())}const lF=Cn,U_=class extends lF{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Xr(this._hostTNode,this._hostLView)}get injector(){return new Dr(this._hostTNode,this._hostLView)}get parentInjector(){const t=sa(this._hostTNode,this._hostLView);if(Lp(t)){const e=Cr(t,this._hostLView),i=wr(t);return new Dr(e[1].data[i+8],e)}return new Dr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=z_(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function ks(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new pd(ct(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Jr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function ME(n){return pn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new U_(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function zS(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],qp(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function WS(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=uu(s,o),l=i[z],c=ha(l,o[7]);return null!==c&&function $S(n,t,e,i,r,s){i[0]=r,i[6]=t,js(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),qp(_d(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=z_(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=au(this._lContainer,e);i&&(la(_d(this._lContainer),e),yg(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=au(this._lContainer,e);return i&&null!=la(_d(this._lContainer),e)?new ro(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function z_(n){return n[8]}function _d(n){return n[8]||(n[8]=[])}function W_(n,t){let e;const i=t[n.index];if(pn(i))e=i;else{let r;if(8&n.type)r=Ue(i);else{const s=t[z];r=s.createComment("");const o=Ut(n,t);Bi(s,ha(s,o),r,function QS(n,t){return Ve(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=bm(i,t,r,n),Ca(t,e)}return new U_(e,n,t)}class vd{constructor(t){this.queryList=t,this.matches=null}clone(){return new vd(this.queryList)}setDirty(){this.queryList.setDirty()}}class bd{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new bd(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Z_(t,e).matches&&this.queries[e].setDirty()}}class q_{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class wd{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new wd(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Cd{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Cd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,dF(e,s)),this.matchTNodeWithReadOption(t,e,aa(e,t,s,!1,!1))}else i===ni?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,aa(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===B||r===Cn||r===ni&&4&e.type)this.addMatch(e.index,-2);else{const s=aa(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function dF(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function fF(n,t,e,i){return-1===e?function hF(n,t){return 11&n.type?Xr(n,t):4&n.type?Va(n,t):null}(t,n):-2===e?function pF(n,t,e){return e===B?Xr(t,n):e===ni?Va(t,n):e===Cn?W_(t,n):void 0}(n,t,i):Is(n,n[1],e,t)}function K_(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:fF(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function Dd(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=K_(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Dd(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Dd(f[1],f,c,i)}}}}}return i}function Mt(n){const t=w(),e=te(),i=Ap();Lc(i+1);const r=Z_(e,i);if(n.dirty&&wp(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Dd(e,t,i,[]):K_(e,t,r,i);n.reset(s,AT),n.notifyOnChanges()}return!0}return!1}function ts(n,t,e){const i=te();i.firstCreatePass&&(Q_(i,new q_(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),Y_(i,w(),t)}function $n(n,t,e,i){const r=te();if(r.firstCreatePass){const s=Ze();Q_(r,new q_(t,e,i),s.index),function mF(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}Y_(r,w(),e)}function At(){return function gF(n,t){return n[19].queries[t].queryList}(w(),Ap())}function Y_(n,t,e){const i=new yd(4==(4&e));hm(n,t,i,i.destroy),null===t[19]&&(t[19]=new bd),t[19].queries.push(new vd(i))}function Q_(n,t,e){null===n.queries&&(n.queries=new wd),n.queries.track(new Cd(t,e))}function Z_(n,t){return n.queries.getByIndex(t)}function ja(...n){}const Id=new M("Application Initializer");let Td=(()=>{class n{constructor(e){this.appInits=e,this.resolve=ja,this.reject=ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Aa(s))e.push(s);else if(fy(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(v(Id,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lo=new M("AppId",{providedIn:"root",factory:function pv(){return`${Fd()}${Fd()}${Fd()}`}});function Fd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gv=new M("Platform Initializer"),Dn=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mv=new M("appBootstrapListener"),ii=new M("LocaleId",{providedIn:"root",factory:()=>Ir(ii,U.Optional|U.SkipSelf)||function RF(){return"undefined"!=typeof $localize&&$localize.locale||ka}()}),VF=(()=>Promise.resolve(0))();function kd(n){"undefined"==typeof Zone?VF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tt(!1),this.onMicrotaskEmpty=new tt(!1),this.onStable=new tt(!1),this.onError=new tt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function BF(){let n=pe.requestAnimationFrame,t=pe.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function $F(n){const t=()=>{!function jF(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(pe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Rd(n),n.isCheckStableRunning=!0,Od(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Rd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return yv(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),_v(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return yv(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),_v(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Rd(n),Od(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ie.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ie.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,HF,ja,ja);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const HF={};function Od(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Rd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function yv(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function _v(n){n._nesting--,Od(n)}class GF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tt,this.onMicrotaskEmpty=new tt,this.onStable=new tt,this.onError=new tt}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Nd=(()=>{class n{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:()=>{ie.assertNotInAngularZone(),kd(()=>{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())kd(()=>{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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),UF=(()=>{class n{constructor(){this._applications=new Map,Pd.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}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,i=!0){return Pd.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class zF{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Pd=new zF,qi=null;const vv=new M("AllowMultipleToken"),bv=new M("PlatformOnDestroy");function wv(n,t,e=[]){const i=`Platform: ${t}`,r=new M(i);return(s=[])=>{let o=Ld();if(!o||o.injector.get(vv,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function YF(n){if(qi&&!qi.get(vv,!1))throw new k(400,"");qi=n;const t=n.get(Cv),e=n.get(gv,null);e&&e.forEach(i=>i())}(function ZF(n=[],t){return Dt.create({name:t,providers:[{provide:Uu,useValue:"platform"},{provide:bv,useValue:()=>qi=null},...n]})}(a,i))}return function QF(n){const t=Ld();if(!t)throw new k(401,"");return t}()}}function Ld(){var n;return null!==(n=null==qi?void 0:qi.get(Cv))&&void 0!==n?n:null}let Cv=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function XF(n,t){let e;return e="noop"===n?new GF:("zone.js"===n?void 0:n)||new ie({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:ie,useValue:a}];return a.run(()=>{const c=Dt.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(mi,null);if(!d)throw new k(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Vd(this._modules,u),h.unsubscribe()})}),function JF(n,t,e){try{const i=e();return Aa(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Td);return h.runInitializers(),h.donePromise.then(()=>(function II(n){$t(n,"Expected localeId to be defined"),"string"==typeof n&&(s_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(ii,ka)||ka),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=Dv({},i);return function qF(n,t,e){const i=new gd(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get($a);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new k(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(bv,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(v(Dt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Dv(n,t){return Array.isArray(t)?t.reduce(Dv,n):Object.assign(Object.assign({},n),t)}let $a=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=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 o=new Ce(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Ce(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),kd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=fr(o,a.pipe(rp()))}bootstrap(e,i){if(!this._initStatus.done)throw new k(405,"");let r;r=e instanceof T_?e:this._injector.get(Wi).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function KF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Jr),a=r.create(Dt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Nd,null),u=c&&a.injector.get(UF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Vd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new k(101,"");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 i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Vd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(mv,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Dt),v(mi),v(Td))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vd(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Ev=!0,is=(()=>{class n{}return n.__NG_ELEMENT_ID__=nk,n})();function nk(n){return function ik(n,t,e){if(Wo(n)&&!e){const i=zt(n.index,t);return new ro(i,i)}return 47&n.type?new ro(t[16],t):null}(Ze(),w(),16==(16&n))}class Tv{constructor(){}supports(t){return Ks(t)}create(t){return new ck(t)}}const lk=(n,t)=>t;class ck{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||lk}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<kv(i,r,s)?e:i,a=kv(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ks(t))throw new k(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function pA(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Vr()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new uk(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Fv),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class uk{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class dk{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Fv{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new dk,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kv(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class Ov{constructor(){}supports(t){return t instanceof Map||Qu(t)}create(){return new hk}}class hk{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Qu(t)))throw new k(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new fk(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class fk{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Rv(){return new co([new Tv])}let co=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Rv()),deps:[[n,new Ls,new Vi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new k(901,"")}}return n.\u0275prov=D({token:n,providedIn:"root",factory:Rv}),n})();function Nv(){return new Yi([new Ov])}let Yi=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Nv()),deps:[[n,new Ls,new Vi]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new k(901,"")}}return n.\u0275prov=D({token:n,providedIn:"root",factory:Nv}),n})();const mk=wv(null,"core",[]);let yk=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(v($a))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})(),za=null;function Gn(){return za}const q=new M("DocumentToken");let uo=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:function(){return function wk(){return v(Pv)}()},providedIn:"platform"}),n})(),Pv=(()=>{class n extends uo{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gn().getBaseHref(this._doc)}onPopState(e){const i=Gn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Gn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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,i,r){Lv()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Lv()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:function(){return function Ck(){return new Pv(v(q))}()},providedIn:"platform"}),n})();function Lv(){return!!window.history.pushState}function Vv(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Bv(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Qi(n){return n&&"?"!==n[0]?"?"+n:n}let Gd=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:function(){return function Dk(n){const t=v(q).location;return new Ek(v(uo),t&&t.origin||"")}()},providedIn:"root"}),n})();const xk=new M("appBaseHref");let Ek=(()=>{class n extends Gd{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Vv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Qi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Qi(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Qi(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(uo),v(xk,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),Hv=(()=>{class n{constructor(e,i){this._subject=new tt,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Bv(jv(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Qi(i))}normalize(e){return n.stripTrailingSlash(function Mk(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,jv(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qi(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Qi,n.joinWithSlash=Vv,n.stripTrailingSlash=Bv,n.\u0275fac=function(e){return new(e||n)(v(Gd),v(uo))},n.\u0275prov=D({token:n,factory:function(){return function Sk(){return new Hv(v(Gd),v(uo))}()},providedIn:"root"}),n})();function jv(n){return n.replace(/\/index.html$/,"")}let tl=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,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&&(Ks(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(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${de(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(g(co),g(Yi),g(B),g(jn))},n.\u0275dir=C({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})(),Jd=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new pO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Zv("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Zv("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,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Cn),g(ni))},n.\u0275dir=C({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class pO{constructor(){this.$implicit=null,this.ngIf=null}}function Zv(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${de(t)}'.`)}const Xv="browser";function Zi(n){return n===Xv}function rs(n){return"server"===n}class nh{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let rl=(()=>{class n{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 i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),ib=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new nh(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(g(Cn),g(ni),g(rl,9))},n.\u0275dir=C({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})();class WO{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class qO{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const KO=new qO,YO=new WO;let sb=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Aa(e))return KO;if(hy(e))return YO;throw function En(n,t){return new k(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(is,16))},n.\u0275pipe=_t({name:"async",type:n,pure:!1}),n})(),oh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();class ah extends class gR extends class bk{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function vk(n){za||(za=n)}(new ah)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function mR(){return go=go||document.querySelector("base"),go?go.getAttribute("href"):null}();return null==e?null:function yR(n){sl=sl||document.createElement("a"),sl.setAttribute("href",n);const t=sl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){go=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function uO(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let sl,go=null;const lb=new M("TRANSITION_ID"),vR=[{provide:Id,useFactory:function _R(n,t,e){return()=>{e.get(Td).donePromise.then(()=>{const i=Gn(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[lb,q,Dt],multi:!0}];class lh{static init(){!function WF(n){Pd=n}(new lh)}addToWindow(t){pe.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},pe.getAllAngularTestabilities=()=>t.getAllTestabilities(),pe.getAllAngularRootElements=()=>t.getAllRootElements(),pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push(i=>{const r=pe.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Gn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let bR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const ol=new M("EventManagerPlugins");let al=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(v(ol),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class cb{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Gn().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let ub=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),mo=(()=>{class n extends ub{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(db),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(db))}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();function db(n){Gn().remove(n)}const ch={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},uh=/%COMP%/g;function ll(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?ll(n,r,e):(r=r.replace(uh,n),e.push(r))}return e}function pb(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let cl=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new dh(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case hn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new SR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case hn.ShadowDom:return new MR(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=ll(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(v(al),v(mo),v(lo))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class dh{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(ch[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=ch[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=ch[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(qt.DashCase|qt.Important)?t.style.setProperty(e,i,r&qt.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&qt.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,pb(i)):this.eventManager.addEventListener(t,e,pb(i))}}class SR extends dh{constructor(t,e,i,r){super(t),this.component=i;const s=ll(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function DR(n){return"_ngcontent-%COMP%".replace(uh,n)}(r+"-"+i.id),this.hostAttr=function xR(n){return"_nghost-%COMP%".replace(uh,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class MR extends dh{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ll(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let AR=(()=>{class n extends cb{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const mb=["alt","control","meta","shift"],TR={"\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"},yb={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"},FR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let kR=(()=>{class n extends cb{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(mb.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function OR(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&yb.hasOwnProperty(t)&&(t=yb[t]))}return TR[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),mb.forEach(s=>{s!=r&&FR[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const LR=wv(mk,"browser",[{provide:Dn,useValue:Xv},{provide:gv,useValue:function RR(){ah.makeCurrent(),lh.init()},multi:!0},{provide:q,useFactory:function PR(){return function DE(n){Ac=n}(document),document},deps:[]}]),VR=[{provide:Uu,useValue:"root"},{provide:mi,useFactory:function NR(){return new mi},deps:[]},{provide:ol,useClass:AR,multi:!0,deps:[q,ie,Dn]},{provide:ol,useClass:kR,multi:!0,deps:[q]},{provide:cl,useClass:cl,deps:[al,mo,lo]},{provide:io,useExisting:cl},{provide:ub,useExisting:mo},{provide:mo,useClass:mo,deps:[q]},{provide:Nd,useClass:Nd,deps:[ie]},{provide:al,useClass:al,deps:[ol,ie]},{provide:class fR{},useClass:bR,deps:[]}];let _b=(()=>{class n{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:n,providers:[{provide:lo,useValue:e.appId},{provide:lb,useExisting:lo},vR]}}}return n.\u0275fac=function(e){return new(e||n)(v(n,12))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:VR,imports:[oh,yk]}),n})();"undefined"!=typeof window&&window;let ul=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:function(e){let i=null;return i=e?new(e||n):v(wb),i},providedIn:"root"}),n})(),wb=(()=>{class n extends ul{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ce.NONE:return i;case ce.HTML:return Rn(i,"HTML")?Kt(i):Hg(this._doc,String(i)).toString();case ce.STYLE:return Rn(i,"Style")?Kt(i):i;case ce.SCRIPT:if(Rn(i,"Script"))return Kt(i);throw new Error("unsafe value used in a script context");case ce.URL:return kg(i),Rn(i,"URL")?Kt(i):$s(String(i));case ce.RESOURCE_URL:if(Rn(i,"ResourceURL"))return Kt(i);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 function c0(n){return new r0(n)}(e)}bypassSecurityTrustStyle(e){return function u0(n){return new s0(n)}(e)}bypassSecurityTrustScript(e){return function d0(n){return new o0(n)}(e)}bypassSecurityTrustUrl(e){return function h0(n){return new a0(n)}(e)}bypassSecurityTrustResourceUrl(e){return function f0(n){return new l0(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:function(e){let i=null;return i=e?new e:function KR(n){return new wb(n.get(q))}(v(Dt)),i},providedIn:"root"}),n})();function ut(n){return null!=n&&"false"!=`${n}`}function fh(n,t=0){return function YR(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function dl(n){return Array.isArray(n)?n:[n]}function qe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function si(n){return n instanceof B?n.nativeElement:n}function Un(...n){let t=n[n.length-1];return hr(t)?(n.pop(),uc(n,t)):hc(n)}function ph(n,t,e,i){return J(e)&&(i=e,e=void 0),i?ph(n,t,e).pipe(at(r=>ae(r)?i(...r):i(r))):new Ce(r=>{Cb(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function Cb(n,t,e,i,r){let s;if(function XR(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function ZR(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function QR(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)Cb(n[o],t,e,i,r)}i.add(s)}class JR extends Q{constructor(t,e){super()}schedule(t,e=0){return this}}class hl extends JR{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Db=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Sn extends Db{constructor(t,e=Db.now){super(t,()=>Sn.delegate&&Sn.delegate!==this?Sn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Sn.delegate&&Sn.delegate!==this?Sn.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}new class tN extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class eN extends hl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let iN=1;const rN=Promise.resolve(),fl={};function xb(n){return n in fl&&(delete fl[n],!0)}const Eb={setImmediate(n){const t=iN++;return fl[t]=!0,rN.then(()=>xb(t)&&n()),t},clearImmediate(n){xb(n)}},gh=(new class oN extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class sN extends hl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Eb.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Eb.clearImmediate(e),t.scheduled=void 0)}}),new Sn(hl));class cN{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new uN(t,this.durationSelector))}}class uN extends vs{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=bs(e,new _s(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Sb(n){return!ae(n)&&n-parseFloat(n)+1>=0}function hN(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function Mb(n,t=gh){return function lN(n){return function(e){return e.lift(new cN(n))}}(()=>function dN(n=0,t,e){let i=-1;return Sb(t)?i=Number(t)<1?1:Number(t):hr(t)&&(e=t),hr(e)||(e=gh),new Ce(r=>{const s=Sb(n)?n:+n-e.now();return e.schedule(hN,s,{index:0,period:i,subscriber:r})})}(n,t))}function ss(n,t){return function(i){return i.lift(new fN(n,t))}}class fN{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new pN(t,this.predicate,this.thisArg))}}class pN extends we{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}let mh;try{mh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){mh=!1}let os,Lt=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Zi(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&&!mh)&&"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 n.\u0275fac=function(e){return new(e||n)(v(Dn))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();const Ab=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ib(){if(os)return os;if("object"!=typeof document||!document)return os=new Set(Ab),os;let n=document.createElement("input");return os=new Set(Ab.filter(t=>(n.setAttribute("type",t),n.type===t))),os}let yo,Xi,yh;function _o(n){return function gN(){if(null==yo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>yo=!0}))}finally{yo=yo||!1}return yo}()?n:!!n.capture}function mN(){if(null==Xi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xi=!1,Xi;if("scrollBehavior"in document.documentElement.style)Xi=!0;else{const n=Element.prototype.scrollTo;Xi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Xi}function Ji(n){return n.composedPath?n.composedPath()[0]:n.target}function _h(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const vN=new M("cdk-dir-doc",{providedIn:"root",factory:function bN(){return Ir(q)}}),wN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vo=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new tt,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function CN(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wN.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(v(vN,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),as=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})(),Tb=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new ye,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ce(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Mb(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Un()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ss(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=si(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ph(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Lt),v(q,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fb=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new ye,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Mb(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(ie),v(q,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})(),kb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[as,pl,vh],as,vh]}),n})();class bh{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ob extends bh{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class EN extends bh{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class SN extends bh{constructor(t){super(),this.element=t instanceof B?t.nativeElement:t}}class AN extends class MN{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Ob?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof EN?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof SN?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let IN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();const TN=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),Rb=new Ce(n=>n.complete());function Nb(n){return n?function FN(n){return new Ce(t=>n.schedule(()=>t.complete()))}(n):Rb}function bo(n){return t=>0===n?Nb():t.lift(new kN(n))}class kN{constructor(t){if(this.total=t,this.total<0)throw new TN}call(t,e){return e.subscribe(new ON(t,this.total))}}class ON extends we{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function Ke(n){return t=>t.lift(new RN(n))}class RN{constructor(t){this.notifier=t}call(t,e){const i=new NN(t),r=bs(this.notifier,new _s(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class NN extends vs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const Pb=mN();class PN{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=qe(-this._previousScrollPosition.left),t.style.top=qe(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Pb&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Pb&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class LN{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Lb{enable(){}disable(){}attach(){}}function wh(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function Vb(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class VN{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();wh(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let BN=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Lb,this.close=o=>new LN(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new PN(this._viewportRuler,this._document),this.reposition=o=>new VN(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(v(Tb),v(Fb),v(ie),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class HN{constructor(t){if(this.scrollStrategy=new Lb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class jN{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class $N{constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new ye,this._attachments=new ye,this._detachments=new ye,this._locationChanges=Q.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new ye,this._outsidePointerEvents=new ye,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(bo(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=qe(this._config.width),t.height=qe(this._config.height),t.minWidth=qe(this._config.minWidth),t.minHeight=qe(this._config.minHeight),t.maxWidth=qe(this._config.maxWidth),t.maxHeight=qe(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=dl(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ke(fr(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let Ch=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||_h()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),_h()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(Lt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Bb="cdk-overlay-connected-position-bounding-box",GN=/([A-Za-z%]+)$/;class UN{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ye,this._resizeSubscription=Q.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Bb),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&er(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Bb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=jb(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=Hb(this._overlayRef.getConfig().minHeight),a=Hb(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=jb(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new jN(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=qe(i.height),r.top=qe(i.top),r.bottom=qe(i.bottom),r.width=qe(i.width),r.left=qe(i.left),r.right=qe(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=qe(s)),o&&(r.maxWidth=qe(o))}this._lastBoundingBoxSize=i,er(this._boundingBox.style,r)}_resetBoundingBoxStyles(){er(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){er(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();er(i,this._getExactOverlayY(e,t,u)),er(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=qe(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=qe(o.maxWidth):s&&(i.maxWidth="")),er(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=qe(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=qe(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Vb(t,i),isOriginOutsideView:wh(t,i),isOverlayClipped:Vb(e,i),isOverlayOutsideView:wh(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&dl(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof B)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function er(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Hb(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(GN);return e&&"px"!==e?null:parseFloat(t)}return n||null}function jb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const $b="cdk-global-overlay-wrapper";class zN{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add($b),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove($b),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let WN=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new zN}flexibleConnectedTo(e){return new UN(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(v(Fb),v(q),v(Lt),v(Ch))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gb=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qN=(()=>{class n extends Gb{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KN=(()=>{class n extends Gb{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Ji(r)},this._clickListener=r=>{const s=Ji(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(Lt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YN=0,ml=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new HN(e);return o.direction=o.direction||this._directionality.value,new $N(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+YN++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get($a)),new AN(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(v(BN),v(Ch),v(Wi),v(WN),v(qN),v(Dt),v(ie),v(q),v(vo),v(Hv),v(KN))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const XN={provide:new M("cdk-connected-overlay-scroll-strategy"),deps:[ml],useFactory:function ZN(n){return()=>n.scrollStrategies.reposition()}};let JN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[ml,XN],imports:[[as,IN,kb],kb]}),n})();const nP=new class tP extends Sn{}(class eP extends hl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function Ub(n,t){return new Ce(t?e=>t.schedule(iP,0,{error:n,subscriber:e}):e=>e.error(n))}function iP({error:n,subscriber:t}){t.error(n)}class ln{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Un(this.value);case"E":return Ub(this.error);case"C":return Nb()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new ln("N",t):ln.undefinedValueNotification}static createError(t){return new ln("E",void 0,t)}static createComplete(){return ln.completeNotification}}ln.completeNotification=new ln("C"),ln.undefinedValueNotification=new ln("N",void 0);class yl extends we{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(yl.dispatch,this.delay,new sP(t,this.destination)))}_next(t){this.scheduleMessage(ln.createNext(t))}_error(t){this.scheduleMessage(ln.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(ln.createComplete()),this.unsubscribe()}}class sP{constructor(t,e){this.notification=t,this.destination=e}}class oP extends ye{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new aP(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Fi;if(this.isStopped||this.hasError?o=Q.EMPTY:(this.observers.push(t),o=new Qf(this,t)),r&&t.add(t=new yl(t,r)),e)for(let a=0;a<s&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<s&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||nP).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(t-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class aP{constructor(t,e){this.time=t,this.value=e}}function zb(n,t){return"function"==typeof t?e=>e.pipe(zb((i,r)=>Bo(n(i,r)).pipe(at((s,o)=>t(i,s,r,o))))):e=>e.lift(new lP(n))}class lP{constructor(t){this.project=t}call(t,e){return e.subscribe(new cP(t,this.project))}}class cP extends vs{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new _s(this),r=this.destination;r.add(i),this.innerSubscription=bs(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const _l={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return _l.schedule(n,0);if(void 0===window.requestAnimationFrame)return _l.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let Dh;function _P(n,t,e){let i=e;return function dP(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function fP(n,t){if(!Dh){const e=Element.prototype;Dh=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Dh.call(n,t)}(n,r)||(i=s,0))),i}class bP{constructor(t,e){this.componentFactory=e.get(Wi).resolveComponentFactory(t)}create(t){return new wP(this.componentFactory,t)}}class wP{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new oP(1),this.events=this.eventEmitters.pipe(zb(i=>fr(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(ie),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=_l.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function pP(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Dt.create({providers:[],parent:this.injector}),i=function yP(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=_P(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(is),this.implementsOnChanges=function hP(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get($a).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(at(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=_l.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new mp(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class CP extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Wb extends ye{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fi;return this._value}next(t){super.next(this._value=t)}}function qb(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}const xh="inline",vl=["row","column","row-reverse","column-reverse"];function Kb(n){let[t,e,i]=function Yb(n){var t;n=null!==(t=null==n?void 0:n.toLowerCase())&&void 0!==t?t:"";let[e,i,r]=n.split(" ");return vl.find(s=>s===e)||(e=vl[0]),i===xh&&(i=r!==xh?r:"",r=xh),[e,xP(i),!!r]}(n);return function EP(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}function xP(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function wi(){}function bl(n,t,e){return function(r){return r.lift(new SP(n,t,e))}}class SP{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new MP(t,this.nextOrObserver,this.error,this.complete))}}class MP extends we{constructor(t,e,i,r){super(t),this._tapNext=wi,this._tapError=wi,this._tapComplete=wi,this._tapError=i||wi,this._tapComplete=r||wi,J(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||wi,this._tapError=e.error||wi,this._tapComplete=e.complete||wi)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const IP={provide:mv,useFactory:function AP(n,t){return()=>{if(Zi(t)){const e=Array.from(n.querySelectorAll(`[class*=${Qb}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${Qb}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[q,Dn],multi:!0},Qb="flex-layout-";let Eh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[IP]}),n})();class tr{constructor(t=!1,e="all",i="",r="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new tr(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let TP=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const s=this.stylesheet.get(e);s?s.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Sh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Mn=new M("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Sh}),ls=new M("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Mh=new M("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Zb(n,t){return n=n?n.clone():new tr,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}class He{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let Ae=(()=>{class n{constructor(e,i,r,s){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(e,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:qb(i),this._applyMultiValueStyleToElement(s,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:qb(e);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||rs(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var r;return null!==(r=e.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(e,i){return Zi(this._platformId)?e.style.getPropertyValue(i):function FP(n,t){var e;return null!==(e=Xb(n)[t])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,r=!1){let s="";return e&&((s=this.lookupInlineStyle(e,i))||(Zi(this._platformId)?r||(s=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(e,i)))),s?s.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const s=e[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",Zi(this._platformId)||!this._serverModuleLoaded?Zi(this._platformId)?i.style.setProperty(r,a):kP(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return n.\u0275fac=function(e){return new(e||n)(v(TP),v(ls),v(Dn),v(Mn))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kP(n,t,e){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=Xb(n);i[t]=null!=e?e:"",function OP(n,t){let e="";for(const i in t)t[i]&&(e+=`${i}:${t[i]};`);n.setAttribute("style",e)}(n,i)}function Xb(n){const t={},e=n.getAttribute("style");if(e){const i=e.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);t[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return t}function Co(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function RP(n,t){return(n.priority||0)-(t.priority||0)}let Ah=(()=>{class n{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new Wb(new tr(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){var i;const r=this.registry.get(e);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(ss(o=>!i||e.indexOf(o.mediaQuery)>-1));return fr(new Ce(o=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function NP(n,t){const e=n.filter(i=>!Jb[i]);if(e.length>0){const i=e.join(", ");try{const r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),t.head.appendChild(r),e.forEach(s=>Jb[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new tr(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new tr(!0,s))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function PP(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,Zi(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Dn),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jb={},LP=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],ew="(orientation: portrait) and (max-width: 599.98px)",tw="(orientation: landscape) and (max-width: 959.98px)",nw="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",iw="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",rw="(orientation: portrait) and (min-width: 840px)",sw="(orientation: landscape) and (min-width: 1280px)",ai={HANDSET:`${ew}, ${tw}`,TABLET:`${nw} , ${iw}`,WEB:`${rw}, ${sw} `,HANDSET_PORTRAIT:`${ew}`,TABLET_PORTRAIT:`${nw} `,WEB_PORTRAIT:`${rw}`,HANDSET_LANDSCAPE:`${tw}`,TABLET_LANDSCAPE:`${iw}`,WEB_LANDSCAPE:`${sw}`},VP=[{alias:"handset",priority:2e3,mediaQuery:ai.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ai.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ai.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ai.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ai.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ai.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ai.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ai.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ai.WEB_PORTRAIT,overlapping:!0}],BP=/(\.|-|_)/g;function HP(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}const UP=new M("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Ir(Mh),t=Ir(Mn),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function GP(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?function oi(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}(e[i.alias],i):e[i.alias]=i}),function $P(n){return n.forEach(t=>{t.suffix||(t.suffix=function jP(n){return n.replace(BP,"|").split("|").map(HP).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}((t.disableDefaultBps?[]:LP).concat(t.addOrientationBps?VP:[]),e)}});let Ih=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(RP)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var r;let s=this.findByMap.get(e);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(e,s)),null!=s?s:null}}return n.\u0275fac=function(e){return new(e||n)(v(UP))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cs="print",zP={alias:cs,mediaQuery:cs,priority:1e3};let WP=(()=>{class n{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new qP,this.deactivations=[]}withPrintQuery(e){return[...e,cs]}isPrintEvent(e){return e.mediaQuery.startsWith(cs)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(Co)}updateEvent(e){var i;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),Zb(e,r)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new tr(!0,cs))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&e.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort(Co))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(v(Ih),v(Mn),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qP{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(zP),t.sort(Co),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function KP(n){var t;return null!==(t=null==n?void 0:n.mediaQuery.startsWith(cs))&&void 0!==t&&t}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}let Te=(()=>{class n{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new ye,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=Zb(e,i);const r=this.activatedBreakpoints.indexOf(i);e.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Co),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Co),this.updateStyles())}}init(e,i,r,s,o=[]){ow(this.updateMap,e,i,r),ow(this.clearMap,e,i,s),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,o)}getValue(e,i,r){const s=this.elementMap.get(e);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(e,i,r,s){var o;let a=this.elementMap.get(e);if(a){const c=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,c),this.elementMap.set(e,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(ss(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(e);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(e,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const s=this.updateMap.get(e);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(e,i,s.get(i)):s.forEach((o,a)=>this.updateElement(e,a,o)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let s=this.watcherMap.get(e);if(s||(s=new Map,this.watcherMap.set(e,s)),!s.get(i)){const a=fr(...r).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});s.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=e.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=e.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(bl(this.hook.interceptEvents(this)),ss(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(v(Ah),v(Ih),v(WP))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ow(n,t,e,i){var r;if(void 0!==i){const s=null!==(r=n.get(t))&&void 0!==r?r:new Map;s.set(e,i),n.set(t,s)}}let Ne=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ye,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(e);(!o||!s)&&(o=r.buildStyles(e,i),s&&this.styleCache.set(e,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(e,o,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[r,s]=this.styler.getFlowDirection(e);if(!s&&i){const o=Kb(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(He),g(Ae),g(Te))},n.\u0275dir=C({type:n,features:[Ot]}),n})(),gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[Eh]]}),n})(),m1=(()=>{class n extends He{buildStyles(e,{display:i}){const r=Kb(e);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const y1=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let _1=(()=>{class n extends Ne{constructor(e,i,r,s,o){super(e,r,i,s),this._config=o,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=yw.get(s))&&void 0!==i?i:new Map,yw.set(s,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:s}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(Ae),g(m1),g(Te),g(Mn))},n.\u0275dir=C({type:n,features:[S]}),n})(),mw=(()=>{class n extends _1{constructor(){super(...arguments),this.inputs=y1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[S]}),n})();const yw=new Map;let bw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[Eh,as]]}),n})(),Aw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[Eh]]}),n})(),BV=(()=>{class n{constructor(e,i){rs(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Mn,useValue:Object.assign(Object.assign({},Sh),e)},{provide:Mh,useValue:i,multi:!0},{provide:ls,useValue:!0}]:[{provide:Mn,useValue:Object.assign(Object.assign({},Sh),e)},{provide:Mh,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(v(ls),v(Dn))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[bw,gw,Aw],bw,gw,Aw]}),n})();function Iw(...n){if(1===n.length){const t=n[0];if(ae(t))return Dl(t,null);if(Ye(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Dl(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Dl(n=1===n.length&&ae(n[0])?n[0]:n,null).pipe(at(e=>t(...e)))}return Dl(n,null)}function Dl(n,t){return new Ce(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Bo(n[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let Tw=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(g(jn),g(B))},n.\u0275dir=C({type:n}),n})(),nr=(()=>{class n extends Tw{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275dir=C({type:n,features:[S]}),n})();const An=new M("NgValueAccessor"),jV={provide:An,useExisting:fe(()=>xl),multi:!0},GV=new M("CompositionEventMode");let xl=(()=>{class n extends Tw{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function $V(){const n=Gn()?Gn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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)}}return n.\u0275fac=function(e){return new(e||n)(g(jn),g(B),g(GV,8))},n.\u0275dir=C({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Je("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[ue([jV]),S]}),n})();function Ci(n){return null==n||0===n.length}function kw(n){return null!=n&&"number"==typeof n.length}const dt=new M("NgValidators"),Di=new M("NgAsyncValidators"),UV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zV{static min(t){return function Ow(n){return t=>{if(Ci(t.value)||Ci(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function Rw(n){return t=>{if(Ci(t.value)||Ci(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function Nw(n){return Ci(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Pw(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function Lw(n){return Ci(n.value)||UV.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function Vw(n){return t=>Ci(t.value)||!kw(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function Bw(n){return t=>kw(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function Hw(n){if(!n)return El;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ci(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Ww(t)}static composeAsync(t){return qw(t)}}function El(n){return null}function jw(n){return null!=n}function $w(n){const t=Aa(n)?Bo(n):n;return fy(t),t}function Gw(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Uw(n,t){return t.map(e=>e(n))}function zw(n){return n.map(t=>function WV(n){return!n.validate}(t)?t:e=>t.validate(e))}function Ww(n){if(!n)return null;const t=n.filter(jw);return 0==t.length?null:function(e){return Gw(Uw(e,t))}}function Fh(n){return null!=n?Ww(zw(n)):null}function qw(n){if(!n)return null;const t=n.filter(jw);return 0==t.length?null:function(e){return Iw(Uw(e,t).map($w)).pipe(at(Gw))}}function kh(n){return null!=n?qw(zw(n)):null}function Kw(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Yw(n){return n._rawValidators}function Qw(n){return n._rawAsyncValidators}function Oh(n){return n?Array.isArray(n)?n:[n]:[]}function Sl(n,t){return Array.isArray(n)?n.includes(t):n===t}function Zw(n,t){const e=Oh(t);return Oh(n).forEach(r=>{Sl(e,r)||e.push(r)}),e}function Xw(n,t){return Oh(t).filter(e=>!Sl(n,e))}class Jw{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Fh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=kh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class li extends Jw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Tt extends Jw{get formDirective(){return null}get path(){return null}}let tC=(()=>{class n extends class eC{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(g(li,2))},n.\u0275dir=C({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Nt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[S]}),n})();function Do(n,t){Ph(n,t),t.valueAccessor.writeValue(n.value),function tB(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&iC(n,t)})}(n,t),function iB(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function nB(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&iC(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function eB(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Il(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Fl(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Tl(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Ph(n,t){const e=Yw(n);null!==t.validator?n.setValidators(Kw(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Qw(n);null!==t.asyncValidator?n.setAsyncValidators(Kw(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Tl(t._rawValidators,r),Tl(t._rawAsyncValidators,r)}function Fl(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=Yw(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=Qw(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return Tl(t._rawValidators,i),Tl(t._rawAsyncValidators,i),e}function iC(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function rC(n,t){Ph(n,t)}function oC(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Bh(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const xo="VALID",kl="INVALID",us="PENDING",Eo="DISABLED";function jh(n){return(Ol(n)?n.validators:n)||null}function aC(n){return Array.isArray(n)?Fh(n):n||null}function $h(n,t){return(Ol(t)?t.asyncValidators:n)||null}function lC(n){return Array.isArray(n)?kh(n):n||null}function Ol(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const cC=n=>n instanceof zh,Gh=n=>n instanceof Wh;function uC(n){return cC(n)?n.value:n.getRawValue()}function dC(n,t){const e=Gh(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new k(1e3,"");if(!i[t])throw new k(1001,"")}function hC(n,t){Gh(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new k(1002,"")})}class Uh{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=aC(this._rawValidators),this._composedAsyncValidatorFn=lC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===xo}get invalid(){return this.status===kl}get pending(){return this.status==us}get disabled(){return this.status===Eo}get enabled(){return this.status!==Eo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=aC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=lC(t)}addValidators(t){this.setValidators(Zw(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Zw(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Xw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Xw(t,this._rawAsyncValidators))}hasValidator(t){return Sl(this._rawValidators,t)}hasAsyncValidator(t){return Sl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=us,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Eo,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=xo,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xo||this.status===us)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Eo:xo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=us,this._hasOwnPendingAsyncValidator=!0;const e=$w(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function aB(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=Gh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof cB)(i)&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new tt,this.statusChanges=new tt}_calculateStatus(){return this._allControlsDisabled()?Eo:this.errors?kl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(us)?us:this._anyControlsHaveStatus(kl)?kl:xo}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ol(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class zh extends Uh{constructor(t=null,e,i){super(jh(e),$h(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ol(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Bh(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Bh(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Wh extends Uh{constructor(t,e,i){super(jh(e),$h(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){hC(this,t),Object.keys(t).forEach(i=>{dC(this,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=uC(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class cB extends Uh{constructor(t,e,i){super(jh(e),$h(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){hC(this,t),t.forEach((i,r)=>{dC(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>uC(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const uB={provide:Tt,useExisting:fe(()=>Rl)},So=(()=>Promise.resolve(null))();let Rl=(()=>{class n extends Tt{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new tt,this.form=new Wh({},Fh(e),kh(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){So.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Do(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){So.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){So.then(()=>{const i=this._findContainer(e.path),r=new Wh({});rC(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){So.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){So.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,oC(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(g(dt,10),g(Di,10))},n.\u0275dir=C({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Je("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([uB]),S]}),n})(),_C=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();const qh=new M("NgModelWithFormControlWarning"),_B={provide:li,useExisting:fe(()=>Kh)};let Kh=(()=>{class n extends li{constructor(e,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new tt,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=function Vh(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===xl?e=s:function oB(n){return Object.getPrototypeOf(n.constructor)===nr}(s)?i=s:r=s}),r||i||e||null}(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Il(i,this,!1),Do(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function Lh(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)})(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Il(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(g(dt,10),g(Di,10),g(An,10),g(qh,8))},n.\u0275dir=C({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ue([_B]),S,Ot]}),n})();const vB={provide:Tt,useExisting:fe(()=>Nl)};let Nl=(()=>{class n extends Tt{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new tt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Fl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Do(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Il(e.control||null,e,!1),Bh(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,oC(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Il(i||null,e),cC(r)&&(Do(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);rC(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function rB(n,t){return Fl(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ph(this.form,this),this._oldForm&&Fl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(g(dt,10),g(Di,10))},n.\u0275dir=C({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Je("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([vB]),S,Ot]}),n})(),RC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[_C]]}),n})(),VB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[RC]}),n})(),BB=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:qh,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[RC]}),n})();function PC(n){return t=>t.lift(new qB(n))}class qB{constructor(t){this.total=t}call(t,e){return e.subscribe(new KB(t,this.total))}}class KB extends we{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class QB{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new ZB(t,this.compare,this.keySelector))}}class ZB extends we{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function ef(n,t=gh){return e=>e.lift(new XB(n,t))}class XB{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new JB(t,this.dueTime,this.scheduler))}}class JB extends we{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(eH,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function eH(n){n.debouncedNext()}let LC=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tH=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=si(e);return new Ce(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new ye,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(v(LC))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nH=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new tt,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=fh(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(ef(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(tH),g(B),g(ie))},n.\u0275dir=C({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),VC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[LC]}),n})();function Pl(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const HC="cdk-describedby-message-container",jC="cdk-describedby-message",Ll="cdk-describedby-host";let sH=0;const zn=new Map;let Qt=null,oH=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=tf(i,r);"string"!=typeof i?($C(i),zn.set(s,{messageElement:i,referenceCount:0})):zn.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const s=tf(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const o=zn.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}Qt&&0===Qt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Ll}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Ll);Qt&&this._deleteMessagesContainer(),zn.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");$C(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),Qt.appendChild(r),zn.set(tf(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i;const r=zn.get(e);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),zn.delete(e)}_createMessagesContainer(){if(!Qt){const e=this._document.getElementById(HC);null==e||e.remove(),Qt=this._document.createElement("div"),Qt.id=HC,Qt.style.visibility="hidden",Qt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Qt)}}_deleteMessagesContainer(){Qt&&(Qt.remove(),Qt=null)}_removeCdkDescribedByReferenceIds(e){const i=Pl(e,"aria-describedby").filter(r=>0!=r.indexOf(jC));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=zn.get(i);(function iH(n,t,e){const i=Pl(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ll,""),r.referenceCount++}_removeMessageReference(e,i){const r=zn.get(i);r.referenceCount--,function rH(n,t,e){const r=Pl(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ll)}_isElementDescribedByMessage(e,i){const r=Pl(e,"aria-describedby"),s=zn.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tf(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function $C(n){n.id||(n.id=`${jC}-${sH++}`)}function UC(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function zC(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const hH=new M("cdk-input-modality-detector-options"),fH={ignoreKeys:[18,17,224,91,16]},ds=_o({passive:!0,capture:!0});let pH=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new Wb(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Ji(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(UC(o)?"keyboard":"mouse"),this._mostRecentTarget=Ji(o))},this._onTouchstart=o=>{zC(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ji(o))},this._options=Object.assign(Object.assign({},fH),s),this.modalityDetected=this._modality.pipe(PC(1)),this.modalityChanged=this.modalityDetected.pipe(function YB(n,t){return e=>e.lift(new QB(n,t))}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ds),r.addEventListener("mousedown",this._onMousedown,ds),r.addEventListener("touchstart",this._onTouchstart,ds)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ds),document.removeEventListener("mousedown",this._onMousedown,ds),document.removeEventListener("touchstart",this._onTouchstart,ds))}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(ie),v(q),v(hH,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const mH=new M("cdk-focus-monitor-default-options"),Vl=_o({passive:!0,capture:!0});let qC=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ye,this._rootNodeFocusAndBlurListener=a=>{const l=Ji(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=si(e);if(!this._platform.isBrowser||1!==r.nodeType)return Un(null);const s=function _N(n){if(function yN(){if(null==yh){const n="undefined"!=typeof document?document.head:null;yh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return yh}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new ye,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=si(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=si(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Ji(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Lt),v(pH),v(q,8),v(mH,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const KC="cdk-high-contrast-black-on-white",YC="cdk-high-contrast-white-on-black",nf="cdk-high-contrast-active";let QC=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}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 i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(nf),e.remove(KC),e.remove(YC),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(nf),e.add(KC)):2===i&&(e.add(nf),e.add(YC))}}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yH=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(v(QC))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[pl,VC]]}),n})();class ZC{}const ci="*";function XC(n,t){return{type:7,name:n,definitions:t,options:{}}}function rf(n,t=null){return{type:4,styles:t,timings:n}}function JC(n,t=null){return{type:2,steps:n,options:t}}function Wn(n){return{type:6,styles:n,offset:null}}function sf(n,t,e){return{type:0,name:n,styles:t,options:e}}function vH(n){return{type:5,steps:n}}function af(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function eD(n){Promise.resolve(null).then(n)}class Mo{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){eD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class tD{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?eD(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const ee=!1;function nD(n){return new k(3e3,ee)}function JH(){return"undefined"!=typeof window&&void 0!==window.document}function cf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function xi(n){switch(n.length){case 0:return new Mo;case 1:return n[0];default:return new tD(n)}}function iD(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let m=p,_=u[p];if("offset"!==p)switch(m=t.normalizePropertyName(m,o),_){case"!":_=r[p];break;case ci:_=s[p];break;default:_=t.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function $H(n){return new k(3502,ee)}();return a}function uf(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&df(e,"start",n)));break;case"done":n.onDone(()=>i(e&&df(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&df(e,"destroy",n)))}}function df(n,t,e){const i=e.totalTime,s=hf(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function hf(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Zt(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function rD(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let ff=(n,t)=>!1,sD=(n,t,e)=>[],oD=null;function pf(n){const t=n.parentNode||n.host;return t===oD?null:t}(cf()||"undefined"!=typeof Element)&&(JH()?(oD=(()=>document.documentElement)(),ff=(n,t)=>{for(;t;){if(t===n)return!0;t=pf(t)}return!1}):ff=(n,t)=>n.contains(t),sD=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let rr=null,aD=!1;function lD(n){rr||(rr=function tj(){return"undefined"!=typeof document?document.body:null}()||{},aD=!!rr.style&&"WebkitAppearance"in rr.style);let t=!0;return rr.style&&!function ej(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in rr.style,!t&&aD&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in rr.style)),t}const cD=ff,uD=sD;let dD=(()=>{class n{validateStyleProperty(e){return lD(e)}matchesElement(e,i){return!1}containsElement(e,i){return cD(e,i)}getParentElement(e){return pf(e)}query(e,i,r){return uD(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Mo(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),gf=(()=>{class n{}return n.NOOP=new dD,n})();const mf="ng-enter",Hl="ng-leave",jl="ng-trigger",$l=".ng-trigger",fD="ng-animating",yf=".ng-animating";function sr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:_f(parseFloat(t[1]),t[2])}function _f(n,t){return"s"===t?1e3*n:n}function Gl(n,t,e){return n.hasOwnProperty("duration")?n:function rj(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(nD()),{duration:0,delay:0,easing:""};r=_f(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=_f(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function bH(){return new k(3100,ee)}()),a=!0),s<0&&(t.push(function wH(){return new k(3101,ee)}()),a=!0),a&&t.splice(l,0,nD())}return{duration:r,delay:s,easing:o}}(n,t,e)}function hs(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Ei(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else hs(n,e);return e}function gD(n,t,e){return e?t+":"+e+";":""}function mD(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=gD(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=gD(0,aj(e),n.style[e]));n.setAttribute("style",t)}function qn(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=bf(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),cf()&&mD(n))}function or(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=bf(e);n.style[i]=""}),cf()&&mD(n))}function Ao(n){return Array.isArray(n)?1==n.length?n[0]:JC(n):n}const vf=new RegExp("{{\\s*(.+?)\\s*}}","g");function yD(n){let t=[];if("string"==typeof n){let e;for(;e=vf.exec(n);)t.push(e[1]);vf.lastIndex=0}return t}function Ul(n,t,e){const i=n.toString(),r=i.replace(vf,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function DH(n){return new k(3003,ee)}()),a=""),a.toString()});return r==i?n:r}function zl(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const oj=/-+([a-z0-9])/g;function bf(n){return n.replace(oj,(...t)=>t[1].toUpperCase())}function aj(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Xt(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function xH(n){return new k(3004,ee)}()}}function _D(n,t){return window.getComputedStyle(n)[t]}function fj(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function pj(n,t,e){if(":"==n[0]){const l=function gj(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function VH(n){return new k(3016,ee)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function LH(n){return new k(3015,ee)}()),t;const r=i[1],s=i[2],o=i[3];t.push(vD(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(vD(o,r))}(i,e,t)):e.push(n),e}const Yl=new Set(["true","1"]),Ql=new Set(["false","0"]);function vD(n,t){const e=Yl.has(n)||Ql.has(n),i=Yl.has(t)||Ql.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Yl.has(n):Ql.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Yl.has(t):Ql.has(t)),o&&a}}const mj=new RegExp("s*:selfs*,?","g");function wf(n,t,e,i){return new yj(n).build(t,e,i)}class yj{constructor(t){this._driver=t}build(t,e,i){const r=new bj(e);this._resetContextStyleTimingState(r);const s=Xt(this,Ao(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function SH(){return new k(3006,ee)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function MH(){return new k(3007,ee)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Zl(a)){const l=a;Object.keys(l).forEach(c=>{yD(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(zl(s.values()),e.errors.push(function AH(n,t){return new k(3008,ee)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Xt(this,Ao(t.animation),e);return{type:1,matchers:fj(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ar(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Xt(this,i,e)),options:ar(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=Xt(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:ar(t.options)}}visitAnimate(t,e){const i=function Cj(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Cf(Gl(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Cf(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=Gl(e,t);return Cf(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:Wn({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Wn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==ci?i.push(o):e.errors.push(function IH(n){return new k(3002,ee)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(Zl(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(function TH(n,t,e,i,r){return new k(3010,ee)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function sj(n,t,e){const i=t.params||{},r=yD(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function CH(n){return new k(3001,ee)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function FH(){return new k(3011,ee)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(b=>{const y=this._makeStyleAst(b,e);let E=null!=y.offset?y.offset:function wj(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Zl(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Zl(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(y.styles),x=0;return null!=E&&(s++,x=y.offset=E),l=l||x<0||x>1,a=a||x<c,c=x,o.push(x),y});l&&e.errors.push(function kH(){return new k(3012,ee)}()),a&&e.errors.push(function OH(){return new k(3200,ee)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function RH(){return new k(3202,ee)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,m=e.currentAnimateTimings,_=m.duration;return u.forEach((b,y)=>{const E=h>0?y==f?1:h*y:o[y],x=E*_;e.currentTime=p+m.delay+x,m.duration=x,this._validateStyleAst(b,e),b.offset=E,i.styles.push(b)}),i}visitReference(t,e){return{type:8,animation:Xt(this,Ao(t.animation),e),options:ar(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ar(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ar(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function _j(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(mj,"")),n=n.replace(/@\*/g,$l).replace(/@\w+/g,e=>$l+"-"+e.substr(1)).replace(/:animating/g,yf),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Zt(e.collectedStyles,e.currentQuerySelector,{});const a=Xt(this,Ao(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:ar(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function NH(){return new k(3013,ee)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Gl(t.timings,e.errors,!0);return{type:12,animation:Xt(this,Ao(t.animation),e),timings:i,options:null}}}class bj{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zl(n){return!Array.isArray(n)&&"object"==typeof n}function ar(n){return n?(n=hs(n)).params&&(n.params=function vj(n){return n?hs(n):null}(n.params)):n={},n}function Cf(n,t,e){return{duration:n,delay:t,easing:e}}function Df(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Xl{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ej=new RegExp(":enter","g"),Mj=new RegExp(":leave","g");function xf(n,t,e,i,r,s={},o={},a,l,c=[]){return(new Aj).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class Aj{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new Xl;const d=new Ef(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Xt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const m=h[p];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Df(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?sr(i.duration):null,a=null!=i.delay?sr(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Xt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Jl);const o=sr(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Xt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?sr(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Xt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Gl(e.params?Ul(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?sr(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Jl);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),Xt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Xt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Jl={};class Ef{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ec(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=sr(i.duration)),null!=i.delay&&(r.delay=sr(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Ul(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new Ef(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Jl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Ij(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Ej,"."+this._enterClassName)).replace(Mj,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function PH(n){return new k(3014,ee)}()),a}}class ec{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ec(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ci,this._currentKeyframe[e]=ci}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function Tj(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=ci})):Ei(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Ul(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ci),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ei(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==ci&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?zl(t.values()):[],o=e.size?zl(e.values()):[];if(i){const a=r[0],l=hs(a);a.offset=0,l.offset=1,r=[a,l]}return Df(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Ij extends ec{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=Ei(t[0],!1);l.offset=0,s.push(l);const c=Ei(t[0],!1);c.offset=CD(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Ei(t[d],!1);h.offset=CD((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return Df(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function CD(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Sf{}class Fj extends Sf{normalizePropertyName(t,e){return bf(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(kj[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function EH(n,t){return new k(3005,ee)}())}return o+s}}const kj=(()=>function Oj(n){const t={};return n.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 DD(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Mf={};class xD{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function Rj(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Mf,p=this.buildStyles(i,a&&a.params||Mf,d),m=l&&l.params||Mf,_=this.buildStyles(r,m,d),b=new Set,y=new Map,E=new Map,x="void"===r,F={params:Object.assign(Object.assign({},h),m)},re=u?[]:xf(t,e,this.ast.animation,s,o,p,_,F,c,d);let Se=0;if(re.forEach(ft=>{Se=Math.max(ft.duration+ft.delay,Se)}),d.length)return DD(e,this._triggerName,i,r,x,p,_,[],[],y,E,Se,d);re.forEach(ft=>{const pt=ft.element,Vt=Zt(y,pt,{});ft.preStyleProps.forEach(Tn=>Vt[Tn]=!0);const Ft=Zt(E,pt,{});ft.postStyleProps.forEach(Tn=>Ft[Tn]=!0),pt!==e&&b.add(pt)});const rt=zl(b.values());return DD(e,this._triggerName,i,r,x,p,_,re,rt,y,E,Se)}}class Nj{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=hs(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Ul(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class Lj{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new Nj(r.style,r.options&&r.options.params||{},i)}),ED(this.states,"true","1"),ED(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new xD(t,r,this.states))}),this.fallbackTransition=function Vj(n,t,e){return new xD(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function ED(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const Bj=new Xl;class Hj{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=wf(this._driver,e,i,[]);if(i.length)throw function GH(n){return new k(3503,ee)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=iD(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=xf(this._driver,e,s,mf,Hl,{},{},i,Bj,r),o.forEach(u=>{const d=Zt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function UH(){return new k(3300,ee)}()),o=[]),r.length)throw function zH(n){return new k(3504,ee)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,ci)})});const c=xi(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function WH(n){return new k(3301,ee)}();return e}listen(t,e,i,r){const s=hf(e,"","","");return uf(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const SD="ng-animate-queued",Af="ng-animate-disabled",zj=[],MD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cn="__ng_removed";class If{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function Qj(n){return null!=n?n:null}(i?t.value:t),i){const s=hs(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Io="void",Tf=new If(Io);class qj{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,un(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function qH(n,t){return new k(3302,ee)}();if(null==i||0==i.length)throw function KH(n){return new k(3303,ee)}();if(!function Zj(n){return"start"==n||"done"==n}(i))throw function YH(n,t){return new k(3400,ee)}();const s=Zt(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Zt(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(un(t,jl),un(t,jl+"-"+e),a[e]=Tf),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function QH(n){return new k(3401,ee)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new Ff(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(un(t,jl),un(t,jl+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new If(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Tf),c.value!==Io&&l.value===c.value){if(!function e2(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{or(t,_),qn(t,b)})}return}const h=Zt(this._engine.playersByElement,t,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(un(t,SD),o.onStart(()=>{fs(t,SD)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(t);if(_){let b=_.indexOf(o);b>=0&&_.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,$l,!0);i.forEach(r=>{if(r[cn])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Io,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&xi(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Tf,u=new If(Io),d=new Ff(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[cn];(!s||s===MD)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){un(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=hf(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,uf(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class Kj{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new qj(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,i,r){if(tc(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!tc(e))return;const s=e[cn];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),un(t,Af)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),fs(t,Af))}removeNode(t,e,i,r){if(tc(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[cn]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return tc(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,$l,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,yf,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return xi(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[cn];if(i&&i.setForRemoval){if(t[cn]=MD,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Af))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)un(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?xi(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function ZH(n){return new k(3402,ee)}()}_flushAnimations(t,e){const i=new Xl,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(O=>{u.add(O);const N=this.driver.query(O,".ng-animate-queued",!0);for(let V=0;V<N.length;V++)u.add(N[V])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=TD(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((O,N)=>{const V=mf+m++;p.set(N,V),O.forEach(se=>un(se,V))});const _=[],b=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const N=this.collectedLeaveElements[O],V=N[cn];V&&V.setForRemoval&&(_.push(N),b.add(N),V.hasAnimation?this.driver.query(N,".ng-star-inserted",!0).forEach(se=>b.add(se)):y.add(N))}const E=new Map,x=TD(h,Array.from(b));x.forEach((O,N)=>{const V=Hl+m++;E.set(N,V),O.forEach(se=>un(se,V))}),t.push(()=>{f.forEach((O,N)=>{const V=p.get(N);O.forEach(se=>fs(se,V))}),x.forEach((O,N)=>{const V=E.get(N);O.forEach(se=>fs(se,V))}),_.forEach(O=>{this.processLeaveNode(O)})});const F=[],re=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(V=>{const se=V.player,st=V.element;if(F.push(se),this.collectedEnterElements.length){const kt=st[cn];if(kt&&kt.setForMove){if(kt.previousTriggersValues&&kt.previousTriggersValues.has(V.triggerName)){const cr=kt.previousTriggersValues.get(V.triggerName),Ii=this.statesByElement.get(V.element);Ii&&Ii[V.triggerName]&&(Ii[V.triggerName].value=cr)}return void se.destroy()}}const Kn=!d||!this.driver.containsElement(d,st),Jt=E.get(st),Ai=p.get(st),Pe=this._buildInstruction(V,i,Ai,Jt,Kn);if(Pe.errors&&Pe.errors.length)return void re.push(Pe);if(Kn)return se.onStart(()=>or(st,Pe.fromStyles)),se.onDestroy(()=>qn(st,Pe.toStyles)),void r.push(se);if(V.isFallbackTransition)return se.onStart(()=>or(st,Pe.fromStyles)),se.onDestroy(()=>qn(st,Pe.toStyles)),void r.push(se);const xx=[];Pe.timelines.forEach(kt=>{kt.stretchStartingKeyframe=!0,this.disabledNodes.has(kt.element)||xx.push(kt)}),Pe.timelines=xx,i.append(st,Pe.timelines),o.push({instruction:Pe,player:se,element:st}),Pe.queriedElements.forEach(kt=>Zt(a,kt,[]).push(se)),Pe.preStyleProps.forEach((kt,cr)=>{const Ii=Object.keys(kt);if(Ii.length){let ur=l.get(cr);ur||l.set(cr,ur=new Set),Ii.forEach(Wf=>ur.add(Wf))}}),Pe.postStyleProps.forEach((kt,cr)=>{const Ii=Object.keys(kt);let ur=c.get(cr);ur||c.set(cr,ur=new Set),Ii.forEach(Wf=>ur.add(Wf))})});if(re.length){const O=[];re.forEach(N=>{O.push(function XH(n,t){return new k(3505,ee)}())}),F.forEach(N=>N.destroy()),this.reportError(O)}const Se=new Map,rt=new Map;o.forEach(O=>{const N=O.element;i.has(N)&&(rt.set(N,N),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,Se))}),r.forEach(O=>{const N=O.element;this._getPreviousPlayers(N,!1,O.namespaceId,O.triggerName,null).forEach(se=>{Zt(Se,N,[]).push(se),se.destroy()})});const ft=_.filter(O=>kD(O,l,c)),pt=new Map;ID(pt,this.driver,y,c,ci).forEach(O=>{kD(O,l,c)&&ft.push(O)});const Ft=new Map;f.forEach((O,N)=>{ID(Ft,this.driver,new Set(O),l,"!")}),ft.forEach(O=>{const N=pt.get(O),V=Ft.get(O);pt.set(O,Object.assign(Object.assign({},N),V))});const Tn=[],gs=[],ms={};o.forEach(O=>{const{element:N,player:V,instruction:se}=O;if(i.has(N)){if(u.has(N))return V.onDestroy(()=>qn(N,se.toStyles)),V.disabled=!0,V.overrideTotalTime(se.totalTime),void r.push(V);let st=ms;if(rt.size>1){let Jt=N;const Ai=[];for(;Jt=Jt.parentNode;){const Pe=rt.get(Jt);if(Pe){st=Pe;break}Ai.push(Jt)}Ai.forEach(Pe=>rt.set(Pe,st))}const Kn=this._buildAnimation(V.namespaceId,se,Se,s,Ft,pt);if(V.setRealPlayer(Kn),st===ms)Tn.push(V);else{const Jt=this.playersByElement.get(st);Jt&&Jt.length&&(V.parentPlayer=xi(Jt)),r.push(V)}}else or(N,se.fromStyles),V.onDestroy(()=>qn(N,se.toStyles)),gs.push(V),u.has(N)&&r.push(V)}),gs.forEach(O=>{const N=s.get(O.element);if(N&&N.length){const V=xi(N);O.setRealPlayer(V)}}),r.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O<_.length;O++){const N=_[O],V=N[cn];if(fs(N,Hl),V&&V.hasAnimation)continue;let se=[];if(a.size){let Kn=a.get(N);Kn&&Kn.length&&se.push(...Kn);let Jt=this.driver.query(N,yf,!0);for(let Ai=0;Ai<Jt.length;Ai++){let Pe=a.get(Jt[Ai]);Pe&&Pe.length&&se.push(...Pe)}}const st=se.filter(Kn=>!Kn.destroyed);st.length?Xj(this,N,st):this.processLeaveNode(N)}return _.length=0,Tn.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();const N=this.players.indexOf(O);this.players.splice(N,1)}),O.play()}),Tn}elementContainsData(t,e){let i=!1;const r=e[cn];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Io;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=Zt(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}or(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const _=m[cn];if(_&&_.removedBeforeQueried)return new Mo(p.duration,p.delay);const b=m!==l,y=function Jj(n){const t=[];return FD(n,t),t}((i.get(m)||zj).map(Se=>Se.getRealPlayer())).filter(Se=>!!Se.element&&Se.element===m),E=s.get(m),x=o.get(m),F=iD(0,this._normalizer,0,p.keyframes,E,x),re=this._buildPlayer(p,F,y);if(p.subTimeline&&r&&d.add(m),b){const Se=new Ff(t,a,m);Se.setRealPlayer(re),c.push(Se)}return re});c.forEach(p=>{Zt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function Yj(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>un(p,fD));const f=xi(h);return f.onDestroy(()=>{u.forEach(p=>fs(p,fD)),qn(l,e.toStyles)}),d.forEach(p=>{Zt(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Mo(t.duration,t.delay)}}class Ff{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Mo,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>uf(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Zt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function tc(n){return n&&1===n.nodeType}function AD(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function ID(n,t,e,i,r){const s=[];e.forEach(l=>s.push(AD(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[cn]=Wj,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>AD(l,s[a++])),o}function TD(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function un(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function fs(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function Xj(n,t,e){xi(e).onDone(()=>n.processLeaveNode(t))}function FD(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof tD?FD(i.players,t):t.push(i)}}function kD(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class nc{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Kj(t,e,i),this._timelineEngine=new Hj(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=wf(this._driver,s,l,[]);if(l.length)throw function jH(n,t){return new k(3404,ee)}();a=function Pj(n,t,e){return new Lj(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=rD(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=rD(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let n2=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&qn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(qn(this._element,this._initialStyles),this._endStyles&&(qn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(or(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(or(this._element,this._endStyles),this._endStyles=null),qn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function kf(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];r2(r)&&(t=t||{},t[r]=n[r])}return t}function r2(n){return"display"===n||"position"===n}class OD{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:_D(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class s2{validateStyleProperty(t){return lD(t)}matchesElement(t,e){return!1}containsElement(t,e){return cD(t,e)}getParentElement(t){return pf(t)}query(t,e,i){return uD(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof OD);(function lj(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),e=function cj(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=_D(n,l)})}}return t}(t,e=e.map(h=>Ei(h,!1)),c);const d=function t2(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=kf(t[0]),t.length>1&&(i=kf(t[t.length-1]))):t&&(e=kf(t)),e||i?new n2(n,e,i):null}(t,e);return new OD(t,e,l,d)}}let o2=(()=>{class n extends ZC{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:hn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?JC(e):e;return RD(this._renderer,null,i,"register",[r]),new a2(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(v(io),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class a2 extends class _H{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new l2(this._id,t,e||{},this._renderer)}}class l2{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return RD(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function RD(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const ND="@.disabled";let c2=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PD("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new u2(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(v(io),v(nc),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class PD{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==ND?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class u2 extends PD{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==ND?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function d2(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function h2(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let f2=(()=>{class n extends nc{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(gf),v(Sf))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const To=new M("AnimationModuleType"),LD=[{provide:ZC,useClass:o2},{provide:Sf,useFactory:function p2(){return new Fj}},{provide:nc,useClass:f2},{provide:io,useFactory:function g2(n,t,e){return new c2(n,t,e)},deps:[cl,nc,ie]}],VD=[{provide:gf,useFactory:()=>new s2},{provide:To,useValue:"BrowserAnimations"},...LD],m2=[{provide:gf,useClass:dD},{provide:To,useValue:"NoopAnimations"},...LD];let y2=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?m2:VD}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:VD,imports:[_b]}),n})();const v2=new M("mat-sanity-checks",{providedIn:"root",factory:function _2(){return!0}});let In=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!_h()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(v(QC),v(v2,8),v(q))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[as],as]}),n})();function b2(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ut(t)}}}function Of(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function w2(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ut(t)}}}function C2(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new ye,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}let HD=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class x2{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jD={enterDuration:225,exitDuration:150},Rf=_o({passive:!0}),$D=["mousedown","touchstart"],GD=["mouseup","mouseleave","touchend","touchcancel"];class S2{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=si(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},jD),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function A2(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function M2(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new x2(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},jD),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=si(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($D))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(GD),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=UC(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!zC(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,Rf)})})}_removeTriggerEvents(){this._triggerElement&&($D.forEach(t=>{this._triggerElement.removeEventListener(t,this,Rf)}),this._pointerUpEventsRegistered&&GD.forEach(t=>{this._triggerElement.removeEventListener(t,this,Rf)}))}}const I2=new M("mat-ripple-global-options");let UD=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new S2(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(ie),g(Lt),g(I2,8),g(To,8))},n.\u0275dir=C({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),T2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[In,pl],In]}),n})();const F2=["mat-button",""],k2=["*"],R2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],N2=Of(b2(w2(class{constructor(n){this._elementRef=n}})));let P2=(()=>{class n extends N2{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of R2)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(qC),g(To,8))},n.\u0275cmp=ki({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&ts(UD,5),2&e){let r;Mt(r=At())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(xt("disabled",i.disabled||null),Nt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[S],attrs:F2,ngContentSelectors:k2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Ia(),ge(0,"span",0),vn(1),xe(),Gi(2,"span",1)(3,"span",2)),2&e&&(Me(2),Nt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),be("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[UD],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),L2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[T2,In],In]}),n})();function Nf(...n){return function V2(){return np(1)}()(Un(...n))}function rc(...n){const t=n[n.length-1];return hr(t)?(n.pop(),e=>Nf(n,e,t)):e=>Nf(n,e)}const B2=["connectionContainer"],H2=["inputContainer"],j2=["label"];function $2(n,t){1&n&&(Qs(0),ge(1,"div",14),Gi(2,"div",15)(3,"div",16)(4,"div",17),xe(),ge(5,"div",18),Gi(6,"div",15)(7,"div",16)(8,"div",17),xe(),Zs())}function G2(n,t){if(1&n){const e=Ma();ge(0,"div",19),Je("cdkObserveContent",function(){return Yo(e),Rt().updateOutlineGap()}),vn(1,1),xe()}2&n&&be("cdkObserveContentDisabled","outline"!=Rt().appearance)}function U2(n,t){if(1&n&&(Qs(0),vn(1,2),ge(2,"span"),ti(3),xe(),Zs()),2&n){const e=Rt(2);Me(3),Ui(e._control.placeholder)}}function z2(n,t){1&n&&vn(0,3,["*ngSwitchCase","true"])}function W2(n,t){1&n&&(ge(0,"span",23),ti(1," *"),xe())}function q2(n,t){if(1&n){const e=Ma();ge(0,"label",20,21),Je("cdkObserveContent",function(){return Yo(e),Rt().updateOutlineGap()}),Et(2,U2,4,1,"ng-container",12),Et(3,z2,1,0,"ng-content",12),Et(4,W2,2,0,"span",22),xe()}if(2&n){const e=Rt();Nt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),be("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),xt("for",e._control.id)("aria-owns",e._control.id),Me(2),be("ngSwitchCase",!1),Me(1),be("ngSwitchCase",!0),Me(1),be("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function K2(n,t){1&n&&(ge(0,"div",24),vn(1,4),xe())}function Y2(n,t){if(1&n&&(ge(0,"div",25),Gi(1,"span",26),xe()),2&n){const e=Rt();Me(1),Nt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Q2(n,t){1&n&&(ge(0,"div"),vn(1,5),xe()),2&n&&be("@transitionMessages",Rt()._subscriptAnimationState)}function Z2(n,t){if(1&n&&(ge(0,"div",30),ti(1),xe()),2&n){const e=Rt(2);be("id",e._hintLabelId),Me(1),Ui(e.hintLabel)}}function X2(n,t){if(1&n&&(ge(0,"div",27),Et(1,Z2,2,2,"div",28),vn(2,6),Gi(3,"div",29),vn(4,7),xe()),2&n){const e=Rt();be("@transitionMessages",e._subscriptAnimationState),Me(1),be("ngIf",e.hintLabel)}}const J2=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],e$=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let t$=0;const zD=new M("MatError");let n$=(()=>{class n{constructor(e,i){this.id="mat-error-"+t$++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Ts("aria-live"),g(B))},n.\u0275dir=C({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&xt("id",i.id)},inputs:{id:"id"},features:[ue([{provide:zD,useExisting:n}])]}),n})();const i$={transitionMessages:XC("transitionMessages",[sf("enter",Wn({opacity:1,transform:"translateY(0%)"})),af("void => enter",[Wn({opacity:0,transform:"translateY(-5px)"}),rf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Pf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n}),n})(),r$=0;const WD=new M("MatHint");let s$=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+r$++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,i){2&e&&(xt("id",i.id)("align",null),Nt("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[ue([{provide:WD,useExisting:n}])]}),n})(),Lf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-label"]]}),n})(),o$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-placeholder"]]}),n})();const a$=new M("MatPrefix"),qD=new M("MatSuffix");let l$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSuffix",""]],features:[ue([{provide:qD,useExisting:n}])]}),n})(),KD=0;const u$=Of(class{constructor(n){this._elementRef=n}},"primary"),d$=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS"),QD=new M("MatFormField");let h$=(()=>{class n extends u${constructor(e,i,r,s,o,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ye,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+KD++,this._labelId="mat-form-field-label-"+KD++,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 i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ut(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(rc(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),fr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(rc(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(rc(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(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 i=this._control?this._control.ngControl:null;return i&&i[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,ph(this._label.nativeElement,"transitionend").pipe(bo(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 i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${s}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=e.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let m=0;m<h.length;m++)p+=h[m].offsetWidth;o=Math.abs(f-d)-5,a=p>0?.75*p+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${o}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}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 i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(is),g(vo,8),g(d$,8),g(Lt),g(ie),g(To,8))},n.\u0275cmp=ki({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&($n(r,Pf,5),$n(r,Pf,7),$n(r,Lf,5),$n(r,Lf,7),$n(r,o$,5),$n(r,zD,5),$n(r,WD,5),$n(r,a$,5),$n(r,qD,5)),2&e){let s;Mt(s=At())&&(i._controlNonStatic=s.first),Mt(s=At())&&(i._controlStatic=s.first),Mt(s=At())&&(i._labelChildNonStatic=s.first),Mt(s=At())&&(i._labelChildStatic=s.first),Mt(s=At())&&(i._placeholderChild=s.first),Mt(s=At())&&(i._errorChildren=s),Mt(s=At())&&(i._hintChildren=s),Mt(s=At())&&(i._prefixChildren=s),Mt(s=At())&&(i._suffixChildren=s)}},viewQuery:function(e,i){if(1&e&&(ts(B2,7),ts(H2,5),ts(j2,5)),2&e){let r;Mt(r=At())&&(i._connectionContainerRef=r.first),Mt(r=At())&&(i._inputContainerRef=r.first),Mt(r=At())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&Nt("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[ue([{provide:QD,useExisting:n}]),S],ngContentSelectors:e$,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(Ia(J2),ge(0,"div",0)(1,"div",1,2),Je("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Et(3,$2,9,0,"ng-container",3),Et(4,G2,2,1,"div",4),ge(5,"div",5,6),vn(7),ge(8,"span",7),Et(9,q2,5,16,"label",8),xe()(),Et(10,K2,2,0,"div",9),xe(),Et(11,Y2,2,4,"div",10),ge(12,"div",11),Et(13,Q2,2,1,"div",12),Et(14,X2,5,2,"div",13),xe()()),2&e&&(Me(3),be("ngIf","outline"==i.appearance),Me(1),be("ngIf",i._prefixChildren.length),Me(5),be("ngIf",i._hasFloatingLabel()),Me(1),be("ngIf",i._suffixChildren.length),Me(1),be("ngIf","outline"!=i.appearance),Me(1),be("ngSwitch",i._getDisplayedMessages()),Me(1),be("ngSwitchCase","error"),Me(1),be("ngSwitchCase","hint"))},directives:[Jd,nH,rl,ib],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}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.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}.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,.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:not([type=password])::-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;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-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{-webkit-user-select:none;-moz-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{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}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::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.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)}.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}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.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"],encapsulation:2,data:{animation:[i$.transitionMessages]},changeDetection:0}),n})(),Vf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[oh,In,VC],In]}),n})();class p${constructor(t){this.selector=t}call(t,e){return e.subscribe(new g$(t,this.selector,this.caught))}}class g$ extends vs{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new _s(this);this.add(i);const r=bs(e,i);r!==i&&this.add(r)}}}class y${constructor(t){this.callback=t}call(t,e){return e.subscribe(new _$(t,this.callback))}}class _$ extends we{constructor(t,e){super(t),this.add(new Q(e))}}class b${}class Si{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Si;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Si?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class w${encodeKey(t){return ZD(t)}encodeValue(t){return ZD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const D$=/%(\d[a-f0-9])/gi,x$={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ZD(n){return encodeURIComponent(n).replace(D$,(t,e)=>{var i;return null!==(i=x$[e])&&void 0!==i?i:t})}function XD(n){return`${n}`}class Mi{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new w$,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function C$(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Mi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(XD(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(XD(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class E${constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function JD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function ex(n){return"undefined"!=typeof Blob&&n instanceof Blob}function tx(n){return"undefined"!=typeof FormData&&n instanceof FormData}class ko{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function S$(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Si),this.context||(this.context=new E$),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Mi,this.urlWithParams=e}serializeBody(){return null===this.body?null:JD(this.body)||ex(this.body)||tx(this.body)||function M$(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Mi?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||tx(this.body)?null:ex(this.body)?this.body.type||null:JD(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Mi?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new ko(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ht=(()=>((ht=ht||{})[ht.Sent=0]="Sent",ht[ht.UploadProgress=1]="UploadProgress",ht[ht.ResponseHeader=2]="ResponseHeader",ht[ht.DownloadProgress=3]="DownloadProgress",ht[ht.Response=4]="Response",ht[ht.User=5]="User",ht))();class Bf extends class A${constructor(t,e=200,i="OK"){this.headers=t.headers||new Si,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=ht.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Bf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Hf(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let ix=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof ko)s=e;else{let l,c;l=r.headers instanceof Si?r.headers:new Si(r.headers),r.params&&(c=r.params instanceof Mi?r.params:new Mi({fromObject:r.params})),s=new ko(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Un(s).pipe(function v$(n,t){return dc(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof ko||"events"===r.observe)return o;const a=o.pipe(ss(l=>l instanceof Bf));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Mi).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Hf(r,i))}post(e,i,r={}){return this.request("POST",e,Hf(r,i))}put(e,i,r={}){return this.request("PUT",e,Hf(r,i))}}return n.\u0275fac=function(e){return new(e||n)(v(b$))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const T$=["*"];let sc;function Oo(n){var t;return(null===(t=function F$(){if(void 0===sc&&(sc=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(sc=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return sc}())||void 0===t?void 0:t.createHTML(n))||n}function rx(n){return Error(`Unable to find icon with the name "${n}"`)}function sx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ox(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class lr{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Ro=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new lr(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(ce.HTML,r);if(!o)throw ox(r);const a=Oo(o);return this._addSvgIconConfig(e,i,new lr("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new lr(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(ce.HTML,i);if(!s)throw ox(i);const o=Oo(s);return this._addSvgIconSetConfig(e,new lr("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(ce.RESOURCE_URL,e);if(!i)throw sx(e);const r=this._cachedIconsByUrl.get(i);return r?Un(oc(r)):this._loadSvgIconFromConfig(new lr(e,null)).pipe(bl(s=>this._cachedIconsByUrl.set(i,s)),at(s=>oc(s)))}getNamedSvgIcon(e,i=""){const r=ax(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):Ub(rx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Un(oc(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(at(i=>oc(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);if(r)return Un(r);const s=i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(function f$(n){return function(e){const i=new p$(n),r=e.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ce.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Un(null)})));return Iw(s).pipe(at(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw rx(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(bl(i=>e.svgText=i),at(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Un(null):this._fetchIcon(e).pipe(bl(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(Oo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Oo("<svg></svg>")),r=e.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function k$(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(ce.RESOURCE_URL,r);if(!a)throw sx(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(at(u=>Oo(u)),function m$(n){return t=>t.lift(new y$(n))}(()=>this._inProgressUrlFetches.delete(a)),rp());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(ax(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return R$(s)?new lr(s.url,null,s.options):new lr(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(v(ix,8),v(ul),v(q,8),v(mi))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oc(n){return n.cloneNode(!0)}function ax(n,t){return n+":"+t}function R$(n){return!(!n.url||!n.options)}const N$=Of(class{constructor(n){this._elementRef=n}}),P$=new M("mat-icon-location",{providedIn:"root",factory:function L$(){const n=Ir(q),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),lx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V$=lx.map(n=>`[${n}]`).join(", "),B$=/^url\(['"]?#(.*?)['"]?\)$/;let H$=(()=>{class n extends N${constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Q.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ut(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(V$),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)lx.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(B$):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(bo(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(Ro),Ts("aria-hidden"),g(P$),g(mi))},n.\u0275cmp=ki({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(xt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Nt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[S],ngContentSelectors:T$,decls:1,vars:0,template:function(e,i){1&e&&(Ia(),vn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),j$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[In],In]}),n})();const cx=_o({passive:!0});let $$=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Rb;const i=si(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new ye,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,cx),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,cx)}}),s}stopMonitoring(e){const i=si(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[pl]]}),n})();const G$=new M("MAT_INPUT_VALUE_ACCESSOR"),U$=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let z$=0;const W$=C2(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let dx=(()=>{class n extends W${constructor(e,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+z$++,this.focused=!1,this.stateChanges=new ye,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>Ib().has(p));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",p=>{const m=p.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ut(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(zV.required))&&void 0!==s&&s}set required(e){this._required=ut(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ib().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ut(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){U$.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(Lt),g(li,10),g(Rl,8),g(Nl,8),g(HD),g(G$,10),g($$),g(ie),g(QD,8))},n.\u0275dir=C({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&Je("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(od("disabled",i.disabled)("required",i.required),xt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Nt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[ue([{provide:Pf,useExisting:n}]),S,Ot]}),n})(),q$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[HD],imports:[[ux,Vf,In],ux,Vf]}),n})();class K$ extends we{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Y$ extends we{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Q$(n,t,e,i,r=new Y$(n,e,i)){if(!r.closed)return t instanceof Ce?t.subscribe(r):cc(t)(r)}const hx={};class X${constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new J$(t,this.resultSelector))}}class J$ extends K${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(hx),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(Q$(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===hx?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const fx=new Set;let ps,eG=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function tG(n){if(!fx.has(n))try{ps||(ps=document.createElement("style"),ps.setAttribute("type","text/css"),document.head.appendChild(ps)),ps.sheet&&(ps.sheet.insertRule(`@media ${n} {body{ }}`,0),fx.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(v(Lt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nG(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let iG=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new ye}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return px(dl(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=function Z$(...n){let t,e;return hr(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&ae(n[0])&&(n=n[0]),hc(n,e).lift(new X$(t))}(px(dl(e)).map(o=>this._registerQuery(o).observable));return s=Nf(s.pipe(bo(1)),s.pipe(PC(1),ef(0))),s.pipe(at(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Ce(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(rc(i),at(({matches:o})=>({query:e,matches:o})),Ke(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(v(eG),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function px(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const sG={tooltipState:XC("state",[sf("initial, void, hidden",Wn({opacity:0,transform:"scale(0)"})),sf("visible",Wn({transform:"scale(1)"})),af("* => visible",rf("200ms cubic-bezier(0, 0, 0.2, 1)",vH([Wn({opacity:0,transform:"scale(0)",offset:0}),Wn({opacity:.5,transform:"scale(0.99)",offset:.5}),Wn({opacity:1,transform:"scale(1)",offset:1})]))),af("* => hidden",rf("100ms cubic-bezier(0, 0, 0.2, 1)",Wn({opacity:0})))])},gx="tooltip-panel",mx=_o({passive:!0}),yx=new M("mat-tooltip-scroll-strategy"),cG={provide:yx,deps:[ml],useFactory:function lG(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},uG=new M("mat-tooltip-default-options",{providedIn:"root",factory:function dG(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let hG=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ye,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=fh(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=fh(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,mx)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Ob(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${gx}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!function WB(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(bo(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${gx}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,mx)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){!function uy(){throw new Error("invalid")}()},n.\u0275dir=C({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),fG=(()=>{class n extends hG{constructor(e,i,r,s,o,a,l,c,u,d,h,f){super(e,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=gG}}return n.\u0275fac=function(e){return new(e||n)(g(ml),g(B),g(Tb),g(Cn),g(ie),g(Lt),g(oH),g(qC),g(yx),g(vo,8),g(uG,8),g(q))},n.\u0275dir=C({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[S]}),n})(),pG=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ye}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(g(is))},n.\u0275dir=C({type:n}),n})(),gG=(()=>{class n extends pG{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(g(is),g(iG))},n.\u0275cmp=ki({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&rd("zoom","visible"===i._visibility?1:null)},features:[S],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(ge(0,"div",0),Je("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function $_(n,t){const e=te();let i;const r=n+20;e.firstCreatePass?(i=function ZT(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=Li(i.type)),o=ui(g);try{const a=ra(!1),l=s();return ra(a),function mA(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,w(),r,l),l}finally{ui(o)}}(1,"async"),ti(2),xe()),2&e){let r;Nt("mat-tooltip-handset",null==(r=G_(1,5,i._isHandset))?null:r.matches),be("ngClass",i.tooltipClass)("@state",i._visibility),Me(2),Ui(i.message)}},directives:[tl],pipes:[sb],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[sG.tooltipState]},changeDetection:0}),n})(),mG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[cG],imports:[[yH,oh,JN,In],In,vh]}),n})(),yG=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",i=this._document.querySelectorAll(`.${e}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(e),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();"function"==typeof SuppressedError&&SuppressedError;const ac=new M("config"),bx=new M("NEW_CONFIG"),wx=new M("INITIAL_CONFIG"),jG={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},$G=["Hh:m0:s0","Hh:m0","m0:s0"],GG=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let zf=(()=>{class n{constructor(e){this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(i,r,s,o)=>{const a=i.split(s),l=a.length>1?`${s}${a[1]}`:"";let c=a[0];const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,u.length)}`:c.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(c);)c=c.replace(d,"$1"+r+"$2");return void 0===o?c+l:0===o?c:c+l.substr(0,o+1)},this.percentage=i=>Number(i)>=0&&Number(i)<=100,this.getPrecision=i=>{const r=i.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=i=>{var r,s,o;for(let a=(null===(r=this.suffix)||void 0===r?void 0:r.length)-1;a>=0;a--){const l=this.suffix.substr(a,null===(s=this.suffix)||void 0===s?void 0:s.length);if(i.includes(l)&&(a-1<0||!i.includes(this.suffix.substr(a-1,null===(o=this.suffix)||void 0===o?void 0:o.length))))return i.replace(l,"")}return i},this.checkInputPrecision=(i,r,s)=>{if(r<1/0){const o=new RegExp(this._charToRegExpExpression(s)+`\\d{${r}}.*$`),a=i.match(o);a&&a[0].length-1>r&&(i=i.substring(0,i.length-(a[0].length-1-r))),0===r&&i.endsWith(s)&&(i=i.substring(0,i.length-1))}return i},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(e,i){const[r,s]=i;return this.customPattern=s,this.applyMask(e,r)}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(null==e||void 0===i)return"";let l=0,c="",u=!1,d=!1,h=1,f=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e));const p=e.toString().split("");"IP"===i&&(this.ipError=p.filter(x=>"."===x).length<3&&p.length<7,i="099.099.099.099");const m=[];for(let x=0;x<e.length;x++)e[x].match("\\d")&&m.push(e[x]);if("CPF_CNPJ"===i&&(this.cpfCnpjError=11!==m.length&&14!==m.length,i=m.length>11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){e=this._stripToDecimal(e);const x=this.getPrecision(i);e=this.checkInputPrecision(e,x,this.decimalMarker)}e.indexOf(".")>0&&!this.percentage(e.substring(0,e.indexOf(".")))&&(e=`${e.substring(0,e.indexOf(".")-1)}${e.substring(e.indexOf("."),e.length)}`),c=this.percentage(e)?e:e.substring(0,e.length-1)}else if(i.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&e[1]!==this.decimalMarker?e.slice(1,e.length):e;const x=this._charToRegExpExpression(this.thousandSeparator),F=this._charToRegExpExpression(this.decimalMarker),re='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(x,"").replace(F,""),Se=new RegExp("["+re+"]");e.match(Se)&&(e=e.substring(0,e.length-1));const rt=this.getPrecision(i),ft=(e=this.checkInputPrecision(e,rt,this.decimalMarker)).replace(new RegExp(x,"g"),"");c=this._formatWithSeparators(ft,this.thousandSeparator,this.decimalMarker,rt);const pt=c.indexOf(",")-e.indexOf(","),Vt=c.length-e.length;if(Vt>0&&","!==c[r]){d=!0;let Ft=0;do{this._shift.add(r+Ft),Ft++}while(Ft<Vt)}else 0!==pt&&r>0&&!(c.indexOf(",")>=r&&r>3)||!(c.indexOf(".")>=r&&r>3)&&Vt<=0?(this._shift.clear(),d=!0,h=Vt,this._shift.add(r+=Vt)):this._shift.clear()}else for(let x=0,F=p[0];x<p.length&&l!==i.length;x++,F=p[x])if(this._checkSymbolMask(F,i[l])&&"?"===i[l+1])c+=F,l+=2;else if("*"===i[l+1]&&u&&this._checkSymbolMask(F,i[l+2]))c+=F,l+=3,u=!1;else if(this._checkSymbolMask(F,i[l])&&"*"===i[l+1])c+=F,u=!0;else if("?"===i[l+1]&&this._checkSymbolMask(F,i[l+2]))c+=F,l+=3;else if(this._checkSymbolMask(F,i[l])){if("H"===i[l]&&Number(F)>2){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&"2"===c&&Number(F)>3){l+=1,x--;continue}if("m"===i[l]&&Number(F)>5){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}if("s"===i[l]&&Number(F)>5){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}const re=31;if("d"===i[l]&&(Number(F)>3&&this.leadZeroDateTime||Number(e.slice(l,l+2))>re||"/"===e[l+1])){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}if("M"===i[l]){const rt=0===l&&(Number(F)>2||Number(e.slice(l,l+2))>12||"/"===e[l+1]),ft=e.slice(l-3,l-1).includes("/")&&("/"===e[l-2]&&Number(e.slice(l-1,l+1))>12&&"/"!==e[l]||"/"===e[l]||"/"===e[l-3]&&Number(e.slice(l-2,l))>12&&"/"!==e[l-1]||"/"===e[l-1]),pt=Number(e.slice(l-3,l-1))<=re&&!e.slice(l-3,l-1).includes("/")&&"/"===e[l-1]&&(Number(e.slice(l,l+2))>12||"/"===e[l+1]),Vt=Number(e.slice(l-3,l-1))>re&&!e.slice(l-3,l-1).includes("/")&&!e.slice(l-2,l).includes("/")&&Number(e.slice(l-2,l))>12,Ft=Number(e.slice(l-3,l-1))<=re&&!e.slice(l-3,l-1).includes("/")&&"/"!==e[l-1]&&Number(e.slice(l-1,l+1))>12;if(Number(F)>1&&this.leadZeroDateTime||rt||ft||pt||Vt||Ft){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}}c+=F,l++}else-1!==this.maskSpecialCharacters.indexOf(i[l])?(c+=i[l],l++,this._shiftStep(i,l,p.length),x--):this.maskSpecialCharacters.indexOf(F)>-1&&this.maskAvailablePatterns[i[l]]&&this.maskAvailablePatterns[i[l]].optional?(!!p[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&(c+=p[l]),l++,x--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(F)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(F)===this.maskExpression[l+2]&&u?(l+=3,c+=F):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(F)<0&&F!==this.placeHolderCharacter&&(f=!0);c.length+1===i.length&&-1!==this.maskSpecialCharacters.indexOf(i[i.length-1])&&(c+=i[i.length-1]);let _=r+1;for(;this._shift.has(_);)h++,_++;let b=s?l:this._shift.has(r)?h:0;f&&b--,a(b,d),h<0&&this._shift.clear();let y=!1;o&&(y=p.every(x=>this.maskSpecialCharacters.includes(x)));let E=`${this.prefix}${y?"":c}${this.suffix}`;return 0===c.length&&(E=`${this.prefix}${c}`),E}_findSpecialChar(e){return this.maskSpecialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[i]&&this.maskAvailablePatterns[i].pattern&&this.maskAvailablePatterns[i].pattern.test(e)}_stripToDecimal(e){return e.split("").filter((i,r)=>i.match("^-?\\d")||i.match("\\s")||"."===i||","===i||"-"===i&&0===r&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?"\\"+e:e)}_shiftStep(e,i,r){const s=/[*?]/g.test(e.slice(0,i))?r:i;this._shift.add(s+this.prefix.length||0)}}return n.\u0275fac=function(e){return new(e||n)(v(ac))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),Cx=(()=>{class n extends zf{constructor(e,i,r,s){super(i),this.document=e,this._config=i,this._elementRef=r,this._renderer=s,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=o=>{}}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(!i)return e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=e&&"number"==typeof this.selStart?e[this.selStart]:"";let c="";if(void 0!==this.hiddenInput){let f=this.actualValue.split("");""!==e&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>f.length?f.splice(this.selStart,0,l):e.length<f.length&&(f.length-e.length==1?f.splice(this.selStart-1,1):f.splice(this.selStart,this.selEnd-this.selStart))):f=[],c=this.actualValue.length?this.shiftTypedSymbols(f.join("")):e}c=Boolean(c)&&c.length?c:e;const u=super.applyMask(c,i,r,s,o,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(f=>f!==this.decimalMarker)),this.formControlResult(u),!this.showMaskTyped)return this.hiddenInput&&u&&u.length?this.hideInput(u,this.maskExpression):u;const d=u.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const f=this._numberSkipedSymbols(u);return u+h.slice(d+f)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+h:u+h.slice(d)}_numberSkipedSymbols(e){const i=/(^|\D)(\d\D)/g;let r=i.exec(e),s=0;for(;null!=r;)s+=1,r=i.exec(e);return s}applyValueChanges(e=0,i,r,s=(()=>{})){const o=this._elementRef.nativeElement;o.value=this.applyMask(o.value,this.maskExpression,e,i,r,s),o!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(e,i){return e.split("").map((r,s)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[i[s]]&&this.maskAvailablePatterns[i[s]].symbol?this.maskAvailablePatterns[i[s]].symbol:r).join("")}getActualValue(e){const i=e.split("").filter((r,s)=>this._checkSymbolMask(r,this.maskExpression[s])||this.maskSpecialCharacters.includes(this.maskExpression[s])&&r===this.maskExpression[s]);return i.join("")===e?i.join(""):e}shiftTypedSymbols(e){let i="";return(e&&e.split("").map((s,o)=>{if(this.maskSpecialCharacters.includes(e[o+1])&&e[o+1]!==this.maskExpression[o+1])return i=s,e[o+1];if(i.length){const a=i;return i="",a}return s})||[]).join("")}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(e.value,this.maskExpression))}set formElementProperty([e,i]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,e,i))}checkSpecialCharAmount(e){return e.split("").filter(r=>this._findSpecialChar(r)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let r=0;r<e.length;r++)e[r].match("\\d")&&i.push(e[r]);return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,r=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===e)return i;const s=[];for(let o=0;o<e.length;o++)e[o].match("\\d")&&s.push(e[o]);return s.length<=3?i.slice(s.length,i.length):s.length>3&&s.length<=6?i.slice(s.length+1,i.length):s.length>6&&s.length<=9?i.slice(s.length+2,i.length):s.length>9&&s.length<11?i.slice(s.length+3,i.length):11===s.length?"":12===s.length?r.slice(17===e.length?16:15,r.length):s.length>12&&s.length<=14?r.slice(s.length+4,r.length):""}formControlResult(e){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(e)):this._removeSuffix(e)))}_toNumber(e){if(!this.isNumberValue)return e;const i=Number(e);return Number.isNaN(i)?e:i}_removeMask(e,i){return e&&e.replace(this._regExpForRemove(i),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_checkSymbols(e){if(""===e)return e;const i=this._retrieveSeparatorPrecision(this.maskExpression);let r=this._retrieveSeparatorValue(e);return"."!==this.decimalMarker&&(r=r.replace(this.decimalMarker,".")),this.isNumberValue?i?e===this.decimalMarker?null:this._checkPrecision(this.maskExpression,r):Number(r):r}_retrieveSeparatorPrecision(e){const i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){return e.indexOf("2")>0?Number(i).toFixed(2):Number(i)}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(ac),v(B),v(jn))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),UG=(()=>{class n{constructor(e,i,r){this.document=e,this._maskService=i,this._config=r,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=s=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:i,specialCharacters:r,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:h,placeHolderCharacter:f,shownMaskExpression:p,showTemplate:m,clearIfNotMatch:_,validation:b,separatorLimit:y,allowNegativeNumbers:E,leadZeroDateTime:x}=e;if(i&&(this._maskValue=i.currentValue||"",i.currentValue&&i.currentValue.split("||").length>1&&(this._maskExpressionArray=i.currentValue.split("||").sort((F,re)=>F.length-re.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),r){if(!r.currentValue||!Array.isArray(r.currentValue))return;this._maskService.maskSpecialCharacters=r.currentValue||[]}s&&s.currentValue&&(this._maskService.maskAvailablePatterns=s.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),f&&(this._maskService.placeHolderCharacter=f.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),m&&(this._maskService.showTemplate=m.currentValue),_&&(this._maskService.clearIfNotMatch=_.currentValue),b&&(this._maskService.validation=b.currentValue),y&&(this._maskService.separatorLimit=y.currentValue),E&&(this._maskService.allowNegativeNumbers=E.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(F=>"-"!==F))),x&&(this._maskService.leadZeroDateTime=x.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||GG.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if($G.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let i=0;for(const r in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[r].optional&&!0===this._maskService.maskAvailablePatterns[r].optional&&(this._maskValue.indexOf(r)!==this._maskValue.lastIndexOf(r)?i+=this._maskValue.split("").filter(o=>o===r).join("").length:-1!==this._maskValue.indexOf(r)&&i++,-1!==this._maskValue.indexOf(r)&&e.toString().length>=this._maskValue.indexOf(r)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const r=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-i:this._maskValue.length-i;if(e.toString().length<r)return this._createValidationError(e)}}return null}onPaste(){this._justPasted=!0}onInput(e){const i=e.target;if(this._inputValue=i.value,this._setMask(),!this._maskValue)return void this.onChange(i.value);const r=1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart;let s=0,o=!1;if(this._maskService.applyValueChanges(r,this._justPasted,"Backspace"===this._code,(l,c)=>{this._justPasted=!1,s=l,o=c}),this.document.activeElement!==i)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let a=this._position?this._inputValue.length+r+s:r+("Backspace"!==this._code||o?s:0);a>this._getActualInputLength()&&(a=this._getActualInputLength()),i.setSelectionRange(a,a),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(e){if(!this._maskValue)return;const i=e.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(0,0)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=i.value&&i.value!==this._maskService.prefix?i.value:this._maskService.prefix+this._maskService.maskIsShown;i.value!==o&&(i.value=o),(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length?i.selectionStart=this._maskService.prefix.length:i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){var i;if(!this._maskValue)return;this._code=e.code?e.code:e.key;const r=e.target;if(this._inputValue=r.value,this._setMask(),38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode||46===e.keyCode){if(8===e.keyCode&&0===r.value.length&&(r.selectionStart=r.selectionEnd),8===e.keyCode&&0!==r.selectionStart)if(this.specialCharacters=(null===(i=this.specialCharacters)||void 0===i?void 0:i.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes(this._inputValue[r.selectionStart-1].toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionStart-1);this.suffixCheckOnPressDelete(e.keyCode,r)}this.suffixCheckOnPressDelete(e.keyCode,r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const s=r.selectionStart;8===e.keyCode&&!r.readOnly&&0===s&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===e.keyCode&&!0===e.ctrlKey||65===e.keyCode&&!0===e.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}writeValue(e){return function _x(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),void 0===e&&(e=""),"number"==typeof e&&(e=String(e),e="."!==this.decimalMarker?e.replace(".",this.decimalMarker):e,this._maskService.isNumberValue=!0),e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(e,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",e],this._inputValue=e})}registerOnChange(e){this.onChange=e,this._maskService.onChange=this.onChange}registerOnTouched(e){this.onTouch=e}suffixCheckOnPressDelete(e,i){46===e&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===e&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===i.selectionStart&&i.setSelectionRange(i.selectionStart-1,i.selectionStart-1))}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((i,r,s)=>{if(this._start="{"===r?s:this._start,"}"!==r)return this._maskService._findSpecialChar(r)?i+r:i;this._end=s;const o=Number(e.slice(this._start+1,this._end));return i+new Array(o+1).join(e[this._start-1])},"")||e}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const i=this._maskValue.split("").filter(r=>":"!==r).length;return null===e||0===e.length?null:0==+e[e.length-1]&&e.length<i||e.length<=i-2?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(e=>{const i=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(e).length;if(this._inputValue&&i)return this._maskValue=e,this.maskExpression=e,this._maskService.maskExpression=e,i;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return n.\u0275fac=function(e){return new(e||n)(g(q),g(Cx),g(ac))},n.\u0275dir=C({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,i){1&e&&Je("paste",function(){return i.onPaste()})("input",function(s){return i.onInput(s)})("blur",function(){return i.onBlur()})("click",function(s){return i.onFocus(s)})("keydown",function(s){return i.onKeyDown(s)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[ue([{provide:An,useExisting:fe(()=>n),multi:!0},{provide:dt,useExisting:fe(()=>n),multi:!0},Cx]),Ot]}),n})(),zG=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:bx,useValue:e},{provide:wx,useValue:jG},{provide:ac,useFactory:WG,deps:[wx,bx]},zf]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();function WG(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}const Dx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Dx.KeyboardEvent||(Dx.KeyboardEvent=function(n,t){});let qG=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new zh(""),this.onEnter$=new ye,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(ef(100)).subscribe(()=>{var e;this.shouldValueChange(this.formControl.value)&&(null===(e=this.onEnter)||void 0===e||e.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(ss(e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged))).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e)})}onEnterKeydown(e){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();var KG=Kf(959);function YG(n,t){if(1&n&&(ge(0,"mat-label"),ti(1),xe()),2&n){const e=Rt();Me(1),Ui(e.label)}}function QG(n,t){if(1&n){const e=Ma();ge(0,"button",5),Je("click",function(){return Yo(e),Rt().setCurrentTime()}),ge(1,"mat-icon"),ti(2,"access_time"),xe()()}2&n&&be("disabled",Rt().disabled)}function ZG(n,t){if(1&n&&(ge(0,"mat-error"),ti(1),xe()),2&n){const e=Rt();Me(1),Fa(" ",e.error," ")}}let XG=(()=>{class n extends qG{constructor(){super(...arguments),this.id=(0,KG.generate)()}ngOnChanges(e){this.updateOnBlur=!1,super.ngOnChanges(e)}setCurrentTime(){const e=new Date,i=e.getHours(),r=`${i<10?"0":""}${i}`,s=e.getMinutes();this.formControl.setValue(`${r}:${s<10?"0":""}${s}`)}shouldValueChange(e){return!e||e.match(/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275cmp=ki({type:n,selectors:[["drayman-timepicker-internal"]],viewQuery:function(e,i){if(1&e&&ts(dx,5),2&e){let r;Mt(r=At())&&(i.input=r.first)}},inputs:{showNowButton:"showNowButton",appearance:"appearance",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[S,Ot],decls:8,vars:11,consts:[["aria-label","Timepicker field",3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","autocomplete","off","mask","Hh:m0",3,"id","formControl","errorStateMatcher","leadZeroDateTime","dropSpecialCharacters","blur"],["fxLayout","row","matSuffix",""],["aria-label","Now","class","mat-datepicker-toggle","mat-icon-button","","matTooltip","Now",3,"disabled","click",4,"ngIf"],["aria-label","Now","mat-icon-button","","matTooltip","Now",1,"mat-datepicker-toggle",3,"disabled","click"]],template:function(e,i){1&e&&(ge(0,"mat-form-field",0),Et(1,YG,2,1,"mat-label",1),ge(2,"input",2),Je("blur",function(){return i.onBlur()}),xe(),ge(3,"div",3),Et(4,QG,3,1,"button",4),xe(),ge(5,"mat-hint"),ti(6),xe(),Et(7,ZG,2,1,"mat-error",1),xe()),2&e&&(be("appearance",i.appearance||"outline")("floatLabel","auto"),Me(1),be("ngIf",i.label),Me(1),be("id",i.id)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("leadZeroDateTime",!0)("dropSpecialCharacters",!1),Me(2),be("ngIf",i.showNowButton),Me(2),Ui(i.helpText),Me(1),be("ngIf",i.error))},directives:[h$,Jd,Lf,dx,UG,xl,tC,Kh,mw,l$,P2,fG,H$,s$,n$],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),JG=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function DP(n,t){const e=function mP(n,t){return t.get(Wi).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new bP(n,t.injector),r=function gP(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function uP(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends CP{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(XG,{injector:this.injector});customElements.define("drayman-timepicker",e)}}return n.\u0275fac=function(e){return new(e||n)(v(Dt))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[{provide:Ch,useClass:yG},{provide:Id,multi:!0,useFactory:t=>()=>{t.setDefaultFontSetClass("material-symbols-rounded")},deps:[Ro]}],imports:[[_b,y2,Vf,q$,BB,VB,j$,BV,L2,mG,zG.forRoot()]]}),n})();(function tk(){Ev=!1})(),LR().bootstrapModule(JG).catch(n=>console.error(n))})()})();
|
|
1
|
+
(()=>{var Ex={959:(J,Fe,G)=>{"use strict";J.exports=G(606)},550:(J,Fe,G)=>{"use strict";var ae,Ye,ot,oe=G(539),me="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function Qe(){ot=!1}function Q(je){if(je){if(je!==ae){if(je.length!==me.length)throw new Error("Custom alphabet for shortid must be "+me.length+" unique characters. You submitted "+je.length+" characters: "+je);var Ht=je.split("").filter(function(Ti,ys,Lo){return ys!==Lo.lastIndexOf(Ti)});if(Ht.length)throw new Error("Custom alphabet for shortid must be "+me.length+" unique characters. These characters were not unique: "+Ht.join(", "));ae=je,Qe()}}else ae!==me&&(ae=me,Qe())}function we(){return ot||(ot=function dr(){ae||Q(me);for(var ys,je=ae.split(""),Ht=[],Ti=oe.nextValue();je.length>0;)Ti=oe.nextValue(),ys=Math.floor(Ti*je.length),Ht.push(je.splice(ys,1)[0]);return Ht.join("")}())}J.exports={get:function lc(){return ae||me},characters:function Bt(je){return Q(je),ae},seed:function ke(je){oe.seed(je),Ye!==je&&(Qe(),Ye=je)},lookup:function Po(je){return we()[je]},shuffled:we}},119:(J,Fe,G)=>{"use strict";var ot,Qe,oe=G(535);G(550),J.exports=function Q(Bt){var ke="",dr=Math.floor(.001*(Date.now()-1567752802062));return dr===Qe?ot++:(ot=0,Qe=dr),ke+=oe(7),ke+=oe(Bt),ot>0&&(ke+=oe(ot)),ke+oe(dr)}},535:(J,Fe,G)=>{"use strict";var oe=G(550),me=G(68),ae=G(152);J.exports=function Ye(ot){for(var Q,Qe=0,Bt="";!Q;)Bt+=ae(me,oe.get(),1),Q=ot<Math.pow(16,Qe+1),Qe++;return Bt}},606:(J,Fe,G)=>{"use strict";var oe=G(550),me=G(119),ae=G(777),Ye=G(1)||0;function Bt(){return me(Ye)}J.exports=Bt,J.exports.generate=Bt,J.exports.seed=function ot(ke){return oe.seed(ke),J.exports},J.exports.worker=function Qe(ke){return Ye=ke,J.exports},J.exports.characters=function Q(ke){return void 0!==ke&&oe.characters(ke),oe.shuffled()},J.exports.isValid=ae},777:(J,Fe,G)=>{"use strict";var oe=G(550);J.exports=function me(ae){return!(!ae||"string"!=typeof ae||ae.length<6||new RegExp("[^"+oe.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(ae))}},68:J=>{"use strict";var Fe="object"==typeof window&&(window.crypto||window.msCrypto);J.exports=Fe&&Fe.getRandomValues?function(oe){return Fe.getRandomValues(new Uint8Array(oe))}:function(oe){for(var me=[],ae=0;ae<oe;ae++)me.push(Math.floor(256*Math.random()));return me}},539:J=>{"use strict";var Fe=1;J.exports={nextValue:function G(){return(Fe=(9301*Fe+49297)%233280)/233280},seed:function oe(me){Fe=me}}},1:J=>{"use strict";J.exports=0},152:J=>{J.exports=function(Fe,G,oe){for(var me=(2<<Math.log(G.length-1)/Math.LN2)-1,ae=-~(1.6*me*oe/G.length),Ye="";;)for(var ot=Fe(ae),Qe=ae;Qe--;)if((Ye+=G[ot[Qe]&me]||"").length===+oe)return Ye}}},qf={};function Kf(J){var Fe=qf[J];if(void 0!==Fe)return Fe.exports;var G=qf[J]={exports:{}};return Ex[J](G,G.exports,Kf),G.exports}(()=>{"use strict";function J(n){return"function"==typeof n}let Fe=!1;const G={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Fe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Fe=n},get useDeprecatedSynchronousErrorHandling(){return Fe}};function oe(n){setTimeout(()=>{throw n},0)}const me={closed:!0,next(n){},error(n){if(G.useDeprecatedSynchronousErrorHandling)throw n;oe(n)},complete(){}},ae=Array.isArray||(n=>n&&"number"==typeof n.length);function Ye(n){return null!==n&&"object"==typeof n}const Qe=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class Q{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Q)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(J(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof Qe?Bt(o.errors):[o]}}if(ae(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ye(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof Qe?t=t.concat(Bt(c.errors)):t.push(c)}}}if(t)throw new Qe(t)}add(t){let e=t;if(!t)return Q.EMPTY;switch(typeof t){case"function":e=new Q(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof Q)){const s=e;e=new Q,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof Q){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function Bt(n){return n.reduce((t,e)=>t.concat(e instanceof Qe?e.errors:e),[])}Q.EMPTY=((n=new Q).closed=!0,n);const ke="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class we extends Q{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=me;break;case 1:if(!t){this.destination=me;break}if("object"==typeof t){t instanceof we?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Po(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Po(this,t,e,i)}}[ke](){return this}static create(t,e,i){const r=new we(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Po extends we{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;J(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==me&&(o=Object.create(e),J(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;G.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=G;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):oe(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;oe(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);G.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),G.useDeprecatedSynchronousErrorHandling)throw i;oe(i)}}__tryOrSetError(t,e,i){if(!G.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return G.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(oe(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Ht="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ti(n){return n}let Ce=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function je(n,t,e){if(n){if(n instanceof we)return n;if(n[ke])return n[ke]()}return n||t||e?new we(n,t,e):new we(me)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||G.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),G.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){G.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function lc(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof we?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Yf(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ht](){return this}pipe(...e){return 0===e.length?this:function Lo(n){return 0===n.length?Ti:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Yf(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Yf(n){if(n||(n=G.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Fi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Qf extends Q{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Zf extends we{constructor(t){super(t),this.destination=t}}let ye=(()=>{class n extends Ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ke](){return new Zf(this)}lift(e){const i=new Xf(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Fi;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new Fi;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Fi;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Fi;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Fi;return this.hasError?(e.error(this.thrownError),Q.EMPTY):this.isStopped?(e.complete(),Q.EMPTY):(this.observers.push(e),new Qf(this,e))}asObservable(){const e=new Ce;return e.source=this,e}}return n.create=(t,e)=>new Xf(t,e),n})();class Xf extends ye{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):Q.EMPTY}}function hr(n){return n&&"function"==typeof n.schedule}function at(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Sx(n,t))}}class Sx{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new Mx(t,this.project,this.thisArg))}}class Mx extends we{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Jf=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},Vo=function Ix(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),ep=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function tp(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const cc=n=>{if(n&&"function"==typeof n[Ht])return(n=>t=>{const e=n[Ht]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(ep(n))return Jf(n);if(tp(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,oe),t))(n);if(n&&"function"==typeof n[Vo])return(n=>t=>{const e=n[Vo]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Ye(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function uc(n,t){return new Ce(e=>{const i=new Q;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Bo(n,t){return t?function Lx(n,t){if(null!=n){if(function Nx(n){return n&&"function"==typeof n[Ht]}(n))return function kx(n,t){return new Ce(e=>{const i=new Q;return i.add(t.schedule(()=>{const r=n[Ht]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(tp(n))return function Ox(n,t){return new Ce(e=>{const i=new Q;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(ep(n))return uc(n,t);if(function Px(n){return n&&"function"==typeof n[Vo]}(n)||"string"==typeof n)return function Rx(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ce(e=>{const i=new Q;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[Vo](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Ce?n:new Ce(cc(n))}class _s extends we{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class vs extends we{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function bs(n,t){if(!t.closed)return n instanceof Ce?n.subscribe(t):cc(n)(t)}function dc(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(dc((r,s)=>Bo(n(r,s)).pipe(at((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new Vx(n,e)))}class Vx{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new Bx(t,this.project,this.concurrent))}}class Bx extends vs{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new _s(this),i=this.destination;i.add(e);const r=bs(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function np(n=Number.POSITIVE_INFINITY){return dc(Ti,n)}function hc(n,t){return t?uc(n,t):new Ce(Jf(n))}function fr(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return hr(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Ce?n[0]:np(t)(hc(n,e))}function ip(){return function(t){return t.lift(new Hx(t))}}class Hx{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new jx(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class jx extends we{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class $x extends Ce{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new Q,t.add(this.source.subscribe(new Ux(this.getSubject(),this))),t.closed&&(this._connection=null,t=Q.EMPTY)),t}refCount(){return ip()(this)}}const Gx=(()=>{const n=$x.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Ux extends Zf{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class qx{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function Kx(){return new ye}function rp(){return n=>ip()(function Wx(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new qx(r,t));const s=Object.create(i,Gx);return s.source=i,s.subjectFactory=r,s}}(Kx)(n))}function _e(n){for(let t in n)if(n[t]===_e)return t;throw Error("Could not find renamed property on target object.")}function fc(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function de(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(de).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function pc(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Yx=_e({__forward_ref__:_e});function fe(n){return n.__forward_ref__=fe,n.toString=function(){return de(this())},n}function W(n){return sp(n)?n():n}function sp(n){return"function"==typeof n&&n.hasOwnProperty(Yx)&&n.__forward_ref__===fe}class k extends Error{constructor(t,e){super(function gc(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function H(n){return"string"==typeof n?n:null==n?"":String(n)}function lt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():H(n)}function Ho(n,t){const e=t?` in ${t}`:"";throw new k(-201,`No provider for ${lt(n)} found${e}`)}function $t(n,t){null==n&&function he(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function D(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ne(n){return{providers:n.providers||[],imports:n.imports||[]}}function mc(n){return op(n,jo)||op(n,lp)}function op(n,t){return n.hasOwnProperty(t)?n[t]:null}function ap(n){return n&&(n.hasOwnProperty(yc)||n.hasOwnProperty(nE))?n[yc]:null}const jo=_e({\u0275prov:_e}),yc=_e({\u0275inj:_e}),lp=_e({ngInjectableDef:_e}),nE=_e({ngInjectorDef:_e});var U=(()=>((U=U||{})[U.Default=0]="Default",U[U.Host=1]="Host",U[U.Self=2]="Self",U[U.SkipSelf=4]="SkipSelf",U[U.Optional=8]="Optional",U))();let _c;function ui(n){const t=_c;return _c=n,t}function cp(n,t,e){const i=mc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&U.Optional?null:void 0!==t?t:void Ho(de(n),"Injector")}function di(n){return{toString:n}.toString()}var dn=(()=>((dn=dn||{})[dn.OnPush=0]="OnPush",dn[dn.Default=1]="Default",dn))(),hn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(hn||(hn={})),hn))();const rE="undefined"!=typeof globalThis&&globalThis,sE="undefined"!=typeof window&&window,oE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,pe=rE||"undefined"!=typeof global&&global||sE||oE,pr={},ve=[],$o=_e({\u0275cmp:_e}),vc=_e({\u0275dir:_e}),bc=_e({\u0275pipe:_e}),up=_e({\u0275mod:_e}),Qn=_e({\u0275fac:_e}),ws=_e({__NG_ELEMENT_ID__:_e});let aE=0;function ki(n){return di(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===dn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ve,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||hn.Emulated,id:"c",styles:n.styles||ve,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=aE++,i.inputs=pp(n.inputs,e),i.outputs=pp(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(dp):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(hp):null,i})}function dp(n){return ct(n)||function hi(n){return n[vc]||null}(n)}function hp(n){return function Oi(n){return n[bc]||null}(n)}const fp={};function le(n){return di(()=>{const t={type:n.type,bootstrap:n.bootstrap||ve,declarations:n.declarations||ve,imports:n.imports||ve,exports:n.exports||ve,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(fp[n.id]=n.type),t})}function pp(n,t){if(null==n)return pr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const C=ki;function _t(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ct(n){return n[$o]||null}function en(n,t){const e=n[up]||null;if(!e&&!0===t)throw new Error(`Type ${de(n)} does not have '\u0275mod' property.`);return e}const z=11;function Fn(n){return Array.isArray(n)&&"object"==typeof n[1]}function pn(n){return Array.isArray(n)&&!0===n[1]}function Dc(n){return 0!=(8&n.flags)}function Wo(n){return 2==(2&n.flags)}function qo(n){return 1==(1&n.flags)}function gn(n){return null!==n.template}function fE(n){return 0!=(512&n[2])}function Li(n,t){return n.hasOwnProperty(Qn)?n[Qn]:null}class mp{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ot(){return yp}function yp(n){return n.type.prototype.ngOnChanges&&(n.setInput=yE),mE}function mE(){const n=vp(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===pr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function yE(n,t,e,i){const r=vp(n)||function _E(n,t){return n[_p]=t}(n,{previous:pr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new mp(l&&l.currentValue,t,o===pr),n[i]=t}Ot.ngInherit=!0;const _p="__ngSimpleChanges__";function vp(n){return n[_p]||null}let Ac;function Ve(n){return!!n.listen}const bp={createRenderer:(n,t)=>function Ic(){return void 0!==Ac?Ac:"undefined"!=typeof document?document:void 0}()};function Ue(n){for(;Array.isArray(n);)n=n[0];return n}function Ko(n,t){return Ue(t[n])}function Ut(n,t){return Ue(t[n.index])}function Tc(n,t){return n.data[t]}function zt(n,t){const e=t[n];return Fn(e)?e:e[0]}function wp(n){return 4==(4&n[2])}function Fc(n){return 128==(128&n[2])}function fi(n,t){return null==t?null:n[t]}function Cp(n){n[18]=0}function kc(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const j={lFrame:Fp(null),bindingsEnabled:!0};function xp(){return j.bindingsEnabled}function w(){return j.lFrame.lView}function te(){return j.lFrame.tView}function Yo(n){return j.lFrame.contextLView=n,n[8]}function Ze(){let n=Ep();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ep(){return j.lFrame.currentTNode}function kn(n,t){const e=j.lFrame;e.currentTNode=n,e.isParent=t}function Oc(){return j.lFrame.isParent}function Rc(){j.lFrame.isParent=!1}function br(){return j.lFrame.bindingIndex++}function NE(n,t){const e=j.lFrame;e.bindingIndex=e.bindingRootIndex=n,Nc(t)}function Nc(n){j.lFrame.currentDirectiveIndex=n}function Ap(){return j.lFrame.currentQueryIndex}function Lc(n){j.lFrame.currentQueryIndex=n}function LE(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Ip(n,t,e){if(e&U.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&U.Host||(r=LE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=j.lFrame=Tp();return i.currentTNode=t,i.lView=n,!0}function Zo(n){const t=Tp(),e=n[1];j.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Tp(){const n=j.lFrame,t=null===n?null:n.child;return null===t?Fp(n):t}function Fp(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function kp(){const n=j.lFrame;return j.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Op=kp;function Xo(){const n=kp();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function wt(){return j.lFrame.selectedIndex}function pi(n){j.lFrame.selectedIndex=n}function Oe(){const n=j.lFrame;return Tc(n.tView,n.selectedIndex)}function Jo(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function ea(n,t,e){Rp(n,t,3,e)}function ta(n,t,e,i){(3&n[2])===e&&Rp(n,t,e,i)}function Vc(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Rp(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(WE(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function WE(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Ss{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function na(n,t,e){const i=Ve(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Hc(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Np(n){return 3===n||4===n||6===n}function Hc(n){return 64===n.charCodeAt(0)}function ia(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Pp(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Pp(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Lp(n){return-1!==n}function wr(n){return 32767&n}function Cr(n,t){let e=function ZE(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let jc=!0;function ra(n){const t=jc;return jc=n,t}let XE=0;function As(n,t){const e=Gc(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,$c(i.data,n),$c(t,null),$c(i.blueprint,null));const r=sa(n,t),s=n.injectorIndex;if(Lp(r)){const o=wr(r),a=Cr(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function $c(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Gc(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function sa(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function oa(n,t,e){!function JE(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ws)&&(i=e[ws]),null==i&&(i=e[ws]=XE++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Hp(n,t,e){if(e&U.Optional)return n;Ho(t,"NodeInjector")}function jp(n,t,e,i){if(e&U.Optional&&void 0===i&&(i=null),0==(e&(U.Self|U.Host))){const r=n[9],s=ui(void 0);try{return r?r.get(t,i,e&U.Optional):cp(t,i,e&U.Optional)}finally{ui(s)}}return Hp(i,t,e)}function $p(n,t,e,i=U.Default,r){if(null!==n){const s=function iS(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ws)?n[ws]:void 0;return"number"==typeof t?t>=0?255&t:tS:t}(e);if("function"==typeof s){if(!Ip(t,n,i))return i&U.Host?Hp(r,e,i):jp(t,e,i,r);try{const o=s(i);if(null!=o||i&U.Optional)return o;Ho(e)}finally{Op()}}else if("number"==typeof s){let o=null,a=Gc(n,t),l=-1,c=i&U.Host?t[16][6]:null;for((-1===a||i&U.SkipSelf)&&(l=-1===a?sa(n,t):t[a+8],-1!==l&&zp(i,!1)?(o=t[1],a=wr(l),t=Cr(l,t)):a=-1);-1!==a;){const u=t[1];if(Up(s,a,u.data)){const d=nS(a,t,e,o,i,c);if(d!==Gp)return d}l=t[a+8],-1!==l&&zp(i,t[1].data[a+8]===c)&&Up(s,a,t)?(o=u,a=wr(l),t=Cr(l,t)):a=-1}}}return jp(t,e,i,r)}const Gp={};function tS(){return new Dr(Ze(),w())}function nS(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=aa(a,o,e,null==i?Wo(a)&&jc:i!=o&&0!=(3&a.type),r&U.Host&&s===a);return null!==u?Is(t,o,u,a):Gp}function aa(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&gn(f)&&f.type===e)return l}return null}function Is(n,t,e,i){let r=n[e];const s=t.data;if(function qE(n){return n instanceof Ss}(r)){const o=r;o.resolving&&function Qx(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new k(-200,`Circular dependency in DI detected for ${n}${e}`)}(lt(s[e]));const a=ra(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ui(o.injectImpl):null;Ip(n,i,U.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function zE(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=yp(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&ui(l),ra(a),o.resolving=!1,Op()}}return r}function Up(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function zp(n,t){return!(n&U.Self||n&U.Host&&t)}class Dr{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return $p(this._tNode,this._lView,t,i,e)}}function R(n){return di(()=>{const t=n.prototype.constructor,e=t[Qn]||Uc(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Qn]||Uc(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Uc(n){return sp(n)?()=>{const t=Uc(W(n));return t&&t()}:Li(n)}function Ts(n){return function eS(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(Np(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(Ze(),n)}const Er="__parameters__";function Mr(n,t,e){return di(()=>{const i=function zc(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Er)?l[Er]:Object.defineProperty(l,Er,{value:[]})[Er];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class M{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=D({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function rn(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),rn(i,t)):t!==n&&t.push(i)}return t}function On(n,t){n.forEach(e=>Array.isArray(e)?On(e,t):t(e))}function qp(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function la(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Os(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function Wt(n,t,e){let i=Ar(n,t);return i>=0?n[1|i]=e:(i=~i,function aS(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function qc(n,t){const e=Ar(n,t);if(e>=0)return n[1|e]}function Ar(n,t){return function Qp(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const Rs={},Yc="__NG_DI_FLAG__",ua="ngTempTokenPath",pS=/\n/gm,Xp="__source",mS=_e({provide:String,useValue:_e});let Ns;function Jp(n){const t=Ns;return Ns=n,t}function yS(n,t=U.Default){if(void 0===Ns)throw new k(203,"");return null===Ns?cp(n,void 0,t):Ns.get(n,t&U.Optional?null:void 0,t)}function v(n,t=U.Default){return(function iE(){return _c}()||yS)(W(n),t)}const Ir=v;function Qc(n){const t=[];for(let e=0;e<n.length;e++){const i=W(n[e]);if(Array.isArray(i)){if(0===i.length)throw new k(900,"");let r,s=U.Default;for(let o=0;o<i.length;o++){const a=i[o],l=_S(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(v(r,s))}else t.push(v(i))}return t}function Ps(n,t){return n[Yc]=t,n.prototype[Yc]=t,n}function _S(n){return n[Yc]}const Vi=Ps(Mr("Optional"),8),Ls=Ps(Mr("SkipSelf"),4);var qt=(()=>((qt=qt||{})[qt.Important=1]="Important",qt[qt.DashCase=2]="DashCase",qt))();const ag="__ngContext__";function mt(n,t){n[ag]=t}function eu(n){const t=function Bs(n){return n[ag]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function nu(n,t){return undefined(n,t)}function Hs(n){const t=n[3];return pn(t)?t[3]:t}function iu(n){return pg(n[13])}function ru(n){return pg(n[4])}function pg(n){for(;null!==n&&!pn(n);)n=n[4];return n}function Fr(n,t,e,i,r){if(null!=i){let s,o=!1;pn(i)?s=i:Fn(i)&&(o=!0,i=i[0]);const a=Ue(i);0===n&&null!==e?null==r?bg(t,e,a):Bi(t,e,a,r||null,!0):1===n&&null!==e?Bi(t,e,a,r||null,!0):2===n?function du(n,t,e){const i=ha(n,t);i&&function YS(n,t,e,i){Ve(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function XS(n,t,e,i,r){const s=e[7];s!==Ue(e)&&Fr(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];js(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function ou(n,t,e){if(Ve(n))return n.createElement(t,e);{const i=null!==e?function CE(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function mg(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,kc(r,-1)),e.splice(i,1)}function au(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&mg(r,i),t>0&&(n[e-1][4]=i[4]);const s=la(n,10+t);!function jS(n,t){js(n,t,t[z],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function yg(n,t){if(!(256&t[2])){const e=t[z];Ve(e)&&e.destroyNode&&js(n,t,e,3,null,null),function US(n){let t=n[13];if(!t)return lu(n[1],n);for(;t;){let e=null;if(Fn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Fn(t)&&lu(t[1],t),t=t[3];null===t&&(t=n),Fn(t)&&lu(t[1],t),e=t&&t[4]}t=e}}(t)}}function lu(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function KS(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof Ss)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function qS(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Ue(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Ve(t[z])&&t[z].destroy();const e=t[17];if(null!==e&&pn(t[3])){e!==t[3]&&mg(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function _g(n,t,e){return function vg(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===hn.None||r===hn.Emulated)return null}return Ut(i,e)}(n,t.parent,e)}function Bi(n,t,e,i,r){Ve(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function bg(n,t,e){Ve(n)?n.appendChild(t,e):t.appendChild(e)}function wg(n,t,e,i,r){null!==i?Bi(n,t,e,i,r):bg(n,t,e)}function ha(n,t){return Ve(n)?n.parentNode(t):t.parentNode}function Cg(n,t,e){return xg(n,t,e)}let ga,xg=function Dg(n,t,e){return 40&n.type?Ut(n,e):null};function fa(n,t,e,i){const r=_g(n,i,t),s=t[z],a=Cg(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)wg(s,r,e[l],a,!1);else wg(s,r,e,a,!1)}function pa(n,t){if(null!==t){const e=t.type;if(3&e)return Ut(t,n);if(4&e)return uu(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return pa(n,i);{const r=n[t.index];return pn(r)?uu(-1,r):Ue(r)}}if(32&e)return nu(t,n)()||Ue(n[t.index]);{const i=Sg(n,t);return null!==i?Array.isArray(i)?i[0]:pa(Hs(n[16]),i):pa(n,t.next)}}return null}function Sg(n,t){return null!==t?n[16][6].projection[t.projection]:null}function uu(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return pa(i,r)}return t[7]}function hu(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&mt(Ue(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)hu(n,t,e.child,i,r,s,!1),Fr(t,n,r,a,s);else if(32&l){const c=nu(e,i);let u;for(;u=c();)Fr(t,n,r,u,s);Fr(t,n,r,a,s)}else 16&l?Mg(n,t,i,e,r,s):Fr(t,n,r,a,s);e=o?e.projectionNext:e.next}}function js(n,t,e,i,r,s){hu(e,i,n.firstChild,t,r,s,!1)}function Mg(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Fr(t,n,r,l[c],s);else hu(n,t,l,o[3],r,s,!0)}function Ag(n,t,e){Ve(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function fu(n,t,e){Ve(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function Hi(n){var t;return(null===(t=function pu(){if(void 0===ga&&(ga=null,pe.trustedTypes))try{ga=pe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ga}())||void 0===t?void 0:t.createHTML(n))||n}class ji{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class r0 extends ji{getTypeName(){return"HTML"}}class s0 extends ji{getTypeName(){return"Style"}}class o0 extends ji{getTypeName(){return"Script"}}class a0 extends ji{getTypeName(){return"URL"}}class l0 extends ji{getTypeName(){return"ResourceURL"}}function Kt(n){return n instanceof ji?n.changingThisBreaksApplicationSecurity:n}function Rn(n,t){const e=kg(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function kg(n){return n instanceof ji&&n.getTypeName()||null}class p0{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Hi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class g0{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Hi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Hi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const y0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,_0=/^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 $s(n){return(n=String(n)).match(y0)||n.match(_0)?n:"unsafe:"+n}function Rg(n){return(n=String(n)).split(",").map(t=>$s(t.trim())).join(", ")}function Nn(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Gs(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const Ng=Nn("area,br,col,hr,img,wbr"),Pg=Nn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lg=Nn("rp,rt"),mu=Gs(Ng,Gs(Pg,Nn("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")),Gs(Lg,Nn("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")),Gs(Lg,Pg)),yu=Nn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_u=Nn("srcset"),Vg=Gs(yu,_u,Nn("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"),Nn("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")),v0=Nn("script,style,template");class b0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!mu.hasOwnProperty(e))return this.sanitizedSomething=!0,!v0.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Vg.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;yu[a]&&(l=$s(l)),_u[a]&&(l=Rg(l)),this.buf.push(" ",o,'="',Bg(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();mu.hasOwnProperty(e)&&!Ng.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Bg(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const w0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C0=/([^\#-~ |!])/g;function Bg(n){return n.replace(/&/g,"&").replace(w0,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(C0,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ya;function Hg(n,t){let e=null;try{ya=ya||function Og(n){const t=new g0(n);return function m0(){try{return!!(new window.DOMParser).parseFromString(Hi(""),"text/html")}catch(n){return!1}}()?new p0(t):t}(n);let i=t?String(t):"";e=ya.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ya.getInertBodyElement(i)}while(i!==s);return Hi((new b0).sanitizeChildren(vu(e)||e))}finally{if(e){const i=vu(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function vu(n){return"content"in n&&function D0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ce=(()=>((ce=ce||{})[ce.NONE=0]="NONE",ce[ce.HTML=1]="HTML",ce[ce.STYLE=2]="STYLE",ce[ce.SCRIPT=3]="SCRIPT",ce[ce.URL=4]="URL",ce[ce.RESOURCE_URL=5]="RESOURCE_URL",ce))();function wu(n){return n.ngOriginalError}function R0(n,...t){n.error(...t)}class mi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function O0(n){return n&&n.ngErrorLogger||R0}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&wu(t);for(;e&&wu(e);)e=wu(e);return e||null}}const j0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(pe))();function Pn(n){return n instanceof Function?n():n}function Ug(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const zg="ng-template";function z0(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Ug(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Wg(n){return 4===n.type&&n.value!==zg}function W0(n,t,e){return t===(4!==n.type||e?n.value:zg)}function q0(n,t,e){let i=4;const r=n.attrs||[],s=function Q0(n){for(let t=0;t<n.length;t++)if(Np(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!W0(n,l,e)||""===l&&1===t.length){if(mn(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!z0(n.attrs,c,e)){if(mn(i))return!1;o=!0}continue}const d=K0(8&i?"class":l,r,Wg(n),e);if(-1===d){if(mn(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Ug(f,c,0)||2&i&&c!==h){if(mn(i))return!1;o=!0}}}}else{if(!o&&!mn(i)&&!mn(l))return!1;if(o&&mn(l))continue;o=!1,i=l|1&i}}return mn(i)||o}function mn(n){return 0==(1&n)}function K0(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function Z0(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function qg(n,t,e=!1){for(let i=0;i<t.length;i++)if(q0(n,t[i],e))return!0;return!1}function X0(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Kg(n,t){return n?":not("+t.trim()+")":t}function J0(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!mn(o)&&(t+=Kg(s,r),r=""),i=o,s=s||!mn(i);e++}return""!==r&&(t+=Kg(s,r)),t}const $={};function Me(n){Yg(te(),w(),wt()+n,!1)}function Yg(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&ea(t,s,e)}else{const s=n.preOrderHooks;null!==s&&ta(t,s,0,e)}pi(e)}function _a(n,t){return n<<17|t<<2}function yn(n){return n>>17&32767}function Cu(n){return 2|n}function Jn(n){return(131068&n)>>2}function Du(n,t){return-131069&n|t<<2}function xu(n){return 1|n}function om(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Lc(r),o.contentQueries(2,t[s],s)}}}function zs(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Cp(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[z]=a||n&&n[z],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function Or(n,t,e,i,r){let s=n.data[t];if(null===s)s=function Ou(n,t,e,i,r){const s=Ep(),o=Oc(),l=n.data[t]=function yM(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),function RE(){return j.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function Es(){const n=j.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return kn(s,!0),s}function Rr(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function Ws(n,t,e){Zo(t);try{const i=n.viewQuery;null!==i&&$u(1,i,e);const r=n.template;null!==r&&am(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&om(n,t),n.staticViewQueries&&$u(2,n.viewQuery,e);const s=n.components;null!==s&&function pM(n,t){for(let e=0;e<t.length;e++)NM(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Xo()}}function Nr(n,t,e,i){const r=t[2];if(256!=(256&r)){Zo(t);try{Cp(t),function Sp(n){return j.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&am(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&ea(t,c,null)}else{const c=n.preOrderHooks;null!==c&&ta(t,c,0,null),Vc(t,0)}if(function OM(n){for(let t=iu(n);null!==t;t=ru(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&kc(s,1),r[2]|=1024}}}(t),function kM(n){for(let t=iu(n);null!==t;t=ru(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];Fc(i)&&Nr(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&om(n,t),o){const c=n.contentCheckHooks;null!==c&&ea(t,c)}else{const c=n.contentHooks;null!==c&&ta(t,c,1),Vc(t,1)}!function hM(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)pi(~r);else{const s=r,o=e[++i],a=e[++i];NE(o,s),a(2,t[s])}}}finally{pi(-1)}}(n,t);const a=n.components;null!==a&&function fM(n,t){for(let e=0;e<t.length;e++)RM(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&$u(2,l,i),o){const c=n.viewCheckHooks;null!==c&&ea(t,c)}else{const c=n.viewHooks;null!==c&&ta(t,c,2),Vc(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,kc(t[3],-1))}finally{Xo()}}}function gM(n,t,e,i){const r=t[10],o=wp(t);try{!o&&r.begin&&r.begin(),o&&Ws(n,t,i),Nr(n,t,e,i)}finally{!o&&r.end&&r.end()}}function am(n,t,e,i,r){const s=wt(),o=2&i;try{pi(-1),o&&t.length>20&&Yg(n,t,20,!1),e(i,r)}finally{pi(s)}}function lm(n,t,e){if(Dc(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function Ru(n,t,e){!xp()||(function xM(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||As(e,t),mt(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=gn(l);c&&IM(t,e,l);const u=Is(t,n,a,e);mt(u,t),null!==o&&TM(0,a-r,u,l,0,o),c&&(zt(e.index,t)[8]=u)}}(n,t,e,Ut(e,t)),128==(128&e.flags)&&function EM(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function PE(){return j.lFrame.currentDirectiveIndex}();try{pi(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];Nc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&mm(c,u)}}finally{pi(-1),Nc(a)}}(n,t,e))}function Nu(n,t,e=Ut){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function cm(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=wa(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function wa(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function mM(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:$);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function hm(n,t,e,i){const r=Cm(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&Dm(n).push(i,r.length-1))}function fm(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function Yt(n,t,e,i,r,s,o,a){const l=Ut(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(Sm(n,e,u,i,r),Wo(t)&&function bM(n,t){const e=zt(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function vM(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,Ve(s)?s.setProperty(l,i,r):Hc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Pu(n,t,e,i){let r=!1;if(xp()){const s=function SM(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];qg(e,o.selectors,!1)&&(r||(r=[]),oa(As(e,t),n,o.type),gn(o)?(ym(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,_m(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Rr(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=ia(e.mergedAttrs,d.hostAttrs),vm(n,e,t,c,d),AM(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function _M(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Wg(t)?null:FM(d,s);o.push(h),a=fm(d,c,a),l=fm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function MM(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new k(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=ia(e.mergedAttrs,e.attrs),r}function gm(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function DM(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function mm(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function ym(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function AM(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;gn(t)&&(e[""]=n)}}function _m(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function vm(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=Li(r.type)),o=new Ss(s,gn(r),null);n.blueprint[i]=o,e[i]=o,gm(n,t,0,i,Rr(n,e,r.hostVars,$),r)}function IM(n,t,e){const i=Ut(t,n),r=cm(e),s=n[10],o=Ca(n,zs(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function Ln(n,t,e,i,r,s){const o=Ut(n,t);!function Lu(n,t,e,i,r,s,o){if(null==s)Ve(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?H(s):o(s,i||"",r);Ve(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[z],o,s,n.value,e,i,r)}function TM(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function FM(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function bm(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function RM(n,t){const e=zt(t,n);if(Fc(e)){const i=e[1];80&e[2]?Nr(i,e,i.template,e[8]):e[5]>0&&Vu(e)}}function Vu(n){for(let i=iu(n);null!==i;i=ru(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Nr(o,s,o.template,s[8])}else s[5]>0&&Vu(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=zt(e[i],n);Fc(r)&&r[5]>0&&Vu(r)}}function NM(n,t){const e=zt(t,n),i=e[1];(function PM(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Ws(i,e,e[8])}function Ca(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Bu(n){for(;n;){n[2]|=64;const t=Hs(n);if(fE(n)&&!t)return n;n=t}return null}function wm(n){!function Hu(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=eu(e),r=i[1];gM(r,i,r.template,e)}}(n[8])}function $u(n,t,e){Lc(0),t(n,e)}const VM=(()=>Promise.resolve(null))();function Cm(n){return n[7]||(n[7]=[])}function Dm(n){return n.cleanup||(n.cleanup=[])}function Em(n,t){const e=n[9],i=e?e.get(mi,null):null;i&&i.handleError(t)}function Sm(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function ei(n,t,e){const i=Ko(t,n);!function gg(n,t,e){Ve(n)?n.setValue(t,e):t.textContent=e}(n[z],i,e)}function Da(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=pc(r,a):2==s&&(i=pc(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const Gu=new M("INJECTOR",-1);class Mm{get(t,e=Rs){if(e===Rs){const i=new Error(`NullInjectorError: No provider for ${de(t)}!`);throw i.name="NullInjectorError",i}return e}}const Uu=new M("Set Injector scope."),qs={},jM={};let zu;function Am(){return void 0===zu&&(zu=new Mm),zu}function Im(n,t=null,e=null,i){const r=Tm(n,t,e,i);return r._resolveInjectorDefTypes(),r}function Tm(n,t=null,e=null,i){return new $M(n,e,t||Am(),i)}class $M{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&On(e,a=>this.processProvider(a,t,e)),On([t],a=>this.processInjectorType(a,[],s)),this.records.set(Gu,Pr(void 0,this));const o=this.records.get(Uu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:de(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Rs,i=U.Default){this.assertNotDestroyed();const r=Jp(this),s=ui(void 0);try{if(!(i&U.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function QM(n){return"function"==typeof n||"object"==typeof n&&n instanceof M}(t)&&mc(t);a=l&&this.injectableDefInScope(l)?Pr(Wu(t),qs):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&U.Self?Am():this.parent).get(t,e=i&U.Optional&&e===Rs?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ua]=o[ua]||[]).unshift(de(t)),r)throw o;return function vS(n,t,e,i){const r=n[ua];throw t[Xp]&&r.unshift(t[Xp]),n.message=function bS(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=de(t);if(Array.isArray(t))r=t.map(de).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):de(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(pS,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ua]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{ui(s),Jp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(de(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processInjectorType(t,e,i){if(!(t=W(t)))return!1;let r=ap(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=ap(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{On(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];On(f,p=>this.processProvider(p,h,f||ve))}}this.injectorDefTypes.add(o);const l=Li(o)||(()=>new o);this.records.set(o,Pr(l,qs));const c=r.providers;if(null!=c&&!a){const u=t;On(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=Lr(t=W(t))?t:W(t&&t.provide);const s=function UM(n,t,e){return km(n)?Pr(void 0,n.useValue):Pr(Fm(n),qs)}(t);if(Lr(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Pr(void 0,qs,!0),o.factory=()=>Qc(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===qs&&(e.value=jM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function YM(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=W(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Wu(n){const t=mc(n),e=null!==t?t.factory:Li(n);if(null!==e)return e;if(n instanceof M)throw new k(204,!1);if(n instanceof Function)return function GM(n){const t=n.length;if(t>0)throw Os(t,"?"),new k(204,!1);const e=function eE(n){const t=n&&(n[jo]||n[lp]);if(t){const e=function tE(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new k(204,!1)}function Fm(n,t,e){let i;if(Lr(n)){const r=W(n);return Li(r)||Wu(r)}if(km(n))i=()=>W(n.useValue);else if(function WM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Qc(n.deps||[]));else if(function zM(n){return!(!n||!n.useExisting)}(n))i=()=>v(W(n.useExisting));else{const r=W(n&&(n.useClass||n.provide));if(!function KM(n){return!!n.deps}(n))return Li(r)||Wu(r);i=()=>new r(...Qc(n.deps))}return i}function Pr(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function km(n){return null!==n&&"object"==typeof n&&mS in n}function Lr(n){return"function"==typeof n}let Dt=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return Im({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return Im({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Rs,n.NULL=new Mm,n.\u0275prov=D({token:n,providedIn:"any",factory:()=>v(Gu)}),n.__NG_ELEMENT_ID__=-1,n})();function rA(n,t){Jo(eu(n)[1],Ze())}function S(n){let t=function Um(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(gn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new k(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Yu(n.inputs),o.declaredInputs=Yu(n.declaredInputs),o.outputs=Yu(n.outputs);const a=r.hostBindings;a&&lA(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&oA(n,l),c&&aA(n,c),fc(n.inputs,r.inputs),fc(n.declaredInputs,r.declaredInputs),fc(n.outputs,r.outputs),gn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===S&&(e=!1)}}t=Object.getPrototypeOf(t)}!function sA(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=ia(r.hostAttrs,e=ia(e,r.hostAttrs))}}(i)}function Yu(n){return n===pr?{}:n===ve?[]:n}function oA(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function aA(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function lA(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let xa=null;function Vr(){if(!xa){const n=pe.Symbol;if(n&&n.iterator)xa=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(xa=i)}}}return xa}function Ks(n){return!!Qu(n)&&(Array.isArray(n)||!(n instanceof Map)&&Vr()in n)}function Qu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function yt(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function xt(n,t,e,i){const r=w();return yt(r,br(),t)&&(te(),Ln(Oe(),r,n,t,e,i)),xt}function Et(n,t,e,i,r,s,o,a){const l=w(),c=te(),u=n+20,d=c.firstCreatePass?function gA(n,t,e,i,r,s,o,a,l){const c=t.consts,u=Or(t,n,4,o||null,fi(c,a));Pu(t,e,u,fi(c,l)),Jo(t,u);const d=u.tViews=wa(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];kn(d,!1);const h=l[z].createComment("");fa(c,l,h,d),mt(h,l),Ca(l,l[u]=bm(h,l,h,d)),qo(d)&&Ru(c,l,d),null!=o&&Nu(l,d,a)}function g(n,t=U.Default){const e=w();return null===e?v(n,t):$p(Ze(),e,W(n),t)}function be(n,t,e){const i=w();return yt(i,br(),t)&&Yt(te(),Oe(),i,n,t,i[z],e,!1),be}function td(n,t,e,i,r){const o=r?"class":"style";Sm(n,e,t.inputs[o],o,i)}function ge(n,t,e,i){const r=w(),s=te(),o=20+n,a=r[z],l=r[o]=ou(a,t,function UE(){return j.lFrame.currentNamespace}()),c=s.firstCreatePass?function LA(n,t,e,i,r,s,o){const a=t.consts,c=Or(t,n,2,r,fi(a,s));return Pu(t,e,c,fi(a,o)),null!==c.attrs&&Da(c,c.attrs,!1),null!==c.mergedAttrs&&Da(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];kn(c,!0);const u=c.mergedAttrs;null!==u&&na(a,l,u);const d=c.classes;null!==d&&fu(a,l,d);const h=c.styles;return null!==h&&Ag(a,l,h),64!=(64&c.flags)&&fa(s,r,l,c),0===function AE(){return j.lFrame.elementDepthCount}()&&mt(l,r),function IE(){j.lFrame.elementDepthCount++}(),qo(c)&&(Ru(s,r,c),lm(s,c,r)),null!==i&&Nu(r,c),ge}function xe(){let n=Ze();Oc()?Rc():(n=n.parent,kn(n,!1));const t=n;!function TE(){j.lFrame.elementDepthCount--}();const e=te();return e.firstCreatePass&&(Jo(e,n),Dc(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function YE(n){return 0!=(16&n.flags)}(t)&&td(e,t,w(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function QE(n){return 0!=(32&n.flags)}(t)&&td(e,t,w(),t.stylesWithoutHost,!1),xe}function Gi(n,t,e,i){return ge(n,t,e,i),xe(),Gi}function Qs(n,t,e){const i=w(),r=te(),s=n+20,o=r.firstCreatePass?function VA(n,t,e,i,r){const s=t.consts,o=fi(s,i),a=Or(t,n,8,"ng-container",o);return null!==o&&Da(a,o,!0),Pu(t,e,a,fi(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,e):r.data[s];kn(o,!0);const a=i[s]=i[z].createComment("");return fa(r,i,a,o),mt(a,i),qo(o)&&(Ru(r,i,o),lm(r,o,i)),null!=e&&Nu(i,o),Qs}function Zs(){let n=Ze();const t=te();return Oc()?Rc():(n=n.parent,kn(n,!1)),t.firstCreatePass&&(Jo(t,n),Dc(n)&&t.queries.elementEnd(n)),Zs}function Ma(){return w()}function Aa(n){return!!n&&"function"==typeof n.then}function hy(n){return!!n&&"function"==typeof n.subscribe}const fy=hy;function Je(n,t,e,i){const r=w(),s=te(),o=Ze();return function gy(n,t,e,i,r,s,o,a){const l=qo(i),u=n.firstCreatePass&&Dm(n),d=t[8],h=Cm(t);let f=!0;if(3&i.type||a){const _=Ut(i,t),b=a?a(_):_,y=h.length,E=a?x=>a(Ue(x[i.index])):i.index;if(Ve(e)){let x=null;if(!a&&l&&(x=function BA(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=s,x.__ngLastListenerFn__=s,f=!1;else{s=nd(i,t,d,s,!1);const F=e.listen(b,r,s);h.push(s,F),u&&u.push(r,E,y,y+1)}}else s=nd(i,t,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,y,o)}else s=nd(i,t,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const re=t[m[b]][m[b+1]].subscribe(s),Se=h.length;h.push(s,re),u&&u.push(r,i.index,Se,-(Se+1))}}}(s,r,r[z],o,n,t,!!e,i),Je}function my(n,t,e,i){try{return!1!==e(i)}catch(r){return Em(n,r),!1}}function nd(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?zt(n.index,t):t;0==(32&t[2])&&Bu(a);let l=my(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=my(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Rt(n=1){return function VE(n){return(j.lFrame.contextLView=function BE(n,t){for(;n>0;)t=t[15],n--;return t}(n,j.lFrame.contextLView))[8]}(n)}function HA(n,t){let e=null;const i=function Y0(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?qg(n,s,!0):X0(i,s))return r}else e=r}return e}function Ia(n){const t=w()[16][6];if(!t.projection){const i=t.projection=Os(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?HA(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function vn(n,t=0,e){const i=w(),r=te(),s=Or(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),Rc(),64!=(64&s.flags)&&function ZS(n,t,e){Mg(t[z],0,t,e,_g(n,e,t),Cg(e.parent||t[6],e,t))}(r,i,s)}function Sy(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?yn(s):Jn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];GA(n[a],t)&&(l=!0,n[a+1]=i?xu(u):Cu(u)),a=i?yn(u):Jn(u)}l&&(n[e+1]=i?Cu(s):xu(s))}function GA(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Ar(n,t)>=0}function rd(n,t,e){return bn(n,t,e,!1),rd}function Nt(n,t){return bn(n,t,null,!0),Nt}function bn(n,t,e,i){const r=w(),s=te(),o=function Xn(n){const t=j.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);s.firstUpdatePass&&function Ry(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[wt()],o=function Oy(n,t){return t>=n.expandoStartIndex}(n,e);(function Vy(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function XA(n,t,e,i){const r=function Pc(n){const t=j.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Xs(e=sd(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=sd(r,n,t,e,i),null===s){let l=function JA(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Jn(i))return n[yn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=sd(null,n,t,l[1],i),l=Xs(l,t.attrs,i),function eI(n,t,e,i){n[yn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function tI(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Xs(i,n[s].hostAttrs,e);return Xs(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function jA(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=yn(o),l=Jn(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Ar(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=yn(n[a+1]);n[i+1]=_a(h,a),0!==h&&(n[h+1]=Du(n[h+1],i)),n[a+1]=function nM(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=_a(a,0),0!==a&&(n[a+1]=Du(n[a+1],i)),a=i;else n[i+1]=_a(l,0),0===a?a=i:n[l+1]=Du(n[l+1],i),l=i;c&&(n[i+1]=Cu(n[i+1])),Sy(n,u,i,!0),Sy(n,u,i,!1),function $A(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Ar(s,t)>=0&&(e[i+1]=xu(e[i+1]))}(t,u,n,i,s),o=_a(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==$&&yt(r,o,t)&&function Py(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];Ta(function Xg(n){return 1==(1&n)}(c)?Ly(l,t,e,r,Jn(c),o):void 0)||(Ta(s)||function Zg(n){return 2==(2&n)}(c)&&(s=Ly(l,null,e,r,a,o)),function JS(n,t,e,i,r){const s=Ve(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:qt.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=qt.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,Ko(wt(),e),r,s))}(s,s.data[wt()],r,r[z],n,r[o+1]=function rI(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=de(Kt(n)))),n}(t,e),i,o)}function sd(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=Xs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Xs(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Wt(n,o,!!e||t[++s]))}return void 0===n?null:n}function Ly(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===$&&(h=d?ve:void 0);let f=d?qc(h,i):u===i?h:void 0;if(c&&!Ta(f)&&(f=qc(l,i)),Ta(f)&&(a=f,o))return a;const p=n[r+1];r=o?yn(p):Jn(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=qc(l,i))}return a}function Ta(n){return void 0!==n}function ti(n,t=""){const e=w(),i=te(),r=n+20,s=i.firstCreatePass?Or(i,r,1,t,null):i.data[r],o=e[r]=function su(n,t){return Ve(n)?n.createText(t):n.createTextNode(t)}(e[z],t);fa(i,e,o,s),kn(s,!1)}function Ui(n){return Fa("",n,""),Ui}function Fa(n,t,e){const i=w(),r=function Hr(n,t,e,i){return yt(n,br(),e)?t+H(e)+i:$}(i,n,t,e);return r!==$&&ei(i,wt(),r),Fa}function od(n,t,e){const i=w();return yt(i,br(),t)&&Yt(te(),Oe(),i,n,t,i[z],e,!0),od}const ka="en-US";let s_=ka;function cd(n,t,e,i,r){if(n=W(n),Array.isArray(n))for(let s=0;s<n.length;s++)cd(n[s],t,e,i,r);else{const s=te(),o=w();let a=Lr(n)?n:W(n.provide),l=Fm(n);const c=Ze(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Lr(n)||!n.multi){const f=new Ss(l,r,g),p=dd(a,t,r?u:u+h,d);-1===p?(oa(As(c,o),s,a),ud(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[p]=f,o[p]=f)}else{const f=dd(a,t,u+h,d),p=dd(a,t,u,u+h),m=f>=0&&e[f],_=p>=0&&e[p];if(r&&!_||!r&&!m){oa(As(c,o),s,a);const b=function DT(n,t,e,i,r){const s=new Ss(n,e,g);return s.multi=[],s.index=t,s.componentProviders=0,I_(s,r,i&&!e),s}(r?CT:wT,e.length,r,i,l);!r&&_&&(e[p].providerFactory=b),ud(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(b),o.push(b)}else ud(s,n,f>-1?f:p,I_(e[r?p:f],l,!r&&i));!r&&i&&_&&e[p].componentProviders++}}}function ud(n,t,e,i){const r=Lr(t),s=function qM(n){return!!n.useClass}(t);if(r||s){const l=(s?W(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function I_(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function dd(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function wT(n,t,e,i){return hd(this.multi,[])}function CT(n,t,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Is(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),hd(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],hd(r,s);return s}function hd(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function ue(n,t=[]){return e=>{e.providersResolver=(i,r)=>function bT(n,t,e){const i=te();if(i.firstCreatePass){const r=gn(n);cd(e,i.data,i.blueprint,r,!0),cd(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class T_{}class ST{resolveComponentFactory(t){throw function ET(n){const t=Error(`No component factory found for ${de(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Wi=(()=>{class n{}return n.NULL=new ST,n})();function MT(){return Xr(Ze(),w())}function Xr(n,t){return new B(Ut(n,t))}let B=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=MT,n})();function AT(n){return n instanceof B?n.nativeElement:n}class io{}let jn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function TT(){const n=w(),e=zt(Ze().index,n);return function IT(n){return n[z]}(Fn(e)?e:n)}(),n})(),FT=(()=>{class n{}return n.\u0275prov=D({token:n,providedIn:"root",factory:()=>null}),n})();class vi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const kT=new vi("13.4.0"),fd={};function La(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Ue(s)),pn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&La(l[1],l,c,i)}const o=e.type;if(8&o)La(n,t,e.child,i);else if(32&o){const a=nu(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Sg(t,e);if(Array.isArray(a))i.push(...a);else{const l=Hs(t[16]);La(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class ro{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return La(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(pn(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(au(t,i),la(e,i))}this._attachedToViewContainer=!1}yg(this._lView[1],this._lView)}onDestroy(t){hm(this._lView[1],this._lView,null,t)}markForCheck(){Bu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ju(n,t,e){const i=t[10];i.begin&&i.begin();try{Nr(n,t,n.template,e)}catch(r){throw Em(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function GS(n,t){js(n,t,t[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new k(902,"");this._appRef=t}}class OT extends ro{constructor(t){super(t),this._view=t}detectChanges(){wm(this._view)}checkNoChanges(){}get context(){return null}}class k_ extends Wi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ct(t);return new pd(e,this.ngModule)}}function O_(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class pd extends T_{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function eM(n){return n.map(J0).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return O_(this.componentDef.inputs)}get outputs(){return O_(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function NT(n,t){return{get:(e,i,r)=>{const s=n.get(e,fd,r);return s!==fd||i===fd?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(io,bp),a=s.get(FT,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function dm(n,t,e){if(Ve(n))return n.selectRootElement(t,e===hn.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):ou(o.createRenderer(null,this.componentDef),c,function RT(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Gm(n,t){return{components:[],scheduler:n||j0,clean:VM,playerHandler:t||null,flags:0}}(),f=wa(0,null,null,1,0,null,null,null,null,null),p=zs(null,f,h,d,null,null,o,l,a,s);let m,_;Zo(p);try{const b=function jm(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=Or(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Da(l,c,!0),null!==n&&(na(r,n,c),null!==l.classes&&fu(r,n,l.classes),null!==l.styles&&Ag(r,n,l.styles)));const u=i.createRenderer(n,t),d=zs(e,cm(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(oa(As(l,e),o,t.type),ym(o,l),_m(l,e.length,1)),Ca(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)na(l,u,["ng-version",kT.full]);else{const{attrs:y,classes:E}=function tM(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!mn(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);y&&na(l,u,y),E&&E.length>0&&fu(l,u,E.join(" "))}if(_=Tc(f,20),void 0!==e){const y=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const x=e[E];y.push(null!=x?Array.from(x):null)}}m=function $m(n,t,e,i,r){const s=e[1],o=function CM(n,t,e){const i=Ze();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),vm(n,i,t,Rr(n,t,1,null),e));const r=Is(t,n,i.directiveStart,i);mt(r,t);const s=Ut(i,t);return s&&mt(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=Ze();t.contentQueries(1,o,l.directiveStart)}const a=Ze();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(pi(a.index),gm(e[1],a,0,a.directiveStart,a.directiveEnd,t),mm(t,o)),o}(b,this.componentDef,p,h,[rA]),Ws(f,p,null)}finally{Xo()}return new LT(this.componentType,m,Xr(_,p),p,_)}}class LT extends class xT{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new OT(r),this.componentType=t}get injector(){return new Dr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Jr{}const es=new Map;class P_ extends Jr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new k_(this);const i=en(t);this._bootstrapComponents=Pn(i.bootstrap),this._r3Injector=Tm(t,e,[{provide:Jr,useValue:this},{provide:Wi,useValue:this.componentFactoryResolver}],de(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Dt.THROW_IF_NOT_FOUND,i=U.Default){return t===Dt||t===Jr||t===Gu?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gd extends class BT{}{constructor(t){super(),this.moduleType=t,null!==en(t)&&function HT(n){const t=new Set;!function e(i){const r=en(i,!0),s=r.id;null!==s&&(function R_(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${de(t)} vs ${de(t.name)}`)}(s,es.get(s),i),es.set(s,i));const o=Pn(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new P_(this.moduleType,t)}}function L_(n,t,e,i,r,s){const o=t+e;return yt(n,o,r)?function Vn(n,t,e){return n[t]=e}(n,o+1,s?i.call(s,r):i(r)):function so(n,t){const e=n[t];return e===$?void 0:e}(n,o+1)}function G_(n,t,e){const i=n+20,r=w(),s=function vr(n,t){return n[t]}(r,i);return function oo(n,t){return n[1].data[t].pure}(r,i)?L_(r,function bt(){const n=j.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,s.transform,e,s):s.transform(e)}function md(n){return t=>{setTimeout(n,void 0,t)}}const tt=class nF extends ye{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=md(l),a&&(a=md(a)),c&&(c=md(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof Q&&t.add(u),u}};function iF(){return this._results[Vr()]()}class yd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Vr(),i=yd.prototype;i[e]||(i[e]=iF)}get changes(){return this._changes||(this._changes=new tt)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=rn(t);(this._changesDetected=!function sS(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.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()}}Symbol;let ni=(()=>{class n{}return n.__NG_ELEMENT_ID__=oF,n})();const rF=ni,sF=class extends rF{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=zs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Ws(e,i,t),new ro(i)}};function oF(){return Va(Ze(),w())}function Va(n,t){return 4&n.type?new sF(t,n,Xr(n,t)):null}let Cn=(()=>{class n{}return n.__NG_ELEMENT_ID__=aF,n})();function aF(){return W_(Ze(),w())}const lF=Cn,U_=class extends lF{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Xr(this._hostTNode,this._hostLView)}get injector(){return new Dr(this._hostTNode,this._hostLView)}get parentInjector(){const t=sa(this._hostTNode,this._hostLView);if(Lp(t)){const e=Cr(t,this._hostLView),i=wr(t);return new Dr(e[1].data[i+8],e)}return new Dr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=z_(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function ks(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new pd(ct(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Jr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function ME(n){return pn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new U_(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function zS(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],qp(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function WS(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=uu(s,o),l=i[z],c=ha(l,o[7]);return null!==c&&function $S(n,t,e,i,r,s){i[0]=r,i[6]=t,js(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),qp(_d(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=z_(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=au(this._lContainer,e);i&&(la(_d(this._lContainer),e),yg(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=au(this._lContainer,e);return i&&null!=la(_d(this._lContainer),e)?new ro(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function z_(n){return n[8]}function _d(n){return n[8]||(n[8]=[])}function W_(n,t){let e;const i=t[n.index];if(pn(i))e=i;else{let r;if(8&n.type)r=Ue(i);else{const s=t[z];r=s.createComment("");const o=Ut(n,t);Bi(s,ha(s,o),r,function QS(n,t){return Ve(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=bm(i,t,r,n),Ca(t,e)}return new U_(e,n,t)}class vd{constructor(t){this.queryList=t,this.matches=null}clone(){return new vd(this.queryList)}setDirty(){this.queryList.setDirty()}}class bd{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new bd(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Z_(t,e).matches&&this.queries[e].setDirty()}}class q_{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class wd{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new wd(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Cd{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Cd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,dF(e,s)),this.matchTNodeWithReadOption(t,e,aa(e,t,s,!1,!1))}else i===ni?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,aa(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===B||r===Cn||r===ni&&4&e.type)this.addMatch(e.index,-2);else{const s=aa(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function dF(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function fF(n,t,e,i){return-1===e?function hF(n,t){return 11&n.type?Xr(n,t):4&n.type?Va(n,t):null}(t,n):-2===e?function pF(n,t,e){return e===B?Xr(t,n):e===ni?Va(t,n):e===Cn?W_(t,n):void 0}(n,t,i):Is(n,n[1],e,t)}function K_(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:fF(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function Dd(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=K_(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Dd(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Dd(f[1],f,c,i)}}}}}return i}function Mt(n){const t=w(),e=te(),i=Ap();Lc(i+1);const r=Z_(e,i);if(n.dirty&&wp(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Dd(e,t,i,[]):K_(e,t,r,i);n.reset(s,AT),n.notifyOnChanges()}return!0}return!1}function ts(n,t,e){const i=te();i.firstCreatePass&&(Q_(i,new q_(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),Y_(i,w(),t)}function $n(n,t,e,i){const r=te();if(r.firstCreatePass){const s=Ze();Q_(r,new q_(t,e,i),s.index),function mF(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}Y_(r,w(),e)}function At(){return function gF(n,t){return n[19].queries[t].queryList}(w(),Ap())}function Y_(n,t,e){const i=new yd(4==(4&e));hm(n,t,i,i.destroy),null===t[19]&&(t[19]=new bd),t[19].queries.push(new vd(i))}function Q_(n,t,e){null===n.queries&&(n.queries=new wd),n.queries.track(new Cd(t,e))}function Z_(n,t){return n.queries.getByIndex(t)}function ja(...n){}const Id=new M("Application Initializer");let Td=(()=>{class n{constructor(e){this.appInits=e,this.resolve=ja,this.reject=ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Aa(s))e.push(s);else if(fy(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(v(Id,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lo=new M("AppId",{providedIn:"root",factory:function pv(){return`${Fd()}${Fd()}${Fd()}`}});function Fd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gv=new M("Platform Initializer"),Dn=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mv=new M("appBootstrapListener"),ii=new M("LocaleId",{providedIn:"root",factory:()=>Ir(ii,U.Optional|U.SkipSelf)||function RF(){return"undefined"!=typeof $localize&&$localize.locale||ka}()}),VF=(()=>Promise.resolve(0))();function kd(n){"undefined"==typeof Zone?VF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tt(!1),this.onMicrotaskEmpty=new tt(!1),this.onStable=new tt(!1),this.onError=new tt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function BF(){let n=pe.requestAnimationFrame,t=pe.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function $F(n){const t=()=>{!function jF(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(pe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Rd(n),n.isCheckStableRunning=!0,Od(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Rd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return yv(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),_v(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return yv(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),_v(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Rd(n),Od(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ie.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ie.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,HF,ja,ja);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const HF={};function Od(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Rd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function yv(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function _v(n){n._nesting--,Od(n)}class GF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tt,this.onMicrotaskEmpty=new tt,this.onStable=new tt,this.onError=new tt}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Nd=(()=>{class n{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:()=>{ie.assertNotInAngularZone(),kd(()=>{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())kd(()=>{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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),UF=(()=>{class n{constructor(){this._applications=new Map,Pd.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}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,i=!0){return Pd.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class zF{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Pd=new zF,qi=null;const vv=new M("AllowMultipleToken"),bv=new M("PlatformOnDestroy");function wv(n,t,e=[]){const i=`Platform: ${t}`,r=new M(i);return(s=[])=>{let o=Ld();if(!o||o.injector.get(vv,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function YF(n){if(qi&&!qi.get(vv,!1))throw new k(400,"");qi=n;const t=n.get(Cv),e=n.get(gv,null);e&&e.forEach(i=>i())}(function ZF(n=[],t){return Dt.create({name:t,providers:[{provide:Uu,useValue:"platform"},{provide:bv,useValue:()=>qi=null},...n]})}(a,i))}return function QF(n){const t=Ld();if(!t)throw new k(401,"");return t}()}}function Ld(){var n;return null!==(n=null==qi?void 0:qi.get(Cv))&&void 0!==n?n:null}let Cv=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function XF(n,t){let e;return e="noop"===n?new GF:("zone.js"===n?void 0:n)||new ie({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:ie,useValue:a}];return a.run(()=>{const c=Dt.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(mi,null);if(!d)throw new k(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Vd(this._modules,u),h.unsubscribe()})}),function JF(n,t,e){try{const i=e();return Aa(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Td);return h.runInitializers(),h.donePromise.then(()=>(function II(n){$t(n,"Expected localeId to be defined"),"string"==typeof n&&(s_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(ii,ka)||ka),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=Dv({},i);return function qF(n,t,e){const i=new gd(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get($a);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new k(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(bv,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(v(Dt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Dv(n,t){return Array.isArray(t)?t.reduce(Dv,n):Object.assign(Object.assign({},n),t)}let $a=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=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 o=new Ce(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Ce(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),kd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=fr(o,a.pipe(rp()))}bootstrap(e,i){if(!this._initStatus.done)throw new k(405,"");let r;r=e instanceof T_?e:this._injector.get(Wi).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function KF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Jr),a=r.create(Dt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Nd,null),u=c&&a.injector.get(UF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Vd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new k(101,"");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 i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Vd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(mv,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Dt),v(mi),v(Td))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vd(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Ev=!0,is=(()=>{class n{}return n.__NG_ELEMENT_ID__=nk,n})();function nk(n){return function ik(n,t,e){if(Wo(n)&&!e){const i=zt(n.index,t);return new ro(i,i)}return 47&n.type?new ro(t[16],t):null}(Ze(),w(),16==(16&n))}class Tv{constructor(){}supports(t){return Ks(t)}create(t){return new ck(t)}}const lk=(n,t)=>t;class ck{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||lk}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<kv(i,r,s)?e:i,a=kv(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ks(t))throw new k(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function pA(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Vr()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new uk(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Fv),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class uk{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class dk{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Fv{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new dk,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kv(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class Ov{constructor(){}supports(t){return t instanceof Map||Qu(t)}create(){return new hk}}class hk{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Qu(t)))throw new k(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new fk(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class fk{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Rv(){return new co([new Tv])}let co=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Rv()),deps:[[n,new Ls,new Vi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new k(901,"")}}return n.\u0275prov=D({token:n,providedIn:"root",factory:Rv}),n})();function Nv(){return new Yi([new Ov])}let Yi=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Nv()),deps:[[n,new Ls,new Vi]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new k(901,"")}}return n.\u0275prov=D({token:n,providedIn:"root",factory:Nv}),n})();const mk=wv(null,"core",[]);let yk=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(v($a))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})(),za=null;function Gn(){return za}const q=new M("DocumentToken");let uo=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:function(){return function wk(){return v(Pv)}()},providedIn:"platform"}),n})(),Pv=(()=>{class n extends uo{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gn().getBaseHref(this._doc)}onPopState(e){const i=Gn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Gn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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,i,r){Lv()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Lv()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:function(){return function Ck(){return new Pv(v(q))}()},providedIn:"platform"}),n})();function Lv(){return!!window.history.pushState}function Vv(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Bv(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Qi(n){return n&&"?"!==n[0]?"?"+n:n}let Gd=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:function(){return function Dk(n){const t=v(q).location;return new Ek(v(uo),t&&t.origin||"")}()},providedIn:"root"}),n})();const xk=new M("appBaseHref");let Ek=(()=>{class n extends Gd{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Vv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Qi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Qi(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Qi(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(uo),v(xk,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),Hv=(()=>{class n{constructor(e,i){this._subject=new tt,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Bv(jv(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Qi(i))}normalize(e){return n.stripTrailingSlash(function Mk(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,jv(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qi(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Qi,n.joinWithSlash=Vv,n.stripTrailingSlash=Bv,n.\u0275fac=function(e){return new(e||n)(v(Gd),v(uo))},n.\u0275prov=D({token:n,factory:function(){return function Sk(){return new Hv(v(Gd),v(uo))}()},providedIn:"root"}),n})();function jv(n){return n.replace(/\/index.html$/,"")}let tl=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,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&&(Ks(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(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${de(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(g(co),g(Yi),g(B),g(jn))},n.\u0275dir=C({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})(),Jd=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new pO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Zv("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Zv("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,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Cn),g(ni))},n.\u0275dir=C({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class pO{constructor(){this.$implicit=null,this.ngIf=null}}function Zv(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${de(t)}'.`)}const Xv="browser";function Zi(n){return n===Xv}function rs(n){return"server"===n}class nh{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let rl=(()=>{class n{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 i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),ib=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new nh(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(g(Cn),g(ni),g(rl,9))},n.\u0275dir=C({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})();class WO{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class qO{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const KO=new qO,YO=new WO;let sb=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Aa(e))return KO;if(hy(e))return YO;throw function En(n,t){return new k(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(is,16))},n.\u0275pipe=_t({name:"async",type:n,pure:!1}),n})(),oh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();class ah extends class gR extends class bk{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function vk(n){za||(za=n)}(new ah)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function mR(){return go=go||document.querySelector("base"),go?go.getAttribute("href"):null}();return null==e?null:function yR(n){sl=sl||document.createElement("a"),sl.setAttribute("href",n);const t=sl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){go=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function uO(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let sl,go=null;const lb=new M("TRANSITION_ID"),vR=[{provide:Id,useFactory:function _R(n,t,e){return()=>{e.get(Td).donePromise.then(()=>{const i=Gn(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[lb,q,Dt],multi:!0}];class lh{static init(){!function WF(n){Pd=n}(new lh)}addToWindow(t){pe.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},pe.getAllAngularTestabilities=()=>t.getAllTestabilities(),pe.getAllAngularRootElements=()=>t.getAllRootElements(),pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push(i=>{const r=pe.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Gn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let bR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const ol=new M("EventManagerPlugins");let al=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(v(ol),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class cb{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Gn().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let ub=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),mo=(()=>{class n extends ub{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(db),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(db))}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();function db(n){Gn().remove(n)}const ch={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},uh=/%COMP%/g;function ll(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?ll(n,r,e):(r=r.replace(uh,n),e.push(r))}return e}function pb(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let cl=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new dh(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case hn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new SR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case hn.ShadowDom:return new MR(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=ll(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(v(al),v(mo),v(lo))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class dh{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(ch[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=ch[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=ch[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(qt.DashCase|qt.Important)?t.style.setProperty(e,i,r&qt.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&qt.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,pb(i)):this.eventManager.addEventListener(t,e,pb(i))}}class SR extends dh{constructor(t,e,i,r){super(t),this.component=i;const s=ll(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function DR(n){return"_ngcontent-%COMP%".replace(uh,n)}(r+"-"+i.id),this.hostAttr=function xR(n){return"_nghost-%COMP%".replace(uh,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class MR extends dh{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ll(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let AR=(()=>{class n extends cb{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const mb=["alt","control","meta","shift"],TR={"\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"},yb={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"},FR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let kR=(()=>{class n extends cb{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(mb.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function OR(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&yb.hasOwnProperty(t)&&(t=yb[t]))}return TR[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),mb.forEach(s=>{s!=r&&FR[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const LR=wv(mk,"browser",[{provide:Dn,useValue:Xv},{provide:gv,useValue:function RR(){ah.makeCurrent(),lh.init()},multi:!0},{provide:q,useFactory:function PR(){return function DE(n){Ac=n}(document),document},deps:[]}]),VR=[{provide:Uu,useValue:"root"},{provide:mi,useFactory:function NR(){return new mi},deps:[]},{provide:ol,useClass:AR,multi:!0,deps:[q,ie,Dn]},{provide:ol,useClass:kR,multi:!0,deps:[q]},{provide:cl,useClass:cl,deps:[al,mo,lo]},{provide:io,useExisting:cl},{provide:ub,useExisting:mo},{provide:mo,useClass:mo,deps:[q]},{provide:Nd,useClass:Nd,deps:[ie]},{provide:al,useClass:al,deps:[ol,ie]},{provide:class fR{},useClass:bR,deps:[]}];let _b=(()=>{class n{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:n,providers:[{provide:lo,useValue:e.appId},{provide:lb,useExisting:lo},vR]}}}return n.\u0275fac=function(e){return new(e||n)(v(n,12))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:VR,imports:[oh,yk]}),n})();"undefined"!=typeof window&&window;let ul=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:function(e){let i=null;return i=e?new(e||n):v(wb),i},providedIn:"root"}),n})(),wb=(()=>{class n extends ul{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ce.NONE:return i;case ce.HTML:return Rn(i,"HTML")?Kt(i):Hg(this._doc,String(i)).toString();case ce.STYLE:return Rn(i,"Style")?Kt(i):i;case ce.SCRIPT:if(Rn(i,"Script"))return Kt(i);throw new Error("unsafe value used in a script context");case ce.URL:return kg(i),Rn(i,"URL")?Kt(i):$s(String(i));case ce.RESOURCE_URL:if(Rn(i,"ResourceURL"))return Kt(i);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 function c0(n){return new r0(n)}(e)}bypassSecurityTrustStyle(e){return function u0(n){return new s0(n)}(e)}bypassSecurityTrustScript(e){return function d0(n){return new o0(n)}(e)}bypassSecurityTrustUrl(e){return function h0(n){return new a0(n)}(e)}bypassSecurityTrustResourceUrl(e){return function f0(n){return new l0(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:function(e){let i=null;return i=e?new e:function KR(n){return new wb(n.get(q))}(v(Dt)),i},providedIn:"root"}),n})();function ut(n){return null!=n&&"false"!=`${n}`}function fh(n,t=0){return function YR(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function dl(n){return Array.isArray(n)?n:[n]}function qe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function si(n){return n instanceof B?n.nativeElement:n}function Un(...n){let t=n[n.length-1];return hr(t)?(n.pop(),uc(n,t)):hc(n)}function ph(n,t,e,i){return J(e)&&(i=e,e=void 0),i?ph(n,t,e).pipe(at(r=>ae(r)?i(...r):i(r))):new Ce(r=>{Cb(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function Cb(n,t,e,i,r){let s;if(function XR(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function ZR(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function QR(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)Cb(n[o],t,e,i,r)}i.add(s)}class JR extends Q{constructor(t,e){super()}schedule(t,e=0){return this}}class hl extends JR{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Db=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Sn extends Db{constructor(t,e=Db.now){super(t,()=>Sn.delegate&&Sn.delegate!==this?Sn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Sn.delegate&&Sn.delegate!==this?Sn.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}new class tN extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class eN extends hl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let iN=1;const rN=Promise.resolve(),fl={};function xb(n){return n in fl&&(delete fl[n],!0)}const Eb={setImmediate(n){const t=iN++;return fl[t]=!0,rN.then(()=>xb(t)&&n()),t},clearImmediate(n){xb(n)}},gh=(new class oN extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class sN extends hl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Eb.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Eb.clearImmediate(e),t.scheduled=void 0)}}),new Sn(hl));class cN{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new uN(t,this.durationSelector))}}class uN extends vs{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=bs(e,new _s(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Sb(n){return!ae(n)&&n-parseFloat(n)+1>=0}function hN(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function Mb(n,t=gh){return function lN(n){return function(e){return e.lift(new cN(n))}}(()=>function dN(n=0,t,e){let i=-1;return Sb(t)?i=Number(t)<1?1:Number(t):hr(t)&&(e=t),hr(e)||(e=gh),new Ce(r=>{const s=Sb(n)?n:+n-e.now();return e.schedule(hN,s,{index:0,period:i,subscriber:r})})}(n,t))}function ss(n,t){return function(i){return i.lift(new fN(n,t))}}class fN{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new pN(t,this.predicate,this.thisArg))}}class pN extends we{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}let mh;try{mh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){mh=!1}let os,Lt=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Zi(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&&!mh)&&"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 n.\u0275fac=function(e){return new(e||n)(v(Dn))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();const Ab=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ib(){if(os)return os;if("object"!=typeof document||!document)return os=new Set(Ab),os;let n=document.createElement("input");return os=new Set(Ab.filter(t=>(n.setAttribute("type",t),n.type===t))),os}let yo,Xi,yh;function _o(n){return function gN(){if(null==yo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>yo=!0}))}finally{yo=yo||!1}return yo}()?n:!!n.capture}function mN(){if(null==Xi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xi=!1,Xi;if("scrollBehavior"in document.documentElement.style)Xi=!0;else{const n=Element.prototype.scrollTo;Xi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Xi}function Ji(n){return n.composedPath?n.composedPath()[0]:n.target}function _h(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const vN=new M("cdk-dir-doc",{providedIn:"root",factory:function bN(){return Ir(q)}}),wN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vo=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new tt,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function CN(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wN.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(v(vN,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),as=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})(),Tb=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new ye,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ce(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Mb(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Un()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ss(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=si(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ph(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Lt),v(q,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fb=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new ye,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Mb(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(ie),v(q,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})(),kb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[as,pl,vh],as,vh]}),n})();class bh{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ob extends bh{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class EN extends bh{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class SN extends bh{constructor(t){super(),this.element=t instanceof B?t.nativeElement:t}}class AN extends class MN{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Ob?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof EN?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof SN?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let IN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();const TN=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),Rb=new Ce(n=>n.complete());function Nb(n){return n?function FN(n){return new Ce(t=>n.schedule(()=>t.complete()))}(n):Rb}function bo(n){return t=>0===n?Nb():t.lift(new kN(n))}class kN{constructor(t){if(this.total=t,this.total<0)throw new TN}call(t,e){return e.subscribe(new ON(t,this.total))}}class ON extends we{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function Ke(n){return t=>t.lift(new RN(n))}class RN{constructor(t){this.notifier=t}call(t,e){const i=new NN(t),r=bs(this.notifier,new _s(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class NN extends vs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const Pb=mN();class PN{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=qe(-this._previousScrollPosition.left),t.style.top=qe(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Pb&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Pb&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class LN{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Lb{enable(){}disable(){}attach(){}}function wh(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function Vb(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class VN{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();wh(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let BN=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Lb,this.close=o=>new LN(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new PN(this._viewportRuler,this._document),this.reposition=o=>new VN(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(v(Tb),v(Fb),v(ie),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class HN{constructor(t){if(this.scrollStrategy=new Lb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class jN{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class $N{constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new ye,this._attachments=new ye,this._detachments=new ye,this._locationChanges=Q.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new ye,this._outsidePointerEvents=new ye,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(bo(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=qe(this._config.width),t.height=qe(this._config.height),t.minWidth=qe(this._config.minWidth),t.minHeight=qe(this._config.minHeight),t.maxWidth=qe(this._config.maxWidth),t.maxHeight=qe(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=dl(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ke(fr(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let Ch=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||_h()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),_h()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(Lt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Bb="cdk-overlay-connected-position-bounding-box",GN=/([A-Za-z%]+)$/;class UN{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ye,this._resizeSubscription=Q.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Bb),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&er(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Bb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=jb(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=Hb(this._overlayRef.getConfig().minHeight),a=Hb(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=jb(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new jN(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=qe(i.height),r.top=qe(i.top),r.bottom=qe(i.bottom),r.width=qe(i.width),r.left=qe(i.left),r.right=qe(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=qe(s)),o&&(r.maxWidth=qe(o))}this._lastBoundingBoxSize=i,er(this._boundingBox.style,r)}_resetBoundingBoxStyles(){er(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){er(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();er(i,this._getExactOverlayY(e,t,u)),er(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=qe(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=qe(o.maxWidth):s&&(i.maxWidth="")),er(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=qe(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=qe(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Vb(t,i),isOriginOutsideView:wh(t,i),isOverlayClipped:Vb(e,i),isOverlayOutsideView:wh(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&dl(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof B)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function er(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Hb(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(GN);return e&&"px"!==e?null:parseFloat(t)}return n||null}function jb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const $b="cdk-global-overlay-wrapper";class zN{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add($b),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove($b),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let WN=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new zN}flexibleConnectedTo(e){return new UN(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(v(Fb),v(q),v(Lt),v(Ch))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gb=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qN=(()=>{class n extends Gb{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KN=(()=>{class n extends Gb{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Ji(r)},this._clickListener=r=>{const s=Ji(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(Lt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YN=0,ml=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new HN(e);return o.direction=o.direction||this._directionality.value,new $N(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+YN++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get($a)),new AN(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(v(BN),v(Ch),v(Wi),v(WN),v(qN),v(Dt),v(ie),v(q),v(vo),v(Hv),v(KN))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const XN={provide:new M("cdk-connected-overlay-scroll-strategy"),deps:[ml],useFactory:function ZN(n){return()=>n.scrollStrategies.reposition()}};let JN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[ml,XN],imports:[[as,IN,kb],kb]}),n})();const nP=new class tP extends Sn{}(class eP extends hl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function Ub(n,t){return new Ce(t?e=>t.schedule(iP,0,{error:n,subscriber:e}):e=>e.error(n))}function iP({error:n,subscriber:t}){t.error(n)}class ln{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Un(this.value);case"E":return Ub(this.error);case"C":return Nb()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new ln("N",t):ln.undefinedValueNotification}static createError(t){return new ln("E",void 0,t)}static createComplete(){return ln.completeNotification}}ln.completeNotification=new ln("C"),ln.undefinedValueNotification=new ln("N",void 0);class yl extends we{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(yl.dispatch,this.delay,new sP(t,this.destination)))}_next(t){this.scheduleMessage(ln.createNext(t))}_error(t){this.scheduleMessage(ln.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(ln.createComplete()),this.unsubscribe()}}class sP{constructor(t,e){this.notification=t,this.destination=e}}class oP extends ye{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new aP(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Fi;if(this.isStopped||this.hasError?o=Q.EMPTY:(this.observers.push(t),o=new Qf(this,t)),r&&t.add(t=new yl(t,r)),e)for(let a=0;a<s&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<s&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||nP).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(t-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class aP{constructor(t,e){this.time=t,this.value=e}}function zb(n,t){return"function"==typeof t?e=>e.pipe(zb((i,r)=>Bo(n(i,r)).pipe(at((s,o)=>t(i,s,r,o))))):e=>e.lift(new lP(n))}class lP{constructor(t){this.project=t}call(t,e){return e.subscribe(new cP(t,this.project))}}class cP extends vs{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new _s(this),r=this.destination;r.add(i),this.innerSubscription=bs(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const _l={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return _l.schedule(n,0);if(void 0===window.requestAnimationFrame)return _l.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let Dh;function _P(n,t,e){let i=e;return function dP(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function fP(n,t){if(!Dh){const e=Element.prototype;Dh=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Dh.call(n,t)}(n,r)||(i=s,0))),i}class bP{constructor(t,e){this.componentFactory=e.get(Wi).resolveComponentFactory(t)}create(t){return new wP(this.componentFactory,t)}}class wP{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new oP(1),this.events=this.eventEmitters.pipe(zb(i=>fr(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(ie),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=_l.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function pP(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Dt.create({providers:[],parent:this.injector}),i=function yP(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=_P(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(is),this.implementsOnChanges=function hP(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get($a).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(at(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=_l.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new mp(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class CP extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Wb extends ye{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fi;return this._value}next(t){super.next(this._value=t)}}function qb(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}const xh="inline",vl=["row","column","row-reverse","column-reverse"];function Kb(n){let[t,e,i]=function Yb(n){var t;n=null!==(t=null==n?void 0:n.toLowerCase())&&void 0!==t?t:"";let[e,i,r]=n.split(" ");return vl.find(s=>s===e)||(e=vl[0]),i===xh&&(i=r!==xh?r:"",r=xh),[e,xP(i),!!r]}(n);return function EP(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}function xP(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function wi(){}function bl(n,t,e){return function(r){return r.lift(new SP(n,t,e))}}class SP{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new MP(t,this.nextOrObserver,this.error,this.complete))}}class MP extends we{constructor(t,e,i,r){super(t),this._tapNext=wi,this._tapError=wi,this._tapComplete=wi,this._tapError=i||wi,this._tapComplete=r||wi,J(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||wi,this._tapError=e.error||wi,this._tapComplete=e.complete||wi)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const IP={provide:mv,useFactory:function AP(n,t){return()=>{if(Zi(t)){const e=Array.from(n.querySelectorAll(`[class*=${Qb}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${Qb}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[q,Dn],multi:!0},Qb="flex-layout-";let Eh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[IP]}),n})();class tr{constructor(t=!1,e="all",i="",r="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new tr(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let TP=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const s=this.stylesheet.get(e);s?s.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Sh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Mn=new M("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Sh}),ls=new M("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Mh=new M("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Zb(n,t){return n=n?n.clone():new tr,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}class He{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let Ae=(()=>{class n{constructor(e,i,r,s){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(e,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:qb(i),this._applyMultiValueStyleToElement(s,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:qb(e);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||rs(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var r;return null!==(r=e.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(e,i){return Zi(this._platformId)?e.style.getPropertyValue(i):function FP(n,t){var e;return null!==(e=Xb(n)[t])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,r=!1){let s="";return e&&((s=this.lookupInlineStyle(e,i))||(Zi(this._platformId)?r||(s=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(e,i)))),s?s.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const s=e[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",Zi(this._platformId)||!this._serverModuleLoaded?Zi(this._platformId)?i.style.setProperty(r,a):kP(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return n.\u0275fac=function(e){return new(e||n)(v(TP),v(ls),v(Dn),v(Mn))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kP(n,t,e){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=Xb(n);i[t]=null!=e?e:"",function OP(n,t){let e="";for(const i in t)t[i]&&(e+=`${i}:${t[i]};`);n.setAttribute("style",e)}(n,i)}function Xb(n){const t={},e=n.getAttribute("style");if(e){const i=e.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);t[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return t}function Co(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function RP(n,t){return(n.priority||0)-(t.priority||0)}let Ah=(()=>{class n{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new Wb(new tr(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){var i;const r=this.registry.get(e);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(ss(o=>!i||e.indexOf(o.mediaQuery)>-1));return fr(new Ce(o=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function NP(n,t){const e=n.filter(i=>!Jb[i]);if(e.length>0){const i=e.join(", ");try{const r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),t.head.appendChild(r),e.forEach(s=>Jb[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new tr(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new tr(!0,s))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function PP(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,Zi(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Dn),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jb={},LP=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],ew="(orientation: portrait) and (max-width: 599.98px)",tw="(orientation: landscape) and (max-width: 959.98px)",nw="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",iw="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",rw="(orientation: portrait) and (min-width: 840px)",sw="(orientation: landscape) and (min-width: 1280px)",ai={HANDSET:`${ew}, ${tw}`,TABLET:`${nw} , ${iw}`,WEB:`${rw}, ${sw} `,HANDSET_PORTRAIT:`${ew}`,TABLET_PORTRAIT:`${nw} `,WEB_PORTRAIT:`${rw}`,HANDSET_LANDSCAPE:`${tw}`,TABLET_LANDSCAPE:`${iw}`,WEB_LANDSCAPE:`${sw}`},VP=[{alias:"handset",priority:2e3,mediaQuery:ai.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ai.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ai.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ai.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ai.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ai.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ai.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ai.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ai.WEB_PORTRAIT,overlapping:!0}],BP=/(\.|-|_)/g;function HP(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}const UP=new M("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Ir(Mh),t=Ir(Mn),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function GP(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?function oi(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}(e[i.alias],i):e[i.alias]=i}),function $P(n){return n.forEach(t=>{t.suffix||(t.suffix=function jP(n){return n.replace(BP,"|").split("|").map(HP).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}((t.disableDefaultBps?[]:LP).concat(t.addOrientationBps?VP:[]),e)}});let Ih=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(RP)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var r;let s=this.findByMap.get(e);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(e,s)),null!=s?s:null}}return n.\u0275fac=function(e){return new(e||n)(v(UP))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cs="print",zP={alias:cs,mediaQuery:cs,priority:1e3};let WP=(()=>{class n{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new qP,this.deactivations=[]}withPrintQuery(e){return[...e,cs]}isPrintEvent(e){return e.mediaQuery.startsWith(cs)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(Co)}updateEvent(e){var i;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),Zb(e,r)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new tr(!0,cs))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&e.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort(Co))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(v(Ih),v(Mn),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qP{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(zP),t.sort(Co),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function KP(n){var t;return null!==(t=null==n?void 0:n.mediaQuery.startsWith(cs))&&void 0!==t&&t}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}let Te=(()=>{class n{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new ye,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=Zb(e,i);const r=this.activatedBreakpoints.indexOf(i);e.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Co),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Co),this.updateStyles())}}init(e,i,r,s,o=[]){ow(this.updateMap,e,i,r),ow(this.clearMap,e,i,s),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,o)}getValue(e,i,r){const s=this.elementMap.get(e);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(e,i,r,s){var o;let a=this.elementMap.get(e);if(a){const c=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,c),this.elementMap.set(e,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(ss(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(e);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(e,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const s=this.updateMap.get(e);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(e,i,s.get(i)):s.forEach((o,a)=>this.updateElement(e,a,o)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let s=this.watcherMap.get(e);if(s||(s=new Map,this.watcherMap.set(e,s)),!s.get(i)){const a=fr(...r).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});s.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=e.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=e.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(bl(this.hook.interceptEvents(this)),ss(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(v(Ah),v(Ih),v(WP))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ow(n,t,e,i){var r;if(void 0!==i){const s=null!==(r=n.get(t))&&void 0!==r?r:new Map;s.set(e,i),n.set(t,s)}}let Ne=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ye,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(e);(!o||!s)&&(o=r.buildStyles(e,i),s&&this.styleCache.set(e,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(e,o,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[r,s]=this.styler.getFlowDirection(e);if(!s&&i){const o=Kb(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(He),g(Ae),g(Te))},n.\u0275dir=C({type:n,features:[Ot]}),n})(),gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[Eh]]}),n})(),m1=(()=>{class n extends He{buildStyles(e,{display:i}){const r=Kb(e);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const y1=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let _1=(()=>{class n extends Ne{constructor(e,i,r,s,o){super(e,r,i,s),this._config=o,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=yw.get(s))&&void 0!==i?i:new Map,yw.set(s,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:s}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(Ae),g(m1),g(Te),g(Mn))},n.\u0275dir=C({type:n,features:[S]}),n})(),mw=(()=>{class n extends _1{constructor(){super(...arguments),this.inputs=y1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[S]}),n})();const yw=new Map;let bw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[Eh,as]]}),n})(),Aw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[Eh]]}),n})(),BV=(()=>{class n{constructor(e,i){rs(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Mn,useValue:Object.assign(Object.assign({},Sh),e)},{provide:Mh,useValue:i,multi:!0},{provide:ls,useValue:!0}]:[{provide:Mn,useValue:Object.assign(Object.assign({},Sh),e)},{provide:Mh,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(v(ls),v(Dn))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[bw,gw,Aw],bw,gw,Aw]}),n})();function Iw(...n){if(1===n.length){const t=n[0];if(ae(t))return Dl(t,null);if(Ye(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Dl(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Dl(n=1===n.length&&ae(n[0])?n[0]:n,null).pipe(at(e=>t(...e)))}return Dl(n,null)}function Dl(n,t){return new Ce(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Bo(n[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let Tw=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(g(jn),g(B))},n.\u0275dir=C({type:n}),n})(),nr=(()=>{class n extends Tw{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275dir=C({type:n,features:[S]}),n})();const An=new M("NgValueAccessor"),jV={provide:An,useExisting:fe(()=>xl),multi:!0},GV=new M("CompositionEventMode");let xl=(()=>{class n extends Tw{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function $V(){const n=Gn()?Gn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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)}}return n.\u0275fac=function(e){return new(e||n)(g(jn),g(B),g(GV,8))},n.\u0275dir=C({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Je("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[ue([jV]),S]}),n})();function Ci(n){return null==n||0===n.length}function kw(n){return null!=n&&"number"==typeof n.length}const dt=new M("NgValidators"),Di=new M("NgAsyncValidators"),UV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zV{static min(t){return function Ow(n){return t=>{if(Ci(t.value)||Ci(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function Rw(n){return t=>{if(Ci(t.value)||Ci(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function Nw(n){return Ci(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Pw(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function Lw(n){return Ci(n.value)||UV.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function Vw(n){return t=>Ci(t.value)||!kw(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function Bw(n){return t=>kw(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function Hw(n){if(!n)return El;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ci(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Ww(t)}static composeAsync(t){return qw(t)}}function El(n){return null}function jw(n){return null!=n}function $w(n){const t=Aa(n)?Bo(n):n;return fy(t),t}function Gw(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Uw(n,t){return t.map(e=>e(n))}function zw(n){return n.map(t=>function WV(n){return!n.validate}(t)?t:e=>t.validate(e))}function Ww(n){if(!n)return null;const t=n.filter(jw);return 0==t.length?null:function(e){return Gw(Uw(e,t))}}function Fh(n){return null!=n?Ww(zw(n)):null}function qw(n){if(!n)return null;const t=n.filter(jw);return 0==t.length?null:function(e){return Iw(Uw(e,t).map($w)).pipe(at(Gw))}}function kh(n){return null!=n?qw(zw(n)):null}function Kw(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Yw(n){return n._rawValidators}function Qw(n){return n._rawAsyncValidators}function Oh(n){return n?Array.isArray(n)?n:[n]:[]}function Sl(n,t){return Array.isArray(n)?n.includes(t):n===t}function Zw(n,t){const e=Oh(t);return Oh(n).forEach(r=>{Sl(e,r)||e.push(r)}),e}function Xw(n,t){return Oh(t).filter(e=>!Sl(n,e))}class Jw{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Fh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=kh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class li extends Jw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Tt extends Jw{get formDirective(){return null}get path(){return null}}let tC=(()=>{class n extends class eC{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(g(li,2))},n.\u0275dir=C({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Nt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[S]}),n})();function Do(n,t){Ph(n,t),t.valueAccessor.writeValue(n.value),function tB(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&iC(n,t)})}(n,t),function iB(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function nB(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&iC(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function eB(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Il(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Fl(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Tl(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Ph(n,t){const e=Yw(n);null!==t.validator?n.setValidators(Kw(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Qw(n);null!==t.asyncValidator?n.setAsyncValidators(Kw(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Tl(t._rawValidators,r),Tl(t._rawAsyncValidators,r)}function Fl(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=Yw(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=Qw(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return Tl(t._rawValidators,i),Tl(t._rawAsyncValidators,i),e}function iC(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function rC(n,t){Ph(n,t)}function oC(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Bh(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const xo="VALID",kl="INVALID",us="PENDING",Eo="DISABLED";function jh(n){return(Ol(n)?n.validators:n)||null}function aC(n){return Array.isArray(n)?Fh(n):n||null}function $h(n,t){return(Ol(t)?t.asyncValidators:n)||null}function lC(n){return Array.isArray(n)?kh(n):n||null}function Ol(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const cC=n=>n instanceof zh,Gh=n=>n instanceof Wh;function uC(n){return cC(n)?n.value:n.getRawValue()}function dC(n,t){const e=Gh(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new k(1e3,"");if(!i[t])throw new k(1001,"")}function hC(n,t){Gh(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new k(1002,"")})}class Uh{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=aC(this._rawValidators),this._composedAsyncValidatorFn=lC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===xo}get invalid(){return this.status===kl}get pending(){return this.status==us}get disabled(){return this.status===Eo}get enabled(){return this.status!==Eo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=aC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=lC(t)}addValidators(t){this.setValidators(Zw(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Zw(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Xw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Xw(t,this._rawAsyncValidators))}hasValidator(t){return Sl(this._rawValidators,t)}hasAsyncValidator(t){return Sl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=us,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Eo,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=xo,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xo||this.status===us)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Eo:xo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=us,this._hasOwnPendingAsyncValidator=!0;const e=$w(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function aB(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=Gh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof cB)(i)&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new tt,this.statusChanges=new tt}_calculateStatus(){return this._allControlsDisabled()?Eo:this.errors?kl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(us)?us:this._anyControlsHaveStatus(kl)?kl:xo}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ol(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class zh extends Uh{constructor(t=null,e,i){super(jh(e),$h(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ol(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Bh(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Bh(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Wh extends Uh{constructor(t,e,i){super(jh(e),$h(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){hC(this,t),Object.keys(t).forEach(i=>{dC(this,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=uC(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class cB extends Uh{constructor(t,e,i){super(jh(e),$h(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){hC(this,t),t.forEach((i,r)=>{dC(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>uC(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const uB={provide:Tt,useExisting:fe(()=>Rl)},So=(()=>Promise.resolve(null))();let Rl=(()=>{class n extends Tt{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new tt,this.form=new Wh({},Fh(e),kh(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){So.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Do(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){So.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){So.then(()=>{const i=this._findContainer(e.path),r=new Wh({});rC(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){So.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){So.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,oC(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(g(dt,10),g(Di,10))},n.\u0275dir=C({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Je("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([uB]),S]}),n})(),_C=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();const qh=new M("NgModelWithFormControlWarning"),_B={provide:li,useExisting:fe(()=>Kh)};let Kh=(()=>{class n extends li{constructor(e,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new tt,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=function Vh(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===xl?e=s:function oB(n){return Object.getPrototypeOf(n.constructor)===nr}(s)?i=s:r=s}),r||i||e||null}(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Il(i,this,!1),Do(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function Lh(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)})(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Il(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(g(dt,10),g(Di,10),g(An,10),g(qh,8))},n.\u0275dir=C({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ue([_B]),S,Ot]}),n})();const vB={provide:Tt,useExisting:fe(()=>Nl)};let Nl=(()=>{class n extends Tt{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new tt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Fl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Do(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Il(e.control||null,e,!1),Bh(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,oC(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Il(i||null,e),cC(r)&&(Do(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);rC(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function rB(n,t){return Fl(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ph(this.form,this),this._oldForm&&Fl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(g(dt,10),g(Di,10))},n.\u0275dir=C({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Je("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([vB]),S,Ot]}),n})(),RC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[_C]]}),n})(),VB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[RC]}),n})(),BB=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:qh,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[RC]}),n})();function PC(n){return t=>t.lift(new qB(n))}class qB{constructor(t){this.total=t}call(t,e){return e.subscribe(new KB(t,this.total))}}class KB extends we{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class QB{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new ZB(t,this.compare,this.keySelector))}}class ZB extends we{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function ef(n,t=gh){return e=>e.lift(new XB(n,t))}class XB{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new JB(t,this.dueTime,this.scheduler))}}class JB extends we{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(eH,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function eH(n){n.debouncedNext()}let LC=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tH=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=si(e);return new Ce(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new ye,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(v(LC))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nH=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new tt,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=fh(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(ef(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(tH),g(B),g(ie))},n.\u0275dir=C({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),VC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[LC]}),n})();function Pl(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const HC="cdk-describedby-message-container",jC="cdk-describedby-message",Ll="cdk-describedby-host";let sH=0;const zn=new Map;let Qt=null,oH=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=tf(i,r);"string"!=typeof i?($C(i),zn.set(s,{messageElement:i,referenceCount:0})):zn.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const s=tf(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const o=zn.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}Qt&&0===Qt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Ll}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Ll);Qt&&this._deleteMessagesContainer(),zn.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");$C(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),Qt.appendChild(r),zn.set(tf(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i;const r=zn.get(e);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),zn.delete(e)}_createMessagesContainer(){if(!Qt){const e=this._document.getElementById(HC);null==e||e.remove(),Qt=this._document.createElement("div"),Qt.id=HC,Qt.style.visibility="hidden",Qt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Qt)}}_deleteMessagesContainer(){Qt&&(Qt.remove(),Qt=null)}_removeCdkDescribedByReferenceIds(e){const i=Pl(e,"aria-describedby").filter(r=>0!=r.indexOf(jC));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=zn.get(i);(function iH(n,t,e){const i=Pl(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ll,""),r.referenceCount++}_removeMessageReference(e,i){const r=zn.get(i);r.referenceCount--,function rH(n,t,e){const r=Pl(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ll)}_isElementDescribedByMessage(e,i){const r=Pl(e,"aria-describedby"),s=zn.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tf(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function $C(n){n.id||(n.id=`${jC}-${sH++}`)}function UC(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function zC(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const hH=new M("cdk-input-modality-detector-options"),fH={ignoreKeys:[18,17,224,91,16]},ds=_o({passive:!0,capture:!0});let pH=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new Wb(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Ji(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(UC(o)?"keyboard":"mouse"),this._mostRecentTarget=Ji(o))},this._onTouchstart=o=>{zC(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ji(o))},this._options=Object.assign(Object.assign({},fH),s),this.modalityDetected=this._modality.pipe(PC(1)),this.modalityChanged=this.modalityDetected.pipe(function YB(n,t){return e=>e.lift(new QB(n,t))}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ds),r.addEventListener("mousedown",this._onMousedown,ds),r.addEventListener("touchstart",this._onTouchstart,ds)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ds),document.removeEventListener("mousedown",this._onMousedown,ds),document.removeEventListener("touchstart",this._onTouchstart,ds))}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(ie),v(q),v(hH,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const mH=new M("cdk-focus-monitor-default-options"),Vl=_o({passive:!0,capture:!0});let qC=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ye,this._rootNodeFocusAndBlurListener=a=>{const l=Ji(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=si(e);if(!this._platform.isBrowser||1!==r.nodeType)return Un(null);const s=function _N(n){if(function yN(){if(null==yh){const n="undefined"!=typeof document?document.head:null;yh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return yh}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new ye,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=si(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=si(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Ji(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Lt),v(pH),v(q,8),v(mH,8))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const KC="cdk-high-contrast-black-on-white",YC="cdk-high-contrast-white-on-black",nf="cdk-high-contrast-active";let QC=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}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 i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(nf),e.remove(KC),e.remove(YC),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(nf),e.add(KC)):2===i&&(e.add(nf),e.add(YC))}}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yH=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(v(QC))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[pl,VC]]}),n})();class ZC{}const ci="*";function XC(n,t){return{type:7,name:n,definitions:t,options:{}}}function rf(n,t=null){return{type:4,styles:t,timings:n}}function JC(n,t=null){return{type:2,steps:n,options:t}}function Wn(n){return{type:6,styles:n,offset:null}}function sf(n,t,e){return{type:0,name:n,styles:t,options:e}}function vH(n){return{type:5,steps:n}}function af(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function eD(n){Promise.resolve(null).then(n)}class Mo{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){eD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class tD{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?eD(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const ee=!1;function nD(n){return new k(3e3,ee)}function JH(){return"undefined"!=typeof window&&void 0!==window.document}function cf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function xi(n){switch(n.length){case 0:return new Mo;case 1:return n[0];default:return new tD(n)}}function iD(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let m=p,_=u[p];if("offset"!==p)switch(m=t.normalizePropertyName(m,o),_){case"!":_=r[p];break;case ci:_=s[p];break;default:_=t.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function $H(n){return new k(3502,ee)}();return a}function uf(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&df(e,"start",n)));break;case"done":n.onDone(()=>i(e&&df(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&df(e,"destroy",n)))}}function df(n,t,e){const i=e.totalTime,s=hf(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function hf(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Zt(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function rD(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let ff=(n,t)=>!1,sD=(n,t,e)=>[],oD=null;function pf(n){const t=n.parentNode||n.host;return t===oD?null:t}(cf()||"undefined"!=typeof Element)&&(JH()?(oD=(()=>document.documentElement)(),ff=(n,t)=>{for(;t;){if(t===n)return!0;t=pf(t)}return!1}):ff=(n,t)=>n.contains(t),sD=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let rr=null,aD=!1;function lD(n){rr||(rr=function tj(){return"undefined"!=typeof document?document.body:null}()||{},aD=!!rr.style&&"WebkitAppearance"in rr.style);let t=!0;return rr.style&&!function ej(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in rr.style,!t&&aD&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in rr.style)),t}const cD=ff,uD=sD;let dD=(()=>{class n{validateStyleProperty(e){return lD(e)}matchesElement(e,i){return!1}containsElement(e,i){return cD(e,i)}getParentElement(e){return pf(e)}query(e,i,r){return uD(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Mo(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),gf=(()=>{class n{}return n.NOOP=new dD,n})();const mf="ng-enter",Hl="ng-leave",jl="ng-trigger",$l=".ng-trigger",fD="ng-animating",yf=".ng-animating";function sr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:_f(parseFloat(t[1]),t[2])}function _f(n,t){return"s"===t?1e3*n:n}function Gl(n,t,e){return n.hasOwnProperty("duration")?n:function rj(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(nD()),{duration:0,delay:0,easing:""};r=_f(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=_f(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function bH(){return new k(3100,ee)}()),a=!0),s<0&&(t.push(function wH(){return new k(3101,ee)}()),a=!0),a&&t.splice(l,0,nD())}return{duration:r,delay:s,easing:o}}(n,t,e)}function hs(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Ei(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else hs(n,e);return e}function gD(n,t,e){return e?t+":"+e+";":""}function mD(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=gD(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=gD(0,aj(e),n.style[e]));n.setAttribute("style",t)}function qn(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=bf(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),cf()&&mD(n))}function or(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=bf(e);n.style[i]=""}),cf()&&mD(n))}function Ao(n){return Array.isArray(n)?1==n.length?n[0]:JC(n):n}const vf=new RegExp("{{\\s*(.+?)\\s*}}","g");function yD(n){let t=[];if("string"==typeof n){let e;for(;e=vf.exec(n);)t.push(e[1]);vf.lastIndex=0}return t}function Ul(n,t,e){const i=n.toString(),r=i.replace(vf,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function DH(n){return new k(3003,ee)}()),a=""),a.toString()});return r==i?n:r}function zl(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const oj=/-+([a-z0-9])/g;function bf(n){return n.replace(oj,(...t)=>t[1].toUpperCase())}function aj(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Xt(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function xH(n){return new k(3004,ee)}()}}function _D(n,t){return window.getComputedStyle(n)[t]}function fj(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function pj(n,t,e){if(":"==n[0]){const l=function gj(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function VH(n){return new k(3016,ee)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function LH(n){return new k(3015,ee)}()),t;const r=i[1],s=i[2],o=i[3];t.push(vD(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(vD(o,r))}(i,e,t)):e.push(n),e}const Yl=new Set(["true","1"]),Ql=new Set(["false","0"]);function vD(n,t){const e=Yl.has(n)||Ql.has(n),i=Yl.has(t)||Ql.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Yl.has(n):Ql.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Yl.has(t):Ql.has(t)),o&&a}}const mj=new RegExp("s*:selfs*,?","g");function wf(n,t,e,i){return new yj(n).build(t,e,i)}class yj{constructor(t){this._driver=t}build(t,e,i){const r=new bj(e);this._resetContextStyleTimingState(r);const s=Xt(this,Ao(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function SH(){return new k(3006,ee)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function MH(){return new k(3007,ee)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Zl(a)){const l=a;Object.keys(l).forEach(c=>{yD(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(zl(s.values()),e.errors.push(function AH(n,t){return new k(3008,ee)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Xt(this,Ao(t.animation),e);return{type:1,matchers:fj(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ar(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Xt(this,i,e)),options:ar(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=Xt(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:ar(t.options)}}visitAnimate(t,e){const i=function Cj(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Cf(Gl(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Cf(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=Gl(e,t);return Cf(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:Wn({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Wn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==ci?i.push(o):e.errors.push(function IH(n){return new k(3002,ee)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(Zl(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(function TH(n,t,e,i,r){return new k(3010,ee)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function sj(n,t,e){const i=t.params||{},r=yD(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function CH(n){return new k(3001,ee)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function FH(){return new k(3011,ee)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(b=>{const y=this._makeStyleAst(b,e);let E=null!=y.offset?y.offset:function wj(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Zl(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Zl(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(y.styles),x=0;return null!=E&&(s++,x=y.offset=E),l=l||x<0||x>1,a=a||x<c,c=x,o.push(x),y});l&&e.errors.push(function kH(){return new k(3012,ee)}()),a&&e.errors.push(function OH(){return new k(3200,ee)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function RH(){return new k(3202,ee)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,m=e.currentAnimateTimings,_=m.duration;return u.forEach((b,y)=>{const E=h>0?y==f?1:h*y:o[y],x=E*_;e.currentTime=p+m.delay+x,m.duration=x,this._validateStyleAst(b,e),b.offset=E,i.styles.push(b)}),i}visitReference(t,e){return{type:8,animation:Xt(this,Ao(t.animation),e),options:ar(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ar(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ar(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function _j(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(mj,"")),n=n.replace(/@\*/g,$l).replace(/@\w+/g,e=>$l+"-"+e.substr(1)).replace(/:animating/g,yf),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Zt(e.collectedStyles,e.currentQuerySelector,{});const a=Xt(this,Ao(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:ar(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function NH(){return new k(3013,ee)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Gl(t.timings,e.errors,!0);return{type:12,animation:Xt(this,Ao(t.animation),e),timings:i,options:null}}}class bj{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zl(n){return!Array.isArray(n)&&"object"==typeof n}function ar(n){return n?(n=hs(n)).params&&(n.params=function vj(n){return n?hs(n):null}(n.params)):n={},n}function Cf(n,t,e){return{duration:n,delay:t,easing:e}}function Df(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Xl{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ej=new RegExp(":enter","g"),Mj=new RegExp(":leave","g");function xf(n,t,e,i,r,s={},o={},a,l,c=[]){return(new Aj).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class Aj{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new Xl;const d=new Ef(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Xt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const m=h[p];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Df(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?sr(i.duration):null,a=null!=i.delay?sr(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Xt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Jl);const o=sr(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Xt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?sr(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Xt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Gl(e.params?Ul(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?sr(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Jl);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),Xt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Xt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Jl={};class Ef{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ec(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=sr(i.duration)),null!=i.delay&&(r.delay=sr(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Ul(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new Ef(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Jl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Ij(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Ej,"."+this._enterClassName)).replace(Mj,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function PH(n){return new k(3014,ee)}()),a}}class ec{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ec(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ci,this._currentKeyframe[e]=ci}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function Tj(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=ci})):Ei(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Ul(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ci),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ei(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==ci&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?zl(t.values()):[],o=e.size?zl(e.values()):[];if(i){const a=r[0],l=hs(a);a.offset=0,l.offset=1,r=[a,l]}return Df(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Ij extends ec{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=Ei(t[0],!1);l.offset=0,s.push(l);const c=Ei(t[0],!1);c.offset=CD(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Ei(t[d],!1);h.offset=CD((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return Df(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function CD(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Sf{}class Fj extends Sf{normalizePropertyName(t,e){return bf(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(kj[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function EH(n,t){return new k(3005,ee)}())}return o+s}}const kj=(()=>function Oj(n){const t={};return n.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 DD(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Mf={};class xD{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function Rj(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Mf,p=this.buildStyles(i,a&&a.params||Mf,d),m=l&&l.params||Mf,_=this.buildStyles(r,m,d),b=new Set,y=new Map,E=new Map,x="void"===r,F={params:Object.assign(Object.assign({},h),m)},re=u?[]:xf(t,e,this.ast.animation,s,o,p,_,F,c,d);let Se=0;if(re.forEach(ft=>{Se=Math.max(ft.duration+ft.delay,Se)}),d.length)return DD(e,this._triggerName,i,r,x,p,_,[],[],y,E,Se,d);re.forEach(ft=>{const pt=ft.element,Vt=Zt(y,pt,{});ft.preStyleProps.forEach(Tn=>Vt[Tn]=!0);const Ft=Zt(E,pt,{});ft.postStyleProps.forEach(Tn=>Ft[Tn]=!0),pt!==e&&b.add(pt)});const rt=zl(b.values());return DD(e,this._triggerName,i,r,x,p,_,re,rt,y,E,Se)}}class Nj{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=hs(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Ul(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class Lj{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new Nj(r.style,r.options&&r.options.params||{},i)}),ED(this.states,"true","1"),ED(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new xD(t,r,this.states))}),this.fallbackTransition=function Vj(n,t,e){return new xD(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function ED(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const Bj=new Xl;class Hj{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=wf(this._driver,e,i,[]);if(i.length)throw function GH(n){return new k(3503,ee)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=iD(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=xf(this._driver,e,s,mf,Hl,{},{},i,Bj,r),o.forEach(u=>{const d=Zt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function UH(){return new k(3300,ee)}()),o=[]),r.length)throw function zH(n){return new k(3504,ee)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,ci)})});const c=xi(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function WH(n){return new k(3301,ee)}();return e}listen(t,e,i,r){const s=hf(e,"","","");return uf(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const SD="ng-animate-queued",Af="ng-animate-disabled",zj=[],MD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cn="__ng_removed";class If{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function Qj(n){return null!=n?n:null}(i?t.value:t),i){const s=hs(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Io="void",Tf=new If(Io);class qj{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,un(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function qH(n,t){return new k(3302,ee)}();if(null==i||0==i.length)throw function KH(n){return new k(3303,ee)}();if(!function Zj(n){return"start"==n||"done"==n}(i))throw function YH(n,t){return new k(3400,ee)}();const s=Zt(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Zt(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(un(t,jl),un(t,jl+"-"+e),a[e]=Tf),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function QH(n){return new k(3401,ee)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new Ff(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(un(t,jl),un(t,jl+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new If(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Tf),c.value!==Io&&l.value===c.value){if(!function e2(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{or(t,_),qn(t,b)})}return}const h=Zt(this._engine.playersByElement,t,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(un(t,SD),o.onStart(()=>{fs(t,SD)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(t);if(_){let b=_.indexOf(o);b>=0&&_.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,$l,!0);i.forEach(r=>{if(r[cn])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Io,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&xi(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Tf,u=new If(Io),d=new Ff(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[cn];(!s||s===MD)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){un(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=hf(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,uf(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class Kj{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new qj(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,i,r){if(tc(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!tc(e))return;const s=e[cn];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),un(t,Af)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),fs(t,Af))}removeNode(t,e,i,r){if(tc(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[cn]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return tc(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,$l,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,yf,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return xi(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[cn];if(i&&i.setForRemoval){if(t[cn]=MD,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Af))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)un(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?xi(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function ZH(n){return new k(3402,ee)}()}_flushAnimations(t,e){const i=new Xl,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(O=>{u.add(O);const N=this.driver.query(O,".ng-animate-queued",!0);for(let V=0;V<N.length;V++)u.add(N[V])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=TD(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((O,N)=>{const V=mf+m++;p.set(N,V),O.forEach(se=>un(se,V))});const _=[],b=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const N=this.collectedLeaveElements[O],V=N[cn];V&&V.setForRemoval&&(_.push(N),b.add(N),V.hasAnimation?this.driver.query(N,".ng-star-inserted",!0).forEach(se=>b.add(se)):y.add(N))}const E=new Map,x=TD(h,Array.from(b));x.forEach((O,N)=>{const V=Hl+m++;E.set(N,V),O.forEach(se=>un(se,V))}),t.push(()=>{f.forEach((O,N)=>{const V=p.get(N);O.forEach(se=>fs(se,V))}),x.forEach((O,N)=>{const V=E.get(N);O.forEach(se=>fs(se,V))}),_.forEach(O=>{this.processLeaveNode(O)})});const F=[],re=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(V=>{const se=V.player,st=V.element;if(F.push(se),this.collectedEnterElements.length){const kt=st[cn];if(kt&&kt.setForMove){if(kt.previousTriggersValues&&kt.previousTriggersValues.has(V.triggerName)){const cr=kt.previousTriggersValues.get(V.triggerName),Ii=this.statesByElement.get(V.element);Ii&&Ii[V.triggerName]&&(Ii[V.triggerName].value=cr)}return void se.destroy()}}const Kn=!d||!this.driver.containsElement(d,st),Jt=E.get(st),Ai=p.get(st),Pe=this._buildInstruction(V,i,Ai,Jt,Kn);if(Pe.errors&&Pe.errors.length)return void re.push(Pe);if(Kn)return se.onStart(()=>or(st,Pe.fromStyles)),se.onDestroy(()=>qn(st,Pe.toStyles)),void r.push(se);if(V.isFallbackTransition)return se.onStart(()=>or(st,Pe.fromStyles)),se.onDestroy(()=>qn(st,Pe.toStyles)),void r.push(se);const xx=[];Pe.timelines.forEach(kt=>{kt.stretchStartingKeyframe=!0,this.disabledNodes.has(kt.element)||xx.push(kt)}),Pe.timelines=xx,i.append(st,Pe.timelines),o.push({instruction:Pe,player:se,element:st}),Pe.queriedElements.forEach(kt=>Zt(a,kt,[]).push(se)),Pe.preStyleProps.forEach((kt,cr)=>{const Ii=Object.keys(kt);if(Ii.length){let ur=l.get(cr);ur||l.set(cr,ur=new Set),Ii.forEach(Wf=>ur.add(Wf))}}),Pe.postStyleProps.forEach((kt,cr)=>{const Ii=Object.keys(kt);let ur=c.get(cr);ur||c.set(cr,ur=new Set),Ii.forEach(Wf=>ur.add(Wf))})});if(re.length){const O=[];re.forEach(N=>{O.push(function XH(n,t){return new k(3505,ee)}())}),F.forEach(N=>N.destroy()),this.reportError(O)}const Se=new Map,rt=new Map;o.forEach(O=>{const N=O.element;i.has(N)&&(rt.set(N,N),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,Se))}),r.forEach(O=>{const N=O.element;this._getPreviousPlayers(N,!1,O.namespaceId,O.triggerName,null).forEach(se=>{Zt(Se,N,[]).push(se),se.destroy()})});const ft=_.filter(O=>kD(O,l,c)),pt=new Map;ID(pt,this.driver,y,c,ci).forEach(O=>{kD(O,l,c)&&ft.push(O)});const Ft=new Map;f.forEach((O,N)=>{ID(Ft,this.driver,new Set(O),l,"!")}),ft.forEach(O=>{const N=pt.get(O),V=Ft.get(O);pt.set(O,Object.assign(Object.assign({},N),V))});const Tn=[],gs=[],ms={};o.forEach(O=>{const{element:N,player:V,instruction:se}=O;if(i.has(N)){if(u.has(N))return V.onDestroy(()=>qn(N,se.toStyles)),V.disabled=!0,V.overrideTotalTime(se.totalTime),void r.push(V);let st=ms;if(rt.size>1){let Jt=N;const Ai=[];for(;Jt=Jt.parentNode;){const Pe=rt.get(Jt);if(Pe){st=Pe;break}Ai.push(Jt)}Ai.forEach(Pe=>rt.set(Pe,st))}const Kn=this._buildAnimation(V.namespaceId,se,Se,s,Ft,pt);if(V.setRealPlayer(Kn),st===ms)Tn.push(V);else{const Jt=this.playersByElement.get(st);Jt&&Jt.length&&(V.parentPlayer=xi(Jt)),r.push(V)}}else or(N,se.fromStyles),V.onDestroy(()=>qn(N,se.toStyles)),gs.push(V),u.has(N)&&r.push(V)}),gs.forEach(O=>{const N=s.get(O.element);if(N&&N.length){const V=xi(N);O.setRealPlayer(V)}}),r.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O<_.length;O++){const N=_[O],V=N[cn];if(fs(N,Hl),V&&V.hasAnimation)continue;let se=[];if(a.size){let Kn=a.get(N);Kn&&Kn.length&&se.push(...Kn);let Jt=this.driver.query(N,yf,!0);for(let Ai=0;Ai<Jt.length;Ai++){let Pe=a.get(Jt[Ai]);Pe&&Pe.length&&se.push(...Pe)}}const st=se.filter(Kn=>!Kn.destroyed);st.length?Xj(this,N,st):this.processLeaveNode(N)}return _.length=0,Tn.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();const N=this.players.indexOf(O);this.players.splice(N,1)}),O.play()}),Tn}elementContainsData(t,e){let i=!1;const r=e[cn];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Io;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=Zt(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}or(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const _=m[cn];if(_&&_.removedBeforeQueried)return new Mo(p.duration,p.delay);const b=m!==l,y=function Jj(n){const t=[];return FD(n,t),t}((i.get(m)||zj).map(Se=>Se.getRealPlayer())).filter(Se=>!!Se.element&&Se.element===m),E=s.get(m),x=o.get(m),F=iD(0,this._normalizer,0,p.keyframes,E,x),re=this._buildPlayer(p,F,y);if(p.subTimeline&&r&&d.add(m),b){const Se=new Ff(t,a,m);Se.setRealPlayer(re),c.push(Se)}return re});c.forEach(p=>{Zt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function Yj(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>un(p,fD));const f=xi(h);return f.onDestroy(()=>{u.forEach(p=>fs(p,fD)),qn(l,e.toStyles)}),d.forEach(p=>{Zt(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Mo(t.duration,t.delay)}}class Ff{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Mo,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>uf(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Zt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function tc(n){return n&&1===n.nodeType}function AD(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function ID(n,t,e,i,r){const s=[];e.forEach(l=>s.push(AD(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[cn]=Wj,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>AD(l,s[a++])),o}function TD(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function un(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function fs(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function Xj(n,t,e){xi(e).onDone(()=>n.processLeaveNode(t))}function FD(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof tD?FD(i.players,t):t.push(i)}}function kD(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class nc{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Kj(t,e,i),this._timelineEngine=new Hj(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=wf(this._driver,s,l,[]);if(l.length)throw function jH(n,t){return new k(3404,ee)}();a=function Pj(n,t,e){return new Lj(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=rD(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=rD(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let n2=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&qn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(qn(this._element,this._initialStyles),this._endStyles&&(qn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(or(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(or(this._element,this._endStyles),this._endStyles=null),qn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function kf(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];r2(r)&&(t=t||{},t[r]=n[r])}return t}function r2(n){return"display"===n||"position"===n}class OD{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:_D(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class s2{validateStyleProperty(t){return lD(t)}matchesElement(t,e){return!1}containsElement(t,e){return cD(t,e)}getParentElement(t){return pf(t)}query(t,e,i){return uD(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof OD);(function lj(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),e=function cj(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=_D(n,l)})}}return t}(t,e=e.map(h=>Ei(h,!1)),c);const d=function t2(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=kf(t[0]),t.length>1&&(i=kf(t[t.length-1]))):t&&(e=kf(t)),e||i?new n2(n,e,i):null}(t,e);return new OD(t,e,l,d)}}let o2=(()=>{class n extends ZC{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:hn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?JC(e):e;return RD(this._renderer,null,i,"register",[r]),new a2(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(v(io),v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class a2 extends class _H{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new l2(this._id,t,e||{},this._renderer)}}class l2{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return RD(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function RD(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const ND="@.disabled";let c2=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PD("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new u2(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(v(io),v(nc),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();class PD{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==ND?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class u2 extends PD{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==ND?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function d2(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function h2(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let f2=(()=>{class n extends nc{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(gf),v(Sf))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const To=new M("AnimationModuleType"),LD=[{provide:ZC,useClass:o2},{provide:Sf,useFactory:function p2(){return new Fj}},{provide:nc,useClass:f2},{provide:io,useFactory:function g2(n,t,e){return new c2(n,t,e)},deps:[cl,nc,ie]}],VD=[{provide:gf,useFactory:()=>new s2},{provide:To,useValue:"BrowserAnimations"},...LD],m2=[{provide:gf,useClass:dD},{provide:To,useValue:"NoopAnimations"},...LD];let y2=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?m2:VD}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:VD,imports:[_b]}),n})();const v2=new M("mat-sanity-checks",{providedIn:"root",factory:function _2(){return!0}});let In=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!_h()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(v(QC),v(v2,8),v(q))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[as],as]}),n})();function b2(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ut(t)}}}function Of(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function w2(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ut(t)}}}function C2(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new ye,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}let HD=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class x2{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jD={enterDuration:225,exitDuration:150},Rf=_o({passive:!0}),$D=["mousedown","touchstart"],GD=["mouseup","mouseleave","touchend","touchcancel"];class S2{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=si(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},jD),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function A2(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function M2(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new x2(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},jD),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=si(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($D))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(GD),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=UC(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!zC(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,Rf)})})}_removeTriggerEvents(){this._triggerElement&&($D.forEach(t=>{this._triggerElement.removeEventListener(t,this,Rf)}),this._pointerUpEventsRegistered&&GD.forEach(t=>{this._triggerElement.removeEventListener(t,this,Rf)}))}}const I2=new M("mat-ripple-global-options");let UD=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new S2(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(ie),g(Lt),g(I2,8),g(To,8))},n.\u0275dir=C({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),T2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[In,pl],In]}),n})();const F2=["mat-button",""],k2=["*"],R2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],N2=Of(b2(w2(class{constructor(n){this._elementRef=n}})));let P2=(()=>{class n extends N2{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of R2)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(qC),g(To,8))},n.\u0275cmp=ki({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&ts(UD,5),2&e){let r;Mt(r=At())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(xt("disabled",i.disabled||null),Nt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[S],attrs:F2,ngContentSelectors:k2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Ia(),ge(0,"span",0),vn(1),xe(),Gi(2,"span",1)(3,"span",2)),2&e&&(Me(2),Nt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),be("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[UD],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),L2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[T2,In],In]}),n})();function Nf(...n){return function V2(){return np(1)}()(Un(...n))}function rc(...n){const t=n[n.length-1];return hr(t)?(n.pop(),e=>Nf(n,e,t)):e=>Nf(n,e)}const B2=["connectionContainer"],H2=["inputContainer"],j2=["label"];function $2(n,t){1&n&&(Qs(0),ge(1,"div",14),Gi(2,"div",15)(3,"div",16)(4,"div",17),xe(),ge(5,"div",18),Gi(6,"div",15)(7,"div",16)(8,"div",17),xe(),Zs())}function G2(n,t){if(1&n){const e=Ma();ge(0,"div",19),Je("cdkObserveContent",function(){return Yo(e),Rt().updateOutlineGap()}),vn(1,1),xe()}2&n&&be("cdkObserveContentDisabled","outline"!=Rt().appearance)}function U2(n,t){if(1&n&&(Qs(0),vn(1,2),ge(2,"span"),ti(3),xe(),Zs()),2&n){const e=Rt(2);Me(3),Ui(e._control.placeholder)}}function z2(n,t){1&n&&vn(0,3,["*ngSwitchCase","true"])}function W2(n,t){1&n&&(ge(0,"span",23),ti(1," *"),xe())}function q2(n,t){if(1&n){const e=Ma();ge(0,"label",20,21),Je("cdkObserveContent",function(){return Yo(e),Rt().updateOutlineGap()}),Et(2,U2,4,1,"ng-container",12),Et(3,z2,1,0,"ng-content",12),Et(4,W2,2,0,"span",22),xe()}if(2&n){const e=Rt();Nt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),be("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),xt("for",e._control.id)("aria-owns",e._control.id),Me(2),be("ngSwitchCase",!1),Me(1),be("ngSwitchCase",!0),Me(1),be("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function K2(n,t){1&n&&(ge(0,"div",24),vn(1,4),xe())}function Y2(n,t){if(1&n&&(ge(0,"div",25),Gi(1,"span",26),xe()),2&n){const e=Rt();Me(1),Nt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Q2(n,t){1&n&&(ge(0,"div"),vn(1,5),xe()),2&n&&be("@transitionMessages",Rt()._subscriptAnimationState)}function Z2(n,t){if(1&n&&(ge(0,"div",30),ti(1),xe()),2&n){const e=Rt(2);be("id",e._hintLabelId),Me(1),Ui(e.hintLabel)}}function X2(n,t){if(1&n&&(ge(0,"div",27),Et(1,Z2,2,2,"div",28),vn(2,6),Gi(3,"div",29),vn(4,7),xe()),2&n){const e=Rt();be("@transitionMessages",e._subscriptAnimationState),Me(1),be("ngIf",e.hintLabel)}}const J2=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],e$=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let t$=0;const zD=new M("MatError");let n$=(()=>{class n{constructor(e,i){this.id="mat-error-"+t$++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Ts("aria-live"),g(B))},n.\u0275dir=C({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&xt("id",i.id)},inputs:{id:"id"},features:[ue([{provide:zD,useExisting:n}])]}),n})();const i$={transitionMessages:XC("transitionMessages",[sf("enter",Wn({opacity:1,transform:"translateY(0%)"})),af("void => enter",[Wn({opacity:0,transform:"translateY(-5px)"}),rf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Pf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n}),n})(),r$=0;const WD=new M("MatHint");let s$=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+r$++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,i){2&e&&(xt("id",i.id)("align",null),Nt("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[ue([{provide:WD,useExisting:n}])]}),n})(),Lf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-label"]]}),n})(),o$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-placeholder"]]}),n})();const a$=new M("MatPrefix"),qD=new M("MatSuffix");let l$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSuffix",""]],features:[ue([{provide:qD,useExisting:n}])]}),n})(),KD=0;const u$=Of(class{constructor(n){this._elementRef=n}},"primary"),d$=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS"),QD=new M("MatFormField");let h$=(()=>{class n extends u${constructor(e,i,r,s,o,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ye,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+KD++,this._labelId="mat-form-field-label-"+KD++,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 i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ut(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(rc(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),fr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(rc(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(rc(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(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 i=this._control?this._control.ngControl:null;return i&&i[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,ph(this._label.nativeElement,"transitionend").pipe(bo(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 i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${s}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=e.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let m=0;m<h.length;m++)p+=h[m].offsetWidth;o=Math.abs(f-d)-5,a=p>0?.75*p+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${o}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}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 i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(is),g(vo,8),g(d$,8),g(Lt),g(ie),g(To,8))},n.\u0275cmp=ki({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&($n(r,Pf,5),$n(r,Pf,7),$n(r,Lf,5),$n(r,Lf,7),$n(r,o$,5),$n(r,zD,5),$n(r,WD,5),$n(r,a$,5),$n(r,qD,5)),2&e){let s;Mt(s=At())&&(i._controlNonStatic=s.first),Mt(s=At())&&(i._controlStatic=s.first),Mt(s=At())&&(i._labelChildNonStatic=s.first),Mt(s=At())&&(i._labelChildStatic=s.first),Mt(s=At())&&(i._placeholderChild=s.first),Mt(s=At())&&(i._errorChildren=s),Mt(s=At())&&(i._hintChildren=s),Mt(s=At())&&(i._prefixChildren=s),Mt(s=At())&&(i._suffixChildren=s)}},viewQuery:function(e,i){if(1&e&&(ts(B2,7),ts(H2,5),ts(j2,5)),2&e){let r;Mt(r=At())&&(i._connectionContainerRef=r.first),Mt(r=At())&&(i._inputContainerRef=r.first),Mt(r=At())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&Nt("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[ue([{provide:QD,useExisting:n}]),S],ngContentSelectors:e$,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(Ia(J2),ge(0,"div",0)(1,"div",1,2),Je("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Et(3,$2,9,0,"ng-container",3),Et(4,G2,2,1,"div",4),ge(5,"div",5,6),vn(7),ge(8,"span",7),Et(9,q2,5,16,"label",8),xe()(),Et(10,K2,2,0,"div",9),xe(),Et(11,Y2,2,4,"div",10),ge(12,"div",11),Et(13,Q2,2,1,"div",12),Et(14,X2,5,2,"div",13),xe()()),2&e&&(Me(3),be("ngIf","outline"==i.appearance),Me(1),be("ngIf",i._prefixChildren.length),Me(5),be("ngIf",i._hasFloatingLabel()),Me(1),be("ngIf",i._suffixChildren.length),Me(1),be("ngIf","outline"!=i.appearance),Me(1),be("ngSwitch",i._getDisplayedMessages()),Me(1),be("ngSwitchCase","error"),Me(1),be("ngSwitchCase","hint"))},directives:[Jd,nH,rl,ib],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}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.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}.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,.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:not([type=password])::-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;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-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{-webkit-user-select:none;-moz-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{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}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::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.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)}.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}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.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"],encapsulation:2,data:{animation:[i$.transitionMessages]},changeDetection:0}),n})(),Vf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[oh,In,VC],In]}),n})();class p${constructor(t){this.selector=t}call(t,e){return e.subscribe(new g$(t,this.selector,this.caught))}}class g$ extends vs{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new _s(this);this.add(i);const r=bs(e,i);r!==i&&this.add(r)}}}class y${constructor(t){this.callback=t}call(t,e){return e.subscribe(new _$(t,this.callback))}}class _$ extends we{constructor(t,e){super(t),this.add(new Q(e))}}class b${}class Si{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Si;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Si?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class w${encodeKey(t){return ZD(t)}encodeValue(t){return ZD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const D$=/%(\d[a-f0-9])/gi,x$={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ZD(n){return encodeURIComponent(n).replace(D$,(t,e)=>{var i;return null!==(i=x$[e])&&void 0!==i?i:t})}function XD(n){return`${n}`}class Mi{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new w$,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function C$(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Mi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(XD(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(XD(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class E${constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function JD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function ex(n){return"undefined"!=typeof Blob&&n instanceof Blob}function tx(n){return"undefined"!=typeof FormData&&n instanceof FormData}class ko{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function S$(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Si),this.context||(this.context=new E$),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Mi,this.urlWithParams=e}serializeBody(){return null===this.body?null:JD(this.body)||ex(this.body)||tx(this.body)||function M$(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Mi?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||tx(this.body)?null:ex(this.body)?this.body.type||null:JD(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Mi?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new ko(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ht=(()=>((ht=ht||{})[ht.Sent=0]="Sent",ht[ht.UploadProgress=1]="UploadProgress",ht[ht.ResponseHeader=2]="ResponseHeader",ht[ht.DownloadProgress=3]="DownloadProgress",ht[ht.Response=4]="Response",ht[ht.User=5]="User",ht))();class Bf extends class A${constructor(t,e=200,i="OK"){this.headers=t.headers||new Si,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=ht.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Bf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Hf(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let ix=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof ko)s=e;else{let l,c;l=r.headers instanceof Si?r.headers:new Si(r.headers),r.params&&(c=r.params instanceof Mi?r.params:new Mi({fromObject:r.params})),s=new ko(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Un(s).pipe(function v$(n,t){return dc(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof ko||"events"===r.observe)return o;const a=o.pipe(ss(l=>l instanceof Bf));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Mi).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Hf(r,i))}post(e,i,r={}){return this.request("POST",e,Hf(r,i))}put(e,i,r={}){return this.request("PUT",e,Hf(r,i))}}return n.\u0275fac=function(e){return new(e||n)(v(b$))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();const T$=["*"];let sc;function Oo(n){var t;return(null===(t=function F$(){if(void 0===sc&&(sc=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(sc=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return sc}())||void 0===t?void 0:t.createHTML(n))||n}function rx(n){return Error(`Unable to find icon with the name "${n}"`)}function sx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ox(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class lr{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Ro=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new lr(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(ce.HTML,r);if(!o)throw ox(r);const a=Oo(o);return this._addSvgIconConfig(e,i,new lr("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new lr(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(ce.HTML,i);if(!s)throw ox(i);const o=Oo(s);return this._addSvgIconSetConfig(e,new lr("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(ce.RESOURCE_URL,e);if(!i)throw sx(e);const r=this._cachedIconsByUrl.get(i);return r?Un(oc(r)):this._loadSvgIconFromConfig(new lr(e,null)).pipe(bl(s=>this._cachedIconsByUrl.set(i,s)),at(s=>oc(s)))}getNamedSvgIcon(e,i=""){const r=ax(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):Ub(rx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Un(oc(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(at(i=>oc(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);if(r)return Un(r);const s=i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(function f$(n){return function(e){const i=new p$(n),r=e.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ce.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Un(null)})));return Iw(s).pipe(at(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw rx(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(bl(i=>e.svgText=i),at(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Un(null):this._fetchIcon(e).pipe(bl(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(Oo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Oo("<svg></svg>")),r=e.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function k$(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(ce.RESOURCE_URL,r);if(!a)throw sx(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(at(u=>Oo(u)),function m$(n){return t=>t.lift(new y$(n))}(()=>this._inProgressUrlFetches.delete(a)),rp());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(ax(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return R$(s)?new lr(s.url,null,s.options):new lr(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(v(ix,8),v(ul),v(q,8),v(mi))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oc(n){return n.cloneNode(!0)}function ax(n,t){return n+":"+t}function R$(n){return!(!n.url||!n.options)}const N$=Of(class{constructor(n){this._elementRef=n}}),P$=new M("mat-icon-location",{providedIn:"root",factory:function L$(){const n=Ir(q),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),lx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V$=lx.map(n=>`[${n}]`).join(", "),B$=/^url\(['"]?#(.*?)['"]?\)$/;let H$=(()=>{class n extends N${constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Q.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ut(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(V$),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)lx.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(B$):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(bo(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(Ro),Ts("aria-hidden"),g(P$),g(mi))},n.\u0275cmp=ki({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(xt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Nt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[S],ngContentSelectors:T$,decls:1,vars:0,template:function(e,i){1&e&&(Ia(),vn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),j$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[In],In]}),n})();const cx=_o({passive:!0});let $$=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Rb;const i=si(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new ye,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,cx),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,cx)}}),s}stopMonitoring(e){const i=si(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(v(Lt),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({imports:[[pl]]}),n})();const G$=new M("MAT_INPUT_VALUE_ACCESSOR"),U$=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let z$=0;const W$=C2(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let dx=(()=>{class n extends W${constructor(e,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+z$++,this.focused=!1,this.stateChanges=new ye,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>Ib().has(p));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",p=>{const m=p.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ut(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(zV.required))&&void 0!==s&&s}set required(e){this._required=ut(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ib().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ut(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){U$.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(g(B),g(Lt),g(li,10),g(Rl,8),g(Nl,8),g(HD),g(G$,10),g($$),g(ie),g(QD,8))},n.\u0275dir=C({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&Je("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(od("disabled",i.disabled)("required",i.required),xt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Nt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[ue([{provide:Pf,useExisting:n}]),S,Ot]}),n})(),q$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[HD],imports:[[ux,Vf,In],ux,Vf]}),n})();class K$ extends we{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Y$ extends we{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Q$(n,t,e,i,r=new Y$(n,e,i)){if(!r.closed)return t instanceof Ce?t.subscribe(r):cc(t)(r)}const hx={};class X${constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new J$(t,this.resultSelector))}}class J$ extends K${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(hx),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(Q$(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===hx?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const fx=new Set;let ps,eG=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function tG(n){if(!fx.has(n))try{ps||(ps=document.createElement("style"),ps.setAttribute("type","text/css"),document.head.appendChild(ps)),ps.sheet&&(ps.sheet.insertRule(`@media ${n} {body{ }}`,0),fx.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(v(Lt))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nG(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let iG=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new ye}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return px(dl(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=function Z$(...n){let t,e;return hr(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&ae(n[0])&&(n=n[0]),hc(n,e).lift(new X$(t))}(px(dl(e)).map(o=>this._registerQuery(o).observable));return s=Nf(s.pipe(bo(1)),s.pipe(PC(1),ef(0))),s.pipe(at(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Ce(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(rc(i),at(({matches:o})=>({query:e,matches:o})),Ke(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(v(eG),v(ie))},n.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function px(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const sG={tooltipState:XC("state",[sf("initial, void, hidden",Wn({opacity:0,transform:"scale(0)"})),sf("visible",Wn({transform:"scale(1)"})),af("* => visible",rf("200ms cubic-bezier(0, 0, 0.2, 1)",vH([Wn({opacity:0,transform:"scale(0)",offset:0}),Wn({opacity:.5,transform:"scale(0.99)",offset:.5}),Wn({opacity:1,transform:"scale(1)",offset:1})]))),af("* => hidden",rf("100ms cubic-bezier(0, 0, 0.2, 1)",Wn({opacity:0})))])},gx="tooltip-panel",mx=_o({passive:!0}),yx=new M("mat-tooltip-scroll-strategy"),cG={provide:yx,deps:[ml],useFactory:function lG(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},uG=new M("mat-tooltip-default-options",{providedIn:"root",factory:function dG(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let hG=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ye,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=fh(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=fh(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,mx)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Ob(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${gx}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!function WB(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(bo(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${gx}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,mx)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){!function uy(){throw new Error("invalid")}()},n.\u0275dir=C({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),fG=(()=>{class n extends hG{constructor(e,i,r,s,o,a,l,c,u,d,h,f){super(e,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=gG}}return n.\u0275fac=function(e){return new(e||n)(g(ml),g(B),g(Tb),g(Cn),g(ie),g(Lt),g(oH),g(qC),g(yx),g(vo,8),g(uG,8),g(q))},n.\u0275dir=C({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[S]}),n})(),pG=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ye}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(g(is))},n.\u0275dir=C({type:n}),n})(),gG=(()=>{class n extends pG{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(g(is),g(iG))},n.\u0275cmp=ki({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&rd("zoom","visible"===i._visibility?1:null)},features:[S],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(ge(0,"div",0),Je("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function $_(n,t){const e=te();let i;const r=n+20;e.firstCreatePass?(i=function ZT(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=Li(i.type)),o=ui(g);try{const a=ra(!1),l=s();return ra(a),function mA(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,w(),r,l),l}finally{ui(o)}}(1,"async"),ti(2),xe()),2&e){let r;Nt("mat-tooltip-handset",null==(r=G_(1,5,i._isHandset))?null:r.matches),be("ngClass",i.tooltipClass)("@state",i._visibility),Me(2),Ui(i.message)}},directives:[tl],pipes:[sb],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[sG.tooltipState]},changeDetection:0}),n})(),mG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[cG],imports:[[yH,oh,JN,In],In,vh]}),n})(),yG=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",i=this._document.querySelectorAll(`.${e}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(e),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(e){return new(e||n)(v(q))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();"function"==typeof SuppressedError&&SuppressedError;const ac=new M("config"),bx=new M("NEW_CONFIG"),wx=new M("INITIAL_CONFIG"),jG={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},$G=["Hh:m0:s0","Hh:m0","m0:s0"],GG=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let zf=(()=>{class n{constructor(e){this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(i,r,s,o)=>{const a=i.split(s),l=a.length>1?`${s}${a[1]}`:"";let c=a[0];const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,u.length)}`:c.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(c);)c=c.replace(d,"$1"+r+"$2");return void 0===o?c+l:0===o?c:c+l.substr(0,o+1)},this.percentage=i=>Number(i)>=0&&Number(i)<=100,this.getPrecision=i=>{const r=i.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=i=>{var r,s,o;for(let a=(null===(r=this.suffix)||void 0===r?void 0:r.length)-1;a>=0;a--){const l=this.suffix.substr(a,null===(s=this.suffix)||void 0===s?void 0:s.length);if(i.includes(l)&&(a-1<0||!i.includes(this.suffix.substr(a-1,null===(o=this.suffix)||void 0===o?void 0:o.length))))return i.replace(l,"")}return i},this.checkInputPrecision=(i,r,s)=>{if(r<1/0){const o=new RegExp(this._charToRegExpExpression(s)+`\\d{${r}}.*$`),a=i.match(o);a&&a[0].length-1>r&&(i=i.substring(0,i.length-(a[0].length-1-r))),0===r&&i.endsWith(s)&&(i=i.substring(0,i.length-1))}return i},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(e,i){const[r,s]=i;return this.customPattern=s,this.applyMask(e,r)}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(null==e||void 0===i)return"";let l=0,c="",u=!1,d=!1,h=1,f=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e));const p=e.toString().split("");"IP"===i&&(this.ipError=p.filter(x=>"."===x).length<3&&p.length<7,i="099.099.099.099");const m=[];for(let x=0;x<e.length;x++)e[x].match("\\d")&&m.push(e[x]);if("CPF_CNPJ"===i&&(this.cpfCnpjError=11!==m.length&&14!==m.length,i=m.length>11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){e=this._stripToDecimal(e);const x=this.getPrecision(i);e=this.checkInputPrecision(e,x,this.decimalMarker)}e.indexOf(".")>0&&!this.percentage(e.substring(0,e.indexOf(".")))&&(e=`${e.substring(0,e.indexOf(".")-1)}${e.substring(e.indexOf("."),e.length)}`),c=this.percentage(e)?e:e.substring(0,e.length-1)}else if(i.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&e[1]!==this.decimalMarker?e.slice(1,e.length):e;const x=this._charToRegExpExpression(this.thousandSeparator),F=this._charToRegExpExpression(this.decimalMarker),re='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(x,"").replace(F,""),Se=new RegExp("["+re+"]");e.match(Se)&&(e=e.substring(0,e.length-1));const rt=this.getPrecision(i),ft=(e=this.checkInputPrecision(e,rt,this.decimalMarker)).replace(new RegExp(x,"g"),"");c=this._formatWithSeparators(ft,this.thousandSeparator,this.decimalMarker,rt);const pt=c.indexOf(",")-e.indexOf(","),Vt=c.length-e.length;if(Vt>0&&","!==c[r]){d=!0;let Ft=0;do{this._shift.add(r+Ft),Ft++}while(Ft<Vt)}else 0!==pt&&r>0&&!(c.indexOf(",")>=r&&r>3)||!(c.indexOf(".")>=r&&r>3)&&Vt<=0?(this._shift.clear(),d=!0,h=Vt,this._shift.add(r+=Vt)):this._shift.clear()}else for(let x=0,F=p[0];x<p.length&&l!==i.length;x++,F=p[x])if(this._checkSymbolMask(F,i[l])&&"?"===i[l+1])c+=F,l+=2;else if("*"===i[l+1]&&u&&this._checkSymbolMask(F,i[l+2]))c+=F,l+=3,u=!1;else if(this._checkSymbolMask(F,i[l])&&"*"===i[l+1])c+=F,u=!0;else if("?"===i[l+1]&&this._checkSymbolMask(F,i[l+2]))c+=F,l+=3;else if(this._checkSymbolMask(F,i[l])){if("H"===i[l]&&Number(F)>2){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&"2"===c&&Number(F)>3){l+=1,x--;continue}if("m"===i[l]&&Number(F)>5){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}if("s"===i[l]&&Number(F)>5){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}const re=31;if("d"===i[l]&&(Number(F)>3&&this.leadZeroDateTime||Number(e.slice(l,l+2))>re||"/"===e[l+1])){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}if("M"===i[l]){const rt=0===l&&(Number(F)>2||Number(e.slice(l,l+2))>12||"/"===e[l+1]),ft=e.slice(l-3,l-1).includes("/")&&("/"===e[l-2]&&Number(e.slice(l-1,l+1))>12&&"/"!==e[l]||"/"===e[l]||"/"===e[l-3]&&Number(e.slice(l-2,l))>12&&"/"!==e[l-1]||"/"===e[l-1]),pt=Number(e.slice(l-3,l-1))<=re&&!e.slice(l-3,l-1).includes("/")&&"/"===e[l-1]&&(Number(e.slice(l,l+2))>12||"/"===e[l+1]),Vt=Number(e.slice(l-3,l-1))>re&&!e.slice(l-3,l-1).includes("/")&&!e.slice(l-2,l).includes("/")&&Number(e.slice(l-2,l))>12,Ft=Number(e.slice(l-3,l-1))<=re&&!e.slice(l-3,l-1).includes("/")&&"/"!==e[l-1]&&Number(e.slice(l-1,l+1))>12;if(Number(F)>1&&this.leadZeroDateTime||rt||ft||pt||Vt||Ft){l+=1,this._shiftStep(i,l,p.length),x--,this.leadZeroDateTime&&(c+="0");continue}}c+=F,l++}else-1!==this.maskSpecialCharacters.indexOf(i[l])?(c+=i[l],l++,this._shiftStep(i,l,p.length),x--):this.maskSpecialCharacters.indexOf(F)>-1&&this.maskAvailablePatterns[i[l]]&&this.maskAvailablePatterns[i[l]].optional?(!!p[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&(c+=p[l]),l++,x--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(F)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(F)===this.maskExpression[l+2]&&u?(l+=3,c+=F):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(F)<0&&F!==this.placeHolderCharacter&&(f=!0);c.length+1===i.length&&-1!==this.maskSpecialCharacters.indexOf(i[i.length-1])&&(c+=i[i.length-1]);let _=r+1;for(;this._shift.has(_);)h++,_++;let b=s?l:this._shift.has(r)?h:0;f&&b--,a(b,d),h<0&&this._shift.clear();let y=!1;o&&(y=p.every(x=>this.maskSpecialCharacters.includes(x)));let E=`${this.prefix}${y?"":c}${this.suffix}`;return 0===c.length&&(E=`${this.prefix}${c}`),E}_findSpecialChar(e){return this.maskSpecialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[i]&&this.maskAvailablePatterns[i].pattern&&this.maskAvailablePatterns[i].pattern.test(e)}_stripToDecimal(e){return e.split("").filter((i,r)=>i.match("^-?\\d")||i.match("\\s")||"."===i||","===i||"-"===i&&0===r&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?"\\"+e:e)}_shiftStep(e,i,r){const s=/[*?]/g.test(e.slice(0,i))?r:i;this._shift.add(s+this.prefix.length||0)}}return n.\u0275fac=function(e){return new(e||n)(v(ac))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),Cx=(()=>{class n extends zf{constructor(e,i,r,s){super(i),this.document=e,this._config=i,this._elementRef=r,this._renderer=s,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=o=>{}}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(!i)return e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=e&&"number"==typeof this.selStart?e[this.selStart]:"";let c="";if(void 0!==this.hiddenInput){let f=this.actualValue.split("");""!==e&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>f.length?f.splice(this.selStart,0,l):e.length<f.length&&(f.length-e.length==1?f.splice(this.selStart-1,1):f.splice(this.selStart,this.selEnd-this.selStart))):f=[],c=this.actualValue.length?this.shiftTypedSymbols(f.join("")):e}c=Boolean(c)&&c.length?c:e;const u=super.applyMask(c,i,r,s,o,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(f=>f!==this.decimalMarker)),this.formControlResult(u),!this.showMaskTyped)return this.hiddenInput&&u&&u.length?this.hideInput(u,this.maskExpression):u;const d=u.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const f=this._numberSkipedSymbols(u);return u+h.slice(d+f)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+h:u+h.slice(d)}_numberSkipedSymbols(e){const i=/(^|\D)(\d\D)/g;let r=i.exec(e),s=0;for(;null!=r;)s+=1,r=i.exec(e);return s}applyValueChanges(e=0,i,r,s=(()=>{})){const o=this._elementRef.nativeElement;o.value=this.applyMask(o.value,this.maskExpression,e,i,r,s),o!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(e,i){return e.split("").map((r,s)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[i[s]]&&this.maskAvailablePatterns[i[s]].symbol?this.maskAvailablePatterns[i[s]].symbol:r).join("")}getActualValue(e){const i=e.split("").filter((r,s)=>this._checkSymbolMask(r,this.maskExpression[s])||this.maskSpecialCharacters.includes(this.maskExpression[s])&&r===this.maskExpression[s]);return i.join("")===e?i.join(""):e}shiftTypedSymbols(e){let i="";return(e&&e.split("").map((s,o)=>{if(this.maskSpecialCharacters.includes(e[o+1])&&e[o+1]!==this.maskExpression[o+1])return i=s,e[o+1];if(i.length){const a=i;return i="",a}return s})||[]).join("")}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(e.value,this.maskExpression))}set formElementProperty([e,i]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,e,i))}checkSpecialCharAmount(e){return e.split("").filter(r=>this._findSpecialChar(r)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let r=0;r<e.length;r++)e[r].match("\\d")&&i.push(e[r]);return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,r=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===e)return i;const s=[];for(let o=0;o<e.length;o++)e[o].match("\\d")&&s.push(e[o]);return s.length<=3?i.slice(s.length,i.length):s.length>3&&s.length<=6?i.slice(s.length+1,i.length):s.length>6&&s.length<=9?i.slice(s.length+2,i.length):s.length>9&&s.length<11?i.slice(s.length+3,i.length):11===s.length?"":12===s.length?r.slice(17===e.length?16:15,r.length):s.length>12&&s.length<=14?r.slice(s.length+4,r.length):""}formControlResult(e){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(e)):this._removeSuffix(e)))}_toNumber(e){if(!this.isNumberValue)return e;const i=Number(e);return Number.isNaN(i)?e:i}_removeMask(e,i){return e&&e.replace(this._regExpForRemove(i),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_checkSymbols(e){if(""===e)return e;const i=this._retrieveSeparatorPrecision(this.maskExpression);let r=this._retrieveSeparatorValue(e);return"."!==this.decimalMarker&&(r=r.replace(this.decimalMarker,".")),this.isNumberValue?i?e===this.decimalMarker?null:this._checkPrecision(this.maskExpression,r):Number(r):r}_retrieveSeparatorPrecision(e){const i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){return e.indexOf("2")>0?Number(i).toFixed(2):Number(i)}}return n.\u0275fac=function(e){return new(e||n)(v(q),v(ac),v(B),v(jn))},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})(),UG=(()=>{class n{constructor(e,i,r){this.document=e,this._maskService=i,this._config=r,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=s=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:i,specialCharacters:r,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:h,placeHolderCharacter:f,shownMaskExpression:p,showTemplate:m,clearIfNotMatch:_,validation:b,separatorLimit:y,allowNegativeNumbers:E,leadZeroDateTime:x}=e;if(i&&(this._maskValue=i.currentValue||"",i.currentValue&&i.currentValue.split("||").length>1&&(this._maskExpressionArray=i.currentValue.split("||").sort((F,re)=>F.length-re.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),r){if(!r.currentValue||!Array.isArray(r.currentValue))return;this._maskService.maskSpecialCharacters=r.currentValue||[]}s&&s.currentValue&&(this._maskService.maskAvailablePatterns=s.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),f&&(this._maskService.placeHolderCharacter=f.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),m&&(this._maskService.showTemplate=m.currentValue),_&&(this._maskService.clearIfNotMatch=_.currentValue),b&&(this._maskService.validation=b.currentValue),y&&(this._maskService.separatorLimit=y.currentValue),E&&(this._maskService.allowNegativeNumbers=E.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(F=>"-"!==F))),x&&(this._maskService.leadZeroDateTime=x.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||GG.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if($G.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let i=0;for(const r in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[r].optional&&!0===this._maskService.maskAvailablePatterns[r].optional&&(this._maskValue.indexOf(r)!==this._maskValue.lastIndexOf(r)?i+=this._maskValue.split("").filter(o=>o===r).join("").length:-1!==this._maskValue.indexOf(r)&&i++,-1!==this._maskValue.indexOf(r)&&e.toString().length>=this._maskValue.indexOf(r)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const r=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-i:this._maskValue.length-i;if(e.toString().length<r)return this._createValidationError(e)}}return null}onPaste(){this._justPasted=!0}onInput(e){const i=e.target;if(this._inputValue=i.value,this._setMask(),!this._maskValue)return void this.onChange(i.value);const r=1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart;let s=0,o=!1;if(this._maskService.applyValueChanges(r,this._justPasted,"Backspace"===this._code,(l,c)=>{this._justPasted=!1,s=l,o=c}),this.document.activeElement!==i)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let a=this._position?this._inputValue.length+r+s:r+("Backspace"!==this._code||o?s:0);a>this._getActualInputLength()&&(a=this._getActualInputLength()),i.setSelectionRange(a,a),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(e){if(!this._maskValue)return;const i=e.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(0,0)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=i.value&&i.value!==this._maskService.prefix?i.value:this._maskService.prefix+this._maskService.maskIsShown;i.value!==o&&(i.value=o),(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length?i.selectionStart=this._maskService.prefix.length:i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){var i;if(!this._maskValue)return;this._code=e.code?e.code:e.key;const r=e.target;if(this._inputValue=r.value,this._setMask(),38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode||46===e.keyCode){if(8===e.keyCode&&0===r.value.length&&(r.selectionStart=r.selectionEnd),8===e.keyCode&&0!==r.selectionStart)if(this.specialCharacters=(null===(i=this.specialCharacters)||void 0===i?void 0:i.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes(this._inputValue[r.selectionStart-1].toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionStart-1);this.suffixCheckOnPressDelete(e.keyCode,r)}this.suffixCheckOnPressDelete(e.keyCode,r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const s=r.selectionStart;8===e.keyCode&&!r.readOnly&&0===s&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===e.keyCode&&!0===e.ctrlKey||65===e.keyCode&&!0===e.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}writeValue(e){return function _x(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),void 0===e&&(e=""),"number"==typeof e&&(e=String(e),e="."!==this.decimalMarker?e.replace(".",this.decimalMarker):e,this._maskService.isNumberValue=!0),e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(e,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",e],this._inputValue=e})}registerOnChange(e){this.onChange=e,this._maskService.onChange=this.onChange}registerOnTouched(e){this.onTouch=e}suffixCheckOnPressDelete(e,i){46===e&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===e&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===i.selectionStart&&i.setSelectionRange(i.selectionStart-1,i.selectionStart-1))}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((i,r,s)=>{if(this._start="{"===r?s:this._start,"}"!==r)return this._maskService._findSpecialChar(r)?i+r:i;this._end=s;const o=Number(e.slice(this._start+1,this._end));return i+new Array(o+1).join(e[this._start-1])},"")||e}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const i=this._maskValue.split("").filter(r=>":"!==r).length;return null===e||0===e.length?null:0==+e[e.length-1]&&e.length<i||e.length<=i-2?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(e=>{const i=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(e).length;if(this._inputValue&&i)return this._maskValue=e,this.maskExpression=e,this._maskService.maskExpression=e,i;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return n.\u0275fac=function(e){return new(e||n)(g(q),g(Cx),g(ac))},n.\u0275dir=C({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,i){1&e&&Je("paste",function(){return i.onPaste()})("input",function(s){return i.onInput(s)})("blur",function(){return i.onBlur()})("click",function(s){return i.onFocus(s)})("keydown",function(s){return i.onKeyDown(s)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[ue([{provide:An,useExisting:fe(()=>n),multi:!0},{provide:dt,useExisting:fe(()=>n),multi:!0},Cx]),Ot]}),n})(),zG=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:bx,useValue:e},{provide:wx,useValue:jG},{provide:ac,useFactory:WG,deps:[wx,bx]},zf]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ne({}),n})();function WG(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}const Dx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Dx.KeyboardEvent||(Dx.KeyboardEvent=function(n,t){});let qG=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new zh(""),this.onEnter$=new ye,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(ef(100)).subscribe(()=>{var e;this.shouldValueChange(this.formControl.value)&&(null===(e=this.onEnter)||void 0===e||e.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(ss(e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged))).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e),metaData:this.metaData})}onEnterKeydown(e){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=D({token:n,factory:n.\u0275fac}),n})();var KG=Kf(959);function YG(n,t){if(1&n&&(ge(0,"mat-label"),ti(1),xe()),2&n){const e=Rt();Me(1),Ui(e.label)}}function QG(n,t){if(1&n){const e=Ma();ge(0,"button",5),Je("click",function(){return Yo(e),Rt().setCurrentTime()}),ge(1,"mat-icon"),ti(2,"access_time"),xe()()}2&n&&be("disabled",Rt().disabled)}function ZG(n,t){if(1&n&&(ge(0,"mat-error"),ti(1),xe()),2&n){const e=Rt();Me(1),Fa(" ",e.error," ")}}let XG=(()=>{class n extends qG{constructor(){super(...arguments),this.id=(0,KG.generate)()}ngOnChanges(e){this.updateOnBlur=!1,super.ngOnChanges(e)}setCurrentTime(){const e=new Date,i=e.getHours(),r=`${i<10?"0":""}${i}`,s=e.getMinutes();this.formControl.setValue(`${r}:${s<10?"0":""}${s}`)}shouldValueChange(e){return!e||e.match(/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=R(n)))(i||n)}}(),n.\u0275cmp=ki({type:n,selectors:[["drayman-timepicker-internal"]],viewQuery:function(e,i){if(1&e&&ts(dx,5),2&e){let r;Mt(r=At())&&(i.input=r.first)}},inputs:{showNowButton:"showNowButton",appearance:"appearance",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[S,Ot],decls:8,vars:11,consts:[["aria-label","Timepicker field",3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","autocomplete","off","mask","Hh:m0",3,"id","formControl","errorStateMatcher","leadZeroDateTime","dropSpecialCharacters","blur"],["fxLayout","row","matSuffix",""],["aria-label","Now","class","mat-datepicker-toggle","mat-icon-button","","matTooltip","Now",3,"disabled","click",4,"ngIf"],["aria-label","Now","mat-icon-button","","matTooltip","Now",1,"mat-datepicker-toggle",3,"disabled","click"]],template:function(e,i){1&e&&(ge(0,"mat-form-field",0),Et(1,YG,2,1,"mat-label",1),ge(2,"input",2),Je("blur",function(){return i.onBlur()}),xe(),ge(3,"div",3),Et(4,QG,3,1,"button",4),xe(),ge(5,"mat-hint"),ti(6),xe(),Et(7,ZG,2,1,"mat-error",1),xe()),2&e&&(be("appearance",i.appearance||"outline")("floatLabel","auto"),Me(1),be("ngIf",i.label),Me(1),be("id",i.id)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("leadZeroDateTime",!0)("dropSpecialCharacters",!1),Me(2),be("ngIf",i.showNowButton),Me(2),Ui(i.helpText),Me(1),be("ngIf",i.error))},directives:[h$,Jd,Lf,dx,UG,xl,tC,Kh,mw,l$,P2,fG,H$,s$,n$],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),JG=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function DP(n,t){const e=function mP(n,t){return t.get(Wi).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new bP(n,t.injector),r=function gP(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function uP(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends CP{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(XG,{injector:this.injector});customElements.define("drayman-timepicker",e)}}return n.\u0275fac=function(e){return new(e||n)(v(Dt))},n.\u0275mod=le({type:n}),n.\u0275inj=ne({providers:[{provide:Ch,useClass:yG},{provide:Id,multi:!0,useFactory:t=>()=>{t.setDefaultFontSetClass("material-symbols-rounded")},deps:[Ro]}],imports:[[_b,y2,Vf,q$,BB,VB,j$,BV,L2,mG,zG.forRoot()]]}),n})();(function tk(){Ev=!1})(),LR().bootstrapModule(JG).catch(n=>console.error(n))})()})();
|