@drayman/elements 1.26.0 → 1.27.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/button/main.js +1 -1
- package/dist/calendar/main.js +1 -1
- package/dist/checkbox/main.js +1 -1
- package/dist/datepicker/main.js +1 -1
- package/dist/grid/main.js +1 -1
- package/dist/menu/main.js +1 -1
- package/dist/nebula/main.js +1 -1
- package/dist/ngx-charts/main.js +1 -1
- package/dist/ngx-graph/main.js +1 -1
- package/dist/number-field/main.js +1 -1
- package/dist/radio-group/main.js +1 -1
- package/dist/select/main.js +1 -1
- package/dist/table/main.js +1 -1
- package/dist/text-field/main.js +1 -1
- package/dist/textarea-field/main.js +1 -1
- package/dist/timepicker/main.js +1 -1
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +6 -0
- package/dist/youtube-player/main.js +1 -1
- package/package.json +3 -3
package/dist/text-field/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var bD={959:(Z,we,B)=>{"use strict";Z.exports=B(606)},550:(Z,we,B)=>{"use strict";var re,We,it,ne=B(539),he="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function qe(){it=!1}function z(Pe){if(Pe){if(Pe!==re){if(Pe.length!==he.length)throw new Error("Custom alphabet for shortid must be "+he.length+" unique characters. You submitted "+Pe.length+" characters: "+Pe);var Tt=Pe.split("").filter(function(fi,Hr,eo){return Hr!==eo.lastIndexOf(fi)});if(Tt.length)throw new Error("Custom alphabet for shortid must be "+he.length+" unique characters. These characters were not unique: "+Tt.join(", "));re=Pe,qe()}}else re!==he&&(re=he,qe())}function ke(){return it||(it=function Ui(){re||z(he);for(var Hr,Pe=re.split(""),Tt=[],fi=ne.nextValue();Pe.length>0;)fi=ne.nextValue(),Hr=Math.floor(fi*Pe.length),Tt.push(Pe.splice(Hr,1)[0]);return Tt.join("")}())}Z.exports={get:function Sl(){return re||he},characters:function At(Pe){return z(Pe),re},seed:function Se(Pe){ne.seed(Pe),We!==Pe&&(qe(),We=Pe)},lookup:function Js(Pe){return ke()[Pe]},shuffled:ke}},119:(Z,we,B)=>{"use strict";var it,qe,ne=B(535);B(550),Z.exports=function z(At){var Se="",Ui=Math.floor(.001*(Date.now()-1567752802062));return Ui===qe?it++:(it=0,qe=Ui),Se+=ne(7),Se+=ne(At),it>0&&(Se+=ne(it)),Se+ne(Ui)}},535:(Z,we,B)=>{"use strict";var ne=B(550),he=B(68),re=B(152);Z.exports=function We(it){for(var z,qe=0,At="";!z;)At+=re(he,ne.get(),1),z=it<Math.pow(16,qe+1),qe++;return At}},606:(Z,we,B)=>{"use strict";var ne=B(550),he=B(119),re=B(777),We=B(1)||0;function At(){return he(We)}Z.exports=At,Z.exports.generate=At,Z.exports.seed=function it(Se){return ne.seed(Se),Z.exports},Z.exports.worker=function qe(Se){return We=Se,Z.exports},Z.exports.characters=function z(Se){return void 0!==Se&&ne.characters(Se),ne.shuffled()},Z.exports.isValid=re},777:(Z,we,B)=>{"use strict";var ne=B(550);Z.exports=function he(re){return!(!re||"string"!=typeof re||re.length<6||new RegExp("[^"+ne.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(re))}},68:Z=>{"use strict";var we="object"==typeof window&&(window.crypto||window.msCrypto);Z.exports=we&&we.getRandomValues?function(ne){return we.getRandomValues(new Uint8Array(ne))}:function(ne){for(var he=[],re=0;re<ne;re++)he.push(Math.floor(256*Math.random()));return he}},539:Z=>{"use strict";var we=1;Z.exports={nextValue:function B(){return(we=(9301*we+49297)%233280)/233280},seed:function ne(he){we=he}}},1:Z=>{"use strict";Z.exports=0},152:Z=>{Z.exports=function(we,B,ne){for(var he=(2<<Math.log(B.length-1)/Math.LN2)-1,re=-~(1.6*he*ne/B.length),We="";;)for(var it=we(re),qe=re;qe--;)if((We+=B[it[qe]&he]||"").length===+ne)return We}}},Uh={};function zh(Z){var we=Uh[Z];if(void 0!==we)return we.exports;var B=Uh[Z]={exports:{}};return bD[Z](B,B.exports,zh),B.exports}(()=>{"use strict";function Z(n){return"function"==typeof n}let we=!1;const B={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else we&&console.log("RxJS: Back to a better error behavior. Thank you. <3");we=n},get useDeprecatedSynchronousErrorHandling(){return we}};function ne(n){setTimeout(()=>{throw n},0)}const he={closed:!0,next(n){},error(n){if(B.useDeprecatedSynchronousErrorHandling)throw n;ne(n)},complete(){}},re=Array.isArray||(n=>n&&"number"==typeof n.length);function We(n){return null!==n&&"object"==typeof n}const qe=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class z{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof z)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Z(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof qe?At(o.errors):[o]}}if(re(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(We(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof qe?e=e.concat(At(c.errors)):e.push(c)}}}if(e)throw new qe(e)}add(e){let t=e;if(!e)return z.EMPTY;switch(typeof e){case"function":t=new z(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof z)){const s=t;t=new z,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof z){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function At(n){return n.reduce((e,t)=>e.concat(t instanceof qe?t.errors:t),[])}z.EMPTY=((n=new z).closed=!0,n);const Se="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ke extends z{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=he;break;case 1:if(!e){this.destination=he;break}if("object"==typeof e){e instanceof ke?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Js(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Js(this,e,t,i)}}[Se](){return this}static create(e,t,i){const r=new ke(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Js extends ke{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Z(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==he&&(o=Object.create(t),Z(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(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;B.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=B;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):ne(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ne(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);B.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),B.useDeprecatedSynchronousErrorHandling)throw i;ne(i)}}__tryOrSetError(e,t,i){if(!B.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return B.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(ne(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Tt="function"==typeof Symbol&&Symbol.observable||"@@observable";function fi(n){return n}let be=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function Pe(n,e,t){if(n){if(n instanceof ke)return n;if(n[Se])return n[Se]()}return n||e||t?new ke(n,e,t):new ke(he)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||B.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),B.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){B.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Sl(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof ke?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Gh(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Tt](){return this}pipe(...t){return 0===t.length?this:function eo(n){return 0===n.length?fi:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Gh(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Gh(n){if(n||(n=B.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const zi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Wh extends z{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class qh extends ke{constructor(e){super(e),this.destination=e}}let Me=(()=>{class n extends be{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Se](){return new qh(this)}lift(t){const i=new Kh(this,this);return i.operator=t,i}next(t){if(this.closed)throw new zi;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new zi;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new zi;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.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(t){if(this.closed)throw new zi;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new zi;return this.hasError?(t.error(this.thrownError),z.EMPTY):this.isStopped?(t.complete(),z.EMPTY):(this.observers.push(t),new Wh(this,t))}asObservable(){const t=new be;return t.source=this,t}}return n.create=(e,t)=>new Kh(e,t),n})();class Kh extends Me{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):z.EMPTY}}function $r(n){return n&&"function"==typeof n.schedule}function zn(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new CD(n,e))}}class CD{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new DD(e,this.project,this.thisArg))}}class DD extends ke{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const Zh=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},to=function wD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Yh=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Qh(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Xh=n=>{if(n&&"function"==typeof n[Tt])return(n=>e=>{const t=n[Tt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Yh(n))return Zh(n);if(Qh(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,ne),e))(n);if(n&&"function"==typeof n[to])return(n=>e=>{const t=n[to]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${We(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Ml(n,e){return new be(t=>{const i=new z;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Ur(n,e){return e?function OD(n,e){if(null!=n){if(function xD(n){return n&&"function"==typeof n[Tt]}(n))return function AD(n,e){return new be(t=>{const i=new z;return i.add(e.schedule(()=>{const r=n[Tt]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Qh(n))return function TD(n,e){return new be(t=>{const i=new z;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(Yh(n))return Ml(n,e);if(function kD(n){return n&&"function"==typeof n[to]}(n)||"string"==typeof n)return function ID(n,e){if(!n)throw new Error("Iterable cannot be null");return new be(t=>{const i=new z;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[to](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof be?n:new be(Xh(n))}class no extends ke{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class io extends ke{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function ro(n,e){if(!e.closed)return n instanceof be?n.subscribe(e):Xh(n)(e)}function Jh(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Jh((r,s)=>Ur(n(r,s)).pipe(zn((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new FD(n,t)))}class FD{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new RD(e,this.project,this.concurrent))}}class RD extends io{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new no(this),i=this.destination;i.add(t);const r=ro(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function ef(n=Number.POSITIVE_INFINITY){return Jh(fi,n)}function tf(n,e){return e?Ml(n,e):new be(Zh(n))}function Gn(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return $r(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof be?n[0]:ef(e)(tf(n,t))}function nf(){return function(e){return e.lift(new ND(e))}}class ND{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new PD(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class PD extends ke{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class LD extends be{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new z,e.add(this.source.subscribe(new BD(this.getSubject(),this))),e.closed&&(this._connection=null,e=z.EMPTY)),e}refCount(){return nf()(this)}}const VD=(()=>{const n=LD.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 BD extends qh{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class $D{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function UD(){return new Me}function fe(n){for(let e in n)if(n[e]===fe)return e;throw Error("Could not find renamed property on target object.")}function Al(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function oe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(oe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Tl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const GD=fe({__forward_ref__:fe});function ae(n){return n.__forward_ref__=ae,n.toString=function(){return oe(this())},n}function $(n){return rf(n)?n():n}function rf(n){return"function"==typeof n&&n.hasOwnProperty(GD)&&n.__forward_ref__===ae}class A extends Error{constructor(e,t){super(function Il(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function P(n){return"string"==typeof n?n:null==n?"":String(n)}function rt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():P(n)}function so(n,e){const t=e?` in ${e}`:"";throw new A(-201,`No provider for ${rt(n)} found${t}`)}function xt(n,e){null==n&&function le(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function k(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ve(n){return{providers:n.providers||[],imports:n.imports||[]}}function xl(n){return sf(n,oo)||sf(n,lf)}function sf(n,e){return n.hasOwnProperty(e)?n[e]:null}function af(n){return n&&(n.hasOwnProperty(kl)||n.hasOwnProperty(XD))?n[kl]:null}const oo=fe({\u0275prov:fe}),kl=fe({\u0275inj:fe}),lf=fe({ngInjectableDef:fe}),XD=fe({ngInjectorDef:fe});var j=(()=>((j=j||{})[j.Default=0]="Default",j[j.Host=1]="Host",j[j.Self=2]="Self",j[j.SkipSelf=4]="SkipSelf",j[j.Optional=8]="Optional",j))();let Ol;function Wn(n){const e=Ol;return Ol=n,e}function cf(n,e,t){const i=xl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&j.Optional?null:void 0!==e?e:void so(oe(n),"Injector")}function qn(n){return{toString:n}.toString()}var en=(()=>((en=en||{})[en.OnPush=0]="OnPush",en[en.Default=1]="Default",en))(),tn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(tn||(tn={})),tn))();const eE="undefined"!=typeof globalThis&&globalThis,tE="undefined"!=typeof window&&window,nE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,de=eE||"undefined"!=typeof global&&global||tE||nE,Gi={},pe=[],ao=fe({\u0275cmp:fe}),Fl=fe({\u0275dir:fe}),Rl=fe({\u0275pipe:fe}),uf=fe({\u0275mod:fe}),On=fe({\u0275fac:fe}),zr=fe({__NG_ELEMENT_ID__:fe});let iE=0;function pi(n){return qn(()=>{const t={},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:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===en.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||pe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||tn.Emulated,id:"c",styles:n.styles||pe,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=iE++,i.inputs=pf(n.inputs,t),i.outputs=pf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(df):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(hf):null,i})}function df(n){return st(n)||function Kn(n){return n[Fl]||null}(n)}function hf(n){return function mi(n){return n[Rl]||null}(n)}const ff={};function Ce(n){return qn(()=>{const e={type:n.type,bootstrap:n.bootstrap||pe,declarations:n.declarations||pe,imports:n.imports||pe,exports:n.exports||pe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(ff[n.id]=n.type),e})}function pf(n,e){if(null==n)return Gi;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const x=pi;function st(n){return n[ao]||null}function jt(n,e){const t=n[uf]||null;if(!t&&!0===e)throw new Error(`Type ${oe(n)} does not have '\u0275mod' property.`);return t}const H=11;function yn(n){return Array.isArray(n)&&"object"==typeof n[1]}function rn(n){return Array.isArray(n)&&!0===n[1]}function Ll(n){return 0!=(8&n.flags)}function ho(n){return 2==(2&n.flags)}function fo(n){return 1==(1&n.flags)}function sn(n){return null!==n.template}function cE(n){return 0!=(512&n[2])}function vi(n,e){return n.hasOwnProperty(On)?n[On]:null}class gf{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function $t(){return _f}function _f(n){return n.type.prototype.ngOnChanges&&(n.setInput=fE),hE}function hE(){const n=vf(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Gi)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function fE(n,e,t,i){const r=vf(n)||function pE(n,e){return n[yf]=e}(n,{previous:Gi,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new gf(l&&l.currentValue,e,o===Gi),n[i]=e}$t.ngInherit=!0;const yf="__ngSimpleChanges__";function vf(n){return n[yf]||null}let $l;function Fe(n){return!!n.listen}const bf={createRenderer:(n,e)=>function Ul(){return void 0!==$l?$l:"undefined"!=typeof document?document:void 0}()};function je(n){for(;Array.isArray(n);)n=n[0];return n}function po(n,e){return je(e[n])}function Ot(n,e){return je(e[n.index])}function zl(n,e){return n.data[e]}function Ft(n,e){const t=e[n];return yn(t)?t:t[0]}function Cf(n){return 4==(4&n[2])}function Gl(n){return 128==(128&n[2])}function Zn(n,e){return null==e?null:n[e]}function Df(n){n[18]=0}function Wl(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const L={lFrame:kf(null),bindingsEnabled:!0};function wf(){return L.bindingsEnabled}function b(){return L.lFrame.lView}function X(){return L.lFrame.tView}function Fn(n){return L.lFrame.contextLView=n,n[8]}function Ke(){let n=Sf();for(;null!==n&&64===n.type;)n=n.parent;return n}function Sf(){return L.lFrame.currentTNode}function vn(n,e){const t=L.lFrame;t.currentTNode=n,t.isParent=e}function ql(){return L.lFrame.isParent}function Kl(){L.lFrame.isParent=!1}function Qi(){return L.lFrame.bindingIndex++}function kE(n,e){const t=L.lFrame;t.bindingIndex=t.bindingRootIndex=n,Zl(e)}function Zl(n){L.lFrame.currentDirectiveIndex=n}function Tf(){return L.lFrame.currentQueryIndex}function Ql(n){L.lFrame.currentQueryIndex=n}function FE(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function If(n,e,t){if(t&j.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&j.Host||(r=FE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=L.lFrame=xf();return i.currentTNode=e,i.lView=n,!0}function go(n){const e=xf(),t=n[1];L.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function xf(){const n=L.lFrame,e=null===n?null:n.child;return null===e?kf(n):e}function kf(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Of(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Ff=Of;function _o(){const n=Of();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 gt(){return L.lFrame.selectedIndex}function Yn(n){L.lFrame.selectedIndex=n}function Ae(){const n=L.lFrame;return zl(n.tView,n.selectedIndex)}function yo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function vo(n,e,t){Rf(n,e,3,t)}function bo(n,e,t,i){(3&n[2])===t&&Rf(n,e,t,i)}function Xl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Rf(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&($E(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function $E(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Zr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Co(n,e,t){const i=Fe(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];ec(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Nf(n){return 3===n||4===n||6===n}function ec(n){return 64===n.charCodeAt(0)}function Do(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Pf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Pf(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){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,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Lf(n){return-1!==n}function Xi(n){return 32767&n}function Ji(n,e){let t=function qE(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let tc=!0;function Eo(n){const e=tc;return tc=n,e}let KE=0;function Qr(n,e){const t=ic(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,nc(i.data,n),nc(e,null),nc(i.blueprint,null));const r=wo(n,e),s=n.injectorIndex;if(Lf(r)){const o=Xi(r),a=Ji(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function nc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function ic(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function wo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;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(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function So(n,e,t){!function ZE(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(zr)&&(i=t[zr]),null==i&&(i=t[zr]=KE++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function jf(n,e,t){if(t&j.Optional)return n;so(e,"NodeInjector")}function Hf(n,e,t,i){if(t&j.Optional&&void 0===i&&(i=null),0==(t&(j.Self|j.Host))){const r=n[9],s=Wn(void 0);try{return r?r.get(e,i,t&j.Optional):cf(e,i,t&j.Optional)}finally{Wn(s)}}return jf(i,e,t)}function $f(n,e,t,i=j.Default,r){if(null!==n){const s=function JE(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(zr)?n[zr]:void 0;return"number"==typeof e?e>=0?255&e:QE:e}(t);if("function"==typeof s){if(!If(e,n,i))return i&j.Host?jf(r,t,i):Hf(e,t,i,r);try{const o=s(i);if(null!=o||i&j.Optional)return o;so(t)}finally{Ff()}}else if("number"==typeof s){let o=null,a=ic(n,e),l=-1,c=i&j.Host?e[16][6]:null;for((-1===a||i&j.SkipSelf)&&(l=-1===a?wo(n,e):e[a+8],-1!==l&&Gf(i,!1)?(o=e[1],a=Xi(l),e=Ji(l,e)):a=-1);-1!==a;){const u=e[1];if(zf(s,a,u.data)){const d=XE(a,e,t,o,i,c);if(d!==Uf)return d}l=e[a+8],-1!==l&&Gf(i,e[1].data[a+8]===c)&&zf(s,a,e)?(o=u,a=Xi(l),e=Ji(l,e)):a=-1}}}return Hf(e,t,i,r)}const Uf={};function QE(){return new er(Ke(),b())}function XE(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Mo(a,o,t,null==i?ho(a)&&tc:i!=o&&0!=(3&a.type),r&j.Host&&s===a);return null!==u?Xr(e,o,u,a):Uf}function Mo(n,e,t,i,r){const s=n.providerIndexes,o=e.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&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&sn(f)&&f.type===t)return l}return null}function Xr(n,e,t,i){let r=n[t];const s=e.data;if(function UE(n){return n instanceof Zr}(r)){const o=r;o.resolving&&function WD(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new A(-200,`Circular dependency in DI detected for ${n}${t}`)}(rt(s[t]));const a=Eo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Wn(o.injectImpl):null;If(n,i,j.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function HE(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=_f(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Wn(l),Eo(a),o.resolving=!1,Ff()}}return r}function zf(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Gf(n,e){return!(n&j.Self||n&j.Host&&e)}class er{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return $f(this._tNode,this._lView,e,i,t)}}function He(n){return qn(()=>{const e=n.prototype.constructor,t=e[On]||rc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[On]||rc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function rc(n){return rf(n)?()=>{const e=rc($(n));return e&&e()}:vi(n)}const nr="__parameters__";function rr(n,e,t){return qn(()=>{const i=function sc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);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(nr)?l[nr]:Object.defineProperty(l,nr,{value:[]})[nr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class I{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function zt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),zt(i,e)):e!==n&&e.push(i)}return e}function bn(n,e){n.forEach(t=>Array.isArray(t)?bn(t,e):e(t))}function qf(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function To(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function ts(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function Rt(n,e,t){let i=sr(n,e);return i>=0?n[1|i]=t:(i=~i,function iw(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function ac(n,e){const t=sr(n,e);if(t>=0)return n[1|t]}function sr(n,e){return function Yf(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const ns={},cc="__NG_DI_FLAG__",xo="ngTempTokenPath",uw=/\n/gm,Xf="__source",hw=fe({provide:String,useValue:fe});let is;function Jf(n){const e=is;return is=n,e}function fw(n,e=j.Default){if(void 0===is)throw new A(203,"");return null===is?cf(n,void 0,e):is.get(n,e&j.Optional?null:void 0,e)}function C(n,e=j.Default){return(function JD(){return Ol}()||fw)($(n),e)}const uc=C;function dc(n){const e=[];for(let t=0;t<n.length;t++){const i=$(n[t]);if(Array.isArray(i)){if(0===i.length)throw new A(900,"");let r,s=j.Default;for(let o=0;o<i.length;o++){const a=i[o],l=pw(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(C(r,s))}else e.push(C(i))}return e}function rs(n,e){return n[cc]=e,n.prototype[cc]=e,n}function pw(n){return n[cc]}const ko=rs(rr("Optional"),8),Oo=rs(rr("SkipSelf"),4);var Nt=(()=>((Nt=Nt||{})[Nt.Important=1]="Important",Nt[Nt.DashCase=2]="DashCase",Nt))();const ap="__ngContext__";function ut(n,e){n[ap]=e}function mc(n){const e=function os(n){return n[ap]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function _c(n,e){return undefined(n,e)}function as(n){const e=n[3];return rn(e)?e[3]:e}function yc(n){return pp(n[13])}function vc(n){return pp(n[4])}function pp(n){for(;null!==n&&!rn(n);)n=n[4];return n}function ar(n,e,t,i,r){if(null!=i){let s,o=!1;rn(i)?s=i:yn(i)&&(o=!0,i=i[0]);const a=je(i);0===n&&null!==t?null==r?bp(e,t,a):bi(e,t,a,r||null,!0):1===n&&null!==t?bi(e,t,a,r||null,!0):2===n?function Mc(n,e,t){const i=Ro(n,e);i&&function Gw(n,e,t,i){Fe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function Kw(n,e,t,i,r){const s=t[7];s!==je(t)&&ar(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];ls(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Cc(n,e,t){if(Fe(n))return n.createElement(e,t);{const i=null!==t?function yE(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function gp(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Wl(r,-1)),t.splice(i,1)}function Dc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&gp(r,i),e>0&&(n[t-1][4]=i[4]);const s=To(n,10+e);!function Lw(n,e){ls(n,e,e[H],2,null,null),e[0]=null,e[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 _p(n,e){if(!(256&e[2])){const t=e[H];Fe(t)&&t.destroyNode&&ls(n,e,t,3,null,null),function jw(n){let e=n[13];if(!e)return Ec(n[1],n);for(;e;){let t=null;if(yn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)yn(e)&&Ec(e[1],e),e=e[3];null===e&&(e=n),yn(e)&&Ec(e[1],e),t=e&&e[4]}e=t}}(e)}}function Ec(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function zw(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Zr)){const s=t[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,e),function Uw(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):je(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Fe(e[H])&&e[H].destroy();const t=e[17];if(null!==t&&rn(e[3])){t!==e[3]&&gp(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function yp(n,e,t){return function vp(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===tn.None||r===tn.Emulated)return null}return Ot(i,t)}(n,e.parent,t)}function bi(n,e,t,i,r){Fe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function bp(n,e,t){Fe(n)?n.appendChild(e,t):e.appendChild(t)}function Cp(n,e,t,i,r){null!==i?bi(n,e,t,i,r):bp(n,e,t)}function Ro(n,e){return Fe(n)?n.parentNode(e):e.parentNode}function Dp(n,e,t){return wp(n,e,t)}let wp=function Ep(n,e,t){return 40&n.type?Ot(n,t):null};function No(n,e,t,i){const r=yp(n,i,e),s=e[H],a=Dp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)Cp(s,r,t[l],a,!1);else Cp(s,r,t,a,!1)}function Po(n,e){if(null!==e){const t=e.type;if(3&t)return Ot(e,n);if(4&t)return Sc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Po(n,i);{const r=n[e.index];return rn(r)?Sc(-1,r):je(r)}}if(32&t)return _c(e,n)()||je(n[e.index]);{const i=Mp(n,e);return null!==i?Array.isArray(i)?i[0]:Po(as(n[16]),i):Po(n,e.next)}}return null}function Mp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Sc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Po(i,r)}return e[7]}function Ac(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&ut(je(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Ac(n,e,t.child,i,r,s,!1),ar(e,n,r,a,s);else if(32&l){const c=_c(t,i);let u;for(;u=c();)ar(e,n,r,u,s);ar(e,n,r,a,s)}else 16&l?Ap(n,e,i,t,r,s):ar(e,n,r,a,s);t=o?t.projectionNext:t.next}}function ls(n,e,t,i,r,s){Ac(t,i,n.firstChild,e,r,s,!1)}function Ap(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)ar(e,n,r,l[c],s);else Ac(n,e,l,o[3],r,s,!0)}function Tp(n,e,t){Fe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Tc(n,e,t){Fe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Pc(n){return n.ngOriginalError}function MS(n,...e){n.error(...e)}class hs{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function SS(n){return n&&n.ngErrorLogger||MS}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Pc(e);for(;t&&Pc(t);)t=Pc(t);return t||null}}const FS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(de))();function Dn(n){return n instanceof Function?n():n}function Up(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const zp="ng-template";function LS(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Up(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Gp(n){return 4===n.type&&n.value!==zp}function VS(n,e,t){return e===(4!==n.type||t?n.value:zp)}function BS(n,e,t){let i=4;const r=n.attrs||[],s=function $S(n){for(let e=0;e<n.length;e++)if(Nf(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!VS(n,l,t)||""===l&&1===e.length){if(on(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!LS(n.attrs,c,t)){if(on(i))return!1;o=!0}continue}const d=jS(8&i?"class":l,r,Gp(n),t);if(-1===d){if(on(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!==Up(f,c,0)||2&i&&c!==h){if(on(i))return!1;o=!0}}}}else{if(!o&&!on(i)&&!on(l))return!1;if(o&&on(l))continue;o=!1,i=l|1&i}}return on(i)||o}function on(n){return 0==(1&n)}function jS(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function US(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Wp(n,e,t=!1){for(let i=0;i<e.length;i++)if(BS(n,e[i],t))return!0;return!1}function zS(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];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 qp(n,e){return n?":not("+e.trim()+")":e}function GS(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!on(o)&&(e+=qp(s,r),r=""),i=o,s=s||!on(i);t++}return""!==r&&(e+=qp(s,r)),e}const V={};function W(n){Kp(X(),b(),gt()+n,!1)}function Kp(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&vo(e,s,t)}else{const s=n.preOrderHooks;null!==s&&bo(e,s,0,t)}Yn(t)}function Ho(n,e){return n<<17|e<<2}function an(n){return n>>17&32767}function Lc(n){return 2|n}function Pn(n){return(131068&n)>>2}function Vc(n,e){return-131069&n|e<<2}function Bc(n){return 1|n}function sm(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Ql(r),o.contentQueries(2,e[s],s)}}}function fs(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Df(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[H]=a||n&&n[H],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function cr(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Kc(n,e,t,i,r){const s=Sf(),o=ql(),l=n.data[e]=function cM(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.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:e,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,t,e,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,e,t,i,r),function xE(){return L.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Kr(){const n=L.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return vn(s,!0),s}function ur(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function ps(n,e,t){go(e);try{const i=n.viewQuery;null!==i&&iu(1,i,t);const r=n.template;null!==r&&om(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&sm(n,e),n.staticViewQueries&&iu(2,n.viewQuery,t);const s=n.components;null!==s&&function oM(n,e){for(let t=0;t<e.length;t++)AM(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,_o()}}function dr(n,e,t,i){const r=e[2];if(256!=(256&r)){go(e);try{Df(e),function Mf(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&om(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&vo(e,c,null)}else{const c=n.preOrderHooks;null!==c&&bo(e,c,0,null),Xl(e,0)}if(function SM(n){for(let e=yc(n);null!==e;e=vc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Wl(s,1),r[2]|=1024}}}(e),function wM(n){for(let e=yc(n);null!==e;e=vc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Gl(i)&&dr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&sm(n,e),o){const c=n.contentCheckHooks;null!==c&&vo(e,c)}else{const c=n.contentHooks;null!==c&&bo(e,c,1),Xl(e,1)}!function rM(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Yn(~r);else{const s=r,o=t[++i],a=t[++i];kE(o,s),a(2,e[s])}}}finally{Yn(-1)}}(n,e);const a=n.components;null!==a&&function sM(n,e){for(let t=0;t<e.length;t++)MM(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&iu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&vo(e,c)}else{const c=n.viewHooks;null!==c&&bo(e,c,2),Xl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Wl(e[3],-1))}finally{_o()}}}function aM(n,e,t,i){const r=e[10],o=Cf(e);try{!o&&r.begin&&r.begin(),o&&ps(n,e,i),dr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function om(n,e,t,i,r){const s=gt(),o=2&i;try{Yn(-1),o&&e.length>20&&Kp(n,e,20,!1),t(i,r)}finally{Yn(s)}}function am(n,e,t){if(Ll(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function Zc(n,e,t){!wf()||(function gM(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Qr(t,e),ut(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=sn(l);c&&CM(e,t,l);const u=Xr(e,n,a,t);ut(u,e),null!==o&&DM(0,a-r,u,l,0,o),c&&(Ft(t.index,e)[8]=u)}}(n,e,t,Ot(t,e)),128==(128&t.flags)&&function _M(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function OE(){return L.lFrame.currentDirectiveIndex}();try{Yn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Zl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&mm(c,u)}}finally{Yn(-1),Zl(a)}}(n,e,t))}function Yc(n,e,t=Ot){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function lm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=zo(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function zo(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function lM(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:V);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,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 dm(n,e,t,i){const r=Cm(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&Dm(n).push(i,r.length-1))}function hm(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Pt(n,e,t,i,r,s,o,a){const l=Ot(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Sm(n,t,u,i,r),ho(e)&&function hM(n,e){const t=Ft(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function dM(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,e.value||"",i):r,Fe(s)?s.setProperty(l,i,r):ec(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Qc(n,e,t,i){let r=!1;if(wf()){const s=function yM(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Wp(t,o.selectors,!1)&&(r||(r=[]),So(Qr(t,e),n,o.type),sn(o)?(gm(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,_m(t,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=ur(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Do(t.mergedAttrs,d.hostAttrs),ym(n,t,e,c,d),bM(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function uM(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Gp(e)?null:EM(d,s);o.push(h),a=hm(d,c,a),l=hm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function vM(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new A(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Do(t.mergedAttrs,t.attrs),r}function pm(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function mM(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function mm(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function gm(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function bM(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;sn(e)&&(t[""]=n)}}function _m(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function ym(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=vi(r.type)),o=new Zr(s,sn(r),null);n.blueprint[i]=o,t[i]=o,pm(n,e,0,i,ur(n,t,r.hostVars,V),r)}function CM(n,e,t){const i=Ot(e,n),r=lm(t),s=n[10],o=Go(n,fs(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function En(n,e,t,i,r,s){const o=Ot(n,e);!function Xc(n,e,t,i,r,s,o){if(null==s)Fe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?P(s):o(s,i||"",r);Fe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[H],o,s,n.value,t,i,r)}function DM(n,e,t,i,r,s){const o=s[e];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(t,d,c,u):t[u]=d}}}function EM(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function vm(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function MM(n,e){const t=Ft(e,n);if(Gl(t)){const i=t[1];80&t[2]?dr(i,t,i.template,t[8]):t[5]>0&&Jc(t)}}function Jc(n){for(let i=yc(n);null!==i;i=vc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];dr(o,s,o.template,s[8])}else s[5]>0&&Jc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Ft(t[i],n);Gl(r)&&r[5]>0&&Jc(r)}}function AM(n,e){const t=Ft(e,n),i=t[1];(function TM(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),ps(i,t,t[8])}function Go(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function eu(n){for(;n;){n[2]|=64;const e=as(n);if(cE(n)&&!e)return n;n=e}return null}function bm(n){!function tu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=mc(t),r=i[1];aM(r,i,r.template,t)}}(n[8])}function iu(n,e,t){Ql(0),e(n,t)}const xM=(()=>Promise.resolve(null))();function Cm(n){return n[7]||(n[7]=[])}function Dm(n){return n.cleanup||(n.cleanup=[])}function wm(n,e){const t=n[9],i=t?t.get(hs,null):null;i&&i.handleError(e)}function Sm(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Ln(n,e,t){const i=po(e,n);!function mp(n,e,t){Fe(n)?n.setValue(e,t):e.textContent=t}(n[H],i,t)}function Wo(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Tl(r,a):2==s&&(i=Tl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const ru=new I("INJECTOR",-1);class Mm{get(e,t=ns){if(t===ns){const i=new Error(`NullInjectorError: No provider for ${oe(e)}!`);throw i.name="NullInjectorError",i}return t}}const su=new I("Set Injector scope."),ms={},FM={};let ou;function Am(){return void 0===ou&&(ou=new Mm),ou}function Tm(n,e=null,t=null,i){const r=Im(n,e,t,i);return r._resolveInjectorDefTypes(),r}function Im(n,e=null,t=null,i){return new RM(n,t,e||Am(),i)}class RM{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&bn(t,a=>this.processProvider(a,e,t)),bn([e],a=>this.processInjectorType(a,[],s)),this.records.set(ru,hr(void 0,this));const o=this.records.get(su);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:oe(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ns,i=j.Default){this.assertNotDestroyed();const r=Jf(this),s=Wn(void 0);try{if(!(i&j.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function $M(n){return"function"==typeof n||"object"==typeof n&&n instanceof I}(e)&&xl(e);a=l&&this.injectableDefInScope(l)?hr(au(e),ms):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&j.Self?Am():this.parent).get(e,t=i&j.Optional&&t===ns?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[xo]=o[xo]||[]).unshift(oe(e)),r)throw o;return function mw(n,e,t,i){const r=n[xo];throw e[Xf]&&r.unshift(e[Xf]),n.message=function gw(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=oe(e);if(Array.isArray(e))r=e.map(oe).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):oe(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(uw,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[xo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Wn(s),Jf(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(oe(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processInjectorType(e,t,i){if(!(e=$(e)))return!1;let r=af(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=af(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{bn(r.imports,d=>{this.processInjectorType(d,t,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];bn(f,p=>this.processProvider(p,h,f||pe))}}this.injectorDefTypes.add(o);const l=vi(o)||(()=>new o);this.records.set(o,hr(l,ms));const c=r.providers;if(null!=c&&!a){const u=e;bn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=fr(e=$(e))?e:$(e&&e.provide);const s=function PM(n,e,t){return km(n)?hr(void 0,n.useValue):hr(xm(n),ms)}(e);if(fr(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=hr(void 0,ms,!0),o.factory=()=>dc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===ms&&(t.value=FM,t.value=t.factory()),"object"==typeof t.value&&t.value&&function HM(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=$(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function au(n){const e=xl(n),t=null!==e?e.factory:vi(n);if(null!==t)return t;if(n instanceof I)throw new A(204,!1);if(n instanceof Function)return function NM(n){const e=n.length;if(e>0)throw ts(e,"?"),new A(204,!1);const t=function YD(n){const e=n&&(n[oo]||n[lf]);if(e){const t=function QD(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new A(204,!1)}function xm(n,e,t){let i;if(fr(n)){const r=$(n);return vi(r)||au(r)}if(km(n))i=()=>$(n.useValue);else if(function VM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...dc(n.deps||[]));else if(function LM(n){return!(!n||!n.useExisting)}(n))i=()=>C($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function jM(n){return!!n.deps}(n))return vi(r)||au(r);i=()=>new r(...dc(n.deps))}return i}function hr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function km(n){return null!==n&&"object"==typeof n&&hw in n}function fr(n){return"function"==typeof n}let yt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Tm({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Tm({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=ns,n.NULL=new Mm,n.\u0275prov=k({token:n,providedIn:"any",factory:()=>C(ru)}),n.__NG_ELEMENT_ID__=-1,n})();function YM(n,e){yo(mc(n)[1],Ke())}function Y(n){let e=function Um(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(sn(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new A(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=uu(n.inputs),o.declaredInputs=uu(n.declaredInputs),o.outputs=uu(n.outputs);const a=r.hostBindings;a&&e0(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&XM(n,l),c&&JM(n,c),Al(n.inputs,r.inputs),Al(n.declaredInputs,r.declaredInputs),Al(n.outputs,r.outputs),sn(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===Y&&(t=!1)}}e=Object.getPrototypeOf(e)}!function QM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Do(r.hostAttrs,t=Do(t,r.hostAttrs))}}(i)}function uu(n){return n===Gi?{}:n===pe?[]:n}function XM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function JM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function e0(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let qo=null;function pr(){if(!qo){const n=de.Symbol;if(n&&n.iterator)qo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(qo=i)}}}return qo}function gs(n){return!!du(n)&&(Array.isArray(n)||!(n instanceof Map)&&pr()in n)}function du(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function dt(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function ht(n,e,t,i){const r=b();return dt(r,Qi(),e)&&(X(),En(Ae(),r,n,e,t,i)),ht}function Re(n,e,t,i,r,s,o,a){const l=b(),c=X(),u=n+20,d=c.firstCreatePass?function l0(n,e,t,i,r,s,o,a,l){const c=e.consts,u=cr(e,n,4,o||null,Zn(c,a));Qc(e,t,u,Zn(c,l)),yo(e,u);const d=u.tViews=zo(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];vn(d,!1);const h=l[H].createComment("");No(c,l,h,d),ut(h,l),Go(l,l[u]=vm(h,l,h,d)),fo(d)&&Zc(c,l,d),null!=o&&Yc(l,d,a)}function y(n,e=j.Default){const t=b();return null===t?C(n,e):$f(Ke(),t,$(n),e)}function q(n,e,t){const i=b();return dt(i,Qi(),e)&&Pt(X(),Ae(),i,n,e,i[H],t,!1),q}function gu(n,e,t,i,r){const o=r?"class":"style";Sm(n,t,e.inputs[o],o,i)}function J(n,e,t,i){const r=b(),s=X(),o=20+n,a=r[H],l=r[o]=Cc(a,e,function jE(){return L.lFrame.currentNamespace}()),c=s.firstCreatePass?function I0(n,e,t,i,r,s,o){const a=e.consts,c=cr(e,n,2,r,Zn(a,s));return Qc(e,t,c,Zn(a,o)),null!==c.attrs&&Wo(c,c.attrs,!1),null!==c.mergedAttrs&&Wo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];vn(c,!0);const u=c.mergedAttrs;null!==u&&Co(a,l,u);const d=c.classes;null!==d&&Tc(a,l,d);const h=c.styles;return null!==h&&Tp(a,l,h),64!=(64&c.flags)&&No(s,r,l,c),0===function wE(){return L.lFrame.elementDepthCount}()&&ut(l,r),function SE(){L.lFrame.elementDepthCount++}(),fo(c)&&(Zc(s,r,c),am(s,c,r)),null!==i&&Yc(r,c),J}function ie(){let n=Ke();ql()?Kl():(n=n.parent,vn(n,!1));const e=n;!function ME(){L.lFrame.elementDepthCount--}();const t=X();return t.firstCreatePass&&(yo(t,n),Ll(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function GE(n){return 0!=(16&n.flags)}(e)&&gu(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function WE(n){return 0!=(32&n.flags)}(e)&&gu(t,e,b(),e.stylesWithoutHost,!1),ie}function ti(n,e,t,i){return J(n,e,t,i),ie(),ti}function Ei(n,e,t){const i=b(),r=X(),s=n+20,o=r.firstCreatePass?function x0(n,e,t,i,r){const s=e.consts,o=Zn(s,i),a=cr(e,n,8,"ng-container",o);return null!==o&&Wo(a,o,!0),Qc(e,t,a,Zn(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];vn(o,!0);const a=i[s]=i[H].createComment("");return No(r,i,a,o),ut(a,i),fo(o)&&(Zc(r,i,o),am(r,o,i)),null!=t&&Yc(i,o),Ei}function wi(){let n=Ke();const e=X();return ql()?Kl():(n=n.parent,vn(n,!1)),e.firstCreatePass&&(yo(e,n),Ll(n)&&e.queries.elementEnd(n)),wi}function ys(){return b()}function Yo(n){return!!n&&"function"==typeof n.then}const fg=function hg(n){return!!n&&"function"==typeof n.subscribe};function Le(n,e,t,i){const r=b(),s=X(),o=Ke();return function mg(n,e,t,i,r,s,o,a){const l=fo(i),u=n.firstCreatePass&&Dm(n),d=e[8],h=Cm(e);let f=!0;if(3&i.type||a){const _=Ot(i,e),v=a?a(_):_,g=h.length,E=a?D=>a(je(D[i.index])):i.index;if(Fe(t)){let D=null;if(!a&&l&&(D=function k0(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==D)(D.__ngLastListenerFn__||D).__ngNextListenerFn__=s,D.__ngLastListenerFn__=s,f=!1;else{s=_u(i,e,d,s,!1);const M=t.listen(v,r,s);h.push(s,M),u&&u.push(r,E,g,g+1)}}else s=_u(i,e,d,s,!0),v.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,g,o)}else s=_u(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let v=0;v<_;v+=2){const ee=e[m[v]][m[v+1]].subscribe(s),ye=h.length;h.push(s,ee),u&&u.push(r,i.index,ye,-(ye+1))}}}(s,r,r[H],o,n,e,!!t,i),Le}function gg(n,e,t,i){try{return!1!==t(i)}catch(r){return wm(n,r),!1}}function _u(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Ft(n.index,e):e;0==(32&e[2])&&eu(a);let l=gg(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=gg(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function ge(n=1){return function RE(n){return(L.lFrame.contextLView=function NE(n,e){for(;n>0;)e=e[15],n--;return e}(n,L.lFrame.contextLView))[8]}(n)}function O0(n,e){let t=null;const i=function HS(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Wp(n,s,!0):zS(i,s))return r}else t=r}return t}function Qo(n){const e=b()[16][6];if(!e.projection){const i=e.projection=ts(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?O0(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function cn(n,e=0,t){const i=b(),r=X(),s=cr(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Kl(),64!=(64&s.flags)&&function qw(n,e,t){Ap(e[H],0,e,t,yp(n,t,e),Dp(t.parent||e[6],t,e))}(r,i,s)}function Mg(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?an(s):Pn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];N0(n[a],e)&&(l=!0,n[a+1]=i?Bc(u):Lc(u)),a=i?an(u):Pn(u)}l&&(n[t+1]=i?Lc(s):Bc(s))}function N0(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&sr(n,e)>=0}function Wt(n,e){return function un(n,e,t,i){const r=b(),s=X(),o=function Nn(n){const e=L.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);s.firstUpdatePass&&function Ng(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[gt()],o=function Rg(n,e){return e>=n.expandoStartIndex}(n,t);(function Bg(n,e){return 0!=(n.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function z0(n,e,t,i){const r=function Yl(n){const e=L.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=vs(t=vu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=vu(r,n,e,t,i),null===s){let l=function G0(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Pn(i))return n[an(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=vu(null,n,e,l[1],i),l=vs(l,e.attrs,i),function W0(n,e,t,i){n[an(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function q0(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=vs(i,n[s].hostAttrs,t);return vs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function F0(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=an(o),l=Pn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||sr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=an(n[a+1]);n[i+1]=Ho(h,a),0!==h&&(n[h+1]=Vc(n[h+1],i)),n[a+1]=function KS(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Ho(a,0),0!==a&&(n[a+1]=Vc(n[a+1],i)),a=i;else n[i+1]=Ho(l,0),0===a?a=i:n[l+1]=Vc(n[l+1],i),l=i;c&&(n[i+1]=Lc(n[i+1])),Mg(n,u,i,!0),Mg(n,u,i,!1),function R0(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&sr(s,e)>=0&&(t[i+1]=Bc(t[i+1]))}(e,u,n,i,s),o=Ho(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}(s,n,o,i),e!==V&&dt(r,o,e)&&function Lg(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Xo(function Qp(n){return 1==(1&n)}(c)?Vg(l,e,t,r,Pn(c),o):void 0)||(Xo(s)||function Yp(n){return 2==(2&n)}(c)&&(s=Vg(l,null,t,r,a,o)),function Zw(n,e,t,i,r){const s=Fe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Nt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Nt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,po(gt(),t),r,s))}(s,s.data[gt()],r,r[H],n,r[o+1]=function Y0(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=oe(function Xn(n){return n instanceof class Op{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?n.changingThisBreaksApplicationSecurity:n}(n)))),n}(e,t),i,o)}(n,e,null,!0),Wt}function vu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=vs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function vs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Rt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Vg(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===V&&(h=d?pe:void 0);let f=d?ac(h,i):u===i?h:void 0;if(c&&!Xo(f)&&(f=ac(l,i)),Xo(f)&&(a=f,o))return a;const p=n[r+1];r=o?an(p):Pn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ac(l,i))}return a}function Xo(n){return void 0!==n}function qt(n,e=""){const t=b(),i=X(),r=n+20,s=i.firstCreatePass?cr(i,r,1,e,null):i.data[r],o=t[r]=function bc(n,e){return Fe(n)?n.createText(e):n.createTextNode(e)}(t[H],e);No(i,t,o,s),vn(s,!1)}function ni(n){return Si("",n,""),ni}function Si(n,e,t){const i=b(),r=function gr(n,e,t,i){return dt(n,Qi(),t)?e+P(t)+i:V}(i,n,e,t);return r!==V&&Ln(i,gt(),r),Si}function Jo(n,e,t){const i=b();return dt(i,Qi(),e)&&Pt(X(),Ae(),i,n,e,i[H],t,!0),Jo}const ea="en-US";let o_=ea;function Du(n,e,t,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)Du(n[s],e,t,i,r);else{const s=X(),o=b();let a=fr(n)?n:$(n.provide),l=xm(n);const c=Ke(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(fr(n)||!n.multi){const f=new Zr(l,r,y),p=wu(a,e,r?u:u+h,d);-1===p?(So(Qr(c,o),s,a),Eu(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=wu(a,e,u+h,d),p=wu(a,e,u,u+h),m=f>=0&&t[f],_=p>=0&&t[p];if(r&&!_||!r&&!m){So(Qr(c,o),s,a);const v=function mT(n,e,t,i,r){const s=new Zr(n,t,y);return s.multi=[],s.index=e,s.componentProviders=0,x_(s,r,i&&!t),s}(r?pT:fT,t.length,r,i,l);!r&&_&&(t[p].providerFactory=v),Eu(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(v),o.push(v)}else Eu(s,n,f>-1?f:p,x_(t[r?p:f],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function Eu(n,e,t,i){const r=fr(e),s=function BM(n){return!!n.useClass}(e);if(r||s){const l=(s?$(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function x_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function wu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function fT(n,e,t,i){return Su(this.multi,[])}function pT(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Xr(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),Su(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Su(r,s);return s}function Su(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function se(n,e=[]){return t=>{t.providersResolver=(i,r)=>function hT(n,e,t){const i=X();if(i.firstCreatePass){const r=sn(n);Du(t,i.data,i.blueprint,r,!0),Du(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class k_{}class yT{resolveComponentFactory(e){throw function _T(n){const e=Error(`No component factory found for ${oe(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Ai=(()=>{class n{}return n.NULL=new yT,n})();function vT(){return Tr(Ke(),b())}function Tr(n,e){return new Te(Ot(n,e))}let Te=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=vT,n})();function bT(n){return n instanceof Te?n.nativeElement:n}class ws{}let ii=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function DT(){const n=b(),t=Ft(Ke().index,n);return function CT(n){return n[H]}(yn(t)?t:n)}(),n})(),ET=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>null}),n})();class Ti{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const wT=new Ti("13.4.0"),Mu={};function sa(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(je(s)),rn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&sa(l[1],l,c,i)}const o=t.type;if(8&o)sa(n,e,t.child,i);else if(32&o){const a=_c(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Mp(e,t);if(Array.isArray(a))i.push(...a);else{const l=as(e[16]);sa(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Ss{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return sa(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(rn(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(Dc(e,i),To(t,i))}this._attachedToViewContainer=!1}_p(this._lView[1],this._lView)}onDestroy(e){dm(this._lView[1],this._lView,null,e)}markForCheck(){eu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function nu(n,e,t){const i=e[10];i.begin&&i.begin();try{dr(n,e,n.template,t)}catch(r){throw wm(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Bw(n,e){ls(n,e,e[H],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new A(902,"");this._appRef=e}}class ST extends Ss{constructor(e){super(e),this._view=e}detectChanges(){bm(this._view)}checkNoChanges(){}get context(){return null}}class F_ extends Ai{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=st(e);return new Au(t,this.ngModule)}}function R_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Au extends k_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function WS(n){return n.map(GS).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return R_(this.componentDef.inputs)}get outputs(){return R_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function AT(n,e){return{get:(t,i,r)=>{const s=n.get(t,Mu,r);return s!==Mu||i===Mu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(ws,bf),a=s.get(ET,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function um(n,e,t){if(Fe(n))return n.selectRootElement(e,t===tn.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Cc(o.createRenderer(null,this.componentDef),c,function MT(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function $m(n,e){return{components:[],scheduler:n||FS,clean:xM,playerHandler:e||null,flags:0}}(),f=zo(0,null,null,1,0,null,null,null,null,null),p=fs(null,f,h,d,null,null,o,l,a,s);let m,_;go(p);try{const v=function jm(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=cr(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Wo(l,c,!0),null!==n&&(Co(r,n,c),null!==l.classes&&Tc(r,n,l.classes),null!==l.styles&&Tp(r,n,l.styles)));const u=i.createRenderer(n,e),d=fs(t,lm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(So(Qr(l,t),o,e.type),gm(o,l),_m(l,t.length,1)),Go(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Co(l,u,["ng-version",wT.full]);else{const{attrs:g,classes:E}=function qS(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!on(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&Co(l,u,g),E&&E.length>0&&Tc(l,u,E.join(" "))}if(_=zl(f,20),void 0!==t){const g=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const D=t[E];g.push(null!=D?Array.from(D):null)}}m=function Hm(n,e,t,i,r){const s=t[1],o=function pM(n,e,t){const i=Ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),ym(n,i,e,ur(n,e,1,null),t));const r=Xr(e,n,i.directiveStart,i);ut(r,e);const s=Ot(i,e);return s&&ut(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Ke();e.contentQueries(1,o,l.directiveStart)}const a=Ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Yn(a.index),pm(t[1],a,0,a.directiveStart,a.directiveEnd,e),mm(e,o)),o}(v,this.componentDef,p,h,[YM]),ps(f,p,null)}finally{_o()}return new IT(this.componentType,m,Tr(_,p),p,_)}}class IT extends class gT{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new ST(r),this.componentType=e}get injector(){return new er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Ir{}const xr=new Map;class L_ extends Ir{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new F_(this);const i=jt(e);this._bootstrapComponents=Dn(i.bootstrap),this._r3Injector=Im(e,t,[{provide:Ir,useValue:this},{provide:Ai,useValue:this.componentFactoryResolver}],oe(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=yt.THROW_IF_NOT_FOUND,i=j.Default){return e===yt||e===Ir||e===ru?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Tu extends class kT{}{constructor(e){super(),this.moduleType=e,null!==jt(e)&&function OT(n){const e=new Set;!function t(i){const r=jt(i,!0),s=r.id;null!==s&&(function N_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${oe(e)} vs ${oe(e.name)}`)}(s,xr.get(s),i),xr.set(s,i));const o=Dn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new L_(this.moduleType,e)}}function Iu(n){return e=>{setTimeout(n,void 0,e)}}const Ee=class YT extends Me{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;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=Iu(l),a&&(a=Iu(a)),c&&(c=Iu(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof z&&e.add(u),u}};function QT(){return this._results[pr()]()}class Ts{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=pr(),i=Ts.prototype;i[t]||(i[t]=QT)}get changes(){return this._changes||(this._changes=new Ee)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=zt(e);(this._changesDetected=!function tw(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(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 An=(()=>{class n{}return n.__NG_ELEMENT_ID__=eI,n})();const XT=An,JT=class extends XT{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=fs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),ps(t,i,e),new Ss(i)}};function eI(){return oa(Ke(),b())}function oa(n,e){return 4&n.type?new JT(e,n,Tr(n,e)):null}let hn=(()=>{class n{}return n.__NG_ELEMENT_ID__=tI,n})();function tI(){return G_(Ke(),b())}const nI=hn,U_=class extends nI{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Tr(this._hostTNode,this._hostLView)}get injector(){return new er(this._hostTNode,this._hostLView)}get parentInjector(){const e=wo(this._hostTNode,this._hostLView);if(Lf(e)){const t=Ji(e,this._hostLView),i=Xi(e);return new er(t[1].data[i+8],t)}return new er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=z_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function es(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Au(st(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Ir,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function EE(n){return rn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new U_(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function Hw(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],qf(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function $w(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Sc(s,o),l=i[H],c=Ro(l,o[7]);return null!==c&&function Vw(n,e,t,i,r,s){i[0]=r,i[6]=e,ls(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),qf(xu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=z_(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=Dc(this._lContainer,t);i&&(To(xu(this._lContainer),t),_p(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=Dc(this._lContainer,t);return i&&null!=To(xu(this._lContainer),t)?new Ss(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function z_(n){return n[8]}function xu(n){return n[8]||(n[8]=[])}function G_(n,e){let t;const i=e[n.index];if(rn(i))t=i;else{let r;if(8&n.type)r=je(i);else{const s=e[H];r=s.createComment("");const o=Ot(n,e);bi(s,Ro(s,o),r,function Ww(n,e){return Fe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=vm(i,e,r,n),Go(e,t)}return new U_(t,n,e)}class ku{constructor(e){this.queryList=e,this.matches=null}clone(){return new ku(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ou{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Ou(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Y_(e,t).matches&&this.queries[t].setDirty()}}class W_{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Fu{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Fu(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ru{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Ru(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,sI(t,s)),this.matchTNodeWithReadOption(e,t,Mo(t,e,s,!1,!1))}else i===An?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Mo(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Te||r===hn||r===An&&4&t.type)this.addMatch(t.index,-2);else{const s=Mo(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function sI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function aI(n,e,t,i){return-1===t?function oI(n,e){return 11&n.type?Tr(n,e):4&n.type?oa(n,e):null}(e,n):-2===t?function lI(n,e,t){return t===Te?Tr(e,n):t===An?oa(e,n):t===hn?G_(e,n):void 0}(n,e,i):Xr(n,n[1],t,e)}function q_(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:aI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Nu(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=q_(n,e,r,t);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=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Nu(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];Nu(f[1],f,c,i)}}}}}return i}function Qe(n){const e=b(),t=X(),i=Tf();Ql(i+1);const r=Y_(t,i);if(n.dirty&&Cf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Nu(t,e,i,[]):q_(t,e,r,i);n.reset(s,bT),n.notifyOnChanges()}return!0}return!1}function ri(n,e,t){const i=X();i.firstCreatePass&&(Z_(i,new W_(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),K_(i,b(),e)}function Kt(n,e,t,i){const r=X();if(r.firstCreatePass){const s=Ke();Z_(r,new W_(e,t,i),s.index),function uI(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}K_(r,b(),t)}function Xe(){return function cI(n,e){return n[19].queries[e].queryList}(b(),Tf())}function K_(n,e,t){const i=new Ts(4==(4&t));dm(n,e,i,i.destroy),null===e[19]&&(e[19]=new Ou),e[19].queries.push(new ku(i))}function Z_(n,e,t){null===n.queries&&(n.queries=new Fu),n.queries.track(new Ru(e,t))}function Y_(n,e){return n.queries.getByIndex(e)}function ca(...n){}const fy=new I("Application Initializer");let Hu=(()=>{class n{constructor(t){this.appInits=t,this.resolve=ca,this.reject=ca,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Yo(s))t.push(s);else if(fg(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(C(fy,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xs=new I("AppId",{providedIn:"root",factory:function py(){return`${$u()}${$u()}${$u()}`}});function $u(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const my=new I("Platform Initializer"),Uu=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),TI=new I("appBootstrapListener"),Vn=new I("LocaleId",{providedIn:"root",factory:()=>uc(Vn,j.Optional|j.SkipSelf)||function II(){return"undefined"!=typeof $localize&&$localize.locale||ea}()}),FI=(()=>Promise.resolve(0))();function zu(n){"undefined"==typeof Zone?FI.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ce{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function RI(){let n=de.requestAnimationFrame,e=de.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function LI(n){const e=()=>{!function PI(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(de,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Wu(n),n.isCheckStableRunning=!0,Gu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Wu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return gy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),_y(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return gy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),_y(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Wu(n),Gu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.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(!ce.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ce.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,NI,ca,ca);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const NI={};function Gu(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 Wu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function gy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function _y(n){n._nesting--,Gu(n)}class VI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ee,this.onMicrotaskEmpty=new Ee,this.onStable=new Ee,this.onError=new Ee}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let qu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ce.assertNotInAngularZone(),zu(()=>{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())zu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),BI=(()=>{class n{constructor(){this._applications=new Map,Ku.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Ku.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class jI{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Ku=new jI,Ii=null;const yy=new I("AllowMultipleToken"),vy=new I("PlatformOnDestroy");function by(n,e,t=[]){const i=`Platform: ${e}`,r=new I(i);return(s=[])=>{let o=Zu();if(!o||o.injector.get(yy,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function zI(n){if(Ii&&!Ii.get(yy,!1))throw new A(400,"");Ii=n;const e=n.get(Cy),t=n.get(my,null);t&&t.forEach(i=>i())}(function WI(n=[],e){return yt.create({name:e,providers:[{provide:su,useValue:"platform"},{provide:vy,useValue:()=>Ii=null},...n]})}(a,i))}return function GI(n){const e=Zu();if(!e)throw new A(401,"");return e}()}}function Zu(){var n;return null!==(n=null==Ii?void 0:Ii.get(Cy))&&void 0!==n?n:null}let Cy=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function qI(n,e){let t;return t="noop"===n?new VI:("zone.js"===n?void 0:n)||new ce({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:ce,useValue:a}];return a.run(()=>{const c=yt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(hs,null);if(!d)throw new A(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Yu(this._modules,u),h.unsubscribe()})}),function KI(n,e,t){try{const i=t();return Yo(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Hu);return h.runInitializers(),h.donePromise.then(()=>(function CA(n){xt(n,"Expected localeId to be defined"),"string"==typeof n&&(o_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Vn,ea)||ea),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Dy({},i);return function $I(n,e,t){const i=new Tu(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(ua);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new A(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new A(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(vy,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(C(yt))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Dy(n,e){return Array.isArray(e)?e.reduce(Dy,n):Object.assign(Object.assign({},n),e)}let ua=(()=>{class n{constructor(t,i,r,s){this._zone=t,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 be(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new be(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ce.assertNotInAngularZone(),zu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ce.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Gn(o,a.pipe(function zD(){return n=>nf()(function HD(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new $D(r,e));const s=Object.create(i,VD);return s.source=i,s.subjectFactory=r,s}}(UD)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new A(405,"");let r;r=t instanceof k_?t:this._injector.get(Ai).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function UI(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ir),a=r.create(yt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(qu,null),u=c&&a.injector.get(BI);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Yu(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new A(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Yu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(TI,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(C(ce),C(yt),C(hs),C(Hu))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Yu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let wy=!0,xi=(()=>{class n{}return n.__NG_ELEMENT_ID__=QI,n})();function QI(n){return function XI(n,e,t){if(ho(n)&&!t){const i=Ft(n.index,e);return new Ss(i,i)}return 47&n.type?new Ss(e[16],e):null}(Ke(),b(),16==(16&n))}class Iy{constructor(){}supports(e){return gs(e)}create(e){return new rx(e)}}const ix=(n,e)=>e;class rx{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ix}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<ky(i,r,s)?t:i,a=ky(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._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&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!gs(e))throw new A(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function a0(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[pr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new sx(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new xy),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new xy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class sx{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ox{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class xy{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new ox,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ky(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Oy{constructor(){}supports(e){return e instanceof Map||du(e)}create(){return new ax}}class ax{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||du(e)))throw new A(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;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(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);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 lx(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class lx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Fy(){return new fa([new Iy])}let fa=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Fy()),deps:[[n,new Oo,new ko]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new A(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Fy}),n})();function Ry(){return new ks([new Oy])}let ks=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ry()),deps:[[n,new Oo,new ko]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new A(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Ry}),n})();const dx=by(null,"core",[]);let hx=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(C(ua))},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})(),pa=null;function Tn(){return pa}const ue=new I("DocumentToken");let Os=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function gx(){return C(Ny)}()},providedIn:"platform"}),n})(),Ny=(()=>{class n extends Os{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tn().getBaseHref(this._doc)}onPopState(t){const i=Tn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Tn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Py()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Py()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(C(ue))},n.\u0275prov=k({token:n,factory:function(){return function _x(){return new Ny(C(ue))}()},providedIn:"platform"}),n})();function Py(){return!!window.history.pushState}function Ly(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Vy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Oi(n){return n&&"?"!==n[0]?"?"+n:n}let td=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function yx(n){const e=C(ue).location;return new bx(C(Os),e&&e.origin||"")}()},providedIn:"root"}),n})();const vx=new I("appBaseHref");let bx=(()=>{class n extends td{constructor(t,i){if(super(),this._platformLocation=t,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(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ly(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Oi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Oi(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Oi(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(C(Os),C(vx,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),By=(()=>{class n{constructor(t,i){this._subject=new Ee,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Vy(jy(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Oi(i))}normalize(t){return n.stripTrailingSlash(function Dx(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,jy(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Oi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Oi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Oi,n.joinWithSlash=Ly,n.stripTrailingSlash=Vy,n.\u0275fac=function(t){return new(t||n)(C(td),C(Os))},n.\u0275prov=k({token:n,factory:function(){return function Cx(){return new By(C(td),C(Os))}()},providedIn:"root"}),n})();function jy(n){return n.replace(/\/index.html$/,"")}let Zy=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(gs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${oe(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(y(fa),y(ks),y(Te),y(ii))},n.\u0275dir=x({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class ak{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Yy=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new ak(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Qy(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Qy(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(y(hn),y(An),y(fa))},n.\u0275dir=x({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Qy(n,e){n.context.$implicit=e.item}let wa=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new lk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Xy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Xy("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(y(hn),y(An))},n.\u0275dir=x({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class lk{constructor(){this.$implicit=null,this.ngIf=null}}function Xy(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${oe(e)}'.`)}const Jy="browser";class fd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Aa=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==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(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),rv=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new fd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(y(hn),y(An),y(Aa,9))},n.\u0275dir=x({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),ov=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(ks),y(ii))},n.\u0275dir=x({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Ta=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})();class gd extends class dO extends class mx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function px(n){pa||(pa=n)}(new gd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function hO(){return Ps=Ps||document.querySelector("base"),Ps?Ps.getAttribute("href"):null}();return null==t?null:function fO(n){Ia=Ia||document.createElement("a"),Ia.setAttribute("href",n);const e=Ia.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Ps=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function sk(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Ia,Ps=null;const cv=new I("TRANSITION_ID"),mO=[{provide:fy,useFactory:function pO(n,e,t){return()=>{t.get(Hu).donePromise.then(()=>{const i=Tn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[cv,ue,yt],multi:!0}];class _d{static init(){!function HI(n){Ku=n}(new _d)}addToWindow(e){de.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},de.getAllAngularTestabilities=()=>e.getAllTestabilities(),de.getAllAngularRootElements=()=>e.getAllRootElements(),de.frameworkStabilizers||(de.frameworkStabilizers=[]),de.frameworkStabilizers.push(i=>{const r=de.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(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Tn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let gO=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const xa=new I("EventManagerPlugins");let ka=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(C(xa),C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class uv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Tn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let dv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Ls=(()=>{class n extends dv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(hv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(hv))}}return n.\u0275fac=function(t){return new(t||n)(C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function hv(n){Tn().remove(n)}const yd={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/"},vd=/%COMP%/g;function Oa(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Oa(n,r,t):(r=r.replace(vd,n),t.push(r))}return t}function mv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Fa=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new bd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case tn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new DO(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case tn.ShadowDom:return new EO(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Oa(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(C(ka),C(Ls),C(xs))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class bd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(yd[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=yd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=yd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Nt.DashCase|Nt.Important)?e.style.setProperty(t,i,r&Nt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Nt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,mv(i)):this.eventManager.addEventListener(e,t,mv(i))}}class DO extends bd{constructor(e,t,i,r){super(e),this.component=i;const s=Oa(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function vO(n){return"_ngcontent-%COMP%".replace(vd,n)}(r+"-"+i.id),this.hostAttr=function bO(n){return"_nghost-%COMP%".replace(vd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class EO extends bd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Oa(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(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let wO=(()=>{class n extends uv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const _v=["alt","control","meta","shift"],MO={"\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"},yv={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"},AO={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let TO=(()=>{class n extends uv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(_v.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(t){let i="",r=function IO(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&yv.hasOwnProperty(e)&&(e=yv[e]))}return MO[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),_v.forEach(s=>{s!=r&&AO[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const FO=by(dx,"browser",[{provide:Uu,useValue:Jy},{provide:my,useValue:function xO(){gd.makeCurrent(),_d.init()},multi:!0},{provide:ue,useFactory:function OO(){return function vE(n){$l=n}(document),document},deps:[]}]),RO=[{provide:su,useValue:"root"},{provide:hs,useFactory:function kO(){return new hs},deps:[]},{provide:xa,useClass:wO,multi:!0,deps:[ue,ce,Uu]},{provide:xa,useClass:TO,multi:!0,deps:[ue]},{provide:Fa,useClass:Fa,deps:[ka,Ls,xs]},{provide:ws,useExisting:Fa},{provide:dv,useExisting:Ls},{provide:Ls,useClass:Ls,deps:[ue]},{provide:qu,useClass:qu,deps:[ce]},{provide:ka,useClass:ka,deps:[xa,ce]},{provide:class cO{},useClass:gO,deps:[]}];let vv=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:xs,useValue:t.appId},{provide:cv,useExisting:xs},mO]}}}return n.\u0275fac=function(t){return new(t||n)(C(n,12))},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({providers:RO,imports:[Ta,hx]}),n})();"undefined"!=typeof window&&window;class GO extends z{constructor(e,t){super()}schedule(e,t=0){return this}}class Ra extends GO{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Dv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class mn extends Dv{constructor(e,t=Dv.now){super(e,()=>mn.delegate&&mn.delegate!==this?mn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return mn.delegate&&mn.delegate!==this?mn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const KO=new class qO extends mn{}(class WO extends Ra{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),Ev=new be(n=>n.complete());function Dd(n){return n?function ZO(n){return new be(e=>n.schedule(()=>e.complete()))}(n):Ev}function Na(...n){let e=n[n.length-1];return $r(e)?(n.pop(),Ml(n,e)):tf(n)}function QO({error:n,subscriber:e}){e.error(n)}class St{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Na(this.value);case"E":return function YO(n,e){return new be(e?t=>e.schedule(QO,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return Dd()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new St("N",e):St.undefinedValueNotification}static createError(e){return new St("E",void 0,e)}static createComplete(){return St.completeNotification}}St.completeNotification=new St("C"),St.undefinedValueNotification=new St("N",void 0);class Pa extends ke{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Pa.dispatch,this.delay,new JO(e,this.destination)))}_next(e){this.scheduleMessage(St.createNext(e))}_error(e){this.scheduleMessage(St.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(St.createComplete()),this.unsubscribe()}}class JO{constructor(e,t){this.notification=e,this.destination=t}}class eF extends Me{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new tF(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new zi;if(this.isStopped||this.hasError?o=z.EMPTY:(this.observers.push(e),o=new Wh(this,e)),r&&e.add(e=new Pa(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||KO).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class tF{constructor(e,t){this.time=e,this.value=t}}function Vs(n,e){return"function"==typeof e?t=>t.pipe(Vs((i,r)=>Ur(n(i,r)).pipe(zn((s,o)=>e(i,s,r,o))))):t=>t.lift(new nF(n))}class nF{constructor(e){this.project=e}call(e,t){return t.subscribe(new iF(e,this.project))}}class iF extends io{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new no(this),r=this.destination;r.add(i),this.innerSubscription=ro(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const La={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return La.schedule(n,0);if(void 0===window.requestAnimationFrame)return La.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Ed;function hF(n,e,t){let i=t;return function sF(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function aF(n,e){if(!Ed){const t=Element.prototype;Ed=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Ed.call(n,e)}(n,r)||(i=s,0))),i}class pF{constructor(e,t){this.componentFactory=t.get(Ai).resolveComponentFactory(e)}create(e){return new mF(this.componentFactory,e)}}class mF{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new eF(1),this.events=this.eventEmitters.pipe(Vs(i=>Gn(...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(ce),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=La.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function lF(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=yt.create({providers:[],parent:this.injector}),i=function dF(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=hF(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(xi),this.implementsOnChanges=function oF(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ua).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(zn(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=La.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new gf(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class gF extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class wv{}const jn="*";function vF(n,e){return{type:7,name:n,definitions:e,options:{}}}function bF(n,e=null){return{type:4,styles:e,timings:n}}function Sv(n,e=null){return{type:2,steps:n,options:e}}function Va(n){return{type:6,styles:n,offset:null}}function CF(n,e,t){return{type:0,name:n,styles:e,options:t}}function DF(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Mv(n){Promise.resolve(null).then(n)}class Bs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Mv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Av{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?Mv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const Q=!1;function Tv(n){return new A(3e3,Q)}function nR(){return"undefined"!=typeof window&&void 0!==window.document}function Sd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function oi(n){switch(n.length){case 0:return new Bs;case 1:return n[0];default:return new Av(n)}}function Iv(n,e,t,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=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case jn:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function GF(n){return new A(3502,Q)}();return a}function Md(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ad(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ad(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ad(t,"destroy",n)))}}function Ad(n,e,t){const i=t.totalTime,s=Td(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Td(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Lt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function xv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Id=(n,e)=>!1,kv=(n,e,t)=>[],Ov=null;function xd(n){const e=n.parentNode||n.host;return e===Ov?null:e}(Sd()||"undefined"!=typeof Element)&&(nR()?(Ov=(()=>document.documentElement)(),Id=(n,e)=>{for(;e;){if(e===n)return!0;e=xd(e)}return!1}):Id=(n,e)=>n.contains(e),kv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Fi=null,Fv=!1;function Rv(n){Fi||(Fi=function rR(){return"undefined"!=typeof document?document.body:null}()||{},Fv=!!Fi.style&&"WebkitAppearance"in Fi.style);let e=!0;return Fi.style&&!function iR(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Fi.style,!e&&Fv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Fi.style)),e}const Nv=Id,Pv=kv;let Lv=(()=>{class n{validateStyleProperty(t){return Rv(t)}matchesElement(t,i){return!1}containsElement(t,i){return Nv(t,i)}getParentElement(t){return xd(t)}query(t,i,r){return Pv(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Bs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),kd=(()=>{class n{}return n.NOOP=new Lv,n})();const Od="ng-enter",ja="ng-leave",Ha="ng-trigger",$a=".ng-trigger",Bv="ng-animating",Fd=".ng-animating";function Ri(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rd(parseFloat(e[1]),e[2])}function Rd(n,e){return"s"===e?1e3*n:n}function Ua(n,e,t){return n.hasOwnProperty("duration")?n:function aR(n,e,t){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 e.push(Tv()),{duration:0,delay:0,easing:""};r=Rd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Rd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function EF(){return new A(3100,Q)}()),a=!0),s<0&&(e.push(function wF(){return new A(3101,Q)}()),a=!0),a&&e.splice(l,0,Tv())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Or(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ai(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Or(n,t);return t}function Hv(n,e,t){return t?e+":"+t+";":""}function $v(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=Hv(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=Hv(0,uR(t),n.style[t]));n.setAttribute("style",e)}function In(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Pd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Sd()&&$v(n))}function Ni(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Pd(t);n.style[i]=""}),Sd()&&$v(n))}function js(n){return Array.isArray(n)?1==n.length?n[0]:Sv(n):n}const Nd=new RegExp("{{\\s*(.+?)\\s*}}","g");function Uv(n){let e=[];if("string"==typeof n){let t;for(;t=Nd.exec(n);)e.push(t[1]);Nd.lastIndex=0}return e}function za(n,e,t){const i=n.toString(),r=i.replace(Nd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function MF(n){return new A(3003,Q)}()),a=""),a.toString()});return r==i?n:r}function Ga(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const cR=/-+([a-z0-9])/g;function Pd(n){return n.replace(cR,(...e)=>e[1].toUpperCase())}function uR(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Vt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function AF(n){return new A(3004,Q)}()}}function zv(n,e){return window.getComputedStyle(n)[e]}function gR(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function _R(n,e,t){if(":"==n[0]){const l=function yR(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function HF(n){return new A(3016,Q)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function jF(n){return new A(3015,Q)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Gv(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Gv(o,r))}(i,t,e)):t.push(n),t}const Za=new Set(["true","1"]),Ya=new Set(["false","0"]);function Gv(n,e){const t=Za.has(n)||Ya.has(n),i=Za.has(e)||Ya.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Za.has(n):Ya.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Za.has(e):Ya.has(e)),o&&a}}const vR=new RegExp("s*:selfs*,?","g");function Ld(n,e,t,i){return new bR(n).build(e,t,i)}class bR{constructor(e){this._driver=e}build(e,t,i){const r=new ER(t);this._resetContextStyleTimingState(r);const s=Vt(this,js(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function IF(){return new A(3006,Q)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function xF(){return new A(3007,Q)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Qa(a)){const l=a;Object.keys(l).forEach(c=>{Uv(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Ga(s.values()),t.errors.push(function kF(n,e){return new A(3008,Q)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Vt(this,js(e.animation),t);return{type:1,matchers:gR(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Pi(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Vt(this,i,t)),options:Pi(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Vt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Pi(e.options)}}visitAnimate(e,t){const i=function SR(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Vd(Ua(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Vd(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Ua(t,e);return Vd(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Va({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Va(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==jn?i.push(o):t.errors.push(function OF(n){return new A(3002,Q)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Qa(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:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function FF(n,e,t,i,r){return new A(3010,Q)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function lR(n,e,t){const i=e.params||{},r=Uv(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function SF(n){return new A(3001,Q)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function RF(){return new A(3011,Q)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(v=>{const g=this._makeStyleAst(v,t);let E=null!=g.offset?g.offset:function wR(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Qa(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Qa(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),D=0;return null!=E&&(s++,D=g.offset=E),l=l||D<0||D>1,a=a||D<c,c=D,o.push(D),g});l&&t.errors.push(function NF(){return new A(3012,Q)}()),a&&t.errors.push(function PF(){return new A(3200,Q)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function LF(){return new A(3202,Q)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((v,g)=>{const E=h>0?g==f?1:h*g:o[g],D=E*_;t.currentTime=p+m.delay+D,m.duration=D,this._validateStyleAst(v,t),v.offset=E,i.styles.push(v)}),i}visitReference(e,t){return{type:8,animation:Vt(this,js(e.animation),t),options:Pi(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Pi(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Pi(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function CR(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(vR,"")),n=n.replace(/@\*/g,$a).replace(/@\w+/g,t=>$a+"-"+t.substr(1)).replace(/:animating/g,Fd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Lt(t.collectedStyles,t.currentQuerySelector,{});const a=Vt(this,js(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Pi(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function VF(){return new A(3013,Q)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ua(e.timings,t.errors,!0);return{type:12,animation:Vt(this,js(e.animation),t),timings:i,options:null}}}class ER{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qa(n){return!Array.isArray(n)&&"object"==typeof n}function Pi(n){return n?(n=Or(n)).params&&(n.params=function DR(n){return n?Or(n):null}(n.params)):n={},n}function Vd(n,e,t){return{duration:n,delay:e,easing:t}}function Bd(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Xa{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const TR=new RegExp(":enter","g"),xR=new RegExp(":leave","g");function jd(n,e,t,i,r,s={},o={},a,l,c=[]){return(new kR).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class kR{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new Xa;const d=new Hd(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Vt(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===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Bd(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Ri(i.duration):null,a=null!=i.delay?Ri(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Vt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ja);const o=Ri(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Vt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ri(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Vt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Ua(t.params?za(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ri(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ja);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Vt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Vt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Ja={};class Hd{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ja,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new el(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Ri(i.duration)),null!=i.delay&&(r.delay=Ri(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=za(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new Hd(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(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Ja,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new OR(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(TR,"."+this._enterClassName)).replace(xR,"."+this._leaveClassName);let c=this._driver.query(this.element,e,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 BF(n){return new A(3014,Q)}()),a}}class el{constructor(e,t,i,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new el(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||jn,this._currentKeyframe[t]=jn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function FR(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=jn})):ai(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=za(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:jn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ai(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==jn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Ga(e.values()):[],o=t.size?Ga(t.values()):[];if(i){const a=r[0],l=Or(a);a.offset=0,l.offset=1,r=[a,l]}return Bd(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class OR extends el{constructor(e,t,i,r,s,o,a=!1){super(e,t,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 e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=ai(e[0],!1);l.offset=0,s.push(l);const c=ai(e[0],!1);c.offset=Kv(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ai(e[d],!1);h.offset=Kv((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Bd(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function Kv(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class $d{}class RR extends $d{normalizePropertyName(e,t){return Pd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(NR[t]&&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 TF(n,e){return new A(3005,Q)}())}return o+s}}const NR=(()=>function PR(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Zv(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Ud={};class Yv{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function LR(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Ud,p=this.buildStyles(i,a&&a.params||Ud,d),m=l&&l.params||Ud,_=this.buildStyles(r,m,d),v=new Set,g=new Map,E=new Map,D="void"===r,M={params:Object.assign(Object.assign({},h),m)},ee=u?[]:jd(e,t,this.ast.animation,s,o,p,_,M,c,d);let ye=0;if(ee.forEach(at=>{ye=Math.max(at.duration+at.delay,ye)}),d.length)return Zv(t,this._triggerName,i,r,D,p,_,[],[],g,E,ye,d);ee.forEach(at=>{const lt=at.element,Mt=Lt(g,lt,{});at.preStyleProps.forEach(_n=>Mt[_n]=!0);const Dt=Lt(E,lt,{});at.postStyleProps.forEach(_n=>Dt[_n]=!0),lt!==t&&v.add(lt)});const tt=Ga(v.values());return Zv(t,this._triggerName,i,r,D,p,_,ee,tt,g,E,ye)}}class VR{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Or(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[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=za(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class jR{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new VR(r.style,r.options&&r.options.params||{},i)}),Qv(this.states,"true","1"),Qv(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Yv(e,r,this.states))}),this.fallbackTransition=function HR(n,e,t){return new Yv(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function Qv(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const $R=new Xa;class UR{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Ld(this._driver,t,i,[]);if(i.length)throw function WF(n){return new A(3503,Q)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Iv(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=jd(this._driver,t,s,Od,ja,{},{},i,$R,r),o.forEach(u=>{const d=Lt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function qF(){return new A(3300,Q)}()),o=[]),r.length)throw function KF(n){return new A(3504,Q)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,jn)})});const c=oi(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function ZF(n){return new A(3301,Q)}();return t}listen(e,t,i,r){const s=Td(t,"","","");return Md(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);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(e)}}}const Xv="ng-animate-queued",zd="ng-animate-disabled",KR=[],Jv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qt="__ng_removed";class Gd{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function JR(n){return null!=n?n:null}(i?e.value:e),i){const s=Or(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Hs="void",Wd=new Gd(Hs);class YR{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Xt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function YF(n,e){return new A(3302,Q)}();if(null==i||0==i.length)throw function QF(n){return new A(3303,Q)}();if(!function eN(n){return"start"==n||"done"==n}(i))throw function XF(n,e){return new A(3400,Q)}();const s=Lt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Lt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Xt(e,Ha),Xt(e,Ha+"-"+t),a[t]=Wd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function JF(n){return new A(3401,Q)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new qd(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Xt(e,Ha),Xt(e,Ha+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Gd(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=Wd),c.value!==Hs&&l.value===c.value){if(!function iN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),v=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ni(e,_),In(e,v)})}return}const h=Lt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Xt(e,Xv),o.onStart(()=>{Fr(e,Xv)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let v=_.indexOf(o);v>=0&&_.splice(v,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,$a,!0);i.forEach(r=>{if(r[Qt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),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(e,l,Hs,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&oi(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Wd,u=new Gd(Hs),d=new qd(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Qt];(!s||s===Jv)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Xt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];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=Td(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Md(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.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(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class QR{constructor(e,t,i){this.bodyNode=e,this.driver=t,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(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new YR(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){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(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);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&&t.add(a)}}}return t}trigger(e,t,i,r){if(tl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!tl(t))return;const s=t[Qt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Xt(e,zd)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Fr(e,zd))}removeNode(e,t,i,r){if(tl(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Qt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return tl(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,$a,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Fd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return oi(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Qt];if(i&&i.setForRemoval){if(e[Qt]=Jv,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(zd))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];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++)Xt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}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=[],t.length?oi(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function eR(n){return new A(3402,Q)}()}_flushAnimations(e,t){const i=new Xa,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const O=this.driver.query(T,".ng-animate-queued",!0);for(let N=0;N<O.length;N++)u.add(O[N])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=nb(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((T,O)=>{const N=Od+m++;p.set(O,N),T.forEach(te=>Xt(te,N))});const _=[],v=new Set,g=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const O=this.collectedLeaveElements[T],N=O[Qt];N&&N.setForRemoval&&(_.push(O),v.add(O),N.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(te=>v.add(te)):g.add(O))}const E=new Map,D=nb(h,Array.from(v));D.forEach((T,O)=>{const N=ja+m++;E.set(O,N),T.forEach(te=>Xt(te,N))}),e.push(()=>{f.forEach((T,O)=>{const N=p.get(O);T.forEach(te=>Fr(te,N))}),D.forEach((T,O)=>{const N=E.get(O);T.forEach(te=>Fr(te,N))}),_.forEach(T=>{this.processLeaveNode(T)})});const M=[],ee=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(N=>{const te=N.player,nt=N.element;if(M.push(te),this.collectedEnterElements.length){const Et=nt[Qt];if(Et&&Et.setForMove){if(Et.previousTriggersValues&&Et.previousTriggersValues.has(N.triggerName)){const Hi=Et.previousTriggersValues.get(N.triggerName),hi=this.statesByElement.get(N.element);hi&&hi[N.triggerName]&&(hi[N.triggerName].value=Hi)}return void te.destroy()}}const xn=!d||!this.driver.containsElement(d,nt),Bt=E.get(nt),di=p.get(nt),xe=this._buildInstruction(N,i,di,Bt,xn);if(xe.errors&&xe.errors.length)return void ee.push(xe);if(xn)return te.onStart(()=>Ni(nt,xe.fromStyles)),te.onDestroy(()=>In(nt,xe.toStyles)),void r.push(te);if(N.isFallbackTransition)return te.onStart(()=>Ni(nt,xe.fromStyles)),te.onDestroy(()=>In(nt,xe.toStyles)),void r.push(te);const vD=[];xe.timelines.forEach(Et=>{Et.stretchStartingKeyframe=!0,this.disabledNodes.has(Et.element)||vD.push(Et)}),xe.timelines=vD,i.append(nt,xe.timelines),o.push({instruction:xe,player:te,element:nt}),xe.queriedElements.forEach(Et=>Lt(a,Et,[]).push(te)),xe.preStyleProps.forEach((Et,Hi)=>{const hi=Object.keys(Et);if(hi.length){let $i=l.get(Hi);$i||l.set(Hi,$i=new Set),hi.forEach($h=>$i.add($h))}}),xe.postStyleProps.forEach((Et,Hi)=>{const hi=Object.keys(Et);let $i=c.get(Hi);$i||c.set(Hi,$i=new Set),hi.forEach($h=>$i.add($h))})});if(ee.length){const T=[];ee.forEach(O=>{T.push(function tR(n,e){return new A(3505,Q)}())}),M.forEach(O=>O.destroy()),this.reportError(T)}const ye=new Map,tt=new Map;o.forEach(T=>{const O=T.element;i.has(O)&&(tt.set(O,O),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,ye))}),r.forEach(T=>{const O=T.element;this._getPreviousPlayers(O,!1,T.namespaceId,T.triggerName,null).forEach(te=>{Lt(ye,O,[]).push(te),te.destroy()})});const at=_.filter(T=>rb(T,l,c)),lt=new Map;tb(lt,this.driver,g,c,jn).forEach(T=>{rb(T,l,c)&&at.push(T)});const Dt=new Map;f.forEach((T,O)=>{tb(Dt,this.driver,new Set(T),l,"!")}),at.forEach(T=>{const O=lt.get(T),N=Dt.get(T);lt.set(T,Object.assign(Object.assign({},O),N))});const _n=[],Br=[],jr={};o.forEach(T=>{const{element:O,player:N,instruction:te}=T;if(i.has(O)){if(u.has(O))return N.onDestroy(()=>In(O,te.toStyles)),N.disabled=!0,N.overrideTotalTime(te.totalTime),void r.push(N);let nt=jr;if(tt.size>1){let Bt=O;const di=[];for(;Bt=Bt.parentNode;){const xe=tt.get(Bt);if(xe){nt=xe;break}di.push(Bt)}di.forEach(xe=>tt.set(xe,nt))}const xn=this._buildAnimation(N.namespaceId,te,ye,s,Dt,lt);if(N.setRealPlayer(xn),nt===jr)_n.push(N);else{const Bt=this.playersByElement.get(nt);Bt&&Bt.length&&(N.parentPlayer=oi(Bt)),r.push(N)}}else Ni(O,te.fromStyles),N.onDestroy(()=>In(O,te.toStyles)),Br.push(N),u.has(O)&&r.push(N)}),Br.forEach(T=>{const O=s.get(T.element);if(O&&O.length){const N=oi(O);T.setRealPlayer(N)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<_.length;T++){const O=_[T],N=O[Qt];if(Fr(O,ja),N&&N.hasAnimation)continue;let te=[];if(a.size){let xn=a.get(O);xn&&xn.length&&te.push(...xn);let Bt=this.driver.query(O,Fd,!0);for(let di=0;di<Bt.length;di++){let xe=a.get(Bt[di]);xe&&xe.length&&te.push(...xe)}}const nt=te.filter(xn=>!xn.destroyed);nt.length?tN(this,O,nt):this.processLeaveNode(O)}return _.length=0,_n.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const O=this.players.indexOf(T);this.players.splice(O,1)}),T.play()}),_n}elementContainsData(e,t){let i=!1;const r=t[Qt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==Hs;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(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Lt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ni(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[Qt];if(_&&_.removedBeforeQueried)return new Bs(p.duration,p.delay);const v=m!==l,g=function nN(n){const e=[];return ib(n,e),e}((i.get(m)||KR).map(ye=>ye.getRealPlayer())).filter(ye=>!!ye.element&&ye.element===m),E=s.get(m),D=o.get(m),M=Iv(0,this._normalizer,0,p.keyframes,E,D),ee=this._buildPlayer(p,M,g);if(p.subTimeline&&r&&d.add(m),v){const ye=new qd(e,a,m);ye.setRealPlayer(ee),c.push(ye)}return ee});c.forEach(p=>{Lt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function XR(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Xt(p,Bv));const f=oi(h);return f.onDestroy(()=>{u.forEach(p=>Fr(p,Bv)),In(l,t.toStyles)}),d.forEach(p=>{Lt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Bs(e.duration,e.delay)}}class qd{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Bs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>Md(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Lt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function tl(n){return n&&1===n.nodeType}function eb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function tb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(eb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Qt]=ZR,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>eb(l,s[a++])),o}function nb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),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=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Xt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Fr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function tN(n,e,t){oi(t).onDone(()=>n.processLeaveNode(e))}function ib(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Av?ib(i.players,e):e.push(i)}}function rb(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class nl{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new QR(e,t,i),this._timelineEngine=new UR(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Ld(this._driver,s,l,[]);if(l.length)throw function zF(n,e){return new A(3404,Q)}();a=function BR(n,e,t){return new jR(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=xv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=xv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let sN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&In(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(In(this._element,this._initialStyles),this._endStyles&&(In(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ni(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ni(this._element,this._endStyles),this._endStyles=null),In(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Kd(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];oN(r)&&(e=e||{},e[r]=n[r])}return e}function oN(n){return"display"===n||"position"===n}class sb{constructor(e,t,i,r){this.element=e,this.keyframes=t,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:zv(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class aN{validateStyleProperty(e){return Rv(e)}matchesElement(e,t){return!1}containsElement(e,t){return Nv(e,t)}getParentElement(e){return xd(e)}query(e,t,i){return Pv(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,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 sb);(function dR(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function hR(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=zv(n,l)})}}return e}(e,t=t.map(h=>ai(h,!1)),c);const d=function rN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Kd(e[0]),e.length>1&&(i=Kd(e[e.length-1]))):e&&(t=Kd(e)),t||i?new sN(n,t,i):null}(e,t);return new sb(e,t,l,d)}}let lN=(()=>{class n extends wv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:tn.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?Sv(t):t;return ob(this._renderer,null,i,"register",[r]),new cN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(C(ws),C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class cN extends class yF{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new uN(this._id,e,t||{},this._renderer)}}class uN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return ob(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function ob(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const ab="@.disabled";let dN=(()=>{class n{constructor(t,i,r){this.delegate=t,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(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new lb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new hN(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<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(t){return new(t||n)(C(ws),C(nl),C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class lb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==ab?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class hN extends lb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==ab?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function fN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function pN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let mN=(()=>{class n extends nl{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(C(ue),C(kd),C($d))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const $s=new I("AnimationModuleType"),cb=[{provide:wv,useClass:lN},{provide:$d,useFactory:function gN(){return new RR}},{provide:nl,useClass:mN},{provide:ws,useFactory:function _N(n,e,t){return new dN(n,e,t)},deps:[Fa,nl,ce]}],ub=[{provide:kd,useFactory:()=>new aN},{provide:$s,useValue:"BrowserAnimations"},...cb],yN=[{provide:kd,useClass:Lv},{provide:$s,useValue:"NoopAnimations"},...cb];let Zd,vN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?yN:ub}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({providers:ub,imports:[vv]}),n})();function Hn(n){return null!=n&&"false"!=`${n}`}function db(n){return Array.isArray(n)?n:[n]}function Ge(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Rr(n){return n instanceof Te?n.nativeElement:n}try{Zd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Zd=!1}let Nr,gn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function hk(n){return n===Jy}(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&&!Zd)&&"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(t){return new(t||n)(C(Uu))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fb(){if(Nr)return Nr;if("object"!=typeof document||!document)return Nr=new Set(hb),Nr;let n=document.createElement("input");return Nr=new Set(hb.filter(e=>(n.setAttribute("type",e),n.type===e))),Nr}let Us,Li;function rl(n){return function EN(){if(null==Us&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Us=!0}))}finally{Us=Us||!1}return Us}()?n:!!n.capture}function wN(){if(null==Li){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Li=!1,Li;if("scrollBehavior"in document.documentElement.style)Li=!0;else{const n=Element.prototype.scrollTo;Li=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Li}function Qd(n){return n.composedPath?n.composedPath()[0]:n.target}function Xd(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function ol(n,e){return new be(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Ur(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}let pb=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(y(ii),y(Te))},n.\u0275dir=x({type:n}),n})(),Vi=(()=>{class n extends pb{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275dir=x({type:n,features:[Y]}),n})();const Jt=new I("NgValueAccessor"),TN={provide:Jt,useExisting:ae(()=>al),multi:!0},xN=new I("CompositionEventMode");let al=(()=>{class n extends pb{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function IN(){const n=Tn()?Tn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(y(ii),y(Te),y(xN,8))},n.\u0275dir=x({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(t,i){1&t&&Le("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:[se([TN]),Y]}),n})();function li(n){return null==n||0===n.length}function gb(n){return null!=n&&"number"==typeof n.length}const ot=new I("NgValidators"),ci=new I("NgAsyncValidators"),kN=/^(?=.{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 ON{static min(e){return function _b(n){return e=>{if(li(e.value)||li(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}(e)}static max(e){return function yb(n){return e=>{if(li(e.value)||li(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function vb(n){return li(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function bb(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function Cb(n){return li(n.value)||kN.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function Db(n){return e=>li(e.value)||!gb(e.value)?null:e.value.length<n?{minlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static maxLength(e){return function Eb(n){return e=>gb(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function wb(n){if(!n)return ll;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(li(i.value))return null;const r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return xb(e)}static composeAsync(e){return kb(e)}}function ll(n){return null}function Sb(n){return null!=n}function Mb(n){const e=Yo(n)?Ur(n):n;return fg(e),e}function Ab(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Tb(n,e){return e.map(t=>t(n))}function Ib(n){return n.map(e=>function FN(n){return!n.validate}(e)?e:t=>e.validate(t))}function xb(n){if(!n)return null;const e=n.filter(Sb);return 0==e.length?null:function(t){return Ab(Tb(t,e))}}function Jd(n){return null!=n?xb(Ib(n)):null}function kb(n){if(!n)return null;const e=n.filter(Sb);return 0==e.length?null:function(t){return function MN(...n){if(1===n.length){const e=n[0];if(re(e))return ol(e,null);if(We(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return ol(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return ol(n=1===n.length&&re(n[0])?n[0]:n,null).pipe(zn(t=>e(...t)))}return ol(n,null)}(Tb(t,e).map(Mb)).pipe(zn(Ab))}}function eh(n){return null!=n?kb(Ib(n)):null}function Ob(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Fb(n){return n._rawValidators}function Rb(n){return n._rawAsyncValidators}function th(n){return n?Array.isArray(n)?n:[n]:[]}function cl(n,e){return Array.isArray(n)?n.includes(e):n===e}function Nb(n,e){const t=th(e);return th(n).forEach(r=>{cl(t,r)||t.push(r)}),t}function Pb(n,e){return th(e).filter(t=>!cl(n,t))}class Lb{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Jd(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=eh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class $n extends Lb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ct extends Lb{get formDirective(){return null}get path(){return null}}let Bb=(()=>{class n extends class Vb{constructor(e){this._cd=e}is(e){var t,i,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[e])}}{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(y($n,2))},n.\u0275dir=x({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Wt("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:[Y]}),n})();function zs(n,e){rh(n,e),e.valueAccessor.writeValue(n.value),function $N(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Hb(n,e)})}(n,e),function zN(n,e){const t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function UN(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Hb(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function HN(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function hl(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),pl(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function fl(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function rh(n,e){const t=Fb(n);null!==e.validator?n.setValidators(Ob(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=Rb(n);null!==e.asyncValidator?n.setAsyncValidators(Ob(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();fl(e._rawValidators,r),fl(e._rawAsyncValidators,r)}function pl(n,e){let t=!1;if(null!==n){if(null!==e.validator){const r=Fb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.validator);s.length!==r.length&&(t=!0,n.setValidators(s))}}if(null!==e.asyncValidator){const r=Rb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(t=!0,n.setAsyncValidators(s))}}}const i=()=>{};return fl(e._rawValidators,i),fl(e._rawAsyncValidators,i),t}function Hb(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function $b(n,e){rh(n,e)}function zb(n,e){n._syncPendingControls(),e.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ah(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Gs="VALID",ml="INVALID",Pr="PENDING",Ws="DISABLED";function ch(n){return(gl(n)?n.validators:n)||null}function Gb(n){return Array.isArray(n)?Jd(n):n||null}function uh(n,e){return(gl(e)?e.asyncValidators:n)||null}function Wb(n){return Array.isArray(n)?eh(n):n||null}function gl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const qb=n=>n instanceof fh,dh=n=>n instanceof ph;function Kb(n){return qb(n)?n.value:n.getRawValue()}function Zb(n,e){const t=dh(n),i=n.controls;if(!(t?Object.keys(i):i).length)throw new A(1e3,"");if(!i[e])throw new A(1001,"")}function Yb(n,e){dh(n),n._forEachChild((i,r)=>{if(void 0===e[r])throw new A(1002,"")})}class hh{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Gb(this._rawValidators),this._composedAsyncValidatorFn=Wb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Gs}get invalid(){return this.status===ml}get pending(){return this.status==Pr}get disabled(){return this.status===Ws}get enabled(){return this.status!==Ws}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Gb(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Wb(e)}addValidators(e){this.setValidators(Nb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Nb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Pb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Pb(e,this._rawAsyncValidators))}hasValidator(e){return cl(this._rawValidators,e)}hasAsyncValidator(e){return cl(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Pr,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Ws,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Gs,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gs||this.status===Pr)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ws:Gs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Pr,this._hasOwnPendingAsyncValidator=!0;const t=Mb(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function KN(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=dh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof YN)(i)&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?Ws:this.errors?ml:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pr)?Pr:this._anyControlsHaveStatus(ml)?ml:Gs}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){gl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class fh extends hh{constructor(e=null,t,i){super(ch(t),uh(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gl(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ah(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ah(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class ph extends hh{constructor(e,t,i){super(ch(t),uh(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Yb(this,e),Object.keys(e).forEach(i=>{Zb(this,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=Kb(t),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class YN extends hh{constructor(e,t,i){super(ch(t),uh(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Yb(this,e),e.forEach((i,r)=>{Zb(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>Kb(e))}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const QN={provide:Ct,useExisting:ae(()=>_l)},qs=(()=>Promise.resolve(null))();let _l=(()=>{class n extends Ct{constructor(t,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new ph({},Jd(t),eh(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){qs.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),zs(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){qs.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){qs.then(()=>{const i=this._findContainer(t.path),r=new ph({});$b(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){qs.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){qs.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,zb(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n.\u0275fac=function(t){return new(t||n)(y(ot,10),y(ci,10))},n.\u0275dir=x({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){1&t&&Le("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([QN]),Y]}),n})(),nC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})();const mh=new I("NgModelWithFormControlWarning"),sP={provide:$n,useExisting:ae(()=>gh)};let gh=(()=>{class n extends $n{constructor(t,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Ee,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=function oh(n,e){if(!e)return null;let t,i,r;return Array.isArray(e),e.forEach(s=>{s.constructor===al?t=s:function qN(n){return Object.getPrototypeOf(n.constructor)===Vi}(s)?i=s:r=s}),r||i||t||null}(0,r)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const i=t.form.previousValue;i&&hl(i,this,!1),zs(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function sh(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&hl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(y(ot,10),y(ci,10),y(Jt,10),y(mh,8))},n.\u0275dir=x({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[se([sP]),Y,$t]}),n})();const oP={provide:Ct,useExisting:ae(()=>yl)};let yl=(()=>{class n extends Ct{constructor(t,i){super(),this.validators=t,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ee,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(pl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return zs(i,t),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){hl(t.control||null,t,!1),ah(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,zb(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(hl(i||null,t),qb(r)&&(zs(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);$b(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function GN(n,e){return pl(n,e)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){rh(this.form,this),this._oldForm&&pl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(t){return new(t||n)(y(ot,10),y(ci,10))},n.\u0275dir=x({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){1&t&&Le("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([oP]),Y,$t]}),n})(),SP=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[[nC]]}),n})(),MP=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:mh,useValue:t.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[SP]}),n})();const AP=new I("cdk-dir-doc",{providedIn:"root",factory:function TP(){return uc(ue)}}),IP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Dh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ee,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function xP(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?IP.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(C(AP,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ks=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})();function Zs(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ui(){}function EC(n,e,t){return function(r){return r.lift(new GP(n,e,t))}}class GP{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new WP(e,this.nextOrObserver,this.error,this.complete))}}class WP extends ke{constructor(e,t,i,r){super(e),this._tapNext=ui,this._tapError=ui,this._tapComplete=ui,this._tapError=i||ui,this._tapComplete=r||ui,Z(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ui,this._tapError=t.error||ui,this._tapComplete=t.complete||ui)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const vl=new mn(Ra);function wh(n,e=vl){return t=>t.lift(new qP(n,e))}class qP{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new KP(e,this.dueTime,this.scheduler))}}class KP extends ke{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ZP,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function ZP(n){n.debouncedNext()}function Lr(n,e){return function(i){return i.lift(new YP(n,e))}}class YP{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new QP(e,this.predicate,this.thisArg))}}class QP extends ke{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class t1 extends class e1{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,e instanceof Ts&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(EC(t=>this._pressedLetters.push(t)),wh(e),Lr(()=>this._pressedLetters.length>0),zn(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Zs(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ts?this._items.toArray():this._items}}{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}const AC="cdk-high-contrast-black-on-white",TC="cdk-high-contrast-white-on-black",Sh="cdk-high-contrast-active";let d1=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.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 t=this._document.body.classList;t.remove(Sh),t.remove(AC),t.remove(TC),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Sh),t.add(AC)):2===i&&(t.add(Sh),t.add(TC))}}}return n.\u0275fac=function(t){return new(t||n)(C(gn),C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function h1(n,e){if(1&n&&ti(0,"mat-pseudo-checkbox",4),2&n){const t=ge();q("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f1(n,e){if(1&n&&(J(0,"span",5),qt(1),ie()),2&n){const t=ge();W(1),Si("(",t.group.label,")")}}const p1=["*"],g1=new I("mat-sanity-checks",{providedIn:"root",factory:function m1(){return!0}});let Un=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Xd()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(C(d1),C(g1,8),C(ue))},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[[Ks],Ks]}),n})();function _1(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||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 y1(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Hn(e)}}}function v1(n){return class extends n{constructor(...e){super(...e),this.stateChanges=new Me,this.errorState=!1}updateErrorState(){const e=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==e&&(this.errorState=s,this.stateChanges.next())}}}let xC=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class C1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const kC={enterDuration:225,exitDuration:150},Mh=rl({passive:!0}),OC=["mousedown","touchstart"],FC=["mouseup","mouseleave","touchend","touchcancel"];class E1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Rr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},kC),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function S1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-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 w1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new C1(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(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},kC),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Rr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(OC))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(FC),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=function l1(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!function c1(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Mh)})})}_removeTriggerEvents(){this._triggerElement&&(OC.forEach(e=>{this._triggerElement.removeEventListener(e,this,Mh)}),this._pointerUpEventsRegistered&&FC.forEach(e=>{this._triggerElement.removeEventListener(e,this,Mh)}))}}const M1=new I("mat-ripple-global-options");let A1=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new E1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(ce),y(gn),y(M1,8),y($s,8))},n.\u0275dir=x({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Wt("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})(),T1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[[Un],Un]}),n})(),I1=(()=>{class n{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(t){return new(t||n)(y($s,8))},n.\u0275cmp=pi({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,i){2&t&&Wt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),x1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[[Un]]}),n})();const RC=new I("MAT_OPTION_PARENT_COMPONENT"),NC=new I("MatOptgroup");let k1=0;class PC{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let O1=(()=>{class n{constructor(t,i,r,s){this._element=t,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+k1++,this.onSelectionChange=new Ee,this._stateChanges=new Me}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Hn(t)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!Zs(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new PC(this,t))}}return n.\u0275fac=function(t){!function ug(){throw new Error("invalid")}()},n.\u0275dir=x({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),LC=(()=>{class n extends O1{constructor(t,i,r,s){super(t,i,r,s)}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(xi),y(RC,8),y(NC,8))},n.\u0275cmp=pi({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,i){1&t&&Le("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&t&&(Jo("id",i.id),ht("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Wt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Y],ngContentSelectors:p1,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,i){1&t&&(Qo(),Re(0,h1,1,2,"mat-pseudo-checkbox",0),J(1,"span",1),cn(2),ie(),Re(3,f1,2,1,"span",2),ti(4,"div",3)),2&t&&(q("ngIf",i.multiple),W(3),q("ngIf",i.group&&i.group._inert),W(1),q("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[I1,wa,A1],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})(),VC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[[T1,Ta,Un,x1]]}),n})(),BC=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N1=(()=>{class n{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,i)=>this._cleanupObserver(i))}observe(t){const i=Rr(t);return new be(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const i=new Me,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:i,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:i,stream:r}=this._observedElements.get(t);i&&i.disconnect(),r.complete(),this._observedElements.delete(t)}}}return n.\u0275fac=function(t){return new(t||n)(C(BC))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),P1=(()=>{class n{constructor(t,i,r){this._contentObserver=t,this._elementRef=i,this._ngZone=r,this.event=new Ee,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Hn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=function bN(n,e=0){return function CN(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(wh(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(y(N1),y(Te),y(ce))},n.\u0275dir=x({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),L1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({providers:[BC]}),n})();function Vr(n,e,t,i){return Z(t)&&(i=t,t=void 0),i?Vr(n,e,t).pipe(zn(r=>re(r)?i(...r):i(r))):new be(r=>{jC(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function jC(n,e,t,i,r){let s;if(function j1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function B1(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function V1(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)jC(n[o],e,t,i,r)}i.add(s)}function HC(...n){return function H1(){return ef(1)}()(Na(...n))}function bl(...n){const e=n[n.length-1];return $r(e)?(n.pop(),t=>HC(n,t,e)):t=>HC(n,t)}function Cl(n){return e=>e.lift(new $1(n))}class $1{constructor(e){this.notifier=e}call(e,t){const i=new U1(e),r=ro(this.notifier,new no(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class U1 extends io{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const z1=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Qs(n){return e=>0===n?Dd():e.lift(new G1(n))}class G1{constructor(e){if(this.total=e,this.total<0)throw new z1}call(e,t){return t.subscribe(new W1(e,this.total))}}class W1 extends ke{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}const q1=["connectionContainer"],K1=["inputContainer"],Z1=["label"];function Y1(n,e){1&n&&(Ei(0),J(1,"div",14),ti(2,"div",15)(3,"div",16)(4,"div",17),ie(),J(5,"div",18),ti(6,"div",15)(7,"div",16)(8,"div",17),ie(),wi())}function Q1(n,e){if(1&n){const t=ys();J(0,"div",19),Le("cdkObserveContent",function(){return Fn(t),ge().updateOutlineGap()}),cn(1,1),ie()}2&n&&q("cdkObserveContentDisabled","outline"!=ge().appearance)}function X1(n,e){if(1&n&&(Ei(0),cn(1,2),J(2,"span"),qt(3),ie(),wi()),2&n){const t=ge(2);W(3),ni(t._control.placeholder)}}function J1(n,e){1&n&&cn(0,3,["*ngSwitchCase","true"])}function eL(n,e){1&n&&(J(0,"span",23),qt(1," *"),ie())}function tL(n,e){if(1&n){const t=ys();J(0,"label",20,21),Le("cdkObserveContent",function(){return Fn(t),ge().updateOutlineGap()}),Re(2,X1,4,1,"ng-container",12),Re(3,J1,1,0,"ng-content",12),Re(4,eL,2,0,"span",22),ie()}if(2&n){const t=ge();Wt("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),q("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),ht("for",t._control.id)("aria-owns",t._control.id),W(2),q("ngSwitchCase",!1),W(1),q("ngSwitchCase",!0),W(1),q("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function nL(n,e){1&n&&(J(0,"div",24),cn(1,4),ie())}function iL(n,e){if(1&n&&(J(0,"div",25),ti(1,"span",26),ie()),2&n){const t=ge();W(1),Wt("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function rL(n,e){1&n&&(J(0,"div"),cn(1,5),ie()),2&n&&q("@transitionMessages",ge()._subscriptAnimationState)}function sL(n,e){if(1&n&&(J(0,"div",30),qt(1),ie()),2&n){const t=ge(2);q("id",t._hintLabelId),W(1),ni(t.hintLabel)}}function oL(n,e){if(1&n&&(J(0,"div",27),Re(1,sL,2,2,"div",28),cn(2,6),ti(3,"div",29),cn(4,7),ie()),2&n){const t=ge();q("@transitionMessages",t._subscriptAnimationState),W(1),q("ngIf",t.hintLabel)}}const aL=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],lL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let cL=0;const $C=new I("MatError");let uL=(()=>{class n{constructor(t,i){this.id="mat-error-"+cL++,t||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(t){return new(t||n)(function Ao(n){return function YE(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Nf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Ke(),n)}("aria-live"),y(Te))},n.\u0275dir=x({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,i){2&t&&ht("id",i.id)},inputs:{id:"id"},features:[se([{provide:$C,useExisting:n}])]}),n})();const dL={transitionMessages:vF("transitionMessages",[CF("enter",Va({opacity:1,transform:"translateY(0%)"})),DF("void => enter",[Va({opacity:0,transform:"translateY(-5px)"}),bF("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ah=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n}),n})(),hL=0;const UC=new I("MatHint");let fL=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+hL++}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,i){2&t&&(ht("id",i.id)("align",null),Wt("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[se([{provide:UC,useExisting:n}])]}),n})(),Th=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["mat-label"]]}),n})(),pL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["mat-placeholder"]]}),n})();const mL=new I("MatPrefix"),gL=new I("MatSuffix");let zC=0;const yL=_1(class{constructor(n){this._elementRef=n}},"primary"),vL=new I("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ih=new I("MatFormField");let bL=(()=>{class n extends yL{constructor(t,i,r,s,o,a,l){super(t),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+zC++,this._labelId="mat-form-field-label-"+zC++,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(t){const i=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Hn(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(bl(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Cl(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Cl(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Gn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(bl(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(bl(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Cl(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(t){const i=this._control?this._control.ngControl:null;return i&&i[t]}_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,Vr(this._label.nativeElement,"transitionend").pipe(Qs(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.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?t.push(i.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=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(!t||!t.children.length||!t.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=t.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(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const i=t.getRootNode();return i&&i!==t}return document.documentElement.contains(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(xi),y(Dh,8),y(vL,8),y(gn),y(ce),y($s,8))},n.\u0275cmp=pi({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,i,r){if(1&t&&(Kt(r,Ah,5),Kt(r,Ah,7),Kt(r,Th,5),Kt(r,Th,7),Kt(r,pL,5),Kt(r,$C,5),Kt(r,UC,5),Kt(r,mL,5),Kt(r,gL,5)),2&t){let s;Qe(s=Xe())&&(i._controlNonStatic=s.first),Qe(s=Xe())&&(i._controlStatic=s.first),Qe(s=Xe())&&(i._labelChildNonStatic=s.first),Qe(s=Xe())&&(i._labelChildStatic=s.first),Qe(s=Xe())&&(i._placeholderChild=s.first),Qe(s=Xe())&&(i._errorChildren=s),Qe(s=Xe())&&(i._hintChildren=s),Qe(s=Xe())&&(i._prefixChildren=s),Qe(s=Xe())&&(i._suffixChildren=s)}},viewQuery:function(t,i){if(1&t&&(ri(q1,7),ri(K1,5),ri(Z1,5)),2&t){let r;Qe(r=Xe())&&(i._connectionContainerRef=r.first),Qe(r=Xe())&&(i._inputContainerRef=r.first),Qe(r=Xe())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,i){2&t&&Wt("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:[se([{provide:Ih,useExisting:n}]),Y],ngContentSelectors:lL,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(t,i){1&t&&(Qo(aL),J(0,"div",0)(1,"div",1,2),Le("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Re(3,Y1,9,0,"ng-container",3),Re(4,Q1,2,1,"div",4),J(5,"div",5,6),cn(7),J(8,"span",7),Re(9,tL,5,16,"label",8),ie()(),Re(10,nL,2,0,"div",9),ie(),Re(11,iL,2,4,"div",10),J(12,"div",11),Re(13,rL,2,1,"div",12),Re(14,oL,5,2,"div",13),ie()()),2&t&&(W(3),q("ngIf","outline"==i.appearance),W(1),q("ngIf",i._prefixChildren.length),W(5),q("ngIf",i._hasFloatingLabel()),W(1),q("ngIf",i._suffixChildren.length),W(1),q("ngIf","outline"!=i.appearance),W(1),q("ngSwitch",i._getDisplayedMessages()),W(1),q("ngSwitchCase","error"),W(1),q("ngSwitchCase","hint"))},directives:[wa,P1,Aa,rv],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}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.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-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.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;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;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;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;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;border-top-color:GrayText}.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}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.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:[dL.transitionMessages]},changeDetection:0}),n})(),xh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[[Ta,Un,L1],Un]}),n})();const WC=rl({passive:!0});let CL=(()=>{class n{constructor(t,i){this._platform=t,this._ngZone=i,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ev;const i=Rr(t),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new Me,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,WC),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,WC)}}),s}stopMonitoring(t){const i=Rr(t),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((t,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(t){return new(t||n)(C(gn),C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})();const DL=new I("MAT_INPUT_VALUE_ACCESSOR"),EL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let wL=0;const SL=v1(class{constructor(n,e,t,i){this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=t,this.ngControl=i}});let KC=(()=>{class n extends SL{constructor(t,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=t,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+wL++,this.focused=!1,this.stateChanges=new Me,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=>fb().has(p)),this._iOSKeyupListener=p=>{const m=p.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))};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(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),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(t){this._disabled=Hn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){var t,i,r,s;return null!==(s=null!==(t=this._required)&&void 0!==t?t:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(ON.required))&&void 0!==s&&s}set required(t){this._required=Hn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&fb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Hn(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,i;const r=(null===(i=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===i?void 0:i.call(t))?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 t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){EL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,i=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(gn),y($n,10),y(_l,8),y(yl,8),y(xC),y(DL,10),y(CL),y(ce),y(Ih,8))},n.\u0275dir=x({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(t,i){1&t&&Le("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(Jo("disabled",i.disabled)("required",i.required),ht("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),Wt("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:[se([{provide:Ah,useExisting:n}]),Y,$t]}),n})(),ML=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({providers:[xC],imports:[[qC,xh,Un],qC,xh]}),n})(),AL=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new fh(""),this.onEnter$=new Me,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(wh(100)).subscribe(()=>{var t;this.shouldValueChange(this.formControl.value)&&(null===(t=this.onEnter)||void 0===t||t.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(Lr(t=>(this.valueCanBeChanged=this.shouldValueChange(t),this.valueCanBeChanged))).subscribe(t=>{this.updateOnBlur||this.triggerValueChange(t)})}triggerValueChange(t){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(t)})}onEnterKeydown(t){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(t){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(t){return t}shouldValueChange(t){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),TL=(()=>{class n extends AL{constructor(){super(...arguments),this.filteredSuggestions=[]}ngOnChanges(t){super.ngOnChanges(t),this.filter()}ngOnInit(){super.ngOnInit(),this.autocompleteChanges$=this.formControl.valueChanges.subscribe(()=>this.filter())}ngOnDestroy(){super.ngOnDestroy(),this.autocompleteChanges$&&this.autocompleteChanges$.unsubscribe()}get suggestionStyle(){return 1!==this.filteredSuggestions.length||this.filteredSuggestions[0]?null:{display:"none"}}filter(){var t;const i=`${this.formControl.value||""}`.toLowerCase();this.filteredSuggestions=(null===(t=this.suggestions)||void 0===t?void 0:t.filter(r=>{var s,o;return(null===(o=null===(s=r.label)||void 0===s?void 0:s.toLowerCase())||void 0===o?void 0:o.includes(i))||""}))||[],this.filteredSuggestions=this.filteredSuggestions.length?this.filteredSuggestions:[null]}triggerFocus(){var t;null===(t=this.onFocus)||void 0===t||t.call(this)}optionSelected(t){this.onEnter$.next()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();var IL=zh(959);new class OL extends mn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class kL extends Ra{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let RL=1;const NL=Promise.resolve(),Dl={};function ZC(n){return n in Dl&&(delete Dl[n],!0)}const YC={setImmediate(n){const e=RL++;return Dl[e]=!0,NL.then(()=>ZC(e)&&n()),e},clearImmediate(n){ZC(n)}};new class LL extends mn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class PL extends Ra{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=YC.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(YC.clearImmediate(t),e.scheduled=void 0)}});class jL{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new HL(e,this.durationSelector))}}class HL extends io{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=ro(t,new no(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function QC(n){return!re(n)&&n-parseFloat(n)+1>=0}function UL(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function XC(n,e=vl){return function BL(n){return function(t){return t.lift(new jL(n))}}(()=>function $L(n=0,e,t){let i=-1;return QC(e)?i=Number(e)<1?1:Number(e):$r(e)&&(t=e),$r(t)||(t=vl),new be(r=>{const s=QC(n)?n:+n-t.now();return t.schedule(UL,s,{index:0,period:i,subscriber:r})})}(n,e))}let GL=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Me,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new be(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(XC(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Na()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Lr(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Rr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Vr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(C(ce),C(gn),C(ue,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kh=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new Me,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.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 t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(XC(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(C(gn),C(ce),C(ue,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})(),JC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({imports:[[Ks,Oh],Ks,Oh]}),n})();class Fh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class qL extends Fh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class eD extends Fh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class KL extends Fh{constructor(e){super(),this.element=e instanceof Te?e.nativeElement:e}}class YL extends class ZL{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof qL?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof eD?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof KL?(this._attachedPortal=e,this.attachDomPortal(e)):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(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,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(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||yt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let QL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})();const tD=wN();class XL{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ge(-this._previousScrollPosition.left),e.style.top=Ge(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.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,e.classList.remove("cdk-global-scrollblock"),tD&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tD&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class JL{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class nD{enable(){}disable(){}attach(){}}function Rh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function iD(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class eV{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Rh(t,[{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 tV=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new nD,this.close=o=>new JL(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new XL(this._viewportRuler,this._document),this.reposition=o=>new eV(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(C(GL),C(kh),C(ce),C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class rD{constructor(e){if(this.scrollStrategy=new nD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class nV{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class iV{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,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 Me,this._attachments=new Me,this._detachments=new Me,this._locationChanges=z.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me,this._outsidePointerEvents=new Me,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(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Qs(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),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=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===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Ge(this._config.width),e.height=Ge(this._config.height),e.minWidth=Ge(this._config.minWidth),e.minHeight=Ge(this._config.minHeight),e.maxWidth=Ge(this._config.maxWidth),e.maxHeight=Ge(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;!e||(e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500)))}_toggleClasses(e,t,i){const r=db(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Cl(Gn(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()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Nh=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Xd()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Xd()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(C(ue),C(gn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sD="cdk-overlay-connected-position-bounding-box",rV=/([A-Za-z%]+)$/;class sV{constructor(e,t,i,r,s){this._viewportRuler=t,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 Me,this._resizeSubscription=z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(sD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,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:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}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&&ji(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=aD(t);let{x:o,y:a}=e,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(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=oD(this._overlayRef.getConfig().minHeight),a=oD(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=aD(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new nV(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!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=Ge(i.height),r.top=Ge(i.top),r.bottom=Ge(i.bottom),r.width=Ge(i.width),r.left=Ge(i.left),r.right=Ge(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Ge(s)),o&&(r.maxWidth=Ge(o))}this._lastBoundingBoxSize=i,ji(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ji(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ji(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();ji(i,this._getExactOverlayY(t,e,u)),ji(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Ge(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Ge(o.maxWidth):s&&(i.maxWidth="")),ji(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Ge(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Ge(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:iD(e,i),isOriginOutsideView:Rh(e,i),isOverlayClipped:iD(t,i),isOverlayOutsideView:Rh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&db(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Te)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function ji(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function oD(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(rV);return t&&"px"!==t?null:parseFloat(e)}return n||null}function aD(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 lD="cdk-global-overlay-wrapper";class oV{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(lD),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=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);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(lD),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let aV=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new oV}flexibleConnectedTo(t){return new sV(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(C(kh),C(ue),C(gn),C(Nh))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cD=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lV=(()=>{class n extends cD{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):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(t){return new(t||n)(C(ue),C(ce,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cV=(()=>{class n extends cD{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Qd(s)},this._clickListener=s=>{const o=Qd(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(o)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(s)):d.next(s)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),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 t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(C(ue),C(gn),C(ce,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uV=0,El=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,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(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new rD(t);return o.direction=o.direction||this._directionality.value,new iV(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+uV++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ua)),new YL(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(C(tV),C(Nh),C(Ai),C(aV),C(lV),C(yt),C(ce),C(ue),C(Dh),C(By),C(cV))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const fV={provide:new I("cdk-connected-overlay-scroll-strategy"),deps:[El],useFactory:function hV(n){return()=>n.scrollStrategies.reposition()}};let pV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({providers:[El,fV],imports:[[Ks,QL,JC],JC]}),n})();class _V{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Ph(e,this.delay,this.scheduler))}}class Ph extends ke{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Ph.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new yV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(St.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(St.createComplete()),this.unsubscribe()}}class yV{constructor(e,t){this.time=e,this.notification=t}}const vV=["panel"];function bV(n,e){if(1&n&&(J(0,"div",0,1),cn(2),ie()),2&n){const t=e.id,i=ge();q("id",i.id)("ngClass",i._classList),ht("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const CV=["*"];let DV=0;class EV{constructor(e,t){this.source=e,this.option=t}}const wV=y1(class{}),uD=new I("mat-autocomplete-default-options",{providedIn:"root",factory:function SV(){return{autoActiveFirstOption:!1}}});let MV=(()=>{class n extends wV{constructor(t,i,r,s){super(),this._changeDetectorRef=t,this._elementRef=i,this._activeOptionChanges=z.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ee,this.opened=new Ee,this.closed=new Ee,this.optionActivated=new Ee,this._classList={},this.id="mat-autocomplete-"+DV++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Hn(t)}set classList(t){this._classList=t&&t.length?function DN(n,e=/\s+/){const t=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(e);for(const r of i){const s=`${r}`.trim();s&&t.push(s)}}return t}(t).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new t1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const i=new EV(this,t);this.optionSelected.emit(i)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(t){return new(t||n)(y(xi),y(Te),y(uD),y(gn))},n.\u0275dir=x({type:n,viewQuery:function(t,i){if(1&t&&(ri(An,7),ri(vV,5)),2&t){let r;Qe(r=Xe())&&(i.template=r.first),Qe(r=Xe())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Y]}),n})(),AV=(()=>{class n extends MV{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275cmp=pi({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(t,i,r){if(1&t&&(Kt(r,NC,5),Kt(r,LC,5)),2&t){let s;Qe(s=Xe())&&(i.optionGroups=s),Qe(s=Xe())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[se([{provide:RC,useExisting:n}]),Y],ngContentSelectors:CV,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,i){1&t&&(Qo(),Re(0,bV,3,4,"ng-template"))},directives:[Zy],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const dD=new I("mat-autocomplete-scroll-strategy"),IV={provide:dD,deps:[El],useFactory:function TV(n){return()=>n.scrollStrategies.reposition()}},xV={provide:Jt,useExisting:ae(()=>hD),multi:!0};let kV=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this._element=t,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=z.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Me,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=function xL(n){return new be(e=>{let t;try{t=n()}catch(r){return void e.error(r)}return(t?Ur(t):Dd()).subscribe(e)})}(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(bl(f),Vs(()=>Gn(...f.map(p=>p.onSelectionChange)))):this._zone.onStable.pipe(Qs(1),Vs(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Hn(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Gn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Lr(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Lr(()=>this._overlayAttached)):Na()).pipe(zn(t=>t instanceof PC?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Gn(Vr(this._document,"click"),Vr(this._document,"auxclick"),Vr(this._document,"touchend")).pipe(Lr(t=>{const i=Qd(t),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(t){Promise.resolve().then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const i=t.keyCode,r=Zs(t);if(27===i&&!r&&t.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const s=this.autocomplete._keyManager.activeItem,o=38===i||40===i;9===i||o&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):o&&this._canOpen()&&this.openPanel(),(o||this.autocomplete._keyManager.activeItem!==s)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let i=t.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Gn(this._zone.onStable.pipe(Qs(1)),this.autocomplete.options.changes.pipe(EC(()=>this._positionStrategy.reapplyLastPosition()),function gV(n,e=vl){const i=function mV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new _V(i,e))}(0))).pipe(Vs(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),Qs(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(t){const i=t&&t.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(i=>{i!==t&&i.selected&&i.deselect()})}_attachOverlay(){var t;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new eD(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!Zs(s)||38===s.keyCode&&Zs(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new rD({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],t.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const i=this.autocomplete,r=function F1(n,e,t){if(t.length){let i=e.toArray(),r=t.toArray(),s=0;for(let o=0;o<n+1;o++)i[o].group&&i[o].group===r[s]&&s++;return s}return 0}(t,i.options,i.optionGroups);if(0===t&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[t];if(s){const o=s._getHostElement(),a=function R1(n,e,t,i){return n<t?n:n+e>t+i?Math.max(0,n-i+e):t}(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(El),y(hn),y(ce),y(xi),y(dD),y(Dh,8),y(Ih,9),y(ue,8),y(kh),y(uD,8))},n.\u0275dir=x({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[$t]}),n})(),hD=(()=>{class n extends kV{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275dir=x({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,i){1&t&&Le("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(){return i._handleClick()}),2&t&&ht("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[se([xV]),Y]}),n})(),OV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({providers:[IV],imports:[[pV,VC,Un,Ta],Oh,VC,Un]}),n})();"function"==typeof SuppressedError&&SuppressedError;const wl=new I("config"),mD=new I("NEW_CONFIG"),gD=new I("INITIAL_CONFIG"),nB={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")}}},iB=["Hh:m0:s0","Hh:m0","m0:s0"],rB=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Hh=(()=>{class n{constructor(t){this._config=t,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(t,i){const[r,s]=i;return this.customPattern=s,this.applyMask(t,r)}applyMask(t,i,r=0,s=!1,o=!1,a=(()=>{})){if(null==t||void 0===i)return"";let l=0,c="",u=!1,d=!1,h=1,f=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&(null==t?void 0:t.length)>0&&(t=this.checkAndRemoveSuffix(t));const p=t.toString().split("");"IP"===i&&(this.ipError=p.filter(D=>"."===D).length<3&&p.length<7,i="099.099.099.099");const m=[];for(let D=0;D<t.length;D++)t[D].match("\\d")&&m.push(t[D]);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(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const D=this.getPrecision(i);t=this.checkInputPrecision(t,D,this.decimalMarker)}t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))&&(t=`${t.substring(0,t.indexOf(".")-1)}${t.substring(t.indexOf("."),t.length)}`),c=this.percentage(t)?t:t.substring(0,t.length-1)}else if(i.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const D=this._charToRegExpExpression(this.thousandSeparator),M=this._charToRegExpExpression(this.decimalMarker),ee='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(D,"").replace(M,""),ye=new RegExp("["+ee+"]");t.match(ye)&&(t=t.substring(0,t.length-1));const tt=this.getPrecision(i),at=(t=this.checkInputPrecision(t,tt,this.decimalMarker)).replace(new RegExp(D,"g"),"");c=this._formatWithSeparators(at,this.thousandSeparator,this.decimalMarker,tt);const lt=c.indexOf(",")-t.indexOf(","),Mt=c.length-t.length;if(Mt>0&&","!==c[r]){d=!0;let Dt=0;do{this._shift.add(r+Dt),Dt++}while(Dt<Mt)}else 0!==lt&&r>0&&!(c.indexOf(",")>=r&&r>3)||!(c.indexOf(".")>=r&&r>3)&&Mt<=0?(this._shift.clear(),d=!0,h=Mt,this._shift.add(r+=Mt)):this._shift.clear()}else for(let D=0,M=p[0];D<p.length&&l!==i.length;D++,M=p[D])if(this._checkSymbolMask(M,i[l])&&"?"===i[l+1])c+=M,l+=2;else if("*"===i[l+1]&&u&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3,u=!1;else if(this._checkSymbolMask(M,i[l])&&"*"===i[l+1])c+=M,u=!0;else if("?"===i[l+1]&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3;else if(this._checkSymbolMask(M,i[l])){if("H"===i[l]&&Number(M)>2){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&"2"===c&&Number(M)>3){l+=1,D--;continue}if("m"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}if("s"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}const ee=31;if("d"===i[l]&&(Number(M)>3&&this.leadZeroDateTime||Number(t.slice(l,l+2))>ee||"/"===t[l+1])){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}if("M"===i[l]){const tt=0===l&&(Number(M)>2||Number(t.slice(l,l+2))>12||"/"===t[l+1]),at=t.slice(l-3,l-1).includes("/")&&("/"===t[l-2]&&Number(t.slice(l-1,l+1))>12&&"/"!==t[l]||"/"===t[l]||"/"===t[l-3]&&Number(t.slice(l-2,l))>12&&"/"!==t[l-1]||"/"===t[l-1]),lt=Number(t.slice(l-3,l-1))<=ee&&!t.slice(l-3,l-1).includes("/")&&"/"===t[l-1]&&(Number(t.slice(l,l+2))>12||"/"===t[l+1]),Mt=Number(t.slice(l-3,l-1))>ee&&!t.slice(l-3,l-1).includes("/")&&!t.slice(l-2,l).includes("/")&&Number(t.slice(l-2,l))>12,Dt=Number(t.slice(l-3,l-1))<=ee&&!t.slice(l-3,l-1).includes("/")&&"/"!==t[l-1]&&Number(t.slice(l-1,l+1))>12;if(Number(M)>1&&this.leadZeroDateTime||tt||at||lt||Mt||Dt){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}}c+=M,l++}else-1!==this.maskSpecialCharacters.indexOf(i[l])?(c+=i[l],l++,this._shiftStep(i,l,p.length),D--):this.maskSpecialCharacters.indexOf(M)>-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++,D--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u?(l+=3,c+=M):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(M)<0&&M!==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 v=s?l:this._shift.has(r)?h:0;f&&v--,a(v,d),h<0&&this._shift.clear();let g=!1;o&&(g=p.every(D=>this.maskSpecialCharacters.includes(D)));let E=`${this.prefix}${g?"":c}${this.suffix}`;return 0===c.length&&(E=`${this.prefix}${c}`),E}_findSpecialChar(t){return this.maskSpecialCharacters.find(i=>i===t)}_checkSymbolMask(t,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[i]&&this.maskAvailablePatterns[i].pattern&&this.maskAvailablePatterns[i].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((i,r)=>i.match("^-?\\d")||i.match("\\s")||"."===i||","===i||"-"===i&&0===r&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?"\\"+t:t)}_shiftStep(t,i,r){const s=/[*?]/g.test(t.slice(0,i))?r:i;this._shift.add(s+this.prefix.length||0)}}return n.\u0275fac=function(t){return new(t||n)(C(wl))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),_D=(()=>{class n extends Hh{constructor(t,i,r,s){super(i),this.document=t,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(t,i,r=0,s=!1,o=!1,a=(()=>{})){if(!i)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=t&&"number"==typeof this.selStart?t[this.selStart]:"";let c="";if(void 0!==this.hiddenInput){let f=this.actualValue.split("");""!==t&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>f.length?f.splice(this.selStart,0,l):t.length<f.length&&(f.length-t.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("")):t}c=Boolean(c)&&c.length?c:t;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(t){const i=/(^|\D)(\d\D)/g;let r=i.exec(t),s=0;for(;null!=r;)s+=1,r=i.exec(t);return s}applyValueChanges(t=0,i,r,s=(()=>{})){const o=this._elementRef.nativeElement;o.value=this.applyMask(o.value,this.maskExpression,t,i,r,s),o!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,i){return t.split("").map((r,s)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[i[s]]&&this.maskAvailablePatterns[i[s]].symbol?this.maskAvailablePatterns[i[s]].symbol:r).join("")}getActualValue(t){const i=t.split("").filter((r,s)=>this._checkSymbolMask(r,this.maskExpression[s])||this.maskSpecialCharacters.includes(this.maskExpression[s])&&r===this.maskExpression[s]);return i.join("")===t?i.join(""):t}shiftTypedSymbols(t){let i="";return(t&&t.split("").map((s,o)=>{if(this.maskSpecialCharacters.includes(t[o+1])&&t[o+1]!==this.maskExpression[o+1])return i=s,t[o+1];if(i.length){const a=i;return i="",a}return s})||[]).join("")}showMaskInInput(t){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(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,i]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,i))}checkSpecialCharAmount(t){return t.split("").filter(r=>this._findSpecialChar(r)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let r=0;r<t.length;r++)t[r].match("\\d")&&i.push(t[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(t){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("#"===t)return i;const s=[];for(let o=0;o<t.length;o++)t[o].match("\\d")&&s.push(t[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===t.length?16:15,r.length):s.length>12&&s.length<=14?r.slice(s.length+4,r.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(t)):this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue)return t;const i=Number(t);return Number.isNaN(i)?t:i}_removeMask(t,i){return t&&t.replace(this._regExpForRemove(i),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(i=>`\\${i}`).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const i=this._retrieveSeparatorPrecision(this.maskExpression);let r=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(r=r.replace(this.decimalMarker,".")),this.isNumberValue?i?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,r):Number(r):r}_retrieveSeparatorPrecision(t){const i=t.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(t,i){return t.indexOf("2")>0?Number(i).toFixed(2):Number(i)}}return n.\u0275fac=function(t){return new(t||n)(C(ue),C(wl),C(Te),C(ii))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),sB=(()=>{class n{constructor(t,i,r){this.document=t,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(t){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:v,separatorLimit:g,allowNegativeNumbers:E,leadZeroDateTime:D}=t;if(i&&(this._maskValue=i.currentValue||"",i.currentValue&&i.currentValue.split("||").length>1&&(this._maskExpressionArray=i.currentValue.split("||").sort((M,ee)=>M.length-ee.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),v&&(this._maskService.validation=v.currentValue),g&&(this._maskService.separatorLimit=g.currentValue),E&&(this._maskService.allowNegativeNumbers=E.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(M=>"-"!==M))),D&&(this._maskService.leadZeroDateTime=D.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||rB.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(iB.includes(this._maskValue))return this._validateTime(t);if(t&&t.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)&&t.toString().length>=this._maskValue.indexOf(r)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.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&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);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(t.toString().length<r)return this._createValidationError(t)}}return null}onPaste(){this._justPasted=!0}onInput(t){const i=t.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(t){if(!this._maskValue)return;const i=t.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==t.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(t){var i;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const r=t.target;if(this._inputValue=r.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===r.value.length&&(r.selectionStart=r.selectionEnd),8===t.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(t.keyCode,r)}this.suffixCheckOnPressDelete(t.keyCode,r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const s=r.selectionStart;8===t.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===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}writeValue(t){return function fD(n,e,t,i){return new(t||(t=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 t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&this.setDisabledState(Boolean(t.disable)),t=t.value),void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(t,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",t],this._inputValue=t})}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,i){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(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(t){this._maskService.formElementProperty=["disabled",t]}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.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(t.slice(this._start+1,this._end));return i+new Array(o+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const i=this._maskValue.split("").filter(r=>":"!==r).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<i||t.length<=i-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(t=>{const i=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&i)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,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(t){return new(t||n)(y(ue),y(_D),y(wl))},n.\u0275dir=x({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,i){1&t&&Le("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:[se([{provide:Jt,useExisting:ae(()=>n),multi:!0},{provide:ot,useExisting:ae(()=>n),multi:!0},_D]),$t]}),n})(),oB=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[{provide:mD,useValue:t},{provide:gD,useValue:nB},{provide:wl,useFactory:aB,deps:[gD,mD]},Hh]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({}),n})();function aB(n,e){return Object.assign(Object.assign({},n),e instanceof Function?e():e)}const yD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};yD.KeyboardEvent||(yD.KeyboardEvent=function(n,e){});const lB=["inputEl"];function cB(n,e){if(1&n&&(J(0,"mat-label"),qt(1),ie()),2&n){const t=ge(2);W(1),ni(t.label)}}function uB(n,e){if(1&n&&(J(0,"mat-option",7),qt(1),ie()),2&n){const t=e.$implicit,i=ge(2);q("value",null==t?null:t.value)("ngStyle",i.suggestionStyle)("disabled",!!i.suggestionStyle),W(1),Si(" ",null==t?null:t.label," ")}}function dB(n,e){if(1&n&&(J(0,"mat-error"),qt(1),ie()),2&n){const t=ge(2);W(1),Si(" ",t.error," ")}}function hB(n,e){if(1&n){const t=ys();Ei(0),J(1,"mat-form-field",1),Re(2,cB,2,1,"mat-label",0),J(3,"input",2,3),Le("blur",function(){return Fn(t),ge().onBlur()})("keydown.enter",function(r){return Fn(t),ge().onEnterKeydown(r)}),ie(),J(5,"mat-autocomplete",4,5),Le("opened",function(){return Fn(t),ge().triggerFocus()})("optionSelected",function(r){return Fn(t),ge().optionSelected(r)}),Re(7,uB,2,4,"mat-option",6),ie(),J(8,"mat-hint"),qt(9),ie(),Re(10,dB,2,1,"mat-error",0),ie(),wi()}if(2&n){const t=function Jm(n){return function Yi(n,e){return n[e]}(function IE(){return L.lFrame.contextLView}(),20+n)}(6),i=ge();W(1),q("appearance",i.appearance||"outline")("floatLabel","auto"),W(1),q("ngIf",i.label),W(1),q("id",i.id)("type",i.type)("placeholder",i.placeholder||i.label)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("matAutocomplete",t),W(2),q("panelWidth",i.suggestionsPanelWidth),W(2),q("ngForOf",i.filteredSuggestions),W(2),ni(i.helpText),W(1),q("ngIf",i.error)}}function fB(n,e){if(1&n&&(J(0,"mat-label"),qt(1),ie()),2&n){const t=ge(2);W(1),ni(t.label)}}function pB(n,e){if(1&n&&(J(0,"mat-error"),qt(1),ie()),2&n){const t=ge(2);W(1),Si(" ",t.error," ")}}function mB(n,e){if(1&n){const t=ys();Ei(0),J(1,"mat-form-field",1),Re(2,fB,2,1,"mat-label",0),J(3,"input",8,3),Le("blur",function(){return Fn(t),ge().onBlur()})("keydown.enter",function(r){return Fn(t),ge().onEnterKeydown(r)}),ie(),J(5,"mat-hint"),qt(6),ie(),Re(7,pB,2,1,"mat-error",0),ie(),wi()}if(2&n){const t=ge();W(1),q("appearance",t.appearance||"outline")("floatLabel","auto"),W(1),q("ngIf",t.label),W(1),q("id",t.id)("type",t.type)("placeholder",t.placeholder||t.label)("formControl",t.formControl)("errorStateMatcher",t.errorStateMatcher)("mask",null==t.mask?null:t.mask.expression)("suffix",(null==t.mask?null:t.mask.suffix)||"")("prefix",(null==t.mask?null:t.mask.prefix)||"")("dropSpecialCharacters",!(null!=t.mask&&t.mask.emitSpecialCharacters))("showMaskTyped",null==t.mask?null:t.mask.showMaskTyped)("thousandSeparator",null==t.mask?null:t.mask.thousandSeparator)("leadZeroDateTime",null==t.mask?null:t.mask.leadZeroDateTime)("allowNegativeNumbers",null==t.mask?null:t.mask.allowNegativeNumbers),W(3),ni(t.helpText),W(1),q("ngIf",t.error)}}let gB=(()=>{class n extends TL{constructor(){super(...arguments),this.setValue=({value:t})=>{this.formControl.setValue(t)},this.focused=!1,this.type="text",this.id=(0,IL.generate)()}ngAfterViewInit(){this.focused&&this.inputEl.nativeElement.focus()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275cmp=pi({type:n,selectors:[["drayman-text-field-internal"]],viewQuery:function(t,i){if(1&t&&(ri(KC,5),ri(lB,5)),2&t){let r;Qe(r=Xe())&&(i.input=r.first),Qe(r=Xe())&&(i.inputEl=r.first)}},inputs:{appearance:"appearance",onValueChange:"onValueChange",onEnter:"onEnter",setValue:"setValue",focused:"focused",onFocus:"onFocus",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",updateOnBlur:"updateOnBlur",suggestions:"suggestions",suggestionsPanelWidth:"suggestionsPanelWidth",mask:"mask",type:"type"},features:[Y],decls:2,vars:2,consts:[[4,"ngIf"],[3,"appearance","floatLabel"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","matAutocomplete","blur","keydown.enter"],["inputEl",""],[3,"panelWidth","opened","optionSelected"],["auto","matAutocomplete"],[3,"value","ngStyle","disabled",4,"ngFor","ngForOf"],[3,"value","ngStyle","disabled"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","mask","suffix","prefix","dropSpecialCharacters","showMaskTyped","thousandSeparator","leadZeroDateTime","allowNegativeNumbers","blur","keydown.enter"]],template:function(t,i){1&t&&(Re(0,hB,11,13,"ng-container",0),Re(1,mB,8,18,"ng-container",0)),2&t&&(q("ngIf",!i.mask),W(1),q("ngIf",i.mask))},directives:[wa,bL,Th,KC,al,hD,Bb,gh,AV,Yy,LC,ov,fL,uL,sB],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),_B=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(C(ue))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),yB=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function _F(n,e){const t=function uF(n,e){return e.get(Ai).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new pF(n,e.injector),r=function cF(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function rF(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends gF{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.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),t.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}(gB,{injector:this.injector});customElements.define("drayman-text-field",t)}}return n.\u0275fac=function(t){return new(t||n)(C(yt))},n.\u0275mod=Ce({type:n}),n.\u0275inj=ve({providers:[{provide:Nh,useClass:_B}],imports:[[vv,vN,MP,xh,ML,OV,oB.forRoot()]]}),n})();(function YI(){wy=!1})(),FO().bootstrapModule(yB).catch(n=>console.error(n))})()})();
|
|
1
|
+
(()=>{var CD={959:(Y,we,B)=>{"use strict";Y.exports=B(606)},550:(Y,we,B)=>{"use strict";var re,We,it,ne=B(539),de="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function qe(){it=!1}function z(Pe){if(Pe){if(Pe!==re){if(Pe.length!==de.length)throw new Error("Custom alphabet for shortid must be "+de.length+" unique characters. You submitted "+Pe.length+" characters: "+Pe);var Tt=Pe.split("").filter(function(fi,$r,eo){return $r!==eo.lastIndexOf(fi)});if(Tt.length)throw new Error("Custom alphabet for shortid must be "+de.length+" unique characters. These characters were not unique: "+Tt.join(", "));re=Pe,qe()}}else re!==de&&(re=de,qe())}function ke(){return it||(it=function Ui(){re||z(de);for(var $r,Pe=re.split(""),Tt=[],fi=ne.nextValue();Pe.length>0;)fi=ne.nextValue(),$r=Math.floor(fi*Pe.length),Tt.push(Pe.splice($r,1)[0]);return Tt.join("")}())}Y.exports={get:function Sl(){return re||de},characters:function At(Pe){return z(Pe),re},seed:function Se(Pe){ne.seed(Pe),We!==Pe&&(qe(),We=Pe)},lookup:function Js(Pe){return ke()[Pe]},shuffled:ke}},119:(Y,we,B)=>{"use strict";var it,qe,ne=B(535);B(550),Y.exports=function z(At){var Se="",Ui=Math.floor(.001*(Date.now()-1567752802062));return Ui===qe?it++:(it=0,qe=Ui),Se+=ne(7),Se+=ne(At),it>0&&(Se+=ne(it)),Se+ne(Ui)}},535:(Y,we,B)=>{"use strict";var ne=B(550),de=B(68),re=B(152);Y.exports=function We(it){for(var z,qe=0,At="";!z;)At+=re(de,ne.get(),1),z=it<Math.pow(16,qe+1),qe++;return At}},606:(Y,we,B)=>{"use strict";var ne=B(550),de=B(119),re=B(777),We=B(1)||0;function At(){return de(We)}Y.exports=At,Y.exports.generate=At,Y.exports.seed=function it(Se){return ne.seed(Se),Y.exports},Y.exports.worker=function qe(Se){return We=Se,Y.exports},Y.exports.characters=function z(Se){return void 0!==Se&&ne.characters(Se),ne.shuffled()},Y.exports.isValid=re},777:(Y,we,B)=>{"use strict";var ne=B(550);Y.exports=function de(re){return!(!re||"string"!=typeof re||re.length<6||new RegExp("[^"+ne.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(re))}},68:Y=>{"use strict";var we="object"==typeof window&&(window.crypto||window.msCrypto);Y.exports=we&&we.getRandomValues?function(ne){return we.getRandomValues(new Uint8Array(ne))}:function(ne){for(var de=[],re=0;re<ne;re++)de.push(Math.floor(256*Math.random()));return de}},539:Y=>{"use strict";var we=1;Y.exports={nextValue:function B(){return(we=(9301*we+49297)%233280)/233280},seed:function ne(de){we=de}}},1:Y=>{"use strict";Y.exports=0},152:Y=>{Y.exports=function(we,B,ne){for(var de=(2<<Math.log(B.length-1)/Math.LN2)-1,re=-~(1.6*de*ne/B.length),We="";;)for(var it=we(re),qe=re;qe--;)if((We+=B[it[qe]&de]||"").length===+ne)return We}}},zh={};function Gh(Y){var we=zh[Y];if(void 0!==we)return we.exports;var B=zh[Y]={exports:{}};return CD[Y](B,B.exports,Gh),B.exports}(()=>{"use strict";function Y(n){return"function"==typeof n}let we=!1;const B={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else we&&console.log("RxJS: Back to a better error behavior. Thank you. <3");we=n},get useDeprecatedSynchronousErrorHandling(){return we}};function ne(n){setTimeout(()=>{throw n},0)}const de={closed:!0,next(n){},error(n){if(B.useDeprecatedSynchronousErrorHandling)throw n;ne(n)},complete(){}},re=Array.isArray||(n=>n&&"number"==typeof n.length);function We(n){return null!==n&&"object"==typeof n}const qe=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class z{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof z)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Y(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof qe?At(o.errors):[o]}}if(re(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(We(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof qe?e=e.concat(At(c.errors)):e.push(c)}}}if(e)throw new qe(e)}add(e){let t=e;if(!e)return z.EMPTY;switch(typeof e){case"function":t=new z(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof z)){const s=t;t=new z,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof z){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function At(n){return n.reduce((e,t)=>e.concat(t instanceof qe?t.errors:t),[])}z.EMPTY=((n=new z).closed=!0,n);const Se="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ke extends z{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=de;break;case 1:if(!e){this.destination=de;break}if("object"==typeof e){e instanceof ke?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Js(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Js(this,e,t,i)}}[Se](){return this}static create(e,t,i){const r=new ke(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Js extends ke{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Y(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==de&&(o=Object.create(t),Y(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(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;B.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=B;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):ne(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ne(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);B.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),B.useDeprecatedSynchronousErrorHandling)throw i;ne(i)}}__tryOrSetError(e,t,i){if(!B.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return B.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(ne(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Tt="function"==typeof Symbol&&Symbol.observable||"@@observable";function fi(n){return n}let Ce=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function Pe(n,e,t){if(n){if(n instanceof ke)return n;if(n[Se])return n[Se]()}return n||e||t?new ke(n,e,t):new ke(de)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||B.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),B.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){B.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Sl(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof ke?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Wh(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Tt](){return this}pipe(...t){return 0===t.length?this:function eo(n){return 0===n.length?fi:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Wh(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Wh(n){if(n||(n=B.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const zi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class qh extends z{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Kh extends ke{constructor(e){super(e),this.destination=e}}let Me=(()=>{class n extends Ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Se](){return new Kh(this)}lift(t){const i=new Yh(this,this);return i.operator=t,i}next(t){if(this.closed)throw new zi;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new zi;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new zi;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.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(t){if(this.closed)throw new zi;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new zi;return this.hasError?(t.error(this.thrownError),z.EMPTY):this.isStopped?(t.complete(),z.EMPTY):(this.observers.push(t),new qh(this,t))}asObservable(){const t=new Ce;return t.source=this,t}}return n.create=(e,t)=>new Yh(e,t),n})();class Yh extends Me{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):z.EMPTY}}function Ur(n){return n&&"function"==typeof n.schedule}function zn(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new DD(n,e))}}class DD{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new ED(e,this.project,this.thisArg))}}class ED extends ke{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const Zh=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},to=function SD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Qh=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Xh(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Jh=n=>{if(n&&"function"==typeof n[Tt])return(n=>e=>{const t=n[Tt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Qh(n))return Zh(n);if(Xh(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,ne),e))(n);if(n&&"function"==typeof n[to])return(n=>e=>{const t=n[to]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${We(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Ml(n,e){return new Ce(t=>{const i=new z;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function zr(n,e){return e?function FD(n,e){if(null!=n){if(function kD(n){return n&&"function"==typeof n[Tt]}(n))return function TD(n,e){return new Ce(t=>{const i=new z;return i.add(e.schedule(()=>{const r=n[Tt]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Xh(n))return function ID(n,e){return new Ce(t=>{const i=new z;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(Qh(n))return Ml(n,e);if(function OD(n){return n&&"function"==typeof n[to]}(n)||"string"==typeof n)return function xD(n,e){if(!n)throw new Error("Iterable cannot be null");return new Ce(t=>{const i=new z;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[to](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof Ce?n:new Ce(Jh(n))}class no extends ke{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class io extends ke{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function ro(n,e){if(!e.closed)return n instanceof Ce?n.subscribe(e):Jh(n)(e)}function ef(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(ef((r,s)=>zr(n(r,s)).pipe(zn((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new RD(n,t)))}class RD{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new ND(e,this.project,this.concurrent))}}class ND extends io{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new no(this),i=this.destination;i.add(t);const r=ro(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function tf(n=Number.POSITIVE_INFINITY){return ef(fi,n)}function nf(n,e){return e?Ml(n,e):new Ce(Zh(n))}function Gn(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Ur(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof Ce?n[0]:tf(e)(nf(n,t))}function rf(){return function(e){return e.lift(new PD(e))}}class PD{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new LD(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class LD extends ke{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class VD extends Ce{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new z,e.add(this.source.subscribe(new jD(this.getSubject(),this))),e.closed&&(this._connection=null,e=z.EMPTY)),e}refCount(){return rf()(this)}}const BD=(()=>{const n=VD.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 jD extends Kh{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class UD{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function zD(){return new Me}function he(n){for(let e in n)if(n[e]===he)return e;throw Error("Could not find renamed property on target object.")}function Al(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function oe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(oe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Tl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const WD=he({__forward_ref__:he});function ae(n){return n.__forward_ref__=ae,n.toString=function(){return oe(this())},n}function $(n){return sf(n)?n():n}function sf(n){return"function"==typeof n&&n.hasOwnProperty(WD)&&n.__forward_ref__===ae}class A extends Error{constructor(e,t){super(function Il(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function P(n){return"string"==typeof n?n:null==n?"":String(n)}function rt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():P(n)}function so(n,e){const t=e?` in ${e}`:"";throw new A(-201,`No provider for ${rt(n)} found${t}`)}function xt(n,e){null==n&&function le(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function k(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function me(n){return{providers:n.providers||[],imports:n.imports||[]}}function xl(n){return af(n,oo)||af(n,cf)}function af(n,e){return n.hasOwnProperty(e)?n[e]:null}function lf(n){return n&&(n.hasOwnProperty(kl)||n.hasOwnProperty(JD))?n[kl]:null}const oo=he({\u0275prov:he}),kl=he({\u0275inj:he}),cf=he({ngInjectableDef:he}),JD=he({ngInjectorDef:he});var j=(()=>((j=j||{})[j.Default=0]="Default",j[j.Host=1]="Host",j[j.Self=2]="Self",j[j.SkipSelf=4]="SkipSelf",j[j.Optional=8]="Optional",j))();let Ol;function Wn(n){const e=Ol;return Ol=n,e}function uf(n,e,t){const i=xl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&j.Optional?null:void 0!==e?e:void so(oe(n),"Injector")}function qn(n){return{toString:n}.toString()}var en=(()=>((en=en||{})[en.OnPush=0]="OnPush",en[en.Default=1]="Default",en))(),tn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(tn||(tn={})),tn))();const tE="undefined"!=typeof globalThis&&globalThis,nE="undefined"!=typeof window&&window,iE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ue=tE||"undefined"!=typeof global&&global||nE||iE,Gi={},fe=[],ao=he({\u0275cmp:he}),Fl=he({\u0275dir:he}),Rl=he({\u0275pipe:he}),df=he({\u0275mod:he}),On=he({\u0275fac:he}),Gr=he({__NG_ELEMENT_ID__:he});let rE=0;function pi(n){return qn(()=>{const t={},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:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===en.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||fe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||tn.Emulated,id:"c",styles:n.styles||fe,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=rE++,i.inputs=mf(n.inputs,t),i.outputs=mf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(hf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ff):null,i})}function hf(n){return st(n)||function Kn(n){return n[Fl]||null}(n)}function ff(n){return function mi(n){return n[Rl]||null}(n)}const pf={};function be(n){return qn(()=>{const e={type:n.type,bootstrap:n.bootstrap||fe,declarations:n.declarations||fe,imports:n.imports||fe,exports:n.exports||fe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(pf[n.id]=n.type),e})}function mf(n,e){if(null==n)return Gi;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const x=pi;function st(n){return n[ao]||null}function jt(n,e){const t=n[df]||null;if(!t&&!0===e)throw new Error(`Type ${oe(n)} does not have '\u0275mod' property.`);return t}const H=11;function yn(n){return Array.isArray(n)&&"object"==typeof n[1]}function rn(n){return Array.isArray(n)&&!0===n[1]}function Ll(n){return 0!=(8&n.flags)}function ho(n){return 2==(2&n.flags)}function fo(n){return 1==(1&n.flags)}function sn(n){return null!==n.template}function uE(n){return 0!=(512&n[2])}function vi(n,e){return n.hasOwnProperty(On)?n[On]:null}class _f{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function $t(){return yf}function yf(n){return n.type.prototype.ngOnChanges&&(n.setInput=pE),fE}function fE(){const n=bf(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Gi)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function pE(n,e,t,i){const r=bf(n)||function mE(n,e){return n[vf]=e}(n,{previous:Gi,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new _f(l&&l.currentValue,e,o===Gi),n[i]=e}$t.ngInherit=!0;const vf="__ngSimpleChanges__";function bf(n){return n[vf]||null}let $l;function Fe(n){return!!n.listen}const Cf={createRenderer:(n,e)=>function Ul(){return void 0!==$l?$l:"undefined"!=typeof document?document:void 0}()};function je(n){for(;Array.isArray(n);)n=n[0];return n}function po(n,e){return je(e[n])}function Ot(n,e){return je(e[n.index])}function zl(n,e){return n.data[e]}function Ft(n,e){const t=e[n];return yn(t)?t:t[0]}function Df(n){return 4==(4&n[2])}function Gl(n){return 128==(128&n[2])}function Yn(n,e){return null==e?null:n[e]}function Ef(n){n[18]=0}function Wl(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const L={lFrame:Of(null),bindingsEnabled:!0};function Sf(){return L.bindingsEnabled}function b(){return L.lFrame.lView}function X(){return L.lFrame.tView}function Fn(n){return L.lFrame.contextLView=n,n[8]}function Ke(){let n=Mf();for(;null!==n&&64===n.type;)n=n.parent;return n}function Mf(){return L.lFrame.currentTNode}function vn(n,e){const t=L.lFrame;t.currentTNode=n,t.isParent=e}function ql(){return L.lFrame.isParent}function Kl(){L.lFrame.isParent=!1}function Qi(){return L.lFrame.bindingIndex++}function OE(n,e){const t=L.lFrame;t.bindingIndex=t.bindingRootIndex=n,Yl(e)}function Yl(n){L.lFrame.currentDirectiveIndex=n}function If(){return L.lFrame.currentQueryIndex}function Ql(n){L.lFrame.currentQueryIndex=n}function RE(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function xf(n,e,t){if(t&j.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&j.Host||(r=RE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=L.lFrame=kf();return i.currentTNode=e,i.lView=n,!0}function go(n){const e=kf(),t=n[1];L.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function kf(){const n=L.lFrame,e=null===n?null:n.child;return null===e?Of(n):e}function Of(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Ff(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Rf=Ff;function _o(){const n=Ff();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 gt(){return L.lFrame.selectedIndex}function Zn(n){L.lFrame.selectedIndex=n}function Ae(){const n=L.lFrame;return zl(n.tView,n.selectedIndex)}function yo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function vo(n,e,t){Nf(n,e,3,t)}function bo(n,e,t,i){(3&n[2])===t&&Nf(n,e,t,i)}function Xl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Nf(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(UE(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function UE(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Zr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Co(n,e,t){const i=Fe(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];ec(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Pf(n){return 3===n||4===n||6===n}function ec(n){return 64===n.charCodeAt(0)}function Do(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Lf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Lf(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){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,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Vf(n){return-1!==n}function Xi(n){return 32767&n}function Ji(n,e){let t=function KE(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let tc=!0;function Eo(n){const e=tc;return tc=n,e}let YE=0;function Xr(n,e){const t=ic(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,nc(i.data,n),nc(e,null),nc(i.blueprint,null));const r=wo(n,e),s=n.injectorIndex;if(Vf(r)){const o=Xi(r),a=Ji(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function nc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function ic(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function wo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;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(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function So(n,e,t){!function ZE(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Gr)&&(i=t[Gr]),null==i&&(i=t[Gr]=YE++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Hf(n,e,t){if(t&j.Optional)return n;so(e,"NodeInjector")}function $f(n,e,t,i){if(t&j.Optional&&void 0===i&&(i=null),0==(t&(j.Self|j.Host))){const r=n[9],s=Wn(void 0);try{return r?r.get(e,i,t&j.Optional):uf(e,i,t&j.Optional)}finally{Wn(s)}}return Hf(i,e,t)}function Uf(n,e,t,i=j.Default,r){if(null!==n){const s=function ew(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Gr)?n[Gr]:void 0;return"number"==typeof e?e>=0?255&e:XE:e}(t);if("function"==typeof s){if(!xf(e,n,i))return i&j.Host?Hf(r,t,i):$f(e,t,i,r);try{const o=s(i);if(null!=o||i&j.Optional)return o;so(t)}finally{Rf()}}else if("number"==typeof s){let o=null,a=ic(n,e),l=-1,c=i&j.Host?e[16][6]:null;for((-1===a||i&j.SkipSelf)&&(l=-1===a?wo(n,e):e[a+8],-1!==l&&Wf(i,!1)?(o=e[1],a=Xi(l),e=Ji(l,e)):a=-1);-1!==a;){const u=e[1];if(Gf(s,a,u.data)){const d=JE(a,e,t,o,i,c);if(d!==zf)return d}l=e[a+8],-1!==l&&Wf(i,e[1].data[a+8]===c)&&Gf(s,a,e)?(o=u,a=Xi(l),e=Ji(l,e)):a=-1}}}return $f(e,t,i,r)}const zf={};function XE(){return new er(Ke(),b())}function JE(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Mo(a,o,t,null==i?ho(a)&&tc:i!=o&&0!=(3&a.type),r&j.Host&&s===a);return null!==u?Jr(e,o,u,a):zf}function Mo(n,e,t,i,r){const s=n.providerIndexes,o=e.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&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&sn(f)&&f.type===t)return l}return null}function Jr(n,e,t,i){let r=n[t];const s=e.data;if(function zE(n){return n instanceof Zr}(r)){const o=r;o.resolving&&function qD(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new A(-200,`Circular dependency in DI detected for ${n}${t}`)}(rt(s[t]));const a=Eo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Wn(o.injectImpl):null;xf(n,i,j.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function $E(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=yf(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Wn(l),Eo(a),o.resolving=!1,Rf()}}return r}function Gf(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Wf(n,e){return!(n&j.Self||n&j.Host&&e)}class er{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Uf(this._tNode,this._lView,e,i,t)}}function He(n){return qn(()=>{const e=n.prototype.constructor,t=e[On]||rc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[On]||rc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function rc(n){return sf(n)?()=>{const e=rc($(n));return e&&e()}:vi(n)}const nr="__parameters__";function rr(n,e,t){return qn(()=>{const i=function sc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);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(nr)?l[nr]:Object.defineProperty(l,nr,{value:[]})[nr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class I{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function zt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),zt(i,e)):e!==n&&e.push(i)}return e}function bn(n,e){n.forEach(t=>Array.isArray(t)?bn(t,e):e(t))}function Kf(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function To(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function ns(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function Rt(n,e,t){let i=sr(n,e);return i>=0?n[1|i]=t:(i=~i,function rw(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function ac(n,e){const t=sr(n,e);if(t>=0)return n[1|t]}function sr(n,e){return function Qf(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const is={},cc="__NG_DI_FLAG__",xo="ngTempTokenPath",dw=/\n/gm,Jf="__source",fw=he({provide:String,useValue:he});let rs;function ep(n){const e=rs;return rs=n,e}function pw(n,e=j.Default){if(void 0===rs)throw new A(203,"");return null===rs?uf(n,void 0,e):rs.get(n,e&j.Optional?null:void 0,e)}function C(n,e=j.Default){return(function eE(){return Ol}()||pw)($(n),e)}const uc=C;function dc(n){const e=[];for(let t=0;t<n.length;t++){const i=$(n[t]);if(Array.isArray(i)){if(0===i.length)throw new A(900,"");let r,s=j.Default;for(let o=0;o<i.length;o++){const a=i[o],l=mw(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(C(r,s))}else e.push(C(i))}return e}function ss(n,e){return n[cc]=e,n.prototype[cc]=e,n}function mw(n){return n[cc]}const ko=ss(rr("Optional"),8),Oo=ss(rr("SkipSelf"),4);var Nt=(()=>((Nt=Nt||{})[Nt.Important=1]="Important",Nt[Nt.DashCase=2]="DashCase",Nt))();const lp="__ngContext__";function ut(n,e){n[lp]=e}function mc(n){const e=function as(n){return n[lp]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function _c(n,e){return undefined(n,e)}function ls(n){const e=n[3];return rn(e)?e[3]:e}function yc(n){return mp(n[13])}function vc(n){return mp(n[4])}function mp(n){for(;null!==n&&!rn(n);)n=n[4];return n}function ar(n,e,t,i,r){if(null!=i){let s,o=!1;rn(i)?s=i:yn(i)&&(o=!0,i=i[0]);const a=je(i);0===n&&null!==t?null==r?Cp(e,t,a):bi(e,t,a,r||null,!0):1===n&&null!==t?bi(e,t,a,r||null,!0):2===n?function Mc(n,e,t){const i=Ro(n,e);i&&function Ww(n,e,t,i){Fe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function Yw(n,e,t,i,r){const s=t[7];s!==je(t)&&ar(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];cs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Cc(n,e,t){if(Fe(n))return n.createElement(e,t);{const i=null!==t?function vE(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function _p(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Wl(r,-1)),t.splice(i,1)}function Dc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&_p(r,i),e>0&&(n[t-1][4]=i[4]);const s=To(n,10+e);!function Vw(n,e){cs(n,e,e[H],2,null,null),e[0]=null,e[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 yp(n,e){if(!(256&e[2])){const t=e[H];Fe(t)&&t.destroyNode&&cs(n,e,t,3,null,null),function Hw(n){let e=n[13];if(!e)return Ec(n[1],n);for(;e;){let t=null;if(yn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)yn(e)&&Ec(e[1],e),e=e[3];null===e&&(e=n),yn(e)&&Ec(e[1],e),t=e&&e[4]}e=t}}(e)}}function Ec(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function Gw(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Zr)){const s=t[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,e),function zw(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):je(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Fe(e[H])&&e[H].destroy();const t=e[17];if(null!==t&&rn(e[3])){t!==e[3]&&_p(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function vp(n,e,t){return function bp(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===tn.None||r===tn.Emulated)return null}return Ot(i,t)}(n,e.parent,t)}function bi(n,e,t,i,r){Fe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function Cp(n,e,t){Fe(n)?n.appendChild(e,t):e.appendChild(t)}function Dp(n,e,t,i,r){null!==i?bi(n,e,t,i,r):Cp(n,e,t)}function Ro(n,e){return Fe(n)?n.parentNode(e):e.parentNode}function Ep(n,e,t){return Sp(n,e,t)}let Sp=function wp(n,e,t){return 40&n.type?Ot(n,t):null};function No(n,e,t,i){const r=vp(n,i,e),s=e[H],a=Ep(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)Dp(s,r,t[l],a,!1);else Dp(s,r,t,a,!1)}function Po(n,e){if(null!==e){const t=e.type;if(3&t)return Ot(e,n);if(4&t)return Sc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Po(n,i);{const r=n[e.index];return rn(r)?Sc(-1,r):je(r)}}if(32&t)return _c(e,n)()||je(n[e.index]);{const i=Ap(n,e);return null!==i?Array.isArray(i)?i[0]:Po(ls(n[16]),i):Po(n,e.next)}}return null}function Ap(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Sc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Po(i,r)}return e[7]}function Ac(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&ut(je(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Ac(n,e,t.child,i,r,s,!1),ar(e,n,r,a,s);else if(32&l){const c=_c(t,i);let u;for(;u=c();)ar(e,n,r,u,s);ar(e,n,r,a,s)}else 16&l?Tp(n,e,i,t,r,s):ar(e,n,r,a,s);t=o?t.projectionNext:t.next}}function cs(n,e,t,i,r,s){Ac(t,i,n.firstChild,e,r,s,!1)}function Tp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)ar(e,n,r,l[c],s);else Ac(n,e,l,o[3],r,s,!0)}function Ip(n,e,t){Fe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Tc(n,e,t){Fe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Pc(n){return n.ngOriginalError}function AS(n,...e){n.error(...e)}class fs{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function MS(n){return n&&n.ngErrorLogger||AS}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Pc(e);for(;t&&Pc(t);)t=Pc(t);return t||null}}const RS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ue))();function Dn(n){return n instanceof Function?n():n}function zp(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const Gp="ng-template";function VS(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==zp(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Wp(n){return 4===n.type&&n.value!==Gp}function BS(n,e,t){return e===(4!==n.type||t?n.value:Gp)}function jS(n,e,t){let i=4;const r=n.attrs||[],s=function US(n){for(let e=0;e<n.length;e++)if(Pf(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!BS(n,l,t)||""===l&&1===e.length){if(on(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!VS(n.attrs,c,t)){if(on(i))return!1;o=!0}continue}const d=HS(8&i?"class":l,r,Wp(n),t);if(-1===d){if(on(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!==zp(f,c,0)||2&i&&c!==h){if(on(i))return!1;o=!0}}}}else{if(!o&&!on(i)&&!on(l))return!1;if(o&&on(l))continue;o=!1,i=l|1&i}}return on(i)||o}function on(n){return 0==(1&n)}function HS(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function zS(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function qp(n,e,t=!1){for(let i=0;i<e.length;i++)if(jS(n,e[i],t))return!0;return!1}function GS(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];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 Kp(n,e){return n?":not("+e.trim()+")":e}function WS(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!on(o)&&(e+=Kp(s,r),r=""),i=o,s=s||!on(i);t++}return""!==r&&(e+=Kp(s,r)),e}const V={};function W(n){Yp(X(),b(),gt()+n,!1)}function Yp(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&vo(e,s,t)}else{const s=n.preOrderHooks;null!==s&&bo(e,s,0,t)}Zn(t)}function Ho(n,e){return n<<17|e<<2}function an(n){return n>>17&32767}function Lc(n){return 2|n}function Pn(n){return(131068&n)>>2}function Vc(n,e){return-131069&n|e<<2}function Bc(n){return 1|n}function om(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Ql(r),o.contentQueries(2,e[s],s)}}}function ps(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Ef(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[H]=a||n&&n[H],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function cr(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Kc(n,e,t,i,r){const s=Mf(),o=ql(),l=n.data[e]=function uM(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.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:e,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,t,e,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,e,t,i,r),function kE(){return L.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Yr(){const n=L.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return vn(s,!0),s}function ur(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function ms(n,e,t){go(e);try{const i=n.viewQuery;null!==i&&iu(1,i,t);const r=n.template;null!==r&&am(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&om(n,e),n.staticViewQueries&&iu(2,n.viewQuery,t);const s=n.components;null!==s&&function aM(n,e){for(let t=0;t<e.length;t++)TM(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,_o()}}function dr(n,e,t,i){const r=e[2];if(256!=(256&r)){go(e);try{Ef(e),function Af(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&am(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&vo(e,c,null)}else{const c=n.preOrderHooks;null!==c&&bo(e,c,0,null),Xl(e,0)}if(function MM(n){for(let e=yc(n);null!==e;e=vc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Wl(s,1),r[2]|=1024}}}(e),function SM(n){for(let e=yc(n);null!==e;e=vc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Gl(i)&&dr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&om(n,e),o){const c=n.contentCheckHooks;null!==c&&vo(e,c)}else{const c=n.contentHooks;null!==c&&bo(e,c,1),Xl(e,1)}!function sM(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Zn(~r);else{const s=r,o=t[++i],a=t[++i];OE(o,s),a(2,e[s])}}}finally{Zn(-1)}}(n,e);const a=n.components;null!==a&&function oM(n,e){for(let t=0;t<e.length;t++)AM(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&iu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&vo(e,c)}else{const c=n.viewHooks;null!==c&&bo(e,c,2),Xl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Wl(e[3],-1))}finally{_o()}}}function lM(n,e,t,i){const r=e[10],o=Df(e);try{!o&&r.begin&&r.begin(),o&&ms(n,e,i),dr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function am(n,e,t,i,r){const s=gt(),o=2&i;try{Zn(-1),o&&e.length>20&&Yp(n,e,20,!1),t(i,r)}finally{Zn(s)}}function lm(n,e,t){if(Ll(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function Yc(n,e,t){!Sf()||(function _M(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Xr(t,e),ut(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=sn(l);c&&DM(e,t,l);const u=Jr(e,n,a,t);ut(u,e),null!==o&&EM(0,a-r,u,l,0,o),c&&(Ft(t.index,e)[8]=u)}}(n,e,t,Ot(t,e)),128==(128&t.flags)&&function yM(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function FE(){return L.lFrame.currentDirectiveIndex}();try{Zn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Yl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&gm(c,u)}}finally{Zn(-1),Yl(a)}}(n,e,t))}function Zc(n,e,t=Ot){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function cm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=zo(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function zo(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function cM(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:V);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,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,e,t,i){const r=Dm(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&Em(n).push(i,r.length-1))}function fm(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Pt(n,e,t,i,r,s,o,a){const l=Ot(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Mm(n,t,u,i,r),ho(e)&&function fM(n,e){const t=Ft(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function hM(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,e.value||"",i):r,Fe(s)?s.setProperty(l,i,r):ec(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Qc(n,e,t,i){let r=!1;if(Sf()){const s=function vM(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];qp(t,o.selectors,!1)&&(r||(r=[]),So(Xr(t,e),n,o.type),sn(o)?(_m(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,ym(t,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=ur(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Do(t.mergedAttrs,d.hostAttrs),vm(n,t,e,c,d),CM(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function dM(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Wp(e)?null:wM(d,s);o.push(h),a=fm(d,c,a),l=fm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function bM(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new A(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Do(t.mergedAttrs,t.attrs),r}function mm(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function gM(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function gm(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function _m(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function CM(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;sn(e)&&(t[""]=n)}}function ym(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function vm(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=vi(r.type)),o=new Zr(s,sn(r),null);n.blueprint[i]=o,t[i]=o,mm(n,e,0,i,ur(n,t,r.hostVars,V),r)}function DM(n,e,t){const i=Ot(e,n),r=cm(t),s=n[10],o=Go(n,ps(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function En(n,e,t,i,r,s){const o=Ot(n,e);!function Xc(n,e,t,i,r,s,o){if(null==s)Fe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?P(s):o(s,i||"",r);Fe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[H],o,s,n.value,t,i,r)}function EM(n,e,t,i,r,s){const o=s[e];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(t,d,c,u):t[u]=d}}}function wM(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function bm(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function AM(n,e){const t=Ft(e,n);if(Gl(t)){const i=t[1];80&t[2]?dr(i,t,i.template,t[8]):t[5]>0&&Jc(t)}}function Jc(n){for(let i=yc(n);null!==i;i=vc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];dr(o,s,o.template,s[8])}else s[5]>0&&Jc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Ft(t[i],n);Gl(r)&&r[5]>0&&Jc(r)}}function TM(n,e){const t=Ft(e,n),i=t[1];(function IM(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),ms(i,t,t[8])}function Go(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function eu(n){for(;n;){n[2]|=64;const e=ls(n);if(uE(n)&&!e)return n;n=e}return null}function Cm(n){!function tu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=mc(t),r=i[1];lM(r,i,r.template,t)}}(n[8])}function iu(n,e,t){Ql(0),e(n,t)}const kM=(()=>Promise.resolve(null))();function Dm(n){return n[7]||(n[7]=[])}function Em(n){return n.cleanup||(n.cleanup=[])}function Sm(n,e){const t=n[9],i=t?t.get(fs,null):null;i&&i.handleError(e)}function Mm(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Ln(n,e,t){const i=po(e,n);!function gp(n,e,t){Fe(n)?n.setValue(e,t):e.textContent=t}(n[H],i,t)}function Wo(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Tl(r,a):2==s&&(i=Tl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const ru=new I("INJECTOR",-1);class Am{get(e,t=is){if(t===is){const i=new Error(`NullInjectorError: No provider for ${oe(e)}!`);throw i.name="NullInjectorError",i}return t}}const su=new I("Set Injector scope."),gs={},RM={};let ou;function Tm(){return void 0===ou&&(ou=new Am),ou}function Im(n,e=null,t=null,i){const r=xm(n,e,t,i);return r._resolveInjectorDefTypes(),r}function xm(n,e=null,t=null,i){return new NM(n,t,e||Tm(),i)}class NM{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&bn(t,a=>this.processProvider(a,e,t)),bn([e],a=>this.processInjectorType(a,[],s)),this.records.set(ru,hr(void 0,this));const o=this.records.get(su);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:oe(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=is,i=j.Default){this.assertNotDestroyed();const r=ep(this),s=Wn(void 0);try{if(!(i&j.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function UM(n){return"function"==typeof n||"object"==typeof n&&n instanceof I}(e)&&xl(e);a=l&&this.injectableDefInScope(l)?hr(au(e),gs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&j.Self?Tm():this.parent).get(e,t=i&j.Optional&&t===is?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[xo]=o[xo]||[]).unshift(oe(e)),r)throw o;return function gw(n,e,t,i){const r=n[xo];throw e[Jf]&&r.unshift(e[Jf]),n.message=function _w(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=oe(e);if(Array.isArray(e))r=e.map(oe).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):oe(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(dw,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[xo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Wn(s),ep(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(oe(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processInjectorType(e,t,i){if(!(e=$(e)))return!1;let r=lf(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=lf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{bn(r.imports,d=>{this.processInjectorType(d,t,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];bn(f,p=>this.processProvider(p,h,f||fe))}}this.injectorDefTypes.add(o);const l=vi(o)||(()=>new o);this.records.set(o,hr(l,gs));const c=r.providers;if(null!=c&&!a){const u=e;bn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=fr(e=$(e))?e:$(e&&e.provide);const s=function LM(n,e,t){return Om(n)?hr(void 0,n.useValue):hr(km(n),gs)}(e);if(fr(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=hr(void 0,gs,!0),o.factory=()=>dc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===gs&&(t.value=RM,t.value=t.factory()),"object"==typeof t.value&&t.value&&function $M(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=$(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function au(n){const e=xl(n),t=null!==e?e.factory:vi(n);if(null!==t)return t;if(n instanceof I)throw new A(204,!1);if(n instanceof Function)return function PM(n){const e=n.length;if(e>0)throw ns(e,"?"),new A(204,!1);const t=function QD(n){const e=n&&(n[oo]||n[cf]);if(e){const t=function XD(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new A(204,!1)}function km(n,e,t){let i;if(fr(n)){const r=$(n);return vi(r)||au(r)}if(Om(n))i=()=>$(n.useValue);else if(function BM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...dc(n.deps||[]));else if(function VM(n){return!(!n||!n.useExisting)}(n))i=()=>C($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function HM(n){return!!n.deps}(n))return vi(r)||au(r);i=()=>new r(...dc(n.deps))}return i}function hr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Om(n){return null!==n&&"object"==typeof n&&fw in n}function fr(n){return"function"==typeof n}let Et=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Im({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Im({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=is,n.NULL=new Am,n.\u0275prov=k({token:n,providedIn:"any",factory:()=>C(ru)}),n.__NG_ELEMENT_ID__=-1,n})();function QM(n,e){yo(mc(n)[1],Ke())}function Z(n){let e=function zm(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(sn(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new A(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=uu(n.inputs),o.declaredInputs=uu(n.declaredInputs),o.outputs=uu(n.outputs);const a=r.hostBindings;a&&t0(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&JM(n,l),c&&e0(n,c),Al(n.inputs,r.inputs),Al(n.declaredInputs,r.declaredInputs),Al(n.outputs,r.outputs),sn(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===Z&&(t=!1)}}e=Object.getPrototypeOf(e)}!function XM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Do(r.hostAttrs,t=Do(t,r.hostAttrs))}}(i)}function uu(n){return n===Gi?{}:n===fe?[]:n}function JM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function e0(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function t0(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let qo=null;function pr(){if(!qo){const n=ue.Symbol;if(n&&n.iterator)qo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(qo=i)}}}return qo}function _s(n){return!!du(n)&&(Array.isArray(n)||!(n instanceof Map)&&pr()in n)}function du(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function dt(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function ht(n,e,t,i){const r=b();return dt(r,Qi(),e)&&(X(),En(Ae(),r,n,e,t,i)),ht}function Re(n,e,t,i,r,s,o,a){const l=b(),c=X(),u=n+20,d=c.firstCreatePass?function c0(n,e,t,i,r,s,o,a,l){const c=e.consts,u=cr(e,n,4,o||null,Yn(c,a));Qc(e,t,u,Yn(c,l)),yo(e,u);const d=u.tViews=zo(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];vn(d,!1);const h=l[H].createComment("");No(c,l,h,d),ut(h,l),Go(l,l[u]=bm(h,l,h,d)),fo(d)&&Yc(c,l,d),null!=o&&Zc(l,d,a)}function y(n,e=j.Default){const t=b();return null===t?C(n,e):Uf(Ke(),t,$(n),e)}function q(n,e,t){const i=b();return dt(i,Qi(),e)&&Pt(X(),Ae(),i,n,e,i[H],t,!1),q}function gu(n,e,t,i,r){const o=r?"class":"style";Mm(n,t,e.inputs[o],o,i)}function J(n,e,t,i){const r=b(),s=X(),o=20+n,a=r[H],l=r[o]=Cc(a,e,function HE(){return L.lFrame.currentNamespace}()),c=s.firstCreatePass?function x0(n,e,t,i,r,s,o){const a=e.consts,c=cr(e,n,2,r,Yn(a,s));return Qc(e,t,c,Yn(a,o)),null!==c.attrs&&Wo(c,c.attrs,!1),null!==c.mergedAttrs&&Wo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];vn(c,!0);const u=c.mergedAttrs;null!==u&&Co(a,l,u);const d=c.classes;null!==d&&Tc(a,l,d);const h=c.styles;return null!==h&&Ip(a,l,h),64!=(64&c.flags)&&No(s,r,l,c),0===function SE(){return L.lFrame.elementDepthCount}()&&ut(l,r),function ME(){L.lFrame.elementDepthCount++}(),fo(c)&&(Yc(s,r,c),lm(s,c,r)),null!==i&&Zc(r,c),J}function ie(){let n=Ke();ql()?Kl():(n=n.parent,vn(n,!1));const e=n;!function AE(){L.lFrame.elementDepthCount--}();const t=X();return t.firstCreatePass&&(yo(t,n),Ll(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function WE(n){return 0!=(16&n.flags)}(e)&&gu(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function qE(n){return 0!=(32&n.flags)}(e)&&gu(t,e,b(),e.stylesWithoutHost,!1),ie}function ti(n,e,t,i){return J(n,e,t,i),ie(),ti}function Ei(n,e,t){const i=b(),r=X(),s=n+20,o=r.firstCreatePass?function k0(n,e,t,i,r){const s=e.consts,o=Yn(s,i),a=cr(e,n,8,"ng-container",o);return null!==o&&Wo(a,o,!0),Qc(e,t,a,Yn(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];vn(o,!0);const a=i[s]=i[H].createComment("");return No(r,i,a,o),ut(a,i),fo(o)&&(Yc(r,i,o),lm(r,o,i)),null!=t&&Zc(i,o),Ei}function wi(){let n=Ke();const e=X();return ql()?Kl():(n=n.parent,vn(n,!1)),e.firstCreatePass&&(yo(e,n),Ll(n)&&e.queries.elementEnd(n)),wi}function vs(){return b()}function Zo(n){return!!n&&"function"==typeof n.then}const pg=function fg(n){return!!n&&"function"==typeof n.subscribe};function Le(n,e,t,i){const r=b(),s=X(),o=Ke();return function gg(n,e,t,i,r,s,o,a){const l=fo(i),u=n.firstCreatePass&&Em(n),d=e[8],h=Dm(e);let f=!0;if(3&i.type||a){const _=Ot(i,e),v=a?a(_):_,g=h.length,E=a?D=>a(je(D[i.index])):i.index;if(Fe(t)){let D=null;if(!a&&l&&(D=function O0(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==D)(D.__ngLastListenerFn__||D).__ngNextListenerFn__=s,D.__ngLastListenerFn__=s,f=!1;else{s=_u(i,e,d,s,!1);const M=t.listen(v,r,s);h.push(s,M),u&&u.push(r,E,g,g+1)}}else s=_u(i,e,d,s,!0),v.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,g,o)}else s=_u(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let v=0;v<_;v+=2){const ee=e[m[v]][m[v+1]].subscribe(s),ve=h.length;h.push(s,ee),u&&u.push(r,i.index,ve,-(ve+1))}}}(s,r,r[H],o,n,e,!!t,i),Le}function _g(n,e,t,i){try{return!1!==t(i)}catch(r){return Sm(n,r),!1}}function _u(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Ft(n.index,e):e;0==(32&e[2])&&eu(a);let l=_g(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=_g(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function _e(n=1){return function NE(n){return(L.lFrame.contextLView=function PE(n,e){for(;n>0;)e=e[15],n--;return e}(n,L.lFrame.contextLView))[8]}(n)}function F0(n,e){let t=null;const i=function $S(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?qp(n,s,!0):GS(i,s))return r}else t=r}return t}function Qo(n){const e=b()[16][6];if(!e.projection){const i=e.projection=ns(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?F0(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function cn(n,e=0,t){const i=b(),r=X(),s=cr(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Kl(),64!=(64&s.flags)&&function Kw(n,e,t){Tp(e[H],0,e,t,vp(n,t,e),Ep(t.parent||e[6],t,e))}(r,i,s)}function Ag(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?an(s):Pn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];P0(n[a],e)&&(l=!0,n[a+1]=i?Bc(u):Lc(u)),a=i?an(u):Pn(u)}l&&(n[t+1]=i?Lc(s):Bc(s))}function P0(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&sr(n,e)>=0}function Wt(n,e){return function un(n,e,t,i){const r=b(),s=X(),o=function Nn(n){const e=L.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);s.firstUpdatePass&&function Pg(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[gt()],o=function Ng(n,e){return e>=n.expandoStartIndex}(n,t);(function jg(n,e){return 0!=(n.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function G0(n,e,t,i){const r=function Zl(n){const e=L.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=bs(t=vu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=vu(r,n,e,t,i),null===s){let l=function W0(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Pn(i))return n[an(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=vu(null,n,e,l[1],i),l=bs(l,e.attrs,i),function q0(n,e,t,i){n[an(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function K0(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=bs(i,n[s].hostAttrs,t);return bs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function R0(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=an(o),l=Pn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||sr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=an(n[a+1]);n[i+1]=Ho(h,a),0!==h&&(n[h+1]=Vc(n[h+1],i)),n[a+1]=function YS(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Ho(a,0),0!==a&&(n[a+1]=Vc(n[a+1],i)),a=i;else n[i+1]=Ho(l,0),0===a?a=i:n[l+1]=Vc(n[l+1],i),l=i;c&&(n[i+1]=Lc(n[i+1])),Ag(n,u,i,!0),Ag(n,u,i,!1),function N0(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&sr(s,e)>=0&&(t[i+1]=Bc(t[i+1]))}(e,u,n,i,s),o=Ho(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}(s,n,o,i),e!==V&&dt(r,o,e)&&function Vg(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Xo(function Xp(n){return 1==(1&n)}(c)?Bg(l,e,t,r,Pn(c),o):void 0)||(Xo(s)||function Qp(n){return 2==(2&n)}(c)&&(s=Bg(l,null,t,r,a,o)),function Zw(n,e,t,i,r){const s=Fe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Nt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Nt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,po(gt(),t),r,s))}(s,s.data[gt()],r,r[H],n,r[o+1]=function Q0(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=oe(function Xn(n){return n instanceof class Fp{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?n.changingThisBreaksApplicationSecurity:n}(n)))),n}(e,t),i,o)}(n,e,null,!0),Wt}function vu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=bs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function bs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Rt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Bg(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===V&&(h=d?fe:void 0);let f=d?ac(h,i):u===i?h:void 0;if(c&&!Xo(f)&&(f=ac(l,i)),Xo(f)&&(a=f,o))return a;const p=n[r+1];r=o?an(p):Pn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ac(l,i))}return a}function Xo(n){return void 0!==n}function qt(n,e=""){const t=b(),i=X(),r=n+20,s=i.firstCreatePass?cr(i,r,1,e,null):i.data[r],o=t[r]=function bc(n,e){return Fe(n)?n.createText(e):n.createTextNode(e)}(t[H],e);No(i,t,o,s),vn(s,!1)}function ni(n){return Si("",n,""),ni}function Si(n,e,t){const i=b(),r=function gr(n,e,t,i){return dt(n,Qi(),t)?e+P(t)+i:V}(i,n,e,t);return r!==V&&Ln(i,gt(),r),Si}function Jo(n,e,t){const i=b();return dt(i,Qi(),e)&&Pt(X(),Ae(),i,n,e,i[H],t,!0),Jo}const ea="en-US";let a_=ea;function Du(n,e,t,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)Du(n[s],e,t,i,r);else{const s=X(),o=b();let a=fr(n)?n:$(n.provide),l=km(n);const c=Ke(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(fr(n)||!n.multi){const f=new Zr(l,r,y),p=wu(a,e,r?u:u+h,d);-1===p?(So(Xr(c,o),s,a),Eu(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=wu(a,e,u+h,d),p=wu(a,e,u,u+h),m=f>=0&&t[f],_=p>=0&&t[p];if(r&&!_||!r&&!m){So(Xr(c,o),s,a);const v=function gT(n,e,t,i,r){const s=new Zr(n,t,y);return s.multi=[],s.index=e,s.componentProviders=0,k_(s,r,i&&!t),s}(r?mT:pT,t.length,r,i,l);!r&&_&&(t[p].providerFactory=v),Eu(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(v),o.push(v)}else Eu(s,n,f>-1?f:p,k_(t[r?p:f],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function Eu(n,e,t,i){const r=fr(e),s=function jM(n){return!!n.useClass}(e);if(r||s){const l=(s?$(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function k_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function wu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function pT(n,e,t,i){return Su(this.multi,[])}function mT(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Jr(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),Su(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Su(r,s);return s}function Su(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function se(n,e=[]){return t=>{t.providersResolver=(i,r)=>function fT(n,e,t){const i=X();if(i.firstCreatePass){const r=sn(n);Du(t,i.data,i.blueprint,r,!0),Du(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class O_{}class vT{resolveComponentFactory(e){throw function yT(n){const e=Error(`No component factory found for ${oe(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Ai=(()=>{class n{}return n.NULL=new vT,n})();function bT(){return Tr(Ke(),b())}function Tr(n,e){return new Te(Ot(n,e))}let Te=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=bT,n})();function CT(n){return n instanceof Te?n.nativeElement:n}class Ss{}let ii=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function ET(){const n=b(),t=Ft(Ke().index,n);return function DT(n){return n[H]}(yn(t)?t:n)}(),n})(),wT=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>null}),n})();class Ti{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const ST=new Ti("13.4.0"),Mu={};function sa(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(je(s)),rn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&sa(l[1],l,c,i)}const o=t.type;if(8&o)sa(n,e,t.child,i);else if(32&o){const a=_c(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Ap(e,t);if(Array.isArray(a))i.push(...a);else{const l=ls(e[16]);sa(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Ms{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return sa(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(rn(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(Dc(e,i),To(t,i))}this._attachedToViewContainer=!1}yp(this._lView[1],this._lView)}onDestroy(e){hm(this._lView[1],this._lView,null,e)}markForCheck(){eu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function nu(n,e,t){const i=e[10];i.begin&&i.begin();try{dr(n,e,n.template,t)}catch(r){throw Sm(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function jw(n,e){cs(n,e,e[H],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new A(902,"");this._appRef=e}}class MT extends Ms{constructor(e){super(e),this._view=e}detectChanges(){Cm(this._view)}checkNoChanges(){}get context(){return null}}class R_ extends Ai{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=st(e);return new Au(t,this.ngModule)}}function N_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Au extends O_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function qS(n){return n.map(WS).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return N_(this.componentDef.inputs)}get outputs(){return N_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function TT(n,e){return{get:(t,i,r)=>{const s=n.get(t,Mu,r);return s!==Mu||i===Mu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Ss,Cf),a=s.get(wT,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function dm(n,e,t){if(Fe(n))return n.selectRootElement(e,t===tn.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Cc(o.createRenderer(null,this.componentDef),c,function AT(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Um(n,e){return{components:[],scheduler:n||RS,clean:kM,playerHandler:e||null,flags:0}}(),f=zo(0,null,null,1,0,null,null,null,null,null),p=ps(null,f,h,d,null,null,o,l,a,s);let m,_;go(p);try{const v=function Hm(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=cr(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Wo(l,c,!0),null!==n&&(Co(r,n,c),null!==l.classes&&Tc(r,n,l.classes),null!==l.styles&&Ip(r,n,l.styles)));const u=i.createRenderer(n,e),d=ps(t,cm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(So(Xr(l,t),o,e.type),_m(o,l),ym(l,t.length,1)),Go(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Co(l,u,["ng-version",ST.full]);else{const{attrs:g,classes:E}=function KS(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!on(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&Co(l,u,g),E&&E.length>0&&Tc(l,u,E.join(" "))}if(_=zl(f,20),void 0!==t){const g=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const D=t[E];g.push(null!=D?Array.from(D):null)}}m=function $m(n,e,t,i,r){const s=t[1],o=function mM(n,e,t){const i=Ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),vm(n,i,e,ur(n,e,1,null),t));const r=Jr(e,n,i.directiveStart,i);ut(r,e);const s=Ot(i,e);return s&&ut(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Ke();e.contentQueries(1,o,l.directiveStart)}const a=Ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Zn(a.index),mm(t[1],a,0,a.directiveStart,a.directiveEnd,e),gm(e,o)),o}(v,this.componentDef,p,h,[QM]),ms(f,p,null)}finally{_o()}return new xT(this.componentType,m,Tr(_,p),p,_)}}class xT extends class _T{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new MT(r),this.componentType=e}get injector(){return new er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Ir{}const xr=new Map;class V_ extends Ir{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new R_(this);const i=jt(e);this._bootstrapComponents=Dn(i.bootstrap),this._r3Injector=xm(e,t,[{provide:Ir,useValue:this},{provide:Ai,useValue:this.componentFactoryResolver}],oe(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Et.THROW_IF_NOT_FOUND,i=j.Default){return e===Et||e===Ir||e===ru?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Tu extends class OT{}{constructor(e){super(),this.moduleType=e,null!==jt(e)&&function FT(n){const e=new Set;!function t(i){const r=jt(i,!0),s=r.id;null!==s&&(function P_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${oe(e)} vs ${oe(e.name)}`)}(s,xr.get(s),i),xr.set(s,i));const o=Dn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new V_(this.moduleType,e)}}function Iu(n){return e=>{setTimeout(n,void 0,e)}}const Ee=class QT extends Me{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;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=Iu(l),a&&(a=Iu(a)),c&&(c=Iu(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof z&&e.add(u),u}};function XT(){return this._results[pr()]()}class Is{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=pr(),i=Is.prototype;i[t]||(i[t]=XT)}get changes(){return this._changes||(this._changes=new Ee)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=zt(e);(this._changesDetected=!function nw(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(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 An=(()=>{class n{}return n.__NG_ELEMENT_ID__=tI,n})();const JT=An,eI=class extends JT{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=ps(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),ms(t,i,e),new Ms(i)}};function tI(){return oa(Ke(),b())}function oa(n,e){return 4&n.type?new eI(e,n,Tr(n,e)):null}let hn=(()=>{class n{}return n.__NG_ELEMENT_ID__=nI,n})();function nI(){return W_(Ke(),b())}const iI=hn,z_=class extends iI{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Tr(this._hostTNode,this._hostLView)}get injector(){return new er(this._hostTNode,this._hostLView)}get parentInjector(){const e=wo(this._hostTNode,this._hostLView);if(Vf(e)){const t=Ji(e,this._hostLView),i=Xi(e);return new er(t[1].data[i+8],t)}return new er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=G_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function ts(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Au(st(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Ir,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function wE(n){return rn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new z_(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function $w(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],Kf(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function Uw(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Sc(s,o),l=i[H],c=Ro(l,o[7]);return null!==c&&function Bw(n,e,t,i,r,s){i[0]=r,i[6]=e,cs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Kf(xu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=G_(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=Dc(this._lContainer,t);i&&(To(xu(this._lContainer),t),yp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=Dc(this._lContainer,t);return i&&null!=To(xu(this._lContainer),t)?new Ms(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function G_(n){return n[8]}function xu(n){return n[8]||(n[8]=[])}function W_(n,e){let t;const i=e[n.index];if(rn(i))t=i;else{let r;if(8&n.type)r=je(i);else{const s=e[H];r=s.createComment("");const o=Ot(n,e);bi(s,Ro(s,o),r,function qw(n,e){return Fe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=bm(i,e,r,n),Go(e,t)}return new z_(t,n,e)}class ku{constructor(e){this.queryList=e,this.matches=null}clone(){return new ku(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ou{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Ou(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Q_(e,t).matches&&this.queries[t].setDirty()}}class q_{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Fu{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Fu(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ru{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Ru(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,oI(t,s)),this.matchTNodeWithReadOption(e,t,Mo(t,e,s,!1,!1))}else i===An?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Mo(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Te||r===hn||r===An&&4&t.type)this.addMatch(t.index,-2);else{const s=Mo(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function oI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function lI(n,e,t,i){return-1===t?function aI(n,e){return 11&n.type?Tr(n,e):4&n.type?oa(n,e):null}(e,n):-2===t?function cI(n,e,t){return t===Te?Tr(e,n):t===An?oa(e,n):t===hn?W_(e,n):void 0}(n,e,i):Jr(n,n[1],t,e)}function K_(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:lI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Nu(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=K_(n,e,r,t);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=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Nu(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];Nu(f[1],f,c,i)}}}}}return i}function Qe(n){const e=b(),t=X(),i=If();Ql(i+1);const r=Q_(t,i);if(n.dirty&&Df(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Nu(t,e,i,[]):K_(t,e,r,i);n.reset(s,CT),n.notifyOnChanges()}return!0}return!1}function ri(n,e,t){const i=X();i.firstCreatePass&&(Z_(i,new q_(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),Y_(i,b(),e)}function Kt(n,e,t,i){const r=X();if(r.firstCreatePass){const s=Ke();Z_(r,new q_(e,t,i),s.index),function dI(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}Y_(r,b(),t)}function Xe(){return function uI(n,e){return n[19].queries[e].queryList}(b(),If())}function Y_(n,e,t){const i=new Is(4==(4&t));hm(n,e,i,i.destroy),null===e[19]&&(e[19]=new Ou),e[19].queries.push(new ku(i))}function Z_(n,e,t){null===n.queries&&(n.queries=new Fu),n.queries.track(new Ru(e,t))}function Q_(n,e){return n.queries.getByIndex(e)}function ca(...n){}const py=new I("Application Initializer");let Hu=(()=>{class n{constructor(t){this.appInits=t,this.resolve=ca,this.reject=ca,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Zo(s))t.push(s);else if(pg(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(C(py,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ks=new I("AppId",{providedIn:"root",factory:function my(){return`${$u()}${$u()}${$u()}`}});function $u(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gy=new I("Platform Initializer"),Uu=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),II=new I("appBootstrapListener"),Vn=new I("LocaleId",{providedIn:"root",factory:()=>uc(Vn,j.Optional|j.SkipSelf)||function xI(){return"undefined"!=typeof $localize&&$localize.locale||ea}()}),RI=(()=>Promise.resolve(0))();function zu(n){"undefined"==typeof Zone?RI.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class pe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function NI(){let n=ue.requestAnimationFrame,e=ue.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function VI(n){const e=()=>{!function LI(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ue,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Wu(n),n.isCheckStableRunning=!0,Gu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Wu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return _y(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),yy(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return _y(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),yy(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Wu(n),Gu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.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(!pe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,PI,ca,ca);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const PI={};function Gu(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 Wu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function _y(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function yy(n){n._nesting--,Gu(n)}class BI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ee,this.onMicrotaskEmpty=new Ee,this.onStable=new Ee,this.onError=new Ee}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let qu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pe.assertNotInAngularZone(),zu(()=>{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())zu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(C(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),jI=(()=>{class n{constructor(){this._applications=new Map,Ku.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Ku.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class HI{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Ku=new HI,Ii=null;const vy=new I("AllowMultipleToken"),by=new I("PlatformOnDestroy");function Cy(n,e,t=[]){const i=`Platform: ${e}`,r=new I(i);return(s=[])=>{let o=Yu();if(!o||o.injector.get(vy,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function GI(n){if(Ii&&!Ii.get(vy,!1))throw new A(400,"");Ii=n;const e=n.get(Dy),t=n.get(gy,null);t&&t.forEach(i=>i())}(function qI(n=[],e){return Et.create({name:e,providers:[{provide:su,useValue:"platform"},{provide:by,useValue:()=>Ii=null},...n]})}(a,i))}return function WI(n){const e=Yu();if(!e)throw new A(401,"");return e}()}}function Yu(){var n;return null!==(n=null==Ii?void 0:Ii.get(Dy))&&void 0!==n?n:null}let Dy=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function KI(n,e){let t;return t="noop"===n?new BI:("zone.js"===n?void 0:n)||new pe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:pe,useValue:a}];return a.run(()=>{const c=Et.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(fs,null);if(!d)throw new A(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Zu(this._modules,u),h.unsubscribe()})}),function YI(n,e,t){try{const i=t();return Zo(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Hu);return h.runInitializers(),h.donePromise.then(()=>(function DA(n){xt(n,"Expected localeId to be defined"),"string"==typeof n&&(a_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Vn,ea)||ea),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Ey({},i);return function UI(n,e,t){const i=new Tu(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(ua);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new A(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new A(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(by,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(C(Et))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Ey(n,e){return Array.isArray(e)?e.reduce(Ey,n):Object.assign(Object.assign({},n),e)}let ua=(()=>{class n{constructor(t,i,r,s){this._zone=t,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(()=>{pe.assertNotInAngularZone(),zu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Gn(o,a.pipe(function GD(){return n=>rf()(function $D(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new UD(r,e));const s=Object.create(i,BD);return s.source=i,s.subjectFactory=r,s}}(zD)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new A(405,"");let r;r=t instanceof O_?t:this._injector.get(Ai).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function zI(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ir),a=r.create(Et.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(qu,null),u=c&&a.injector.get(jI);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Zu(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new A(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Zu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(II,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(C(pe),C(Et),C(fs),C(Hu))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Zu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Sy=!0,xi=(()=>{class n{}return n.__NG_ELEMENT_ID__=XI,n})();function XI(n){return function JI(n,e,t){if(ho(n)&&!t){const i=Ft(n.index,e);return new Ms(i,i)}return 47&n.type?new Ms(e[16],e):null}(Ke(),b(),16==(16&n))}class xy{constructor(){}supports(e){return _s(e)}create(e){return new sx(e)}}const rx=(n,e)=>e;class sx{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||rx}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Oy(i,r,s)?t:i,a=Oy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._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&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!_s(e))throw new A(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function l0(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[pr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new ox(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ky),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ky),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class ox{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ax{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class ky{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new ax,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Oy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Fy{constructor(){}supports(e){return e instanceof Map||du(e)}create(){return new lx}}class lx{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||du(e)))throw new A(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;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(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);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 cx(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class cx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ry(){return new fa([new xy])}let fa=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ry()),deps:[[n,new Oo,new ko]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new A(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Ry}),n})();function Ny(){return new Os([new Fy])}let Os=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ny()),deps:[[n,new Oo,new ko]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new A(901,"")}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Ny}),n})();const hx=Cy(null,"core",[]);let fx=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(C(ua))},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})(),pa=null;function Tn(){return pa}const ce=new I("DocumentToken");let Fs=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function _x(){return C(Py)}()},providedIn:"platform"}),n})(),Py=(()=>{class n extends Fs{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tn().getBaseHref(this._doc)}onPopState(t){const i=Tn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Tn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Ly()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Ly()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:function(){return function yx(){return new Py(C(ce))}()},providedIn:"platform"}),n})();function Ly(){return!!window.history.pushState}function Vy(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function By(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Oi(n){return n&&"?"!==n[0]?"?"+n:n}let td=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function vx(n){const e=C(ce).location;return new Cx(C(Fs),e&&e.origin||"")}()},providedIn:"root"}),n})();const bx=new I("appBaseHref");let Cx=(()=>{class n extends td{constructor(t,i){if(super(),this._platformLocation=t,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(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Vy(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Oi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Oi(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Oi(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(C(Fs),C(bx,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),jy=(()=>{class n{constructor(t,i){this._subject=new Ee,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=By(Hy(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Oi(i))}normalize(t){return n.stripTrailingSlash(function Ex(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,Hy(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Oi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Oi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Oi,n.joinWithSlash=Vy,n.stripTrailingSlash=By,n.\u0275fac=function(t){return new(t||n)(C(td),C(Fs))},n.\u0275prov=k({token:n,factory:function(){return function Dx(){return new jy(C(td),C(Fs))}()},providedIn:"root"}),n})();function Hy(n){return n.replace(/\/index.html$/,"")}let Zy=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(_s(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${oe(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(y(fa),y(Os),y(Te),y(ii))},n.\u0275dir=x({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class lk{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Qy=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new lk(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Xy(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Xy(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(y(hn),y(An),y(fa))},n.\u0275dir=x({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Xy(n,e){n.context.$implicit=e.item}let wa=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new ck,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Jy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Jy("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(y(hn),y(An))},n.\u0275dir=x({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class ck{constructor(){this.$implicit=null,this.ngIf=null}}function Jy(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${oe(e)}'.`)}const ev="browser";class fd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Aa=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==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(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),sv=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new fd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(y(hn),y(An),y(Aa,9))},n.\u0275dir=x({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),av=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(Os),y(ii))},n.\u0275dir=x({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Ta=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();class gd extends class hO extends class gx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function mx(n){pa||(pa=n)}(new gd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function fO(){return Ls=Ls||document.querySelector("base"),Ls?Ls.getAttribute("href"):null}();return null==t?null:function pO(n){Ia=Ia||document.createElement("a"),Ia.setAttribute("href",n);const e=Ia.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Ls=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function ok(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Ia,Ls=null;const uv=new I("TRANSITION_ID"),gO=[{provide:py,useFactory:function mO(n,e,t){return()=>{t.get(Hu).donePromise.then(()=>{const i=Tn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[uv,ce,Et],multi:!0}];class _d{static init(){!function $I(n){Ku=n}(new _d)}addToWindow(e){ue.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ue.getAllAngularTestabilities=()=>e.getAllTestabilities(),ue.getAllAngularRootElements=()=>e.getAllRootElements(),ue.frameworkStabilizers||(ue.frameworkStabilizers=[]),ue.frameworkStabilizers.push(i=>{const r=ue.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(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Tn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let _O=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const xa=new I("EventManagerPlugins");let ka=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(C(xa),C(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class dv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Tn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let hv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Vs=(()=>{class n extends hv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(fv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(fv))}}return n.\u0275fac=function(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function fv(n){Tn().remove(n)}const yd={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/"},vd=/%COMP%/g;function Oa(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Oa(n,r,t):(r=r.replace(vd,n),t.push(r))}return t}function gv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Fa=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new bd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case tn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new EO(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case tn.ShadowDom:return new wO(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Oa(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(C(ka),C(Vs),C(ks))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class bd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(yd[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=yd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=yd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Nt.DashCase|Nt.Important)?e.style.setProperty(t,i,r&Nt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Nt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,gv(i)):this.eventManager.addEventListener(e,t,gv(i))}}class EO extends bd{constructor(e,t,i,r){super(e),this.component=i;const s=Oa(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function bO(n){return"_ngcontent-%COMP%".replace(vd,n)}(r+"-"+i.id),this.hostAttr=function CO(n){return"_nghost-%COMP%".replace(vd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class wO extends bd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Oa(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(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let SO=(()=>{class n extends dv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const yv=["alt","control","meta","shift"],AO={"\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"},vv={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"},TO={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let IO=(()=>{class n extends dv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(yv.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(t){let i="",r=function xO(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&vv.hasOwnProperty(e)&&(e=vv[e]))}return AO[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),yv.forEach(s=>{s!=r&&TO[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const RO=Cy(hx,"browser",[{provide:Uu,useValue:ev},{provide:gy,useValue:function kO(){gd.makeCurrent(),_d.init()},multi:!0},{provide:ce,useFactory:function FO(){return function bE(n){$l=n}(document),document},deps:[]}]),NO=[{provide:su,useValue:"root"},{provide:fs,useFactory:function OO(){return new fs},deps:[]},{provide:xa,useClass:SO,multi:!0,deps:[ce,pe,Uu]},{provide:xa,useClass:IO,multi:!0,deps:[ce]},{provide:Fa,useClass:Fa,deps:[ka,Vs,ks]},{provide:Ss,useExisting:Fa},{provide:hv,useExisting:Vs},{provide:Vs,useClass:Vs,deps:[ce]},{provide:qu,useClass:qu,deps:[pe]},{provide:ka,useClass:ka,deps:[xa,pe]},{provide:class uO{},useClass:_O,deps:[]}];let bv=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:ks,useValue:t.appId},{provide:uv,useExisting:ks},gO]}}}return n.\u0275fac=function(t){return new(t||n)(C(n,12))},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:NO,imports:[Ta,fx]}),n})();"undefined"!=typeof window&&window;class WO extends z{constructor(e,t){super()}schedule(e,t=0){return this}}class Ra extends WO{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Ev=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class mn extends Ev{constructor(e,t=Ev.now){super(e,()=>mn.delegate&&mn.delegate!==this?mn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return mn.delegate&&mn.delegate!==this?mn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const YO=new class KO extends mn{}(class qO extends Ra{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),wv=new Ce(n=>n.complete());function Dd(n){return n?function ZO(n){return new Ce(e=>n.schedule(()=>e.complete()))}(n):wv}function Na(...n){let e=n[n.length-1];return Ur(e)?(n.pop(),Ml(n,e)):nf(n)}function XO({error:n,subscriber:e}){e.error(n)}class St{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Na(this.value);case"E":return function QO(n,e){return new Ce(e?t=>e.schedule(XO,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return Dd()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new St("N",e):St.undefinedValueNotification}static createError(e){return new St("E",void 0,e)}static createComplete(){return St.completeNotification}}St.completeNotification=new St("C"),St.undefinedValueNotification=new St("N",void 0);class Pa extends ke{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Pa.dispatch,this.delay,new eF(e,this.destination)))}_next(e){this.scheduleMessage(St.createNext(e))}_error(e){this.scheduleMessage(St.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(St.createComplete()),this.unsubscribe()}}class eF{constructor(e,t){this.notification=e,this.destination=t}}class tF extends Me{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new nF(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new zi;if(this.isStopped||this.hasError?o=z.EMPTY:(this.observers.push(e),o=new qh(this,e)),r&&e.add(e=new Pa(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||YO).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class nF{constructor(e,t){this.time=e,this.value=t}}function Bs(n,e){return"function"==typeof e?t=>t.pipe(Bs((i,r)=>zr(n(i,r)).pipe(zn((s,o)=>e(i,s,r,o))))):t=>t.lift(new iF(n))}class iF{constructor(e){this.project=e}call(e,t){return t.subscribe(new rF(e,this.project))}}class rF extends io{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new no(this),r=this.destination;r.add(i),this.innerSubscription=ro(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const La={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return La.schedule(n,0);if(void 0===window.requestAnimationFrame)return La.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Ed;function fF(n,e,t){let i=t;return function oF(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function lF(n,e){if(!Ed){const t=Element.prototype;Ed=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Ed.call(n,e)}(n,r)||(i=s,0))),i}class mF{constructor(e,t){this.componentFactory=t.get(Ai).resolveComponentFactory(e)}create(e){return new gF(this.componentFactory,e)}}class gF{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new tF(1),this.events=this.eventEmitters.pipe(Bs(i=>Gn(...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(pe),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=La.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function cF(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=Et.create({providers:[],parent:this.injector}),i=function hF(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=fF(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(xi),this.implementsOnChanges=function aF(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ua).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(zn(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=La.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new _f(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class _F extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Sv{}const jn="*";function bF(n,e){return{type:7,name:n,definitions:e,options:{}}}function CF(n,e=null){return{type:4,styles:e,timings:n}}function Mv(n,e=null){return{type:2,steps:n,options:e}}function Va(n){return{type:6,styles:n,offset:null}}function DF(n,e,t){return{type:0,name:n,styles:e,options:t}}function EF(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Av(n){Promise.resolve(null).then(n)}class js{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Av(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Tv{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?Av(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const Q=!1;function Iv(n){return new A(3e3,Q)}function iR(){return"undefined"!=typeof window&&void 0!==window.document}function Sd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function oi(n){switch(n.length){case 0:return new js;case 1:return n[0];default:return new Tv(n)}}function xv(n,e,t,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=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case jn:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function WF(n){return new A(3502,Q)}();return a}function Md(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ad(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ad(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ad(t,"destroy",n)))}}function Ad(n,e,t){const i=t.totalTime,s=Td(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Td(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Lt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function kv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Id=(n,e)=>!1,Ov=(n,e,t)=>[],Fv=null;function xd(n){const e=n.parentNode||n.host;return e===Fv?null:e}(Sd()||"undefined"!=typeof Element)&&(iR()?(Fv=(()=>document.documentElement)(),Id=(n,e)=>{for(;e;){if(e===n)return!0;e=xd(e)}return!1}):Id=(n,e)=>n.contains(e),Ov=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Fi=null,Rv=!1;function Nv(n){Fi||(Fi=function sR(){return"undefined"!=typeof document?document.body:null}()||{},Rv=!!Fi.style&&"WebkitAppearance"in Fi.style);let e=!0;return Fi.style&&!function rR(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Fi.style,!e&&Rv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Fi.style)),e}const Pv=Id,Lv=Ov;let Vv=(()=>{class n{validateStyleProperty(t){return Nv(t)}matchesElement(t,i){return!1}containsElement(t,i){return Pv(t,i)}getParentElement(t){return xd(t)}query(t,i,r){return Lv(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new js(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),kd=(()=>{class n{}return n.NOOP=new Vv,n})();const Od="ng-enter",ja="ng-leave",Ha="ng-trigger",$a=".ng-trigger",jv="ng-animating",Fd=".ng-animating";function Ri(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rd(parseFloat(e[1]),e[2])}function Rd(n,e){return"s"===e?1e3*n:n}function Ua(n,e,t){return n.hasOwnProperty("duration")?n:function lR(n,e,t){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 e.push(Iv()),{duration:0,delay:0,easing:""};r=Rd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Rd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function wF(){return new A(3100,Q)}()),a=!0),s<0&&(e.push(function SF(){return new A(3101,Q)}()),a=!0),a&&e.splice(l,0,Iv())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Or(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ai(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Or(n,t);return t}function $v(n,e,t){return t?e+":"+t+";":""}function Uv(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=$v(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=$v(0,dR(t),n.style[t]));n.setAttribute("style",e)}function In(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Pd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Sd()&&Uv(n))}function Ni(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Pd(t);n.style[i]=""}),Sd()&&Uv(n))}function Hs(n){return Array.isArray(n)?1==n.length?n[0]:Mv(n):n}const Nd=new RegExp("{{\\s*(.+?)\\s*}}","g");function zv(n){let e=[];if("string"==typeof n){let t;for(;t=Nd.exec(n);)e.push(t[1]);Nd.lastIndex=0}return e}function za(n,e,t){const i=n.toString(),r=i.replace(Nd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function AF(n){return new A(3003,Q)}()),a=""),a.toString()});return r==i?n:r}function Ga(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const uR=/-+([a-z0-9])/g;function Pd(n){return n.replace(uR,(...e)=>e[1].toUpperCase())}function dR(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Vt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function TF(n){return new A(3004,Q)}()}}function Gv(n,e){return window.getComputedStyle(n)[e]}function _R(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function yR(n,e,t){if(":"==n[0]){const l=function vR(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function $F(n){return new A(3016,Q)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function HF(n){return new A(3015,Q)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Wv(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Wv(o,r))}(i,t,e)):t.push(n),t}const Ya=new Set(["true","1"]),Za=new Set(["false","0"]);function Wv(n,e){const t=Ya.has(n)||Za.has(n),i=Ya.has(e)||Za.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Ya.has(n):Za.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Ya.has(e):Za.has(e)),o&&a}}const bR=new RegExp("s*:selfs*,?","g");function Ld(n,e,t,i){return new CR(n).build(e,t,i)}class CR{constructor(e){this._driver=e}build(e,t,i){const r=new wR(t);this._resetContextStyleTimingState(r);const s=Vt(this,Hs(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function xF(){return new A(3006,Q)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function kF(){return new A(3007,Q)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Qa(a)){const l=a;Object.keys(l).forEach(c=>{zv(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Ga(s.values()),t.errors.push(function OF(n,e){return new A(3008,Q)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Vt(this,Hs(e.animation),t);return{type:1,matchers:_R(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Pi(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Vt(this,i,t)),options:Pi(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Vt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Pi(e.options)}}visitAnimate(e,t){const i=function MR(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Vd(Ua(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Vd(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Ua(t,e);return Vd(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Va({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Va(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==jn?i.push(o):t.errors.push(function FF(n){return new A(3002,Q)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Qa(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:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function RF(n,e,t,i,r){return new A(3010,Q)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function cR(n,e,t){const i=e.params||{},r=zv(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function MF(n){return new A(3001,Q)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function NF(){return new A(3011,Q)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(v=>{const g=this._makeStyleAst(v,t);let E=null!=g.offset?g.offset:function SR(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Qa(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Qa(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),D=0;return null!=E&&(s++,D=g.offset=E),l=l||D<0||D>1,a=a||D<c,c=D,o.push(D),g});l&&t.errors.push(function PF(){return new A(3012,Q)}()),a&&t.errors.push(function LF(){return new A(3200,Q)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function VF(){return new A(3202,Q)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((v,g)=>{const E=h>0?g==f?1:h*g:o[g],D=E*_;t.currentTime=p+m.delay+D,m.duration=D,this._validateStyleAst(v,t),v.offset=E,i.styles.push(v)}),i}visitReference(e,t){return{type:8,animation:Vt(this,Hs(e.animation),t),options:Pi(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Pi(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Pi(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function DR(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(bR,"")),n=n.replace(/@\*/g,$a).replace(/@\w+/g,t=>$a+"-"+t.substr(1)).replace(/:animating/g,Fd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Lt(t.collectedStyles,t.currentQuerySelector,{});const a=Vt(this,Hs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Pi(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function BF(){return new A(3013,Q)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ua(e.timings,t.errors,!0);return{type:12,animation:Vt(this,Hs(e.animation),t),timings:i,options:null}}}class wR{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qa(n){return!Array.isArray(n)&&"object"==typeof n}function Pi(n){return n?(n=Or(n)).params&&(n.params=function ER(n){return n?Or(n):null}(n.params)):n={},n}function Vd(n,e,t){return{duration:n,delay:e,easing:t}}function Bd(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Xa{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const IR=new RegExp(":enter","g"),kR=new RegExp(":leave","g");function jd(n,e,t,i,r,s={},o={},a,l,c=[]){return(new OR).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class OR{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new Xa;const d=new Hd(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Vt(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===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Bd(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Ri(i.duration):null,a=null!=i.delay?Ri(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Vt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ja);const o=Ri(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Vt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ri(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Vt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Ua(t.params?za(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ri(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ja);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Vt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Vt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Ja={};class Hd{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ja,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new el(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Ri(i.duration)),null!=i.delay&&(r.delay=Ri(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=za(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new Hd(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(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Ja,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new FR(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(IR,"."+this._enterClassName)).replace(kR,"."+this._leaveClassName);let c=this._driver.query(this.element,e,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 jF(n){return new A(3014,Q)}()),a}}class el{constructor(e,t,i,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new el(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||jn,this._currentKeyframe[t]=jn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function RR(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=jn})):ai(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=za(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:jn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ai(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==jn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Ga(e.values()):[],o=t.size?Ga(t.values()):[];if(i){const a=r[0],l=Or(a);a.offset=0,l.offset=1,r=[a,l]}return Bd(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class FR extends el{constructor(e,t,i,r,s,o,a=!1){super(e,t,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 e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=ai(e[0],!1);l.offset=0,s.push(l);const c=ai(e[0],!1);c.offset=Yv(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ai(e[d],!1);h.offset=Yv((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Bd(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function Yv(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class $d{}class NR extends $d{normalizePropertyName(e,t){return Pd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(PR[t]&&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 IF(n,e){return new A(3005,Q)}())}return o+s}}const PR=(()=>function LR(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Zv(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Ud={};class Qv{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function VR(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Ud,p=this.buildStyles(i,a&&a.params||Ud,d),m=l&&l.params||Ud,_=this.buildStyles(r,m,d),v=new Set,g=new Map,E=new Map,D="void"===r,M={params:Object.assign(Object.assign({},h),m)},ee=u?[]:jd(e,t,this.ast.animation,s,o,p,_,M,c,d);let ve=0;if(ee.forEach(at=>{ve=Math.max(at.duration+at.delay,ve)}),d.length)return Zv(t,this._triggerName,i,r,D,p,_,[],[],g,E,ve,d);ee.forEach(at=>{const lt=at.element,Mt=Lt(g,lt,{});at.preStyleProps.forEach(_n=>Mt[_n]=!0);const Ct=Lt(E,lt,{});at.postStyleProps.forEach(_n=>Ct[_n]=!0),lt!==t&&v.add(lt)});const tt=Ga(v.values());return Zv(t,this._triggerName,i,r,D,p,_,ee,tt,g,E,ve)}}class BR{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Or(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[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=za(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class HR{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new BR(r.style,r.options&&r.options.params||{},i)}),Xv(this.states,"true","1"),Xv(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Qv(e,r,this.states))}),this.fallbackTransition=function $R(n,e,t){return new Qv(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function Xv(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const UR=new Xa;class zR{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Ld(this._driver,t,i,[]);if(i.length)throw function qF(n){return new A(3503,Q)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=xv(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=jd(this._driver,t,s,Od,ja,{},{},i,UR,r),o.forEach(u=>{const d=Lt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function KF(){return new A(3300,Q)}()),o=[]),r.length)throw function YF(n){return new A(3504,Q)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,jn)})});const c=oi(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function ZF(n){return new A(3301,Q)}();return t}listen(e,t,i,r){const s=Td(t,"","","");return Md(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);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(e)}}}const Jv="ng-animate-queued",zd="ng-animate-disabled",YR=[],eb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qt="__ng_removed";class Gd{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function eN(n){return null!=n?n:null}(i?e.value:e),i){const s=Or(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const $s="void",Wd=new Gd($s);class QR{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Xt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function QF(n,e){return new A(3302,Q)}();if(null==i||0==i.length)throw function XF(n){return new A(3303,Q)}();if(!function tN(n){return"start"==n||"done"==n}(i))throw function JF(n,e){return new A(3400,Q)}();const s=Lt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Lt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Xt(e,Ha),Xt(e,Ha+"-"+t),a[t]=Wd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function eR(n){return new A(3401,Q)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new qd(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Xt(e,Ha),Xt(e,Ha+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Gd(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=Wd),c.value!==$s&&l.value===c.value){if(!function rN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),v=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ni(e,_),In(e,v)})}return}const h=Lt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Xt(e,Jv),o.onStart(()=>{Fr(e,Jv)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let v=_.indexOf(o);v>=0&&_.splice(v,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,$a,!0);i.forEach(r=>{if(r[Qt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),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(e,l,$s,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&oi(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Wd,u=new Gd($s),d=new qd(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Qt];(!s||s===eb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Xt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];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=Td(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Md(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.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(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class XR{constructor(e,t,i){this.bodyNode=e,this.driver=t,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(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new QR(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){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(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);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&&t.add(a)}}}return t}trigger(e,t,i,r){if(tl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!tl(t))return;const s=t[Qt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Xt(e,zd)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Fr(e,zd))}removeNode(e,t,i,r){if(tl(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Qt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return tl(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,$a,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Fd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return oi(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Qt];if(i&&i.setForRemoval){if(e[Qt]=eb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(zd))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];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++)Xt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}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=[],t.length?oi(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function tR(n){return new A(3402,Q)}()}_flushAnimations(e,t){const i=new Xa,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const O=this.driver.query(T,".ng-animate-queued",!0);for(let N=0;N<O.length;N++)u.add(O[N])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=ib(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((T,O)=>{const N=Od+m++;p.set(O,N),T.forEach(te=>Xt(te,N))});const _=[],v=new Set,g=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const O=this.collectedLeaveElements[T],N=O[Qt];N&&N.setForRemoval&&(_.push(O),v.add(O),N.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(te=>v.add(te)):g.add(O))}const E=new Map,D=ib(h,Array.from(v));D.forEach((T,O)=>{const N=ja+m++;E.set(O,N),T.forEach(te=>Xt(te,N))}),e.push(()=>{f.forEach((T,O)=>{const N=p.get(O);T.forEach(te=>Fr(te,N))}),D.forEach((T,O)=>{const N=E.get(O);T.forEach(te=>Fr(te,N))}),_.forEach(T=>{this.processLeaveNode(T)})});const M=[],ee=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(N=>{const te=N.player,nt=N.element;if(M.push(te),this.collectedEnterElements.length){const Dt=nt[Qt];if(Dt&&Dt.setForMove){if(Dt.previousTriggersValues&&Dt.previousTriggersValues.has(N.triggerName)){const Hi=Dt.previousTriggersValues.get(N.triggerName),hi=this.statesByElement.get(N.element);hi&&hi[N.triggerName]&&(hi[N.triggerName].value=Hi)}return void te.destroy()}}const xn=!d||!this.driver.containsElement(d,nt),Bt=E.get(nt),di=p.get(nt),xe=this._buildInstruction(N,i,di,Bt,xn);if(xe.errors&&xe.errors.length)return void ee.push(xe);if(xn)return te.onStart(()=>Ni(nt,xe.fromStyles)),te.onDestroy(()=>In(nt,xe.toStyles)),void r.push(te);if(N.isFallbackTransition)return te.onStart(()=>Ni(nt,xe.fromStyles)),te.onDestroy(()=>In(nt,xe.toStyles)),void r.push(te);const bD=[];xe.timelines.forEach(Dt=>{Dt.stretchStartingKeyframe=!0,this.disabledNodes.has(Dt.element)||bD.push(Dt)}),xe.timelines=bD,i.append(nt,xe.timelines),o.push({instruction:xe,player:te,element:nt}),xe.queriedElements.forEach(Dt=>Lt(a,Dt,[]).push(te)),xe.preStyleProps.forEach((Dt,Hi)=>{const hi=Object.keys(Dt);if(hi.length){let $i=l.get(Hi);$i||l.set(Hi,$i=new Set),hi.forEach(Uh=>$i.add(Uh))}}),xe.postStyleProps.forEach((Dt,Hi)=>{const hi=Object.keys(Dt);let $i=c.get(Hi);$i||c.set(Hi,$i=new Set),hi.forEach(Uh=>$i.add(Uh))})});if(ee.length){const T=[];ee.forEach(O=>{T.push(function nR(n,e){return new A(3505,Q)}())}),M.forEach(O=>O.destroy()),this.reportError(T)}const ve=new Map,tt=new Map;o.forEach(T=>{const O=T.element;i.has(O)&&(tt.set(O,O),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,ve))}),r.forEach(T=>{const O=T.element;this._getPreviousPlayers(O,!1,T.namespaceId,T.triggerName,null).forEach(te=>{Lt(ve,O,[]).push(te),te.destroy()})});const at=_.filter(T=>sb(T,l,c)),lt=new Map;nb(lt,this.driver,g,c,jn).forEach(T=>{sb(T,l,c)&&at.push(T)});const Ct=new Map;f.forEach((T,O)=>{nb(Ct,this.driver,new Set(T),l,"!")}),at.forEach(T=>{const O=lt.get(T),N=Ct.get(T);lt.set(T,Object.assign(Object.assign({},O),N))});const _n=[],jr=[],Hr={};o.forEach(T=>{const{element:O,player:N,instruction:te}=T;if(i.has(O)){if(u.has(O))return N.onDestroy(()=>In(O,te.toStyles)),N.disabled=!0,N.overrideTotalTime(te.totalTime),void r.push(N);let nt=Hr;if(tt.size>1){let Bt=O;const di=[];for(;Bt=Bt.parentNode;){const xe=tt.get(Bt);if(xe){nt=xe;break}di.push(Bt)}di.forEach(xe=>tt.set(xe,nt))}const xn=this._buildAnimation(N.namespaceId,te,ve,s,Ct,lt);if(N.setRealPlayer(xn),nt===Hr)_n.push(N);else{const Bt=this.playersByElement.get(nt);Bt&&Bt.length&&(N.parentPlayer=oi(Bt)),r.push(N)}}else Ni(O,te.fromStyles),N.onDestroy(()=>In(O,te.toStyles)),jr.push(N),u.has(O)&&r.push(N)}),jr.forEach(T=>{const O=s.get(T.element);if(O&&O.length){const N=oi(O);T.setRealPlayer(N)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<_.length;T++){const O=_[T],N=O[Qt];if(Fr(O,ja),N&&N.hasAnimation)continue;let te=[];if(a.size){let xn=a.get(O);xn&&xn.length&&te.push(...xn);let Bt=this.driver.query(O,Fd,!0);for(let di=0;di<Bt.length;di++){let xe=a.get(Bt[di]);xe&&xe.length&&te.push(...xe)}}const nt=te.filter(xn=>!xn.destroyed);nt.length?nN(this,O,nt):this.processLeaveNode(O)}return _.length=0,_n.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const O=this.players.indexOf(T);this.players.splice(O,1)}),T.play()}),_n}elementContainsData(e,t){let i=!1;const r=t[Qt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==$s;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(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Lt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ni(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[Qt];if(_&&_.removedBeforeQueried)return new js(p.duration,p.delay);const v=m!==l,g=function iN(n){const e=[];return rb(n,e),e}((i.get(m)||YR).map(ve=>ve.getRealPlayer())).filter(ve=>!!ve.element&&ve.element===m),E=s.get(m),D=o.get(m),M=xv(0,this._normalizer,0,p.keyframes,E,D),ee=this._buildPlayer(p,M,g);if(p.subTimeline&&r&&d.add(m),v){const ve=new qd(e,a,m);ve.setRealPlayer(ee),c.push(ve)}return ee});c.forEach(p=>{Lt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function JR(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Xt(p,jv));const f=oi(h);return f.onDestroy(()=>{u.forEach(p=>Fr(p,jv)),In(l,t.toStyles)}),d.forEach(p=>{Lt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new js(e.duration,e.delay)}}class qd{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new js,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>Md(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Lt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function tl(n){return n&&1===n.nodeType}function tb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function nb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(tb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Qt]=ZR,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>tb(l,s[a++])),o}function ib(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),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=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Xt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Fr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function nN(n,e,t){oi(t).onDone(()=>n.processLeaveNode(e))}function rb(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Tv?rb(i.players,e):e.push(i)}}function sb(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class nl{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new XR(e,t,i),this._timelineEngine=new zR(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Ld(this._driver,s,l,[]);if(l.length)throw function GF(n,e){return new A(3404,Q)}();a=function jR(n,e,t){return new HR(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=kv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=kv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let oN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&In(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(In(this._element,this._initialStyles),this._endStyles&&(In(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ni(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ni(this._element,this._endStyles),this._endStyles=null),In(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Kd(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];aN(r)&&(e=e||{},e[r]=n[r])}return e}function aN(n){return"display"===n||"position"===n}class ob{constructor(e,t,i,r){this.element=e,this.keyframes=t,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:Gv(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class lN{validateStyleProperty(e){return Nv(e)}matchesElement(e,t){return!1}containsElement(e,t){return Pv(e,t)}getParentElement(e){return xd(e)}query(e,t,i){return Lv(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,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 ob);(function hR(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function fR(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=Gv(n,l)})}}return e}(e,t=t.map(h=>ai(h,!1)),c);const d=function sN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Kd(e[0]),e.length>1&&(i=Kd(e[e.length-1]))):e&&(t=Kd(e)),t||i?new oN(n,t,i):null}(e,t);return new ob(e,t,l,d)}}let cN=(()=>{class n extends Sv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:tn.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?Mv(t):t;return ab(this._renderer,null,i,"register",[r]),new uN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(C(Ss),C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class uN extends class vF{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new dN(this._id,e,t||{},this._renderer)}}class dN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return ab(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function ab(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const lb="@.disabled";let hN=(()=>{class n{constructor(t,i,r){this.delegate=t,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(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new cb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new fN(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<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(t){return new(t||n)(C(Ss),C(nl),C(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class cb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==lb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class fN extends cb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==lb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function pN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function mN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let gN=(()=>{class n extends nl{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(C(ce),C(kd),C($d))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Us=new I("AnimationModuleType"),ub=[{provide:Sv,useClass:cN},{provide:$d,useFactory:function _N(){return new NR}},{provide:nl,useClass:gN},{provide:Ss,useFactory:function yN(n,e,t){return new hN(n,e,t)},deps:[Fa,nl,pe]}],db=[{provide:kd,useFactory:()=>new lN},{provide:Us,useValue:"BrowserAnimations"},...ub],vN=[{provide:kd,useClass:Vv},{provide:Us,useValue:"NoopAnimations"},...ub];let Yd,bN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?vN:db}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:db,imports:[bv]}),n})();function Hn(n){return null!=n&&"false"!=`${n}`}function hb(n){return Array.isArray(n)?n:[n]}function Ge(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Rr(n){return n instanceof Te?n.nativeElement:n}try{Yd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Yd=!1}let Nr,gn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function fk(n){return n===ev}(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&&!Yd)&&"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(t){return new(t||n)(C(Uu))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();const fb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function pb(){if(Nr)return Nr;if("object"!=typeof document||!document)return Nr=new Set(fb),Nr;let n=document.createElement("input");return Nr=new Set(fb.filter(e=>(n.setAttribute("type",e),n.type===e))),Nr}let zs,Li;function rl(n){return function wN(){if(null==zs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zs=!0}))}finally{zs=zs||!1}return zs}()?n:!!n.capture}function SN(){if(null==Li){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Li=!1,Li;if("scrollBehavior"in document.documentElement.style)Li=!0;else{const n=Element.prototype.scrollTo;Li=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Li}function Xd(n){return n.composedPath?n.composedPath()[0]:n.target}function Jd(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function ol(n,e){return new Ce(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=zr(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}let mb=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(y(ii),y(Te))},n.\u0275dir=x({type:n}),n})(),Vi=(()=>{class n extends mb{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275dir=x({type:n,features:[Z]}),n})();const Jt=new I("NgValueAccessor"),IN={provide:Jt,useExisting:ae(()=>al),multi:!0},kN=new I("CompositionEventMode");let al=(()=>{class n extends mb{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xN(){const n=Tn()?Tn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(y(ii),y(Te),y(kN,8))},n.\u0275dir=x({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(t,i){1&t&&Le("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:[se([IN]),Z]}),n})();function li(n){return null==n||0===n.length}function _b(n){return null!=n&&"number"==typeof n.length}const ot=new I("NgValidators"),ci=new I("NgAsyncValidators"),ON=/^(?=.{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 FN{static min(e){return function yb(n){return e=>{if(li(e.value)||li(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}(e)}static max(e){return function vb(n){return e=>{if(li(e.value)||li(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function bb(n){return li(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function Cb(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function Db(n){return li(n.value)||ON.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function Eb(n){return e=>li(e.value)||!_b(e.value)?null:e.value.length<n?{minlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static maxLength(e){return function wb(n){return e=>_b(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function Sb(n){if(!n)return ll;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(li(i.value))return null;const r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return kb(e)}static composeAsync(e){return Ob(e)}}function ll(n){return null}function Mb(n){return null!=n}function Ab(n){const e=Zo(n)?zr(n):n;return pg(e),e}function Tb(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Ib(n,e){return e.map(t=>t(n))}function xb(n){return n.map(e=>function RN(n){return!n.validate}(e)?e:t=>e.validate(t))}function kb(n){if(!n)return null;const e=n.filter(Mb);return 0==e.length?null:function(t){return Tb(Ib(t,e))}}function eh(n){return null!=n?kb(xb(n)):null}function Ob(n){if(!n)return null;const e=n.filter(Mb);return 0==e.length?null:function(t){return function AN(...n){if(1===n.length){const e=n[0];if(re(e))return ol(e,null);if(We(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return ol(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return ol(n=1===n.length&&re(n[0])?n[0]:n,null).pipe(zn(t=>e(...t)))}return ol(n,null)}(Ib(t,e).map(Ab)).pipe(zn(Tb))}}function th(n){return null!=n?Ob(xb(n)):null}function Fb(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Rb(n){return n._rawValidators}function Nb(n){return n._rawAsyncValidators}function nh(n){return n?Array.isArray(n)?n:[n]:[]}function cl(n,e){return Array.isArray(n)?n.includes(e):n===e}function Pb(n,e){const t=nh(e);return nh(n).forEach(r=>{cl(t,r)||t.push(r)}),t}function Lb(n,e){return nh(e).filter(t=>!cl(n,t))}class Vb{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=eh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=th(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class $n extends Vb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class bt extends Vb{get formDirective(){return null}get path(){return null}}let jb=(()=>{class n extends class Bb{constructor(e){this._cd=e}is(e){var t,i,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[e])}}{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(y($n,2))},n.\u0275dir=x({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Wt("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:[Z]}),n})();function Gs(n,e){sh(n,e),e.valueAccessor.writeValue(n.value),function UN(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&$b(n,e)})}(n,e),function GN(n,e){const t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function zN(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&$b(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function $N(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function hl(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),pl(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function fl(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function sh(n,e){const t=Rb(n);null!==e.validator?n.setValidators(Fb(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=Nb(n);null!==e.asyncValidator?n.setAsyncValidators(Fb(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();fl(e._rawValidators,r),fl(e._rawAsyncValidators,r)}function pl(n,e){let t=!1;if(null!==n){if(null!==e.validator){const r=Rb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.validator);s.length!==r.length&&(t=!0,n.setValidators(s))}}if(null!==e.asyncValidator){const r=Nb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(t=!0,n.setAsyncValidators(s))}}}const i=()=>{};return fl(e._rawValidators,i),fl(e._rawAsyncValidators,i),t}function $b(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ub(n,e){sh(n,e)}function Gb(n,e){n._syncPendingControls(),e.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function lh(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Ws="VALID",ml="INVALID",Pr="PENDING",qs="DISABLED";function uh(n){return(gl(n)?n.validators:n)||null}function Wb(n){return Array.isArray(n)?eh(n):n||null}function dh(n,e){return(gl(e)?e.asyncValidators:n)||null}function qb(n){return Array.isArray(n)?th(n):n||null}function gl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Kb=n=>n instanceof ph,hh=n=>n instanceof mh;function Yb(n){return Kb(n)?n.value:n.getRawValue()}function Zb(n,e){const t=hh(n),i=n.controls;if(!(t?Object.keys(i):i).length)throw new A(1e3,"");if(!i[e])throw new A(1001,"")}function Qb(n,e){hh(n),n._forEachChild((i,r)=>{if(void 0===e[r])throw new A(1002,"")})}class fh{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Wb(this._rawValidators),this._composedAsyncValidatorFn=qb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Ws}get invalid(){return this.status===ml}get pending(){return this.status==Pr}get disabled(){return this.status===qs}get enabled(){return this.status!==qs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Wb(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=qb(e)}addValidators(e){this.setValidators(Pb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Pb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Lb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Lb(e,this._rawAsyncValidators))}hasValidator(e){return cl(this._rawValidators,e)}hasAsyncValidator(e){return cl(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Pr,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=qs,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Ws,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ws||this.status===Pr)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?qs:Ws}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Pr,this._hasOwnPendingAsyncValidator=!0;const t=Ab(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function YN(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=hh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof QN)(i)&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?qs:this.errors?ml:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pr)?Pr:this._anyControlsHaveStatus(ml)?ml:Ws}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){gl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ph extends fh{constructor(e=null,t,i){super(uh(t),dh(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gl(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){lh(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){lh(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class mh extends fh{constructor(e,t,i){super(uh(t),dh(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Qb(this,e),Object.keys(e).forEach(i=>{Zb(this,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=Yb(t),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class QN extends fh{constructor(e,t,i){super(uh(t),dh(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Qb(this,e),e.forEach((i,r)=>{Zb(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>Yb(e))}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const XN={provide:bt,useExisting:ae(()=>_l)},Ks=(()=>Promise.resolve(null))();let _l=(()=>{class n extends bt{constructor(t,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new mh({},eh(t),th(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ks.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),Gs(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ks.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ks.then(()=>{const i=this._findContainer(t.path),r=new mh({});Ub(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ks.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){Ks.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Gb(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n.\u0275fac=function(t){return new(t||n)(y(ot,10),y(ci,10))},n.\u0275dir=x({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){1&t&&Le("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([XN]),Z]}),n})(),iC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();const gh=new I("NgModelWithFormControlWarning"),oP={provide:$n,useExisting:ae(()=>_h)};let _h=(()=>{class n extends $n{constructor(t,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Ee,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=function ah(n,e){if(!e)return null;let t,i,r;return Array.isArray(e),e.forEach(s=>{s.constructor===al?t=s:function KN(n){return Object.getPrototypeOf(n.constructor)===Vi}(s)?i=s:r=s}),r||i||t||null}(0,r)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const i=t.form.previousValue;i&&hl(i,this,!1),Gs(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function oh(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&hl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(y(ot,10),y(ci,10),y(Jt,10),y(gh,8))},n.\u0275dir=x({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[se([oP]),Z,$t]}),n})();const aP={provide:bt,useExisting:ae(()=>yl)};let yl=(()=>{class n extends bt{constructor(t,i){super(),this.validators=t,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ee,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(pl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return Gs(i,t),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){hl(t.control||null,t,!1),lh(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,Gb(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(hl(i||null,t),Kb(r)&&(Gs(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);Ub(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function WN(n,e){return pl(n,e)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){sh(this.form,this),this._oldForm&&pl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(t){return new(t||n)(y(ot,10),y(ci,10))},n.\u0275dir=x({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){1&t&&Le("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([aP]),Z,$t]}),n})(),MP=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[iC]]}),n})(),AP=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:gh,useValue:t.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[MP]}),n})();const TP=new I("cdk-dir-doc",{providedIn:"root",factory:function IP(){return uc(ce)}}),xP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Eh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ee,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function kP(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?xP.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(C(TP,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ys=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();function Lr(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ui(){}function wC(n,e,t){return function(r){return r.lift(new WP(n,e,t))}}class WP{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new qP(e,this.nextOrObserver,this.error,this.complete))}}class qP extends ke{constructor(e,t,i,r){super(e),this._tapNext=ui,this._tapError=ui,this._tapComplete=ui,this._tapError=i||ui,this._tapComplete=r||ui,Y(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ui,this._tapError=t.error||ui,this._tapComplete=t.complete||ui)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const vl=new mn(Ra);function Sh(n,e=vl){return t=>t.lift(new KP(n,e))}class KP{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new YP(e,this.dueTime,this.scheduler))}}class YP extends ke{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ZP,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function ZP(n){n.debouncedNext()}function Vr(n,e){return function(i){return i.lift(new QP(n,e))}}class QP{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new XP(e,this.predicate,this.thisArg))}}class XP extends ke{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class n1 extends class t1{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,e instanceof Is&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(wC(t=>this._pressedLetters.push(t)),Sh(e),Vr(()=>this._pressedLetters.length>0),zn(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Lr(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Is?this._items.toArray():this._items}}{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}const TC="cdk-high-contrast-black-on-white",IC="cdk-high-contrast-white-on-black",Mh="cdk-high-contrast-active";let h1=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.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 t=this._document.body.classList;t.remove(Mh),t.remove(TC),t.remove(IC),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Mh),t.add(TC)):2===i&&(t.add(Mh),t.add(IC))}}}return n.\u0275fac=function(t){return new(t||n)(C(gn),C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function f1(n,e){if(1&n&&ti(0,"mat-pseudo-checkbox",4),2&n){const t=_e();q("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function p1(n,e){if(1&n&&(J(0,"span",5),qt(1),ie()),2&n){const t=_e();W(1),Si("(",t.group.label,")")}}const m1=["*"],_1=new I("mat-sanity-checks",{providedIn:"root",factory:function g1(){return!0}});let Un=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Jd()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(C(h1),C(_1,8),C(ce))},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[Ys],Ys]}),n})();function y1(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||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 v1(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Hn(e)}}}function b1(n){return class extends n{constructor(...e){super(...e),this.stateChanges=new Me,this.errorState=!1}updateErrorState(){const e=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==e&&(this.errorState=s,this.stateChanges.next())}}}let kC=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class D1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const OC={enterDuration:225,exitDuration:150},Ah=rl({passive:!0}),FC=["mousedown","touchstart"],RC=["mouseup","mouseleave","touchend","touchcancel"];class w1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Rr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},OC),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function M1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-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 S1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new D1(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(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},OC),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Rr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(FC))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RC),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=function c1(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!function u1(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Ah)})})}_removeTriggerEvents(){this._triggerElement&&(FC.forEach(e=>{this._triggerElement.removeEventListener(e,this,Ah)}),this._pointerUpEventsRegistered&&RC.forEach(e=>{this._triggerElement.removeEventListener(e,this,Ah)}))}}const A1=new I("mat-ripple-global-options");let T1=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new w1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(pe),y(gn),y(A1,8),y(Us,8))},n.\u0275dir=x({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Wt("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})(),I1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[Un,Zd],Un]}),n})(),x1=(()=>{class n{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(t){return new(t||n)(y(Us,8))},n.\u0275cmp=pi({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,i){2&t&&Wt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),k1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[Un]]}),n})();const NC=new I("MAT_OPTION_PARENT_COMPONENT"),PC=new I("MatOptgroup");let O1=0;class LC{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let F1=(()=>{class n{constructor(t,i,r,s){this._element=t,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+O1++,this.onSelectionChange=new Ee,this._stateChanges=new Me}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Hn(t)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!Lr(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new LC(this,t))}}return n.\u0275fac=function(t){!function dg(){throw new Error("invalid")}()},n.\u0275dir=x({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),VC=(()=>{class n extends F1{constructor(t,i,r,s){super(t,i,r,s)}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(xi),y(NC,8),y(PC,8))},n.\u0275cmp=pi({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,i){1&t&&Le("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&t&&(Jo("id",i.id),ht("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Wt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Z],ngContentSelectors:m1,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,i){1&t&&(Qo(),Re(0,f1,1,2,"mat-pseudo-checkbox",0),J(1,"span",1),cn(2),ie(),Re(3,p1,2,1,"span",2),ti(4,"div",3)),2&t&&(q("ngIf",i.multiple),W(3),q("ngIf",i.group&&i.group._inert),W(1),q("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[x1,wa,T1],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})(),BC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[I1,Ta,Un,k1]]}),n})(),jC=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),P1=(()=>{class n{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,i)=>this._cleanupObserver(i))}observe(t){const i=Rr(t);return new Ce(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const i=new Me,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:i,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:i,stream:r}=this._observedElements.get(t);i&&i.disconnect(),r.complete(),this._observedElements.delete(t)}}}return n.\u0275fac=function(t){return new(t||n)(C(jC))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),L1=(()=>{class n{constructor(t,i,r){this._contentObserver=t,this._elementRef=i,this._ngZone=r,this.event=new Ee,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Hn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=function CN(n,e=0){return function DN(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Sh(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(y(P1),y(Te),y(pe))},n.\u0275dir=x({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),V1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[jC]}),n})();function Br(n,e,t,i){return Y(t)&&(i=t,t=void 0),i?Br(n,e,t).pipe(zn(r=>re(r)?i(...r):i(r))):new Ce(r=>{HC(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function HC(n,e,t,i,r){let s;if(function H1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function j1(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function B1(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)HC(n[o],e,t,i,r)}i.add(s)}function $C(...n){return function $1(){return tf(1)}()(Na(...n))}function bl(...n){const e=n[n.length-1];return Ur(e)?(n.pop(),t=>$C(n,t,e)):t=>$C(n,t)}function Cl(n){return e=>e.lift(new U1(n))}class U1{constructor(e){this.notifier=e}call(e,t){const i=new z1(e),r=ro(this.notifier,new no(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class z1 extends io{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const G1=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Qs(n){return e=>0===n?Dd():e.lift(new W1(n))}class W1{constructor(e){if(this.total=e,this.total<0)throw new G1}call(e,t){return t.subscribe(new q1(e,this.total))}}class q1 extends ke{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}const K1=["connectionContainer"],Y1=["inputContainer"],Z1=["label"];function Q1(n,e){1&n&&(Ei(0),J(1,"div",14),ti(2,"div",15)(3,"div",16)(4,"div",17),ie(),J(5,"div",18),ti(6,"div",15)(7,"div",16)(8,"div",17),ie(),wi())}function X1(n,e){if(1&n){const t=vs();J(0,"div",19),Le("cdkObserveContent",function(){return Fn(t),_e().updateOutlineGap()}),cn(1,1),ie()}2&n&&q("cdkObserveContentDisabled","outline"!=_e().appearance)}function J1(n,e){if(1&n&&(Ei(0),cn(1,2),J(2,"span"),qt(3),ie(),wi()),2&n){const t=_e(2);W(3),ni(t._control.placeholder)}}function eL(n,e){1&n&&cn(0,3,["*ngSwitchCase","true"])}function tL(n,e){1&n&&(J(0,"span",23),qt(1," *"),ie())}function nL(n,e){if(1&n){const t=vs();J(0,"label",20,21),Le("cdkObserveContent",function(){return Fn(t),_e().updateOutlineGap()}),Re(2,J1,4,1,"ng-container",12),Re(3,eL,1,0,"ng-content",12),Re(4,tL,2,0,"span",22),ie()}if(2&n){const t=_e();Wt("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),q("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),ht("for",t._control.id)("aria-owns",t._control.id),W(2),q("ngSwitchCase",!1),W(1),q("ngSwitchCase",!0),W(1),q("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function iL(n,e){1&n&&(J(0,"div",24),cn(1,4),ie())}function rL(n,e){if(1&n&&(J(0,"div",25),ti(1,"span",26),ie()),2&n){const t=_e();W(1),Wt("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function sL(n,e){1&n&&(J(0,"div"),cn(1,5),ie()),2&n&&q("@transitionMessages",_e()._subscriptAnimationState)}function oL(n,e){if(1&n&&(J(0,"div",30),qt(1),ie()),2&n){const t=_e(2);q("id",t._hintLabelId),W(1),ni(t.hintLabel)}}function aL(n,e){if(1&n&&(J(0,"div",27),Re(1,oL,2,2,"div",28),cn(2,6),ti(3,"div",29),cn(4,7),ie()),2&n){const t=_e();q("@transitionMessages",t._subscriptAnimationState),W(1),q("ngIf",t.hintLabel)}}const lL=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],cL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let uL=0;const UC=new I("MatError");let dL=(()=>{class n{constructor(t,i){this.id="mat-error-"+uL++,t||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(t){return new(t||n)(function Ao(n){return function QE(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Pf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Ke(),n)}("aria-live"),y(Te))},n.\u0275dir=x({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,i){2&t&&ht("id",i.id)},inputs:{id:"id"},features:[se([{provide:UC,useExisting:n}])]}),n})();const hL={transitionMessages:bF("transitionMessages",[DF("enter",Va({opacity:1,transform:"translateY(0%)"})),EF("void => enter",[Va({opacity:0,transform:"translateY(-5px)"}),CF("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Th=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n}),n})(),fL=0;const zC=new I("MatHint");let pL=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+fL++}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,i){2&t&&(ht("id",i.id)("align",null),Wt("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[se([{provide:zC,useExisting:n}])]}),n})(),Ih=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["mat-label"]]}),n})(),mL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=x({type:n,selectors:[["mat-placeholder"]]}),n})();const gL=new I("MatPrefix"),_L=new I("MatSuffix");let GC=0;const vL=y1(class{constructor(n){this._elementRef=n}},"primary"),bL=new I("MAT_FORM_FIELD_DEFAULT_OPTIONS"),xh=new I("MatFormField");let CL=(()=>{class n extends vL{constructor(t,i,r,s,o,a,l){super(t),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+GC++,this._labelId="mat-form-field-label-"+GC++,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(t){const i=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Hn(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(bl(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Cl(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Cl(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Gn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(bl(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(bl(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Cl(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(t){const i=this._control?this._control.ngControl:null;return i&&i[t]}_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,Br(this._label.nativeElement,"transitionend").pipe(Qs(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.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?t.push(i.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=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(!t||!t.children.length||!t.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=t.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(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const i=t.getRootNode();return i&&i!==t}return document.documentElement.contains(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(xi),y(Eh,8),y(bL,8),y(gn),y(pe),y(Us,8))},n.\u0275cmp=pi({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,i,r){if(1&t&&(Kt(r,Th,5),Kt(r,Th,7),Kt(r,Ih,5),Kt(r,Ih,7),Kt(r,mL,5),Kt(r,UC,5),Kt(r,zC,5),Kt(r,gL,5),Kt(r,_L,5)),2&t){let s;Qe(s=Xe())&&(i._controlNonStatic=s.first),Qe(s=Xe())&&(i._controlStatic=s.first),Qe(s=Xe())&&(i._labelChildNonStatic=s.first),Qe(s=Xe())&&(i._labelChildStatic=s.first),Qe(s=Xe())&&(i._placeholderChild=s.first),Qe(s=Xe())&&(i._errorChildren=s),Qe(s=Xe())&&(i._hintChildren=s),Qe(s=Xe())&&(i._prefixChildren=s),Qe(s=Xe())&&(i._suffixChildren=s)}},viewQuery:function(t,i){if(1&t&&(ri(K1,7),ri(Y1,5),ri(Z1,5)),2&t){let r;Qe(r=Xe())&&(i._connectionContainerRef=r.first),Qe(r=Xe())&&(i._inputContainerRef=r.first),Qe(r=Xe())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,i){2&t&&Wt("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:[se([{provide:xh,useExisting:n}]),Z],ngContentSelectors:cL,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(t,i){1&t&&(Qo(lL),J(0,"div",0)(1,"div",1,2),Le("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Re(3,Q1,9,0,"ng-container",3),Re(4,X1,2,1,"div",4),J(5,"div",5,6),cn(7),J(8,"span",7),Re(9,nL,5,16,"label",8),ie()(),Re(10,iL,2,0,"div",9),ie(),Re(11,rL,2,4,"div",10),J(12,"div",11),Re(13,sL,2,1,"div",12),Re(14,aL,5,2,"div",13),ie()()),2&t&&(W(3),q("ngIf","outline"==i.appearance),W(1),q("ngIf",i._prefixChildren.length),W(5),q("ngIf",i._hasFloatingLabel()),W(1),q("ngIf",i._suffixChildren.length),W(1),q("ngIf","outline"!=i.appearance),W(1),q("ngSwitch",i._getDisplayedMessages()),W(1),q("ngSwitchCase","error"),W(1),q("ngSwitchCase","hint"))},directives:[wa,L1,Aa,sv],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:[hL.transitionMessages]},changeDetection:0}),n})(),kh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[Ta,Un,V1],Un]}),n})();const qC=rl({passive:!0});let DL=(()=>{class n{constructor(t,i){this._platform=t,this._ngZone=i,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return wv;const i=Rr(t),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new Me,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,qC),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,qC)}}),s}stopMonitoring(t){const i=Rr(t),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((t,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(t){return new(t||n)(C(gn),C(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[Zd]]}),n})();const EL=new I("MAT_INPUT_VALUE_ACCESSOR"),wL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let SL=0;const ML=b1(class{constructor(n,e,t,i){this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=t,this.ngControl=i}});let YC=(()=>{class n extends ML{constructor(t,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=t,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+SL++,this.focused=!1,this.stateChanges=new Me,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=>pb().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(()=>{t.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(t){this._disabled=Hn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){var t,i,r,s;return null!==(s=null!==(t=this._required)&&void 0!==t?t:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(FN.required))&&void 0!==s&&s}set required(t){this._required=Hn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&pb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Hn(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.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(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,i;const r=(null===(i=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===i?void 0:i.call(t))?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 t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){wL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,i=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(gn),y($n,10),y(_l,8),y(yl,8),y(kC),y(EL,10),y(DL),y(pe),y(xh,8))},n.\u0275dir=x({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(t,i){1&t&&Le("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(Jo("disabled",i.disabled)("required",i.required),ht("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),Wt("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:[se([{provide:Th,useExisting:n}]),Z,$t]}),n})(),AL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[kC],imports:[[KC,kh,Un],KC,kh]}),n})(),TL=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new ph(""),this.onEnter$=new Me,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(Sh(100)).subscribe(()=>{var t;this.shouldValueChange(this.formControl.value)&&(null===(t=this.onEnter)||void 0===t||t.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(Vr(t=>(this.valueCanBeChanged=this.shouldValueChange(t),this.valueCanBeChanged))).subscribe(t=>{this.updateOnBlur||this.triggerValueChange(t)})}triggerValueChange(t){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(t)})}onEnterKeydown(t){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(t){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(t){return t}shouldValueChange(t){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),IL=(()=>{class n extends TL{constructor(){super(...arguments),this.filteredSuggestions=[]}ngOnChanges(t){super.ngOnChanges(t),this.filter()}ngOnInit(){super.ngOnInit(),this.autocompleteChanges$=this.formControl.valueChanges.subscribe(()=>this.filter())}ngOnDestroy(){super.ngOnDestroy(),this.autocompleteChanges$&&this.autocompleteChanges$.unsubscribe()}get suggestionStyle(){return 1!==this.filteredSuggestions.length||this.filteredSuggestions[0]?null:{display:"none"}}filter(){var t;const i=`${this.formControl.value||""}`.toLowerCase();this.filteredSuggestions=(null===(t=this.suggestions)||void 0===t?void 0:t.filter(r=>{var s,o;return(null===(o=null===(s=r.label)||void 0===s?void 0:s.toLowerCase())||void 0===o?void 0:o.includes(i))||""}))||[],this.filteredSuggestions=this.filteredSuggestions.length?this.filteredSuggestions:[null]}triggerFocus(){var t;null===(t=this.onFocus)||void 0===t||t.call(this)}optionSelected(t){this.onEnter$.next()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();var xL=Gh(959);new class FL extends mn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class OL extends Ra{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let NL=1;const PL=Promise.resolve(),Dl={};function ZC(n){return n in Dl&&(delete Dl[n],!0)}const QC={setImmediate(n){const e=NL++;return Dl[e]=!0,PL.then(()=>ZC(e)&&n()),e},clearImmediate(n){ZC(n)}};new class VL extends mn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class LL extends Ra{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=QC.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(QC.clearImmediate(t),e.scheduled=void 0)}});class HL{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new $L(e,this.durationSelector))}}class $L extends io{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=ro(t,new no(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function XC(n){return!re(n)&&n-parseFloat(n)+1>=0}function zL(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function JC(n,e=vl){return function jL(n){return function(t){return t.lift(new HL(n))}}(()=>function UL(n=0,e,t){let i=-1;return XC(e)?i=Number(e)<1?1:Number(e):Ur(e)&&(t=e),Ur(t)||(t=vl),new Ce(r=>{const s=XC(n)?n:+n-t.now();return t.schedule(zL,s,{index:0,period:i,subscriber:r})})}(n,e))}let WL=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Me,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Ce(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(JC(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Na()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Vr(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Rr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Br(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(C(pe),C(gn),C(ce,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new Me,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.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 t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(JC(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(C(gn),C(pe),C(ce,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})(),eD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[Ys,Zd,Fh],Ys,Fh]}),n})();class Rh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class KL extends Rh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class tD extends Rh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class YL extends Rh{constructor(e){super(),this.element=e instanceof Te?e.nativeElement:e}}class QL extends class ZL{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof KL?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof tD?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof YL?(this._attachedPortal=e,this.attachDomPortal(e)):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(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,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(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.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=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let XL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();const nD=SN();class JL{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ge(-this._previousScrollPosition.left),e.style.top=Ge(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.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,e.classList.remove("cdk-global-scrollblock"),nD&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),nD&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class eV{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class iD{enable(){}disable(){}attach(){}}function Nh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function rD(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class tV{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Nh(t,[{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 nV=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new iD,this.close=o=>new eV(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new JL(this._viewportRuler,this._document),this.reposition=o=>new tV(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(C(WL),C(Oh),C(pe),C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class sD{constructor(e){if(this.scrollStrategy=new iD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class iV{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class rV{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,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 Me,this._attachments=new Me,this._detachments=new Me,this._locationChanges=z.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Me,this._outsidePointerEvents=new Me,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(e){let t=this._portalOutlet.attach(e);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(Qs(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),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=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===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Ge(this._config.width),e.height=Ge(this._config.height),e.minWidth=Ge(this._config.minWidth),e.minHeight=Ge(this._config.minHeight),e.maxWidth=Ge(this._config.maxWidth),e.maxHeight=Ge(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=hb(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Cl(Gn(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()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let Ph=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Jd()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Jd()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(C(ce),C(gn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oD="cdk-overlay-connected-position-bounding-box",sV=/([A-Za-z%]+)$/;class oV{constructor(e,t,i,r,s){this._viewportRuler=t,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 Me,this._resizeSubscription=z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(oD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,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:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}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&&ji(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(oD),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 e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=lD(t);let{x:o,y:a}=e,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(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=aD(this._overlayRef.getConfig().minHeight),a=aD(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=lD(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new iV(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!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=Ge(i.height),r.top=Ge(i.top),r.bottom=Ge(i.bottom),r.width=Ge(i.width),r.left=Ge(i.left),r.right=Ge(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Ge(s)),o&&(r.maxWidth=Ge(o))}this._lastBoundingBoxSize=i,ji(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ji(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ji(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();ji(i,this._getExactOverlayY(t,e,u)),ji(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Ge(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Ge(o.maxWidth):s&&(i.maxWidth="")),ji(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Ge(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Ge(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:rD(e,i),isOriginOutsideView:Nh(e,i),isOverlayClipped:rD(t,i),isOverlayOutsideView:Nh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&hb(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Te)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function ji(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function aD(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(sV);return t&&"px"!==t?null:parseFloat(e)}return n||null}function lD(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 cD="cdk-global-overlay-wrapper";class aV{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(cD),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=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);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(cD),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let lV=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new aV}flexibleConnectedTo(t){return new oV(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(C(Oh),C(ce),C(gn),C(Ph))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uD=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cV=(()=>{class n extends uD{constructor(t){super(t),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(t){super.add(t),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(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uV=(()=>{class n extends uD{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Xd(r)},this._clickListener=r=>{const s=Xd(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(t){if(super.add(t),!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 t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(C(ce),C(gn))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dV=0,El=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,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(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new sD(t);return o.direction=o.direction||this._directionality.value,new rV(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+dV++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ua)),new QL(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(C(nV),C(Ph),C(Ai),C(lV),C(cV),C(Et),C(pe),C(ce),C(Eh),C(jy),C(uV))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const pV={provide:new I("cdk-connected-overlay-scroll-strategy"),deps:[El],useFactory:function fV(n){return()=>n.scrollStrategies.reposition()}};let mV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[El,pV],imports:[[Ys,XL,eD],eD]}),n})();class yV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Lh(e,this.delay,this.scheduler))}}class Lh extends ke{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Lh.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new vV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(St.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(St.createComplete()),this.unsubscribe()}}class vV{constructor(e,t){this.time=e,this.notification=t}}const bV=["panel"];function CV(n,e){if(1&n&&(J(0,"div",0,1),cn(2),ie()),2&n){const t=e.id,i=_e();q("id",i.id)("ngClass",i._classList),ht("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const DV=["*"];let EV=0;class wV{constructor(e,t){this.source=e,this.option=t}}const SV=v1(class{}),dD=new I("mat-autocomplete-default-options",{providedIn:"root",factory:function MV(){return{autoActiveFirstOption:!1}}});let AV=(()=>{class n extends SV{constructor(t,i,r,s){super(),this._changeDetectorRef=t,this._elementRef=i,this._activeOptionChanges=z.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ee,this.opened=new Ee,this.closed=new Ee,this.optionActivated=new Ee,this._classList={},this.id="mat-autocomplete-"+EV++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Hn(t)}set classList(t){this._classList=t&&t.length?function EN(n,e=/\s+/){const t=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(e);for(const r of i){const s=`${r}`.trim();s&&t.push(s)}}return t}(t).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const i=new wV(this,t);this.optionSelected.emit(i)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(t){return new(t||n)(y(xi),y(Te),y(dD),y(gn))},n.\u0275dir=x({type:n,viewQuery:function(t,i){if(1&t&&(ri(An,7),ri(bV,5)),2&t){let r;Qe(r=Xe())&&(i.template=r.first),Qe(r=Xe())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Z]}),n})(),TV=(()=>{class n extends AV{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275cmp=pi({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(t,i,r){if(1&t&&(Kt(r,PC,5),Kt(r,VC,5)),2&t){let s;Qe(s=Xe())&&(i.optionGroups=s),Qe(s=Xe())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[se([{provide:NC,useExisting:n}]),Z],ngContentSelectors:DV,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,i){1&t&&(Qo(),Re(0,CV,3,4,"ng-template"))},directives:[Zy],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const hD=new I("mat-autocomplete-scroll-strategy"),xV={provide:hD,deps:[El],useFactory:function IV(n){return()=>n.scrollStrategies.reposition()}},kV={provide:Jt,useExisting:ae(()=>fD),multi:!0};let OV=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this._element=t,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=z.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Me,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=function kL(n){return new Ce(e=>{let t;try{t=n()}catch(r){return void e.error(r)}return(t?zr(t):Dd()).subscribe(e)})}(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(bl(f),Bs(()=>Gn(...f.map(p=>p.onSelectionChange)))):this._zone.onStable.pipe(Qs(1),Bs(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Hn(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Gn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Vr(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Vr(()=>this._overlayAttached)):Na()).pipe(zn(t=>t instanceof LC?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Gn(Br(this._document,"click"),Br(this._document,"auxclick"),Br(this._document,"touchend")).pipe(Vr(t=>{const i=Xd(t),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(t){Promise.resolve().then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const i=t.keyCode;if(27===i&&!Lr(t)&&t.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!Lr(t))this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,s=38===i||40===i;this.panelOpen||9===i?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let i=t.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Gn(this._zone.onStable.pipe(Qs(1)),this.autocomplete.options.changes.pipe(wC(()=>this._positionStrategy.reapplyLastPosition()),function _V(n,e=vl){const i=function gV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new yV(i,e))}(0))).pipe(Bs(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Qs(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(t){const i=t&&t.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(i=>{i!==t&&i.selected&&i.deselect()})}_attachOverlay(){var t;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new tD(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!Lr(s)||38===s.keyCode&&Lr(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new sD({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],t.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const i=this.autocomplete,r=function R1(n,e,t){if(t.length){let i=e.toArray(),r=t.toArray(),s=0;for(let o=0;o<n+1;o++)i[o].group&&i[o].group===r[s]&&s++;return s}return 0}(t,i.options,i.optionGroups);if(0===t&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[t];if(s){const o=s._getHostElement(),a=function N1(n,e,t,i){return n<t?n:n+e>t+i?Math.max(0,n-i+e):t}(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(t){return new(t||n)(y(Te),y(El),y(hn),y(pe),y(xi),y(hD),y(Eh,8),y(xh,9),y(ce,8),y(Oh),y(dD,8))},n.\u0275dir=x({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[$t]}),n})(),fD=(()=>{class n extends OV{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275dir=x({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,i){1&t&&Le("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)}),2&t&&ht("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",!i.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[se([kV]),Z]}),n})(),FV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[xV],imports:[[mV,BC,Un,Ta],Fh,BC,Un]}),n})();"function"==typeof SuppressedError&&SuppressedError;const wl=new I("config"),gD=new I("NEW_CONFIG"),_D=new I("INITIAL_CONFIG"),iB={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")}}},rB=["Hh:m0:s0","Hh:m0","m0:s0"],sB=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let $h=(()=>{class n{constructor(t){this._config=t,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(t,i){const[r,s]=i;return this.customPattern=s,this.applyMask(t,r)}applyMask(t,i,r=0,s=!1,o=!1,a=(()=>{})){if(null==t||void 0===i)return"";let l=0,c="",u=!1,d=!1,h=1,f=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&(null==t?void 0:t.length)>0&&(t=this.checkAndRemoveSuffix(t));const p=t.toString().split("");"IP"===i&&(this.ipError=p.filter(D=>"."===D).length<3&&p.length<7,i="099.099.099.099");const m=[];for(let D=0;D<t.length;D++)t[D].match("\\d")&&m.push(t[D]);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(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const D=this.getPrecision(i);t=this.checkInputPrecision(t,D,this.decimalMarker)}t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))&&(t=`${t.substring(0,t.indexOf(".")-1)}${t.substring(t.indexOf("."),t.length)}`),c=this.percentage(t)?t:t.substring(0,t.length-1)}else if(i.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const D=this._charToRegExpExpression(this.thousandSeparator),M=this._charToRegExpExpression(this.decimalMarker),ee='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(D,"").replace(M,""),ve=new RegExp("["+ee+"]");t.match(ve)&&(t=t.substring(0,t.length-1));const tt=this.getPrecision(i),at=(t=this.checkInputPrecision(t,tt,this.decimalMarker)).replace(new RegExp(D,"g"),"");c=this._formatWithSeparators(at,this.thousandSeparator,this.decimalMarker,tt);const lt=c.indexOf(",")-t.indexOf(","),Mt=c.length-t.length;if(Mt>0&&","!==c[r]){d=!0;let Ct=0;do{this._shift.add(r+Ct),Ct++}while(Ct<Mt)}else 0!==lt&&r>0&&!(c.indexOf(",")>=r&&r>3)||!(c.indexOf(".")>=r&&r>3)&&Mt<=0?(this._shift.clear(),d=!0,h=Mt,this._shift.add(r+=Mt)):this._shift.clear()}else for(let D=0,M=p[0];D<p.length&&l!==i.length;D++,M=p[D])if(this._checkSymbolMask(M,i[l])&&"?"===i[l+1])c+=M,l+=2;else if("*"===i[l+1]&&u&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3,u=!1;else if(this._checkSymbolMask(M,i[l])&&"*"===i[l+1])c+=M,u=!0;else if("?"===i[l+1]&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3;else if(this._checkSymbolMask(M,i[l])){if("H"===i[l]&&Number(M)>2){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&"2"===c&&Number(M)>3){l+=1,D--;continue}if("m"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}if("s"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}const ee=31;if("d"===i[l]&&(Number(M)>3&&this.leadZeroDateTime||Number(t.slice(l,l+2))>ee||"/"===t[l+1])){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}if("M"===i[l]){const tt=0===l&&(Number(M)>2||Number(t.slice(l,l+2))>12||"/"===t[l+1]),at=t.slice(l-3,l-1).includes("/")&&("/"===t[l-2]&&Number(t.slice(l-1,l+1))>12&&"/"!==t[l]||"/"===t[l]||"/"===t[l-3]&&Number(t.slice(l-2,l))>12&&"/"!==t[l-1]||"/"===t[l-1]),lt=Number(t.slice(l-3,l-1))<=ee&&!t.slice(l-3,l-1).includes("/")&&"/"===t[l-1]&&(Number(t.slice(l,l+2))>12||"/"===t[l+1]),Mt=Number(t.slice(l-3,l-1))>ee&&!t.slice(l-3,l-1).includes("/")&&!t.slice(l-2,l).includes("/")&&Number(t.slice(l-2,l))>12,Ct=Number(t.slice(l-3,l-1))<=ee&&!t.slice(l-3,l-1).includes("/")&&"/"!==t[l-1]&&Number(t.slice(l-1,l+1))>12;if(Number(M)>1&&this.leadZeroDateTime||tt||at||lt||Mt||Ct){l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}}c+=M,l++}else-1!==this.maskSpecialCharacters.indexOf(i[l])?(c+=i[l],l++,this._shiftStep(i,l,p.length),D--):this.maskSpecialCharacters.indexOf(M)>-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++,D--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u?(l+=3,c+=M):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(M)<0&&M!==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 v=s?l:this._shift.has(r)?h:0;f&&v--,a(v,d),h<0&&this._shift.clear();let g=!1;o&&(g=p.every(D=>this.maskSpecialCharacters.includes(D)));let E=`${this.prefix}${g?"":c}${this.suffix}`;return 0===c.length&&(E=`${this.prefix}${c}`),E}_findSpecialChar(t){return this.maskSpecialCharacters.find(i=>i===t)}_checkSymbolMask(t,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[i]&&this.maskAvailablePatterns[i].pattern&&this.maskAvailablePatterns[i].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((i,r)=>i.match("^-?\\d")||i.match("\\s")||"."===i||","===i||"-"===i&&0===r&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?"\\"+t:t)}_shiftStep(t,i,r){const s=/[*?]/g.test(t.slice(0,i))?r:i;this._shift.add(s+this.prefix.length||0)}}return n.\u0275fac=function(t){return new(t||n)(C(wl))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),yD=(()=>{class n extends $h{constructor(t,i,r,s){super(i),this.document=t,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(t,i,r=0,s=!1,o=!1,a=(()=>{})){if(!i)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=t&&"number"==typeof this.selStart?t[this.selStart]:"";let c="";if(void 0!==this.hiddenInput){let f=this.actualValue.split("");""!==t&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>f.length?f.splice(this.selStart,0,l):t.length<f.length&&(f.length-t.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("")):t}c=Boolean(c)&&c.length?c:t;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(t){const i=/(^|\D)(\d\D)/g;let r=i.exec(t),s=0;for(;null!=r;)s+=1,r=i.exec(t);return s}applyValueChanges(t=0,i,r,s=(()=>{})){const o=this._elementRef.nativeElement;o.value=this.applyMask(o.value,this.maskExpression,t,i,r,s),o!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,i){return t.split("").map((r,s)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[i[s]]&&this.maskAvailablePatterns[i[s]].symbol?this.maskAvailablePatterns[i[s]].symbol:r).join("")}getActualValue(t){const i=t.split("").filter((r,s)=>this._checkSymbolMask(r,this.maskExpression[s])||this.maskSpecialCharacters.includes(this.maskExpression[s])&&r===this.maskExpression[s]);return i.join("")===t?i.join(""):t}shiftTypedSymbols(t){let i="";return(t&&t.split("").map((s,o)=>{if(this.maskSpecialCharacters.includes(t[o+1])&&t[o+1]!==this.maskExpression[o+1])return i=s,t[o+1];if(i.length){const a=i;return i="",a}return s})||[]).join("")}showMaskInInput(t){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(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,i]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,i))}checkSpecialCharAmount(t){return t.split("").filter(r=>this._findSpecialChar(r)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let r=0;r<t.length;r++)t[r].match("\\d")&&i.push(t[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(t){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("#"===t)return i;const s=[];for(let o=0;o<t.length;o++)t[o].match("\\d")&&s.push(t[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===t.length?16:15,r.length):s.length>12&&s.length<=14?r.slice(s.length+4,r.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(t)):this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue)return t;const i=Number(t);return Number.isNaN(i)?t:i}_removeMask(t,i){return t&&t.replace(this._regExpForRemove(i),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(i=>`\\${i}`).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const i=this._retrieveSeparatorPrecision(this.maskExpression);let r=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(r=r.replace(this.decimalMarker,".")),this.isNumberValue?i?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,r):Number(r):r}_retrieveSeparatorPrecision(t){const i=t.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(t,i){return t.indexOf("2")>0?Number(i).toFixed(2):Number(i)}}return n.\u0275fac=function(t){return new(t||n)(C(ce),C(wl),C(Te),C(ii))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),oB=(()=>{class n{constructor(t,i,r){this.document=t,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(t){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:v,separatorLimit:g,allowNegativeNumbers:E,leadZeroDateTime:D}=t;if(i&&(this._maskValue=i.currentValue||"",i.currentValue&&i.currentValue.split("||").length>1&&(this._maskExpressionArray=i.currentValue.split("||").sort((M,ee)=>M.length-ee.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),v&&(this._maskService.validation=v.currentValue),g&&(this._maskService.separatorLimit=g.currentValue),E&&(this._maskService.allowNegativeNumbers=E.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(M=>"-"!==M))),D&&(this._maskService.leadZeroDateTime=D.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||sB.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(rB.includes(this._maskValue))return this._validateTime(t);if(t&&t.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)&&t.toString().length>=this._maskValue.indexOf(r)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.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&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);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(t.toString().length<r)return this._createValidationError(t)}}return null}onPaste(){this._justPasted=!0}onInput(t){const i=t.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(t){if(!this._maskValue)return;const i=t.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==t.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(t){var i;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const r=t.target;if(this._inputValue=r.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===r.value.length&&(r.selectionStart=r.selectionEnd),8===t.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(t.keyCode,r)}this.suffixCheckOnPressDelete(t.keyCode,r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const s=r.selectionStart;8===t.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===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}writeValue(t){return function pD(n,e,t,i){return new(t||(t=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 t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&this.setDisabledState(Boolean(t.disable)),t=t.value),void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(t,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",t],this._inputValue=t})}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,i){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(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(t){this._maskService.formElementProperty=["disabled",t]}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.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(t.slice(this._start+1,this._end));return i+new Array(o+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const i=this._maskValue.split("").filter(r=>":"!==r).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<i||t.length<=i-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(t=>{const i=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&i)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,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(t){return new(t||n)(y(ce),y(yD),y(wl))},n.\u0275dir=x({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,i){1&t&&Le("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:[se([{provide:Jt,useExisting:ae(()=>n),multi:!0},{provide:ot,useExisting:ae(()=>n),multi:!0},yD]),$t]}),n})(),aB=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[{provide:gD,useValue:t},{provide:_D,useValue:iB},{provide:wl,useFactory:lB,deps:[_D,gD]},$h]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();function lB(n,e){return Object.assign(Object.assign({},n),e instanceof Function?e():e)}const vD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};vD.KeyboardEvent||(vD.KeyboardEvent=function(n,e){});const cB=["inputEl"];function uB(n,e){if(1&n&&(J(0,"mat-label"),qt(1),ie()),2&n){const t=_e(2);W(1),ni(t.label)}}function dB(n,e){if(1&n&&(J(0,"mat-option",7),qt(1),ie()),2&n){const t=e.$implicit,i=_e(2);q("value",null==t?null:t.value)("ngStyle",i.suggestionStyle)("disabled",!!i.suggestionStyle),W(1),Si(" ",null==t?null:t.label," ")}}function hB(n,e){if(1&n&&(J(0,"mat-error"),qt(1),ie()),2&n){const t=_e(2);W(1),Si(" ",t.error," ")}}function fB(n,e){if(1&n){const t=vs();Ei(0),J(1,"mat-form-field",1),Re(2,uB,2,1,"mat-label",0),J(3,"input",2,3),Le("blur",function(){return Fn(t),_e().onBlur()})("keydown.enter",function(r){return Fn(t),_e().onEnterKeydown(r)}),ie(),J(5,"mat-autocomplete",4,5),Le("opened",function(){return Fn(t),_e().triggerFocus()})("optionSelected",function(r){return Fn(t),_e().optionSelected(r)}),Re(7,dB,2,4,"mat-option",6),ie(),J(8,"mat-hint"),qt(9),ie(),Re(10,hB,2,1,"mat-error",0),ie(),wi()}if(2&n){const t=function eg(n){return function Zi(n,e){return n[e]}(function xE(){return L.lFrame.contextLView}(),20+n)}(6),i=_e();W(1),q("appearance",i.appearance||"outline")("floatLabel","auto"),W(1),q("ngIf",i.label),W(1),q("id",i.id)("type",i.type)("placeholder",i.placeholder||i.label)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("matAutocomplete",t),W(2),q("panelWidth",i.suggestionsPanelWidth),W(2),q("ngForOf",i.filteredSuggestions),W(2),ni(i.helpText),W(1),q("ngIf",i.error)}}function pB(n,e){if(1&n&&(J(0,"mat-label"),qt(1),ie()),2&n){const t=_e(2);W(1),ni(t.label)}}function mB(n,e){if(1&n&&(J(0,"mat-error"),qt(1),ie()),2&n){const t=_e(2);W(1),Si(" ",t.error," ")}}function gB(n,e){if(1&n){const t=vs();Ei(0),J(1,"mat-form-field",1),Re(2,pB,2,1,"mat-label",0),J(3,"input",8,3),Le("blur",function(){return Fn(t),_e().onBlur()})("keydown.enter",function(r){return Fn(t),_e().onEnterKeydown(r)}),ie(),J(5,"mat-hint"),qt(6),ie(),Re(7,mB,2,1,"mat-error",0),ie(),wi()}if(2&n){const t=_e();W(1),q("appearance",t.appearance||"outline")("floatLabel","auto"),W(1),q("ngIf",t.label),W(1),q("id",t.id)("type",t.type)("placeholder",t.placeholder||t.label)("formControl",t.formControl)("errorStateMatcher",t.errorStateMatcher)("mask",null==t.mask?null:t.mask.expression)("suffix",(null==t.mask?null:t.mask.suffix)||"")("prefix",(null==t.mask?null:t.mask.prefix)||"")("dropSpecialCharacters",!(null!=t.mask&&t.mask.emitSpecialCharacters))("showMaskTyped",null==t.mask?null:t.mask.showMaskTyped)("thousandSeparator",null==t.mask?null:t.mask.thousandSeparator)("leadZeroDateTime",null==t.mask?null:t.mask.leadZeroDateTime)("allowNegativeNumbers",null==t.mask?null:t.mask.allowNegativeNumbers),W(3),ni(t.helpText),W(1),q("ngIf",t.error)}}let _B=(()=>{class n extends IL{constructor(){super(...arguments),this.setValue=({value:t})=>{this.formControl.setValue(t)},this.focused=!1,this.type="text",this.id=(0,xL.generate)()}ngAfterViewInit(){this.focused&&this.inputEl.nativeElement.focus()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=He(n)))(i||n)}}(),n.\u0275cmp=pi({type:n,selectors:[["drayman-text-field-internal"]],viewQuery:function(t,i){if(1&t&&(ri(YC,5),ri(cB,5)),2&t){let r;Qe(r=Xe())&&(i.input=r.first),Qe(r=Xe())&&(i.inputEl=r.first)}},inputs:{appearance:"appearance",onValueChange:"onValueChange",onEnter:"onEnter",setValue:"setValue",focused:"focused",onFocus:"onFocus",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",updateOnBlur:"updateOnBlur",suggestions:"suggestions",suggestionsPanelWidth:"suggestionsPanelWidth",mask:"mask",type:"type"},features:[Z],decls:2,vars:2,consts:[[4,"ngIf"],[3,"appearance","floatLabel"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","matAutocomplete","blur","keydown.enter"],["inputEl",""],[3,"panelWidth","opened","optionSelected"],["auto","matAutocomplete"],[3,"value","ngStyle","disabled",4,"ngFor","ngForOf"],[3,"value","ngStyle","disabled"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","mask","suffix","prefix","dropSpecialCharacters","showMaskTyped","thousandSeparator","leadZeroDateTime","allowNegativeNumbers","blur","keydown.enter"]],template:function(t,i){1&t&&(Re(0,fB,11,13,"ng-container",0),Re(1,gB,8,18,"ng-container",0)),2&t&&(q("ngIf",!i.mask),W(1),q("ngIf",i.mask))},directives:[wa,CL,Ih,YC,al,fD,jb,_h,TV,Qy,VC,av,pL,dL,oB],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),yB=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(C(ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),vB=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function yF(n,e){const t=function dF(n,e){return e.get(Ai).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new mF(n,e.injector),r=function uF(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function sF(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends _F{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.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),t.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}(_B,{injector:this.injector});customElements.define("drayman-text-field",t)}}return n.\u0275fac=function(t){return new(t||n)(C(Et))},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[{provide:Ph,useClass:yB}],imports:[[bv,bN,AP,kh,AL,FV,aB.forRoot()]]}),n})();(function QI(){Sy=!1})(),RO().bootstrapModule(vB).catch(n=>console.error(n))})()})();
|