From 4808c81d5a5996d92bbc063cd08c24e89363002f Mon Sep 17 00:00:00 2001 From: Shilin Wu Date: Thu, 12 Oct 2023 17:10:07 +0800 Subject: [PATCH] Added renewal support --- README.md | 9 ++ build.gradle.kts | 2 +- .../kotlin/net/wushilin/minica/openssl/CA.kt | 1 - .../net/wushilin/minica/openssl/Cert.kt | 23 +++- .../net/wushilin/minica/rest/CARestService.kt | 14 ++ .../net/wushilin/minica/services/CAService.kt | 129 ++++++++++++++++++ src/main/resources/static/index.html | 2 +- .../resources/static/main.1687d7a6e66c24af.js | 1 - .../resources/static/main.dfff79e842c0147f.js | 1 + 9 files changed, 174 insertions(+), 8 deletions(-) delete mode 100644 src/main/resources/static/main.1687d7a6e66c24af.js create mode 100644 src/main/resources/static/main.dfff79e842c0147f.js diff --git a/README.md b/README.md index 70b60f8..fed81c2 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,15 @@ Authorization: xxx Requires viewer role ``` +Renew certificate by X days +``` +POST /ca//cert// +Authorization: xxx + +--- +Requires admin role +``` + Download everything about the cert in a zip file, include cert, csr, private key in PEM format, jks and pkcs12 keystore, jks truststore, ca cert in PEM, and all keystore passwords diff --git a/build.gradle.kts b/build.gradle.kts index 70f09bf..88e17e0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "net.wushilin.minica" -version = "1.0.1-RELEASE" +version = "1.0.2-RELEASE" java.sourceCompatibility = JavaVersion.VERSION_17 repositories { diff --git a/src/main/kotlin/net/wushilin/minica/openssl/CA.kt b/src/main/kotlin/net/wushilin/minica/openssl/CA.kt index a9940da..6a23049 100644 --- a/src/main/kotlin/net/wushilin/minica/openssl/CA.kt +++ b/src/main/kotlin/net/wushilin/minica/openssl/CA.kt @@ -122,7 +122,6 @@ class CA(var base: File) { return "CA:$_subject@${base.name}" } - fun removeCertById(id:String):Cert { val result = getCertById(id) val deleteResult = result.base.deleteRecursively() diff --git a/src/main/kotlin/net/wushilin/minica/openssl/Cert.kt b/src/main/kotlin/net/wushilin/minica/openssl/Cert.kt index 6dbffd8..9c21be7 100644 --- a/src/main/kotlin/net/wushilin/minica/openssl/Cert.kt +++ b/src/main/kotlin/net/wushilin/minica/openssl/Cert.kt @@ -3,6 +3,7 @@ package net.wushilin.minica.openssl import net.wushilin.minica.IO import java.io.File import java.lang.IllegalArgumentException +import java.nio.charset.StandardCharsets import java.util.* class Cert(var base: File){ @@ -18,6 +19,10 @@ class Cert(var base: File){ val keyFile: File get() = _keyFile + private val _csrFile:File = File(base, "cert.csr") + val csrFile:File + get() = _csrFile + private var _certFile: File = File(base, "cert.pem") val certFile: File get() = _certFile @@ -26,6 +31,11 @@ class Cert(var base: File){ val commonName: String get() = _commonName + fun readPassword():String { + val passwordFile = File(this.base, "password.txt") + val password = passwordFile.readText(StandardCharsets.UTF_8) + return password + } private var _city: String = "" val city: String get() = _city @@ -82,10 +92,7 @@ class Cert(var base: File){ _key = IO.readFileAsString(keyFile) _cert = IO.readFileAsString(certFile) - val props = Properties() - File(base, "meta.properties").inputStream().use { - props.load(it) - } + val props = readMeta() _validDays = props.getProperty("validDays", "0").toInt() this._city = props.getProperty("city", "") this._commonName = props.getProperty("commonName", "") @@ -105,6 +112,14 @@ class Cert(var base: File){ } } + fun readMeta():Properties { + val props = Properties() + File(base, "meta.properties").inputStream().use { + props.load(it) + } + return props + } + override fun toString():String { return "CERT:$_subject@${base.name}" } diff --git a/src/main/kotlin/net/wushilin/minica/rest/CARestService.kt b/src/main/kotlin/net/wushilin/minica/rest/CARestService.kt index 30f92d5..ae0a806 100644 --- a/src/main/kotlin/net/wushilin/minica/rest/CARestService.kt +++ b/src/main/kotlin/net/wushilin/minica/rest/CARestService.kt @@ -123,6 +123,20 @@ class CARestService { } } + @PostMapping("/ca/{caid}/cert/{certid}/renew/{days}") + fun renewCert(@PathVariable("caid") caid: String, @PathVariable("certid") certid:String, @PathVariable("days") days:Int):Cert { + try { + val ca = caSvc.getCAById(caid) + val cert = ca.getCertById(certid) + // both exists, good! + return caSvc.renewCert(ca, cert, days) + } catch(ex:Exception) { + log.error("Failed to extend cert by id $caid/$certid for $days days", ex) + throw ResponseStatusException( + HttpStatus.INTERNAL_SERVER_ERROR, "entity error" + ) + } + } @GetMapping("/ca/{caid}/cert/{certid}") fun getCACert(@PathVariable("caid") caid: String, @PathVariable("certid") certid: String): Cert { try { diff --git a/src/main/kotlin/net/wushilin/minica/services/CAService.kt b/src/main/kotlin/net/wushilin/minica/services/CAService.kt index 8e4a879..d7f658e 100644 --- a/src/main/kotlin/net/wushilin/minica/services/CAService.kt +++ b/src/main/kotlin/net/wushilin/minica/services/CAService.kt @@ -363,6 +363,135 @@ class CAService { ) } + fun renewCert(ca:CA, cert:Cert, days:Int):Cert { + var caBase = ca.base + val certBase = cert.base + if(days < 1 || days > 7350) { + throw IllegalArgumentException("Invalid days. 1~7350 only"); + } + try { + val processResult2 = Run.ExecWait( + caBase, 60000, null, listOf( + config.opensslPath, + "ca", + "-config", + "openssl-ca.conf", + "-days", + "$days", + "-batch", + "-policy", + "signing_policy", + "-extensions", + "signing_req", + "-out", + "$certBase/cert.renew.pem", + "-infiles", + "$certBase/cert.csr" + ) + ) + if (!processResult2.isSuccessful()) { + // Cleanup is caller's responsibility + log.error("Failed to sign CSR: ${processResult2}") + throw IllegalArgumentException("Failed to sign CSR : ${processResult2.error()}") + } + log.info("Renewed cert into $certBase/cert.renew.pem") + val src = File("$certBase/cert.renew.pem") + val dest = File("$certBase/cert.pem") + val renameResult = src.renameTo(dest) + if(renameResult) { + log.info("Renamed $src to $dest") + } else { + log.error("Unable to rename $src to $dest") + throw IllegalArgumentException("Failed to sign CSR and rename new cert file!") + } + + val random = cert.readPassword() + val pkcs12File = File("$certBase/cert.p12") + if(!pkcs12File.deleteRecursively()) { + log.error("Can't delete pkcs12 file $pkcs12File"); + } + // openssl pkcs12 -export -out Cert.p12 -in cert.pem -inkey key.pem -passin pass:root -passout pass:root + val processResult3 = Run.ExecWait( + caBase, 60000, null, listOf( + config.opensslPath, "pkcs12", "-export", "-out", "$certBase/cert.p12", + "-in", "$certBase/cert.pem", "-inkey", "$certBase/cert.key", "-passout", "pass:$random" + ) + ) + if (!processResult3.isSuccessful()) { + log.error("Failed to convert to PKCS12: ${processResult3}") + throw IllegalArgumentException("Failed to convert to PKCS12 : ${processResult3.error()}") + } + + FileOutputStream("$certBase/password.txt").use { + it.write(random.toByteArray()) + } + + val jksFile = File("$certBase/cert.jks") + if(!jksFile.deleteRecursively()) { + log.error("Failed to delete JKS file $jksFile") + } + + //keytool -importkeystore -srcstorepass changeme -srckeystore $outdir/$CN.p12 -srcstoretype pkcs12 -destkeystore $outdir/$CN.jks -deststoretype jks -deststorepass changeme + val processResult4 = Run.ExecWait( + certBase, 60000, null, listOf( + config.keytoolPath, + "-importkeystore", + "-srcstorepass", + "$random", + "-srckeystore", + "cert.p12", + "-srcstoretype", + "pkcs12", + "-destkeystore", + "cert.jks", + "-deststoretype", + "jks", + "-deststorepass", + "$random" + ) + ) + if (!processResult4.isSuccessful()) { + log.error("Failed to convert to JKS: ${processResult3}") + throw IllegalArgumentException("Failed to convert to JKS : ${processResult4.error()}") + } + + //keytool -import -v -trustcacerts -alias server-alias + //-file server.cer -keystore cacerts.jks -keypass changeit -storepass changeit + val meta = cert.readMeta() + meta.put("issueTime", "${System.currentTimeMillis()}") + meta.put("validDays", "$days") + FileOutputStream(File(certBase, "meta.properties")).use { + meta.store(it, "Generated by MiniCA") + } + File(certBase, "CERT.complete").outputStream().use { + it.write("Done!".toByteArray()) + } + log.info("Renewed cert ${cert.subject} ($certBase) in $ca") + createBundle( + certBase, + File(certBase, "bundle.zip"), + listOf( + "cert.csr", + "cert.jks", + "cert.key", + "cert.p12", + "cert.pem", + "meta.properties", + "password.txt=>cert-jks-password.txt", + "password.txt=>cert-p12-password.txt", + "../ca-cert.pem=>ca.pem", + "../truststore.jks", + "../password.txt=>truststore-jks-password.txt" + ) + ) + return ca.getCertById(certBase.name) + // must be successfully now + } finally { + // delete cert.renew.pem + val toDelete = File("$certBase/cert.renew.pem") + toDelete.deleteRecursively() + } + } fun createCert( ca: CA, commonName: String, diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 25fb0b6..8c62157 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/src/main/resources/static/main.1687d7a6e66c24af.js b/src/main/resources/static/main.1687d7a6e66c24af.js deleted file mode 100644 index 70be278..0000000 --- a/src/main/resources/static/main.1687d7a6e66c24af.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkminca_ui=self.webpackChunkminca_ui||[]).push([[179],{348:()=>{function xe(i){return"function"==typeof i}function ta(i){const e=i(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Yl=ta(i=>function(e){i(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Ds(i,t){if(i){const e=i.indexOf(t);0<=e&&i.splice(e,1)}}class Te{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(xe(n))try{n()}catch(s){t=s instanceof Yl?s.errors:[s]}const{_teardowns:r}=this;if(r){this._teardowns=null;for(const s of r)try{j_(s)}catch(o){t=null!=t?t:[],o instanceof Yl?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Yl(t)}}add(t){var e;if(t&&t!==this)if(this.closed)j_(t);else{if(t instanceof Te){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Ds(e,t)}remove(t){const{_teardowns:e}=this;e&&Ds(e,t),t instanceof Te&&t._removeParent(this)}}Te.EMPTY=(()=>{const i=new Te;return i.closed=!0,i})();const V_=Te.EMPTY;function H_(i){return i instanceof Te||i&&"closed"in i&&xe(i.remove)&&xe(i.add)&&xe(i.unsubscribe)}function j_(i){xe(i)?i():i.unsubscribe()}const Fr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ql={setTimeout(...i){const{delegate:t}=Ql;return((null==t?void 0:t.setTimeout)||setTimeout)(...i)},clearTimeout(i){const{delegate:t}=Ql;return((null==t?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function z_(i){Ql.setTimeout(()=>{const{onUnhandledError:t}=Fr;if(!t)throw i;t(i)})}function ws(){}const AT=rh("C",void 0,void 0);function rh(i,t,e){return{kind:i,value:t,error:e}}let Nr=null;function Kl(i){if(Fr.useDeprecatedSynchronousErrorHandling){const t=!Nr;if(t&&(Nr={errorThrown:!1,error:null}),i(),t){const{errorThrown:e,error:n}=Nr;if(Nr=null,e)throw n}}else i()}class sh extends Te{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,H_(t)&&t.add(this)):this.destination=PT}static create(t,e,n){return new oh(t,e,n)}next(t){this.isStopped?lh(function RT(i){return rh("N",i,void 0)}(t),this):this._next(t)}error(t){this.isStopped?lh(function IT(i){return rh("E",void 0,i)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?lh(AT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class oh extends sh{constructor(t,e,n){let r;if(super(),xe(t))r=t;else if(t){let s;({next:r,error:e,complete:n}=t),this&&Fr.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe()):s=t,r=null==r?void 0:r.bind(s),e=null==e?void 0:e.bind(s),n=null==n?void 0:n.bind(s)}this.destination={next:r?ah(r):ws,error:ah(null!=e?e:U_),complete:n?ah(n):ws}}}function ah(i,t){return(...e)=>{try{i(...e)}catch(n){Fr.useDeprecatedSynchronousErrorHandling?function OT(i){Fr.useDeprecatedSynchronousErrorHandling&&Nr&&(Nr.errorThrown=!0,Nr.error=i)}(n):z_(n)}}}function U_(i){throw i}function lh(i,t){const{onStoppedNotification:e}=Fr;e&&Ql.setTimeout(()=>e(i,t))}const PT={closed:!0,next:ws,error:U_,complete:ws},ch="function"==typeof Symbol&&Symbol.observable||"@@observable";function dr(i){return i}let Ie=(()=>{class i{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new i;return n.source=this,n.operator=e,n}subscribe(e,n,r){const s=function NT(i){return i&&i instanceof sh||function FT(i){return i&&xe(i.next)&&xe(i.error)&&xe(i.complete)}(i)&&H_(i)}(e)?e:new oh(e,n,r);return Kl(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=G_(n))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),null==o||o.unsubscribe()}},s,r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[ch](){return this}pipe(...e){return function $_(i){return 0===i.length?dr:1===i.length?i[0]:function(e){return i.reduce((n,r)=>r(n),e)}}(e)(this)}toPromise(e){return new(e=G_(e))((n,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>n(s))})}}return i.create=t=>new i(t),i})();function G_(i){var t;return null!==(t=null!=i?i:Fr.Promise)&&void 0!==t?t:Promise}const LT=ta(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let O=(()=>{class i extends Ie{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new W_(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new LT}next(e){Kl(()=>{if(this._throwIfClosed(),!this.isStopped){const n=this.observers.slice();for(const r of n)r.next(e)}})}error(e){Kl(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Kl(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:r,observers:s}=this;return n||r?V_:(s.push(e),new Te(()=>Ds(s,e)))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:s}=this;n?e.error(r):s&&e.complete()}asObservable(){const e=new Ie;return e.source=this,e}}return i.create=(t,e)=>new W_(t,e),i})();class W_ extends O{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)}error(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:V_}}function q_(i){return xe(null==i?void 0:i.lift)}function Ke(i){return t=>{if(q_(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}class Ue extends sh{constructor(t,e,n,r,s){super(t),this.onFinalize=s,this._next=e?function(o){try{e(o)}catch(a){t.error(a)}}:super._next,this._error=r?function(o){try{r(o)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){t.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}function de(i,t){return Ke((e,n)=>{let r=0;e.subscribe(new Ue(n,s=>{n.next(i.call(t,s,r++))}))})}function Lr(i){return this instanceof Lr?(this.v=i,this):new Lr(i)}function HT(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(i,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){n[h]&&(r[h]=function(f){return new Promise(function(_,v){s.push([h,f,_,v])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof Lr?Promise.resolve(h.value.v).then(c,d):u(s[0][2],h)}(n[h](f))}catch(_){u(s[0][3],_)}}function c(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function jT(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=i[Symbol.asyncIterator];return t?t.call(i):(i=function K_(i){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=i[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=i[s](o)).done,o.value)})}}}const uh=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function Z_(i){return xe(null==i?void 0:i.then)}function X_(i){return xe(i[ch])}function J_(i){return Symbol.asyncIterator&&xe(null==i?void 0:i[Symbol.asyncIterator])}function ev(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const tv=function UT(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function iv(i){return xe(null==i?void 0:i[tv])}function nv(i){return HT(this,arguments,function*(){const e=i.getReader();try{for(;;){const{value:n,done:r}=yield Lr(e.read());if(r)return yield Lr(void 0);yield yield Lr(n)}}finally{e.releaseLock()}})}function rv(i){return xe(null==i?void 0:i.getReader)}function ni(i){if(i instanceof Ie)return i;if(null!=i){if(X_(i))return function $T(i){return new Ie(t=>{const e=i[ch]();if(xe(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(uh(i))return function GT(i){return new Ie(t=>{for(let e=0;e{i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,z_)})}(i);if(J_(i))return sv(i);if(iv(i))return function qT(i){return new Ie(t=>{for(const e of i)if(t.next(e),t.closed)return;t.complete()})}(i);if(rv(i))return function YT(i){return sv(nv(i))}(i)}throw ev(i)}function sv(i){return new Ie(t=>{(function QT(i,t){var e,n,r,s;return function BT(i,t,e,n){return new(e||(e=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(u){o(u)}}function l(d){try{c(n.throw(d))}catch(u){o(u)}}function c(d){d.done?s(d.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(d.value).then(a,l)}c((n=n.apply(i,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=jT(i);!(n=yield e.next()).done;)if(t.next(n.value),t.closed)return}catch(o){r={error:o}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}t.complete()})})(i,t).catch(e=>t.error(e))})}function Ln(i,t,e,n=0,r=!1){const s=t.schedule(function(){e(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(s),!r)return s}function ut(i,t,e=1/0){return xe(t)?ut((n,r)=>de((s,o)=>t(n,s,r,o))(ni(i(n,r))),e):("number"==typeof t&&(e=t),Ke((n,r)=>function KT(i,t,e,n,r,s,o,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&t.complete()},f=v=>c{s&&t.next(v),c++;let b=!1;ni(e(v,d++)).subscribe(new Ue(t,M=>{null==r||r(M),s?f(M):t.next(M)},()=>{b=!0},void 0,()=>{if(b)try{for(c--;l.length&&c_(M)):_(M)}h()}catch(M){t.error(M)}}))};return i.subscribe(new Ue(t,f,()=>{u=!0,h()})),()=>{null==a||a()}}(n,r,i,e)))}function ia(i=1/0){return ut(dr,i)}const ln=new Ie(i=>i.complete());function ov(i){return i&&xe(i.schedule)}function hh(i){return i[i.length-1]}function av(i){return xe(hh(i))?i.pop():void 0}function na(i){return ov(hh(i))?i.pop():void 0}function lv(i,t=0){return Ke((e,n)=>{e.subscribe(new Ue(n,r=>Ln(n,i,()=>n.next(r),t),()=>Ln(n,i,()=>n.complete(),t),r=>Ln(n,i,()=>n.error(r),t)))})}function cv(i,t=0){return Ke((e,n)=>{n.add(i.schedule(()=>e.subscribe(n),t))})}function dv(i,t){if(!i)throw new Error("Iterable cannot be null");return new Ie(e=>{Ln(e,t,()=>{const n=i[Symbol.asyncIterator]();Ln(e,t,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function vt(i,t){return t?function rA(i,t){if(null!=i){if(X_(i))return function JT(i,t){return ni(i).pipe(cv(t),lv(t))}(i,t);if(uh(i))return function tA(i,t){return new Ie(e=>{let n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}(i,t);if(Z_(i))return function eA(i,t){return ni(i).pipe(cv(t),lv(t))}(i,t);if(J_(i))return dv(i,t);if(iv(i))return function iA(i,t){return new Ie(e=>{let n;return Ln(e,t,()=>{n=i[tv](),Ln(e,t,()=>{let r,s;try{({value:r,done:s}=n.next())}catch(o){return void e.error(o)}s?e.complete():e.next(r)},0,!0)}),()=>xe(null==n?void 0:n.return)&&n.return()})}(i,t);if(rv(i))return function nA(i,t){return dv(nv(i),t)}(i,t)}throw ev(i)}(i,t):ni(i)}function jt(...i){const t=na(i),e=function XT(i,t){return"number"==typeof hh(i)?i.pop():t}(i,1/0),n=i;return n.length?1===n.length?ni(n[0]):ia(e)(vt(n,t)):ln}function We(i){return i<=0?()=>ln:Ke((t,e)=>{let n=0;t.subscribe(new Ue(e,r=>{++n<=i&&(e.next(r),i<=n&&e.complete())}))})}function uv(i={}){const{connector:t=(()=>new O),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=i;return s=>{let o=null,a=null,l=null,c=0,d=!1,u=!1;const h=()=>{null==a||a.unsubscribe(),a=null},f=()=>{h(),o=l=null,d=u=!1},_=()=>{const v=o;f(),null==v||v.unsubscribe()};return Ke((v,b)=>{c++,!u&&!d&&h();const M=l=null!=l?l:t();b.add(()=>{c--,0===c&&!u&&!d&&(a=ph(_,r))}),M.subscribe(b),o||(o=new oh({next:w=>M.next(w),error:w=>{u=!0,h(),a=ph(f,e,w),M.error(w)},complete:()=>{d=!0,h(),a=ph(f,n),M.complete()}}),vt(v).subscribe(o))})(s)}}function ph(i,t,...e){return!0===t?(i(),null):!1===t?null:t(...e).pipe(We(1)).subscribe(()=>i())}function Ve(i){for(let t in i)if(i[t]===Ve)return t;throw Error("Could not find renamed property on target object.")}function fh(i,t){for(const e in t)t.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(i[e]=t[e])}function Ee(i){if("string"==typeof i)return i;if(Array.isArray(i))return"["+i.map(Ee).join(", ")+"]";if(null==i)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;const t=i.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function mh(i,t){return null==i||""===i?null===t?"":t:null==t||""===t?i:i+" "+t}const sA=Ve({__forward_ref__:Ve});function _e(i){return i.__forward_ref__=_e,i.toString=function(){return Ee(this())},i}function he(i){return hv(i)?i():i}function hv(i){return"function"==typeof i&&i.hasOwnProperty(sA)&&i.__forward_ref__===_e}class Nt extends Error{constructor(t,e){super(function gh(i,t){return`NG0${Math.abs(i)}${t?": "+t:""}`}(t,e)),this.code=t}}function oe(i){return"string"==typeof i?i:null==i?"":String(i)}function zt(i){return"function"==typeof i?i.name||i.toString():"object"==typeof i&&null!=i&&"function"==typeof i.type?i.type.name||i.type.toString():oe(i)}function Zl(i,t){const e=t?` in ${t}`:"";throw new Nt(-201,`No provider for ${zt(i)} found${e}`)}function si(i,t){null==i&&function $e(i,t,e,n){throw new Error(`ASSERTION ERROR: ${i}`+(null==n?"":` [Expected=> ${e} ${n} ${t} <=Actual]`))}(t,i,null,"!=")}function A(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function F(i){return{providers:i.providers||[],imports:i.imports||[]}}function _h(i){return pv(i,Xl)||pv(i,mv)}function pv(i,t){return i.hasOwnProperty(t)?i[t]:null}function fv(i){return i&&(i.hasOwnProperty(vh)||i.hasOwnProperty(hA))?i[vh]:null}const Xl=Ve({\u0275prov:Ve}),vh=Ve({\u0275inj:Ve}),mv=Ve({ngInjectableDef:Ve}),hA=Ve({ngInjectorDef:Ve});var ae=(()=>((ae=ae||{})[ae.Default=0]="Default",ae[ae.Host=1]="Host",ae[ae.Self=2]="Self",ae[ae.SkipSelf=4]="SkipSelf",ae[ae.Optional=8]="Optional",ae))();let yh;function ur(i){const t=yh;return yh=i,t}function gv(i,t,e){const n=_h(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&ae.Optional?null:void 0!==t?t:void Zl(Ee(i),"Injector")}function hr(i){return{toString:i}.toString()}var Bi=(()=>((Bi=Bi||{})[Bi.OnPush=0]="OnPush",Bi[Bi.Default=1]="Default",Bi))(),Vi=(()=>{return(i=Vi||(Vi={}))[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom",Vi;var i})();const fA="undefined"!=typeof globalThis&&globalThis,mA="undefined"!=typeof window&&window,gA="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Le=fA||"undefined"!=typeof global&&global||mA||gA,Ms={},He=[],Jl=Ve({\u0275cmp:Ve}),bh=Ve({\u0275dir:Ve}),Ch=Ve({\u0275pipe:Ve}),_v=Ve({\u0275mod:Ve}),Vn=Ve({\u0275fac:Ve}),ra=Ve({__NG_ELEMENT_ID__:Ve});let _A=0;function re(i){return hr(()=>{const e={},n={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Bi.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||He,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||Vi.Emulated,id:"c",styles:i.styles||He,_:null,setInput:null,schemas:i.schemas||null,tView:null},r=i.directives,s=i.features,o=i.pipes;return n.id+=_A++,n.inputs=Cv(i.inputs,e),n.outputs=Cv(i.outputs),s&&s.forEach(a=>a(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(vv):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(yv):null,n})}function vv(i){return Lt(i)||function pr(i){return i[bh]||null}(i)}function yv(i){return function Br(i){return i[Ch]||null}(i)}const bv={};function N(i){return hr(()=>{const t={type:i.type,bootstrap:i.bootstrap||He,declarations:i.declarations||He,imports:i.imports||He,exports:i.exports||He,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(bv[i.id]=i.type),t})}function Cv(i,t){if(null==i)return Ms;const e={};for(const n in i)if(i.hasOwnProperty(n)){let r=i[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=n,t&&(t[r]=s)}return e}const x=re;function Xt(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Lt(i){return i[Jl]||null}function wi(i,t){const e=i[_v]||null;if(!e&&!0===t)throw new Error(`Type ${Ee(i)} does not have '\u0275mod' property.`);return e}function cn(i){return Array.isArray(i)&&"object"==typeof i[1]}function ji(i){return Array.isArray(i)&&!0===i[1]}function Mh(i){return 0!=(8&i.flags)}function nc(i){return 2==(2&i.flags)}function rc(i){return 1==(1&i.flags)}function zi(i){return null!==i.template}function wA(i){return 0!=(512&i[2])}function zr(i,t){return i.hasOwnProperty(Vn)?i[Vn]:null}class SA{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ye(){return wv}function wv(i){return i.type.prototype.ngOnChanges&&(i.setInput=kA),EA}function EA(){const i=xv(this),t=null==i?void 0:i.current;if(t){const e=i.previous;if(e===Ms)i.previous=t;else for(let n in t)e[n]=t[n];i.current=null,this.ngOnChanges(t)}}function kA(i,t,e,n){const r=xv(i)||function TA(i,t){return i[Mv]=t}(i,{previous:Ms,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new SA(l&&l.currentValue,t,o===Ms),i[n]=t}Ye.ngInherit=!0;const Mv="__ngSimpleChanges__";function xv(i){return i[Mv]||null}const Sv="http://www.w3.org/2000/svg";let Eh;function it(i){return!!i.listen}const kv={createRenderer:(i,t)=>function kh(){return void 0!==Eh?Eh:"undefined"!=typeof document?document:void 0}()};function ht(i){for(;Array.isArray(i);)i=i[0];return i}function sc(i,t){return ht(t[i])}function Si(i,t){return ht(t[i.index])}function Th(i,t){return i.data[t]}function Ts(i,t){return i[t]}function ai(i,t){const e=t[i];return cn(e)?e:e[0]}function Tv(i){return 4==(4&i[2])}function Ah(i){return 128==(128&i[2])}function fr(i,t){return null==t?null:i[t]}function Av(i){i[18]=0}function Ih(i,t){i[5]+=t;let e=i,n=i[3];for(;null!==n&&(1===t&&1===e[5]||-1===t&&0===e[5]);)n[5]+=t,e=n,n=n[3]}const se={lFrame:Bv(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Iv(){return se.bindingsEnabled}function k(){return se.lFrame.lView}function ke(){return se.lFrame.tView}function Ui(i){return se.lFrame.contextLView=i,i[8]}function yt(){let i=Rv();for(;null!==i&&64===i.type;)i=i.parent;return i}function Rv(){return se.lFrame.currentTNode}function dn(i,t){const e=se.lFrame;e.currentTNode=i,e.isParent=t}function Rh(){return se.lFrame.isParent}function Oh(){se.lFrame.isParent=!1}function oc(){return se.isInCheckNoChangesMode}function ac(i){se.isInCheckNoChangesMode=i}function Ut(){const i=se.lFrame;let t=i.bindingRootIndex;return-1===t&&(t=i.bindingRootIndex=i.tView.bindingStartIndex),t}function As(){return se.lFrame.bindingIndex++}function jn(i){const t=se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+i,e}function UA(i,t){const e=se.lFrame;e.bindingIndex=e.bindingRootIndex=i,Ph(t)}function Ph(i){se.lFrame.currentDirectiveIndex=i}function Fh(i){const t=se.lFrame.currentDirectiveIndex;return-1===t?null:i[t]}function Fv(){return se.lFrame.currentQueryIndex}function Nh(i){se.lFrame.currentQueryIndex=i}function GA(i){const t=i[1];return 2===t.type?t.declTNode:1===t.type?i[6]:null}function Nv(i,t,e){if(e&ae.SkipSelf){let r=t,s=i;for(;!(r=r.parent,null!==r||e&ae.Host||(r=GA(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,i=s}const n=se.lFrame=Lv();return n.currentTNode=t,n.lView=i,!0}function lc(i){const t=Lv(),e=i[1];se.lFrame=t,t.currentTNode=e.firstChild,t.lView=i,t.tView=e,t.contextLView=i,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Lv(){const i=se.lFrame,t=null===i?null:i.child;return null===t?Bv(i):t}function Bv(i){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=t),t}function Vv(){const i=se.lFrame;return se.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}const Hv=Vv;function cc(){const i=Vv();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function $t(){return se.lFrame.selectedIndex}function mr(i){se.lFrame.selectedIndex=i}function nt(){const i=se.lFrame;return Th(i.tView,i.selectedIndex)}function gr(){se.lFrame.currentNamespace=Sv}function dc(i,t){for(let e=t.directiveStart,n=t.directiveEnd;e=n)break}else t[l]<0&&(i[18]+=65536),(a>11>16&&(3&i[2])===t){i[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ca{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function pc(i,t,e){const n=it(i);let r=0;for(;rt){o=s-1;break}}}for(;s>16}(i),n=t;for(;e>0;)n=n[15],e--;return n}let Hh=!0;function mc(i){const t=Hh;return Hh=i,t}let rI=0;function ua(i,t){const e=zh(i,t);if(-1!==e)return e;const n=t[1];n.firstCreatePass&&(i.injectorIndex=t.length,jh(n.data,i),jh(t,null),jh(n.blueprint,null));const r=gc(i,t),s=i.injectorIndex;if(Gv(r)){const o=Is(r),a=Rs(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function jh(i,t){i.push(0,0,0,0,0,0,0,0,t)}function zh(i,t){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===t[i.injectorIndex+8]?-1:i.injectorIndex}function gc(i,t){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;let e=0,n=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(n=2===o?s.declTNode:1===o?r[6]:null,null===n)return-1;if(e++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return-1}function _c(i,t,e){!function sI(i,t,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(ra)&&(n=e[ra]),null==n&&(n=e[ra]=rI++);const r=255&n;t.data[i+(r>>5)]|=1<=0?255&t:aI:t}(e);if("function"==typeof s){if(!Nv(t,i,n))return n&ae.Host?Yv(r,e,n):Qv(t,e,n,r);try{const o=s(n);if(null!=o||n&ae.Optional)return o;Zl(e)}finally{Hv()}}else if("number"==typeof s){let o=null,a=zh(i,t),l=-1,c=n&ae.Host?t[16][6]:null;for((-1===a||n&ae.SkipSelf)&&(l=-1===a?gc(i,t):t[a+8],-1!==l&&Jv(n,!1)?(o=t[1],a=Is(l),t=Rs(l,t)):a=-1);-1!==a;){const d=t[1];if(Xv(s,a,d.data)){const u=lI(a,t,e,o,n,c);if(u!==Zv)return u}l=t[a+8],-1!==l&&Jv(n,t[1].data[a+8]===c)&&Xv(s,a,t)?(o=d,a=Is(l),t=Rs(l,t)):a=-1}}}return Qv(t,e,n,r)}const Zv={};function aI(){return new Os(yt(),k())}function lI(i,t,e,n,r,s){const o=t[1],a=o.data[i+8],d=vc(a,o,e,null==n?nc(a)&&Hh:n!=o&&0!=(3&a.type),r&ae.Host&&s===a);return null!==d?ha(t,o,d,a):Zv}function vc(i,t,e,n,r){const s=i.providerIndexes,o=t.data,a=1048575&s,l=i.directiveStart,d=s>>20,h=r?a+d:i.directiveEnd;for(let f=n?a:a+d;f=l&&_.type===e)return f}if(r){const f=o[l];if(f&&zi(f)&&f.type===e)return l}return null}function ha(i,t,e,n){let r=i[e];const s=t.data;if(function JA(i){return i instanceof ca}(r)){const o=r;o.resolving&&function oA(i,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${i}`:"";throw new Nt(-200,`Circular dependency in DI detected for ${i}${e}`)}(zt(s[e]));const a=mc(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ur(o.injectImpl):null;Nv(i,n,ae.Default);try{r=i[e]=o.factory(void 0,s,i,n),t.firstCreatePass&&e>=n.directiveStart&&function ZA(i,t,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(n){const o=wv(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(i,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-i,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(i,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i,s))}(e,s[e],t)}finally{null!==l&&ur(l),mc(a),o.resolving=!1,Hv()}}return r}function Xv(i,t,e){return!!(e[t+(i>>5)]&1<{const t=i.prototype.constructor,e=t[Vn]||Uh(t),n=Object.prototype;let r=Object.getPrototypeOf(i.prototype).constructor;for(;r&&r!==n;){const s=r[Vn]||Uh(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Uh(i){return hv(i)?()=>{const t=Uh(he(i));return t&&t()}:zr(i)}function At(i){return function oI(i,t){if("class"===t)return i.classes;if("style"===t)return i.styles;const e=i.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function $h(i){return function(...e){if(i){const n=i(...e);for(const r in n)this[r]=n[r]}}}(t);function r(...s){if(this instanceof r)return n.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,d){const u=l.hasOwnProperty(Fs)?l[Fs]:Object.defineProperty(l,Fs,{value:[]})[Fs];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=i,r.annotationCls=r,r})}class S{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const uI=new S("AnalyzeForEntryComponents");function Ei(i,t){void 0===t&&(t=i);for(let e=0;eArray.isArray(e)?un(e,t):t(e))}function ty(i,t,e){t>=i.length?i.push(e):i.splice(t,0,e)}function yc(i,t){return t>=i.length-1?i.pop():i.splice(t,1)[0]}function ma(i,t){const e=[];for(let n=0;n=0?i[1|n]=e:(n=~n,function fI(i,t,e,n){let r=i.length;if(r==t)i.push(e,n);else if(1===r)i.push(n,i[0]),i[0]=e;else{for(r--,i.push(i[r-1],i[r]);r>t;)i[r]=i[r-2],r--;i[t]=e,i[t+1]=n}}(i,n,t,e)),n}function Wh(i,t){const e=Bs(i,t);if(e>=0)return i[1|e]}function Bs(i,t){return function ry(i,t,e){let n=0,r=i.length>>e;for(;r!==n;){const s=n+(r-n>>1),o=i[s<t?r=s:n=s+1}return~(r<({token:i})),-1),Ct=va(Ls("Optional"),8),ci=va(Ls("SkipSelf"),4);let Mc;function Hs(i){var t;return(null===(t=function Zh(){if(void 0===Mc&&(Mc=null,Le.trustedTypes))try{Mc=Le.trustedTypes.createPolicy("angular",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch(i){}return Mc}())||void 0===t?void 0:t.createHTML(i))||i}class Ur{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class BI extends Ur{getTypeName(){return"HTML"}}class VI extends Ur{getTypeName(){return"Style"}}class HI extends Ur{getTypeName(){return"Script"}}class jI extends Ur{getTypeName(){return"URL"}}class zI extends Ur{getTypeName(){return"ResourceURL"}}function di(i){return i instanceof Ur?i.changingThisBreaksApplicationSecurity:i}function hn(i,t){const e=gy(i);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function gy(i){return i instanceof Ur&&i.getTypeName()||null}class YI{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Hs(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class QI{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Hs(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Hs(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Ca(t.trim())).join(", ")),this.buf.push(" ",o,'="',wy(l),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Jh.hasOwnProperty(e)&&!yy.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(wy(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const tR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iR=/([^\#-~ |!])/g;function wy(i){return i.replace(/&/g,"&").replace(tR,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(iR,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function My(i,t){let e=null;try{Sc=Sc||function _y(i){const t=new QI(i);return function KI(){try{return!!(new window.DOMParser).parseFromString(Hs(""),"text/html")}catch(i){return!1}}()?new YI(t):t}(i);let n=t?String(t):"";e=Sc.getInertBodyElement(n);let r=5,s=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=e.innerHTML,e=Sc.getInertBodyElement(n)}while(n!==s);return Hs((new eR).sanitizeChildren(ip(e)||e))}finally{if(e){const n=ip(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ip(i){return"content"in i&&function nR(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var Oe=(()=>((Oe=Oe||{})[Oe.NONE=0]="NONE",Oe[Oe.HTML=1]="HTML",Oe[Oe.STYLE=2]="STYLE",Oe[Oe.SCRIPT=3]="SCRIPT",Oe[Oe.URL=4]="URL",Oe[Oe.RESOURCE_URL=5]="RESOURCE_URL",Oe))();function It(i){const t=function wa(){const i=k();return i&&i[12]}();return t?t.sanitize(Oe.URL,i)||"":hn(i,"URL")?di(i):Ca(oe(i))}const Ey="__ngContext__";function Vt(i,t){i[Ey]=t}function rp(i){const t=function Ma(i){return i[Ey]||null}(i);return t?Array.isArray(t)?t:t.lView:null}function op(i){return i.ngOriginalError}function bR(i,...t){i.error(...t)}class zn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=function yR(i){return i&&i.ngErrorLogger||bR}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&op(t);for(;e&&op(e);)e=op(e);return e||null}}const Ry=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Le))();function fn(i){return i instanceof Function?i():i}var ui=(()=>((ui=ui||{})[ui.Important=1]="Important",ui[ui.DashCase=2]="DashCase",ui))();function lp(i,t){return undefined(i,t)}function xa(i){const t=i[3];return ji(t)?t[3]:t}function cp(i){return Ly(i[13])}function dp(i){return Ly(i[4])}function Ly(i){for(;null!==i&&!ji(i);)i=i[4];return i}function zs(i,t,e,n,r){if(null!=n){let s,o=!1;ji(n)?s=n:cn(n)&&(o=!0,n=n[0]);const a=ht(n);0===i&&null!==e?null==r?Uy(t,e,a):$r(t,e,a,r||null,!0):1===i&&null!==e?$r(t,e,a,r||null,!0):2===i?function Ky(i,t,e){const n=Ec(i,t);n&&function UR(i,t,e,n){it(i)?i.removeChild(t,e,n):t.removeChild(e)}(i,n,t,e)}(t,a,o):3===i&&t.destroyNode(a),null!=s&&function WR(i,t,e,n,r){const s=e[7];s!==ht(e)&&zs(t,i,n,s,r);for(let a=10;a0&&(i[e-1][4]=n[4]);const s=yc(i,10+t);!function FR(i,t){Sa(i,t,t[11],2,null,null),t[0]=null,t[6]=null}(n[1],n);const o=s[19];null!==o&&o.detachView(s[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}function Hy(i,t){if(!(256&t[2])){const e=t[11];it(e)&&e.destroyNode&&Sa(i,t,e,3,null,null),function BR(i){let t=i[13];if(!t)return fp(i[1],i);for(;t;){let e=null;if(cn(t))e=t[13];else{const n=t[10];n&&(e=n)}if(!e){for(;t&&!t[4]&&t!==i;)cn(t)&&fp(t[1],t),t=t[3];null===t&&(t=i),cn(t)&&fp(t[1],t),e=t&&t[4]}t=e}}(t)}}function fp(i,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function zR(i,t){let e;if(null!=i&&null!=(e=i.destroyHooks))for(let n=0;n=0?n[r=c]():n[r=-c].unsubscribe(),s+=2}else{const o=n[r=e[s+1]];e[s].call(o)}if(null!==n){for(let s=r+1;ss?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==Jy(f,c,0)||2&n&&c!==h){if($i(n))return!1;o=!0}}}}else{if(!o&&!$i(n)&&!$i(l))return!1;if(o&&$i(l))continue;o=!1,n=l|1&n}}return $i(n)||o}function $i(i){return 0==(1&i)}function ZR(i,t,e,n){if(null===t)return-1;let r=0;if(n||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""!==r&&!$i(o)&&(t+=nb(s,r),r=""),n=o,s=s||!$i(n);e++}return""!==r&&(t+=nb(s,r)),t}const le={};function C(i){rb(ke(),k(),$t()+i,oc())}function rb(i,t,e,n){if(!n)if(3==(3&t[2])){const s=i.preOrderCheckHooks;null!==s&&uc(t,s,e)}else{const s=i.preOrderHooks;null!==s&&hc(t,s,0,e)}mr(e)}function Ac(i,t){return i<<17|t<<2}function Gi(i){return i>>17&32767}function yp(i){return 2|i}function Un(i){return(131068&i)>>2}function bp(i,t){return-131069&i|t<<2}function Cp(i){return 1|i}function mb(i,t){const e=i.contentQueries;if(null!==e)for(let n=0;n20&&rb(i,t,20,oc()),e(n,r)}finally{mr(s)}}function _b(i,t,e){if(Mh(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const e=i[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(n,r,o)}}function xb(i,t){null!==i.hostBindings&&i.hostBindings(1,t)}function Sb(i,t){t.flags|=2,(i.components||(i.components=[])).push(t.index)}function R1(i,t,e){if(e){if(t.exportAs)for(let n=0;n0&&Fp(e)}}function Fp(i){for(let n=cp(i);null!==n;n=dp(n))for(let r=10;r0&&Fp(s)}const e=i[1].components;if(null!==e)for(let n=0;n0&&Fp(r)}}function V1(i,t){const e=ai(t,i),n=e[1];(function H1(i,t){for(let e=t.length;ePromise.resolve(null))();function Ib(i){return i[7]||(i[7]=[])}function Rb(i){return i.cleanup||(i.cleanup=[])}function Ob(i,t,e){return(null===i||zi(i))&&(e=function OA(i){for(;Array.isArray(i);){if("object"==typeof i[1])return i;i=i[0]}return null}(e[t.index])),e[11]}function Pb(i,t){const e=i[9],n=e?e.get(zn,null):null;n&&n.handleError(t)}function Fb(i,t,e,n,r){for(let s=0;sthis.processProvider(a,t,e)),un([t],a=>this.processInjectorType(a,[],s)),this.records.set(Hp,Ws(void 0,this));const o=this.records.get(jp);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:Ee(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ga,n=ae.Default){this.assertNotDestroyed();const r=ay(this),s=ur(void 0);try{if(!(n&ae.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function iO(i){return"function"==typeof i||"object"==typeof i&&i instanceof S}(t)&&_h(t);a=l&&this.injectableDefInScope(l)?Ws(Up(t),Ta):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(n&ae.Self?Lb():this.parent).get(t,e=n&ae.Optional&&e===ga?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Cc]=o[Cc]||[]).unshift(Ee(t)),r)throw o;return function SI(i,t,e,n){const r=i[Cc];throw t[oy]&&r.unshift(t[oy]),i.message=function EI(i,t,e,n=null){i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;let r=Ee(t);if(Array.isArray(t))r=t.map(Ee).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Ee(a)))}r=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${i.replace(CI,"\n ")}`}("\n"+i.message,r,e,n),i.ngTokenPath=r,i[Cc]=null,i}(o,t,"R3InjectorError",this.source)}throw o}finally{ur(s),ay(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((n,r)=>t.push(Ee(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=he(t)))return!1;let r=fv(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==n.indexOf(o);if(void 0!==s&&(r=fv(s)),null==r)return!1;if(null!=r.imports&&!a){let d;n.push(o);try{un(r.imports,u=>{this.processInjectorType(u,e,n)&&(void 0===d&&(d=[]),d.push(u))})}finally{}if(void 0!==d)for(let u=0;uthis.processProvider(_,h,f||He))}}this.injectorDefTypes.add(o);const l=zr(o)||(()=>new o);this.records.set(o,Ws(l,Ta));const c=r.providers;if(null!=c&&!a){const d=t;un(c,u=>this.processProvider(u,d,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=qs(t=he(t))?t:he(t&&t.provide);const s=function K1(i,t,e){return jb(i)?Ws(void 0,i.useValue):Ws(Hb(i),Ta)}(t);if(qs(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Ws(void 0,Ta,!0),o.factory=()=>Qh(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===Ta&&(e.value=q1,e.value=e.factory()),"object"==typeof e.value&&e.value&&function tO(i){return null!==i&&"object"==typeof i&&"function"==typeof i.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=he(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Up(i){const t=_h(i),e=null!==t?t.factory:zr(i);if(null!==e)return e;if(i instanceof S)throw new Error(`Token ${Ee(i)} is missing a \u0275prov definition.`);if(i instanceof Function)return function Q1(i){const t=i.length;if(t>0){const n=ma(t,"?");throw new Error(`Can't resolve all parameters for ${Ee(i)}: (${n.join(", ")}).`)}const e=function dA(i){const t=i&&(i[Xl]||i[mv]);if(t){const e=function uA(i){if(i.hasOwnProperty("name"))return i.name;const t=(""+i).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(i);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(i);return null!==e?()=>e.factory(i):()=>new i}(i);throw new Error("unreachable")}function Hb(i,t,e){let n;if(qs(i)){const r=he(i);return zr(r)||Up(r)}if(jb(i))n=()=>he(i.useValue);else if(function X1(i){return!(!i||!i.useFactory)}(i))n=()=>i.useFactory(...Qh(i.deps||[]));else if(function Z1(i){return!(!i||!i.useExisting)}(i))n=()=>D(he(i.useExisting));else{const r=he(i&&(i.useClass||i.provide));if(!function eO(i){return!!i.deps}(i))return zr(r)||Up(r);n=()=>new r(...Qh(i.deps))}return n}function Ws(i,t,e=!1){return{factory:i,value:t,multi:e?[]:void 0}}function jb(i){return null!==i&&"object"==typeof i&&wI in i}function qs(i){return"function"==typeof i}let Ge=(()=>{class i{static create(e,n){var r;if(Array.isArray(e))return Bb({name:""},n,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return Bb({name:s},e.parent,e.providers,s)}}}return i.THROW_IF_NOT_FOUND=ga,i.NULL=new Nb,i.\u0275prov=A({token:i,providedIn:"any",factory:()=>D(Hp)}),i.__NG_ELEMENT_ID__=-1,i})();function dO(i,t){dc(rp(i)[1],yt())}function I(i){let t=function Jb(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),e=!0;const n=[i];for(;t;){let r;if(zi(i))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(e){n.push(r);const o=i;o.inputs=Wp(i.inputs),o.declaredInputs=Wp(i.declaredInputs),o.outputs=Wp(i.outputs);const a=r.hostBindings;a&&fO(i,a);const l=r.viewQuery,c=r.contentQueries;if(l&&hO(i,l),c&&pO(i,c),fh(i.inputs,r.inputs),fh(i.declaredInputs,r.declaredInputs),fh(i.outputs,r.outputs),zi(r)&&r.data.animation){const d=i.data;d.animation=(d.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o=0;n--){const r=i[n];r.hostVars=t+=r.hostVars,r.hostAttrs=fc(r.hostAttrs,e=fc(e,r.hostAttrs))}}(n)}function Wp(i){return i===Ms?{}:i===He?[]:i}function hO(i,t){const e=i.viewQuery;i.viewQuery=e?(n,r)=>{t(n,r),e(n,r)}:t}function pO(i,t){const e=i.contentQueries;i.contentQueries=e?(n,r,s)=>{t(n,r,s),e(n,r,s)}:t}function fO(i,t){const e=i.hostBindings;i.hostBindings=e?(n,r)=>{t(n,r),e(n,r)}:t}let Nc=null;function Ys(){if(!Nc){const i=Le.Symbol;if(i&&i.iterator)Nc=i.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ht(P[n.index])):n.index;if(it(e)){let P=null;if(!a&&l&&(P=function $O(i,t,e,n){const r=i.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(i,t,r,n.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=s,P.__ngLastListenerFn__=s,f=!1;else{s=ef(n,t,u,s,!1);const ue=e.listen(M,r,s);h.push(s,ue),d&&d.push(r,T,w,w+1)}}else s=ef(n,t,u,s,!0),M.addEventListener(r,s,o),h.push(s),d&&d.push(r,T,w,o)}else s=ef(n,t,u,s,!1);const _=n.outputs;let v;if(f&&null!==_&&(v=_[r])){const b=v.length;if(b)for(let M=0;M0;)t=t[15],i--;return t}(i,se.lFrame.contextLView))[8]}(i)}function GO(i,t){let e=null;const n=function XR(i){const t=i.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(i);for(let r=0;r=0}const Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function AC(i){return i.substring(Dt.key,Dt.keyEnd)}function IC(i,t){const e=Dt.textEnd;return e===t?-1:(t=Dt.keyEnd=function XO(i,t,e){for(;t32;)t++;return t}(i,Dt.key=t,e),ao(i,t,e))}function ao(i,t,e){for(;t=0;e=IC(t,e))li(i,AC(t),!0)}function Yi(i,t,e,n){const r=k(),s=ke(),o=jn(2);s.firstUpdatePass&&LC(s,i,o,n),t!==le&&Ht(r,o,t)&&VC(s,s.data[$t()],r,r[11],i,r[o+1]=function cP(i,t){return null==i||("string"==typeof t?i+=t:"object"==typeof i&&(i=Ee(di(i)))),i}(t,e),n,o)}function NC(i,t){return t>=i.expandoStartIndex}function LC(i,t,e,n){const r=i.data;if(null===r[e+1]){const s=r[$t()],o=NC(i,e);jC(s,n)&&null===t&&!o&&(t=!1),t=function nP(i,t,e,n){const r=Fh(i);let s=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(e=Oa(e=nf(null,i,t,e,n),t.attrs,n),s=null);else{const o=t.directiveStylingLast;if(-1===o||i[o]!==r)if(e=nf(r,i,t,e,n),null===s){let l=function rP(i,t,e){const n=e?t.classBindings:t.styleBindings;if(0!==Un(n))return i[Gi(n)]}(i,t,n);void 0!==l&&Array.isArray(l)&&(l=nf(null,i,t,l[1],n),l=Oa(l,t.attrs,n),function sP(i,t,e,n){i[Gi(e?t.classBindings:t.styleBindings)]=n}(i,t,n,l))}else s=function oP(i,t,e){let n;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(c=!0)}else d=e;if(r)if(0!==l){const h=Gi(i[a+1]);i[n+1]=Ac(h,a),0!==h&&(i[h+1]=bp(i[h+1],n)),i[a+1]=function o1(i,t){return 131071&i|t<<17}(i[a+1],n)}else i[n+1]=Ac(a,0),0!==a&&(i[a+1]=bp(i[a+1],n)),a=n;else i[n+1]=Ac(l,0),0===a?a=n:i[l+1]=bp(i[l+1],n),l=n;c&&(i[n+1]=yp(i[n+1])),TC(i,d,n,!0),TC(i,d,n,!1),function qO(i,t,e,n,r){const s=r?i.residualClasses:i.residualStyles;null!=s&&"string"==typeof t&&Bs(s,t)>=0&&(e[n+1]=Cp(e[n+1]))}(t,d,i,n,s),o=Ac(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,n)}}function nf(i,t,e,n,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=i[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=e[r+1];h===le&&(h=u?He:void 0);let f=u?Wh(h,n):d===n?h:void 0;if(c&&!Hc(f)&&(f=Wh(l,n)),Hc(f)&&(a=f,o))return a;const _=i[r+1];r=o?Gi(_):Un(_)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Wh(l,n))}return a}function Hc(i){return void 0!==i}function jC(i,t){return 0!=(i.flags&(t?16:32))}function y(i,t=""){const e=k(),n=ke(),r=i+20,s=n.firstCreatePass?Us(n,r,1,t,null):n.data[r],o=e[r]=function up(i,t){return it(i)?i.createText(t):i.createTextNode(t)}(e[11],t);kc(n,e,o,s),dn(s,!1)}function Pe(i){return Ze("",i,""),Pe}function Ze(i,t,e){const n=k(),r=Ks(n,i,t,e);return r!==le&&$n(n,$t(),r),Ze}function lo(i,t,e,n,r){const s=k(),o=Zs(s,i,t,e,n,r);return o!==le&&$n(s,$t(),o),lo}function QC(i,t,e){!function Qi(i,t,e,n){const r=ke(),s=jn(2);r.firstUpdatePass&&LC(r,null,s,n);const o=k();if(e!==le&&Ht(o,s,e)){const a=r.data[$t()];if(jC(a,n)&&!NC(r,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=mh(l,e||"")),Xp(r,a,o,e,n)}else!function lP(i,t,e,n,r,s,o,a){r===le&&(r=He);let l=0,c=0,d=0((B=B||{})[B.LocaleId=0]="LocaleId",B[B.DayPeriodsFormat=1]="DayPeriodsFormat",B[B.DayPeriodsStandalone=2]="DayPeriodsStandalone",B[B.DaysFormat=3]="DaysFormat",B[B.DaysStandalone=4]="DaysStandalone",B[B.MonthsFormat=5]="MonthsFormat",B[B.MonthsStandalone=6]="MonthsStandalone",B[B.Eras=7]="Eras",B[B.FirstDayOfWeek=8]="FirstDayOfWeek",B[B.WeekendRange=9]="WeekendRange",B[B.DateFormat=10]="DateFormat",B[B.TimeFormat=11]="TimeFormat",B[B.DateTimeFormat=12]="DateTimeFormat",B[B.NumberSymbols=13]="NumberSymbols",B[B.NumberFormats=14]="NumberFormats",B[B.CurrencyCode=15]="CurrencyCode",B[B.CurrencySymbol=16]="CurrencySymbol",B[B.CurrencyName=17]="CurrencyName",B[B.Currencies=18]="Currencies",B[B.Directionality=19]="Directionality",B[B.PluralCase=20]="PluralCase",B[B.ExtraData=21]="ExtraData",B))();const zc="en-US";let l0=zc;function af(i,t,e,n,r){if(i=he(i),Array.isArray(i))for(let s=0;s>20;if(qs(i)||!i.multi){const f=new ca(l,r,p),_=cf(a,t,r?d:d+h,u);-1===_?(_c(ua(c,o),s,a),lf(s,i,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[_]=f,o[_]=f)}else{const f=cf(a,t,d+h,u),_=cf(a,t,d,d+h),v=f>=0&&e[f],b=_>=0&&e[_];if(r&&!b||!r&&!v){_c(ua(c,o),s,a);const M=function EF(i,t,e,n,r){const s=new ca(i,e,p);return s.multi=[],s.index=t,s.componentProviders=0,R0(s,r,n&&!e),s}(r?SF:xF,e.length,r,n,l);!r&&b&&(e[_].providerFactory=M),lf(s,i,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(M),o.push(M)}else lf(s,i,f>-1?f:_,R0(e[r?_:f],l,!r&&n));!r&&n&&b&&e[_].componentProviders++}}}function lf(i,t,e,n){const r=qs(t),s=function J1(i){return!!i.useClass}(t);if(r||s){const l=(s?he(t.useClass):t).prototype.ngOnDestroy;if(l){const c=i.destroyHooks||(i.destroyHooks=[]);if(!r&&t.multi){const d=c.indexOf(e);-1===d?c.push(e,[n,l]):c[d+1].push(n,l)}else c.push(e,l)}}}function R0(i,t,e){return e&&i.componentProviders++,i.multi.push(t)-1}function cf(i,t,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function MF(i,t,e){const n=ke();if(n.firstCreatePass){const r=zi(i);af(e,n.data,n.blueprint,r,!0),af(t,n.data,n.blueprint,r,!1)}}(n,r?r(i):i,t)}}class O0{}class AF{resolveComponentFactory(t){throw function TF(i){const t=Error(`No component factory found for ${Ee(i)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=i,t}(t)}}let br=(()=>{class i{}return i.NULL=new AF,i})();function IF(){return ho(yt(),k())}function ho(i,t){return new W(Si(i,t))}let W=(()=>{class i{constructor(e){this.nativeElement=e}}return i.__NG_ELEMENT_ID__=IF,i})();function RF(i){return i instanceof W?i.nativeElement:i}class Ba{}let Cn=(()=>{class i{}return i.__NG_ELEMENT_ID__=()=>function PF(){const i=k(),e=ai(yt().index,i);return function OF(i){return i[11]}(cn(e)?e:i)}(),i})(),FF=(()=>{class i{}return i.\u0275prov=A({token:i,providedIn:"root",factory:()=>null}),i})();class Cr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const NF=new Cr("13.1.2"),uf={};function qc(i,t,e,n,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&n.push(ht(s)),ji(s))for(let a=10;a-1&&(pp(t,n),yc(e,n))}this._attachedToViewContainer=!1}Hy(this._lView[1],this._lView)}onDestroy(t){Cb(this._lView[1],this._lView,null,t)}markForCheck(){Np(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bp(this._lView[1],this._lView,this.context)}checkNoChanges(){!function z1(i,t,e){ac(!0);try{Bp(i,t,e)}finally{ac(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function LR(i,t){Sa(i,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class LF extends Va{constructor(t){super(t),this._view=t}detectChanges(){Ab(this._view)}checkNoChanges(){!function U1(i){ac(!0);try{Ab(i)}finally{ac(!1)}}(this._view)}get context(){return null}}class F0 extends br{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Lt(t);return new hf(e,this.ngModule)}}function N0(i){const t=[];for(let e in i)i.hasOwnProperty(e)&&t.push({propName:i[e],templateName:e});return t}const VF=new S("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ry});class hf extends O0{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function r1(i){return i.map(n1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return N0(this.componentDef.inputs)}get outputs(){return N0(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function HF(i,t){return{get:(e,n,r)=>{const s=i.get(e,uf,r);return s!==uf||n===uf?s:t.get(e,n,r)}}}(t,r.injector):t,o=s.get(Ba,kv),a=s.get(FF,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function bb(i,t,e){if(it(i))return i.selectRootElement(t,e===Vi.ShadowDom);let n="string"==typeof t?i.querySelector(t):t;return n.textContent="",n}(l,n,this.componentDef.encapsulation):hp(o.createRenderer(null,this.componentDef),c,function BF(i){const t=i.toLowerCase();return"svg"===t?Sv:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h=function Xb(i,t){return{components:[],scheduler:i||Ry,clean:$1,playerHandler:t||null,flags:0}}(),f=Oc(0,null,null,1,0,null,null,null,null,null),_=Ea(null,f,h,u,null,null,o,l,a,s);let v,b;lc(_);try{const M=function Kb(i,t,e,n,r,s){const o=e[1];e[20]=i;const l=Us(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Fc(l,c,!0),null!==i&&(pc(r,i,c),null!==l.classes&&vp(r,i,l.classes),null!==l.styles&&Xy(r,i,l.styles)));const d=n.createRenderer(i,t),u=Ea(e,vb(t),null,t.onPush?64:16,e[20],l,n,d,s||null,null);return o.firstCreatePass&&(_c(ua(l,e),o,t.type),Sb(o,l),Eb(l,e.length,1)),Pc(e,u),e[20]=u}(d,this.componentDef,_,o,l);if(d)if(n)pc(l,d,["ng-version",NF.full]);else{const{attrs:w,classes:T}=function s1(i){const t=[],e=[];let n=1,r=2;for(;n0&&vp(l,d,T.join(" "))}if(b=Th(f,20),void 0!==e){const w=b.projection=[];for(let T=0;Tl(o,t)),t.contentQueries){const l=yt();t.contentQueries(1,o,l.directiveStart)}const a=yt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(mr(a.index),Mb(e[1],a,0,a.directiveStart,a.directiveEnd,t),xb(t,o)),o}(M,this.componentDef,_,h,[dO]),ka(f,_,null)}finally{cc()}return new zF(this.componentType,v,ho(b,_),_,b)}}class zF extends class kF{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new LF(r),this.componentType=t}get injector(){return new Os(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Gn{}class L0{}const po=new Map;class H0 extends Gn{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new F0(this);const n=wi(t);this._bootstrapComponents=fn(n.bootstrap),this._r3Injector=Vb(t,e,[{provide:Gn,useValue:this},{provide:br,useValue:this.componentFactoryResolver}],Ee(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ge.THROW_IF_NOT_FOUND,n=ae.Default){return t===Ge||t===Gn||t===Hp?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class pf extends L0{constructor(t){super(),this.moduleType=t,null!==wi(t)&&function $F(i){const t=new Set;!function e(n){const r=wi(n,!0),s=r.id;null!==s&&(function B0(i,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${i} - ${Ee(t)} vs ${Ee(t.name)}`)}(s,po.get(s),n),po.set(s,n));const o=fn(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(i)}(t)}create(t){return new H0(this.moduleType,t)}}function Yr(i,t,e,n){return function z0(i,t,e,n,r,s){const o=t+e;return Ht(i,o,r)?gn(i,o+1,s?n.call(s,r):n(r)):Ha(i,o+1)}(k(),Ut(),i,t,e,n)}function Ha(i,t){const e=i[t];return e===le?void 0:e}function U0(i,t,e,n,r,s,o){const a=t+e;return Gr(i,a,r,s)?gn(i,a+2,o?n.call(o,r,s):n(r,s)):Ha(i,a+2)}function Dn(i,t){const e=ke();let n;const r=i+20;e.firstCreatePass?(n=function JF(i,t){if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];if(i===n.name)return n}}(t,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const s=n.factory||(n.factory=zr(n.type)),o=ur(p);try{const a=mc(!1),l=s();return mc(a),function DO(i,t,e,n){e>=i.data.length&&(i.data[e]=null,i.blueprint[e]=null),t[e]=n}(e,k(),r,l),l}finally{ur(o)}}function wn(i,t,e,n){const r=i+20,s=k(),o=Ts(s,r);return function ja(i,t){return i[1].data[t].pure}(s,r)?U0(s,Ut(),t,o.transform,e,n,o):o.transform(e,n)}function ff(i){return t=>{setTimeout(i,void 0,t)}}const q=class rN extends O{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const u=t;a=null===(r=u.next)||void 0===r?void 0:r.bind(u),l=null===(s=u.error)||void 0===s?void 0:s.bind(u),c=null===(o=u.complete)||void 0===o?void 0:o.bind(u)}this.__isAsync&&(l=ff(l),a&&(a=ff(a)),c&&(c=ff(c)));const d=super.subscribe({next:a,error:l,complete:c});return t instanceof Te&&t.add(d),d}};function sN(){return this._results[Ys()]()}class za{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ys(),n=za.prototype;n[e]||(n[e]=sN)}get changes(){return this._changes||(this._changes=new q)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const r=Ei(t);(this._changesDetected=!function hI(i,t,e){if(i.length!==t.length)return!1;for(let n=0;n{class i{}return i.__NG_ELEMENT_ID__=lN,i})();const oN=at,aN=class extends oN{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ea(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),ka(e,n,t),new Va(n)}};function lN(){return Yc(yt(),k())}function Yc(i,t){return 4&i.type?new aN(t,i,ho(i,t)):null}let lt=(()=>{class i{}return i.__NG_ELEMENT_ID__=cN,i})();function cN(){return Q0(yt(),k())}const dN=lt,q0=class extends dN{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return ho(this._hostTNode,this._hostLView)}get injector(){return new Os(this._hostTNode,this._hostLView)}get parentInjector(){const t=gc(this._hostTNode,this._hostLView);if(Gv(t)){const e=Rs(t,this._hostLView),n=Is(t);return new Os(e[1].data[n+8],e)}return new Os(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Y0(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const o=t&&!function fa(i){return"function"==typeof i}(t);let a;if(o)a=e;else{const u=e||{};a=u.index,n=u.injector,r=u.projectableNodes,s=u.ngModuleRef}const l=o?t:new hf(Lt(t)),c=n||this.parentInjector;if(!s&&null==l.ngModule&&c){const u=c.get(Gn,null);u&&(s=u)}const d=l.create(c,r,void 0,s);return this.insert(d.hostView,a),d}insert(t,e){const n=t._lView,r=n[1];if(function FA(i){return ji(i[3])}(n)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const u=n[3],h=new q0(u,u[6],u[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function VR(i,t,e,n){const r=10+n,s=e.length;n>0&&(e[r-1][4]=t),n0)n.push(o[a/2]);else{const c=s[a+1],d=t[-l];for(let u=10;u{class i{constructor(e){this.appInits=e,this.resolve=Zc,this.reject=Zc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return i.\u0275fac=function(e){return new(e||i)(D(Xc,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const $a=new S("AppId"),LN={provide:$a,useFactory:function NN(){return`${Sf()}${Sf()}${Sf()}`},deps:[]};function Sf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _D=new S("Platform Initializer"),Ga=new S("Platform ID"),vD=new S("appBootstrapListener");let yD=(()=>{class i{log(e){console.log(e)}warn(e){console.warn(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Wn=new S("LocaleId"),bD=new S("DefaultCurrencyCode");class BN{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let Jc=(()=>{class i{compileModuleSync(e){return new pf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=fn(wi(e).declarations).reduce((o,a)=>{const l=Lt(a);return l&&o.push(new hf(l)),o},[]);return new BN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const HN=(()=>Promise.resolve(0))();function Ef(i){"undefined"==typeof Zone?HN.then(()=>{i&&i.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",i)}class te{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new q(!1),this.onMicrotaskEmpty=new q(!1),this.onStable=new q(!1),this.onError=new q(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function jN(){let i=Le.requestAnimationFrame,t=Le.cancelAnimationFrame;if("undefined"!=typeof Zone&&i&&t){const e=i[Zone.__symbol__("OriginalDelegate")];e&&(i=e);const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function $N(i){const t=()=>{!function UN(i){i.isCheckStableRunning||-1!==i.lastRequestAnimationFrameId||(i.lastRequestAnimationFrameId=i.nativeRequestAnimationFrame.call(Le,()=>{i.fakeTopEventTask||(i.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{i.lastRequestAnimationFrameId=-1,Tf(i),i.isCheckStableRunning=!0,kf(i),i.isCheckStableRunning=!1},void 0,()=>{},()=>{})),i.fakeTopEventTask.invoke()}),Tf(i))}(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,o,a)=>{try{return CD(i),e.invokeTask(r,s,o,a)}finally{(i.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||i.shouldCoalesceRunChangeDetection)&&t(),DD(i)}},onInvoke:(e,n,r,s,o,a,l)=>{try{return CD(i),e.invoke(r,s,o,a,l)}finally{i.shouldCoalesceRunChangeDetection&&t(),DD(i)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(i._hasPendingMicrotasks=s.microTask,Tf(i),kf(i)):"macroTask"==s.change&&(i.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),i.runOutsideAngular(()=>i.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!te.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(te.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,zN,Zc,Zc);try{return s.runTask(o,e,n)}finally{s.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const zN={};function kf(i){if(0==i._nesting&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function Tf(i){i.hasPendingMicrotasks=!!(i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&-1!==i.lastRequestAnimationFrameId)}function CD(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function DD(i){i._nesting--,kf(i)}class GN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new q,this.onMicrotaskEmpty=new q,this.onStable=new q,this.onError=new q}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Af=(()=>{class i{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{te.assertNotInAngularZone(),Ef(()=>{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())Ef(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,n,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,n,r){return[]}}return i.\u0275fac=function(e){return new(e||i)(D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),wD=(()=>{class i{constructor(){this._applications=new Map,If.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return If.findTestabilityInTree(this,e,n)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class WN{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Ki,If=new WN;const MD=new S("AllowMultipleToken");class xD{constructor(t,e){this.name=t,this.token=e}}function SD(i,t,e=[]){const n=`Platform: ${t}`,r=new S(n);return(s=[])=>{let o=ED();if(!o||o.injector.get(MD,!1))if(i)i(e.concat(s).concat({provide:r,useValue:!0}));else{const a=e.concat(s).concat({provide:r,useValue:!0},{provide:jp,useValue:"platform"});!function KN(i){if(Ki&&!Ki.destroyed&&!Ki.injector.get(MD,!1))throw new Nt(400,"");Ki=i.get(kD);const t=i.get(_D,null);t&&t.forEach(e=>e())}(Ge.create({providers:a,name:n}))}return function ZN(i){const t=ED();if(!t)throw new Nt(401,"");return t}()}}function ED(){return Ki&&!Ki.destroyed?Ki:null}let kD=(()=>{class i{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const a=function XN(i,t){let e;return e="noop"===i?new GN:("zone.js"===i?void 0:i)||new te({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),l=[{provide:te,useValue:a}];return a.run(()=>{const c=Ge.create({providers:l,parent:this.injector,name:e.moduleType.name}),d=e.create(c),u=d.injector.get(zn,null);if(!u)throw new Nt(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{u.handleError(f)}});d.onDestroy(()=>{Rf(this._modules,d),h.unsubscribe()})}),function JN(i,t,e){try{const n=e();return Ra(n)?n.catch(r=>{throw t.runOutsideAngular(()=>i.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>i.handleError(n)),n}}(u,a,()=>{const h=d.injector.get(mo);return h.runInitializers(),h.donePromise.then(()=>(function OP(i){si(i,"Expected localeId to be defined"),"string"==typeof i&&(l0=i.toLowerCase().replace(/_/g,"-"))}(d.injector.get(Wn,zc)||zc),this._moduleDoBootstrap(d),d))})})}bootstrapModule(e,n=[]){const r=TD({},n);return function YN(i,t,e){const n=new pf(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const n=e.injector.get(go);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Nt(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Nt(404,"");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return i.\u0275fac=function(e){return new(e||i)(D(Ge))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function TD(i,t){return Array.isArray(t)?t.reduce(TD,i):Object.assign(Object.assign({},i),t)}let go=(()=>{class i{constructor(e,n,r,s,o){this._zone=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Ie(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Ie(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),Ef(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),u.unsubscribe()}});this.isStable=jt(a,l.pipe(uv()))}bootstrap(e,n){if(!this._initStatus.done)throw new Nt(405,"");let r;r=e instanceof O0?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function QN(i){return i.isBoundToModule}(r)?void 0:this._injector.get(Gn),a=r.create(Ge.NULL,[],n||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Af,null),d=c&&a.injector.get(wD);return c&&d&&d.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Rf(this.components,a),d&&d.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Nt(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Rf(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(vD,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(Ge),D(zn),D(br),D(mo))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function Rf(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}let ID=!0,st=(()=>{class i{}return i.__NG_ELEMENT_ID__=iL,i})();function iL(i){return function nL(i,t,e){if(nc(i)&&!e){const n=ai(i.index,t);return new Va(n,n)}return 47&i.type?new Va(t[16],t):null}(yt(),k(),16==(16&i))}class BD{constructor(){}supports(t){return Aa(t)}create(t){return new cL(t)}}const lL=(i,t)=>t;class cL{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||lL}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const o=!n||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new dL(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new VD),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new VD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class dL{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class uL{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class VD{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new uL,this.map.set(e,n)),n.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function HD(i,t,e){const n=i.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const n=new pL(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class pL{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function zD(){return new fi([new BD])}let fi=(()=>{class i{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||zD()),deps:[[i,new ci,new Ct]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function fL(i){return i.name||typeof i}(e)}'`)}}return i.\u0275prov=A({token:i,providedIn:"root",factory:zD}),i})();function UD(){return new _o([new jD])}let _o=(()=>{class i{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||UD()),deps:[[i,new ci,new Ct]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return i.\u0275prov=A({token:i,providedIn:"root",factory:UD}),i})();const mL=[new jD],_L=new fi([new BD]),vL=new _o(mL),yL=SD(null,"core",[{provide:Ga,useValue:"unknown"},{provide:kD,deps:[Ge]},{provide:wD,deps:[]},{provide:yD,deps:[]}]),ML=[{provide:go,useClass:go,deps:[te,Ge,zn,br,mo]},{provide:VF,deps:[te],useFactory:function xL(i){let t=[];return i.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:mo,useClass:mo,deps:[[new Ct,Xc]]},{provide:Jc,useClass:Jc,deps:[]},LN,{provide:fi,useFactory:function bL(){return _L},deps:[]},{provide:_o,useFactory:function CL(){return vL},deps:[]},{provide:Wn,useFactory:function DL(i){return i||function wL(){return"undefined"!=typeof $localize&&$localize.locale||zc}()},deps:[[new ya(Wn),new Ct,new ci]]},{provide:bD,useValue:"USD"}];let SL=(()=>{class i{constructor(e){}}return i.\u0275fac=function(e){return new(e||i)(D(go))},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:ML}),i})(),td=null;function Mn(){return td}const ie=new S("DocumentToken");let Kr=(()=>{class i{historyGo(e){throw new Error("Not implemented")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:function(){return function AL(){return D($D)}()},providedIn:"platform"}),i})();const IL=new S("Location Initialized");let $D=(()=>{class i extends Kr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mn().getBaseHref(this._doc)}onPopState(e){const n=Mn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Mn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,n,r){GD()?this._history.pushState(e,n,r):this.location.hash=r}replaceState(e,n,r){GD()?this._history.replaceState(e,n,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:function(){return function RL(){return new $D(D(ie))}()},providedIn:"platform"}),i})();function GD(){return!!window.history.pushState}function Lf(i,t){if(0==i.length)return t;if(0==t.length)return i;let e=0;return i.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?i+t.substring(1):1==e?i+t:i+"/"+t}function WD(i){const t=i.match(/#|\?|$/),e=t&&t.index||i.length;return i.slice(0,e-("/"===i[e-1]?1:0))+i.slice(e)}function qn(i){return i&&"?"!==i[0]?"?"+i:i}let vo=(()=>{class i{historyGo(e){throw new Error("Not implemented")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:function(){return function OL(i){const t=D(ie).location;return new qD(D(Kr),t&&t.origin||"")}()},providedIn:"root"}),i})();const Bf=new S("appBaseHref");let qD=(()=>{class i extends vo{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)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=n}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Lf(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+qn(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,s){const o=this.prepareExternalUrl(r+qn(s));this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,s){const o=this.prepareExternalUrl(r+qn(s));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,r;null===(r=(n=this._platformLocation).historyGo)||void 0===r||r.call(n,e)}}return i.\u0275fac=function(e){return new(e||i)(D(Kr),D(Bf,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),PL=(()=>{class i extends vo{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=Lf(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,s){let o=this.prepareExternalUrl(r+qn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,s){let o=this.prepareExternalUrl(r+qn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,r;null===(r=(n=this._platformLocation).historyGo)||void 0===r||r.call(n,e)}}return i.\u0275fac=function(e){return new(e||i)(D(Kr),D(Bf,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),yo=(()=>{class i{constructor(e,n){this._subject=new q,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=WD(YD(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+qn(n))}normalize(e){return i.stripTrailingSlash(function NL(i,t){return i&&t.startsWith(i)?t.substring(i.length):t}(this._baseHref,YD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._platformStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+qn(n)),r)}replaceState(e,n="",r=null){this._platformStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+qn(n)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var n,r;null===(r=(n=this._platformStrategy).historyGo)||void 0===r||r.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}}return i.normalizeQueryParams=qn,i.joinWithSlash=Lf,i.stripTrailingSlash=WD,i.\u0275fac=function(e){return new(e||i)(D(vo),D(Kr))},i.\u0275prov=A({token:i,factory:function(){return function FL(){return new yo(D(vo),D(Kr))}()},providedIn:"root"}),i})();function YD(i){return i.replace(/\/index.html$/,"")}var pt=(()=>((pt=pt||{})[pt.Zero=0]="Zero",pt[pt.One=1]="One",pt[pt.Two=2]="Two",pt[pt.Few=3]="Few",pt[pt.Many=4]="Many",pt[pt.Other=5]="Other",pt))(),ct=(()=>((ct=ct||{})[ct.Format=0]="Format",ct[ct.Standalone=1]="Standalone",ct))(),De=(()=>((De=De||{})[De.Narrow=0]="Narrow",De[De.Abbreviated=1]="Abbreviated",De[De.Wide=2]="Wide",De[De.Short=3]="Short",De))(),Xe=(()=>((Xe=Xe||{})[Xe.Short=0]="Short",Xe[Xe.Medium=1]="Medium",Xe[Xe.Long=2]="Long",Xe[Xe.Full=3]="Full",Xe))(),J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Group=1]="Group",J[J.List=2]="List",J[J.PercentSign=3]="PercentSign",J[J.PlusSign=4]="PlusSign",J[J.MinusSign=5]="MinusSign",J[J.Exponential=6]="Exponential",J[J.SuperscriptingExponent=7]="SuperscriptingExponent",J[J.PerMille=8]="PerMille",J[J.Infinity=9]="Infinity",J[J.NaN=10]="NaN",J[J.TimeSeparator=11]="TimeSeparator",J[J.CurrencyDecimal=12]="CurrencyDecimal",J[J.CurrencyGroup=13]="CurrencyGroup",J))();function id(i,t){return Ii(qt(i)[B.DateFormat],t)}function nd(i,t){return Ii(qt(i)[B.TimeFormat],t)}function rd(i,t){return Ii(qt(i)[B.DateTimeFormat],t)}function Ai(i,t){const e=qt(i),n=e[B.NumberSymbols][t];if(void 0===n){if(t===J.CurrencyDecimal)return e[B.NumberSymbols][J.Decimal];if(t===J.CurrencyGroup)return e[B.NumberSymbols][J.Group]}return n}const UL=function o0(i){return qt(i)[B.PluralCase]};function KD(i){if(!i[B.ExtraData])throw new Error(`Missing extra locale data for the locale "${i[B.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ii(i,t){for(let e=t;e>-1;e--)if(void 0!==i[e])return i[e];throw new Error("Locale data API: locale data undefined")}function Hf(i){const[t,e]=i.split(":");return{hours:+t,minutes:+e}}const QL=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wa={},KL=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var wt=(()=>((wt=wt||{})[wt.Short=0]="Short",wt[wt.ShortGMT=1]="ShortGMT",wt[wt.Long=2]="Long",wt[wt.Extended=3]="Extended",wt))(),ne=(()=>((ne=ne||{})[ne.FullYear=0]="FullYear",ne[ne.Month=1]="Month",ne[ne.Date=2]="Date",ne[ne.Hours=3]="Hours",ne[ne.Minutes=4]="Minutes",ne[ne.Seconds=5]="Seconds",ne[ne.FractionalSeconds=6]="FractionalSeconds",ne[ne.Day=7]="Day",ne))(),me=(()=>((me=me||{})[me.DayPeriods=0]="DayPeriods",me[me.Days=1]="Days",me[me.Months=2]="Months",me[me.Eras=3]="Eras",me))();function ZL(i,t,e,n){let r=function oB(i){if(JD(i))return i;if("number"==typeof i&&!isNaN(i))return new Date(i);if("string"==typeof i){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){const[r,s=1,o=1]=i.split("-").map(a=>+a);return sd(r,s-1,o)}const e=parseFloat(i);if(!isNaN(i-e))return new Date(e);let n;if(n=i.match(QL))return function aB(i){const t=new Date(0);let e=0,n=0;const r=i[8]?t.setUTCFullYear:t.setFullYear,s=i[8]?t.setUTCHours:t.setHours;i[9]&&(e=Number(i[9]+i[10]),n=Number(i[9]+i[11])),r.call(t,Number(i[1]),Number(i[2])-1,Number(i[3]));const o=Number(i[4]||0)-e,a=Number(i[5]||0)-n,l=Number(i[6]||0),c=Math.floor(1e3*parseFloat("0."+(i[7]||0)));return s.call(t,o,a,l,c),t}(n)}const t=new Date(i);if(!JD(t))throw new Error(`Unable to convert "${i}" into a date`);return t}(i);t=Yn(e,t)||t;let a,o=[];for(;t;){if(a=KL.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const d=o.pop();if(!d)break;t=d}}let l=r.getTimezoneOffset();n&&(l=XD(n,l),r=function sB(i,t,e){const n=e?-1:1,r=i.getTimezoneOffset();return function rB(i,t){return(i=new Date(i.getTime())).setMinutes(i.getMinutes()+t),i}(i,n*(XD(t,r)-r))}(r,n,!0));let c="";return o.forEach(d=>{const u=function nB(i){if(zf[i])return zf[i];let t;switch(i){case"G":case"GG":case"GGG":t=ze(me.Eras,De.Abbreviated);break;case"GGGG":t=ze(me.Eras,De.Wide);break;case"GGGGG":t=ze(me.Eras,De.Narrow);break;case"y":t=ft(ne.FullYear,1,0,!1,!0);break;case"yy":t=ft(ne.FullYear,2,0,!0,!0);break;case"yyy":t=ft(ne.FullYear,3,0,!1,!0);break;case"yyyy":t=ft(ne.FullYear,4,0,!1,!0);break;case"Y":t=cd(1);break;case"YY":t=cd(2,!0);break;case"YYY":t=cd(3);break;case"YYYY":t=cd(4);break;case"M":case"L":t=ft(ne.Month,1,1);break;case"MM":case"LL":t=ft(ne.Month,2,1);break;case"MMM":t=ze(me.Months,De.Abbreviated);break;case"MMMM":t=ze(me.Months,De.Wide);break;case"MMMMM":t=ze(me.Months,De.Narrow);break;case"LLL":t=ze(me.Months,De.Abbreviated,ct.Standalone);break;case"LLLL":t=ze(me.Months,De.Wide,ct.Standalone);break;case"LLLLL":t=ze(me.Months,De.Narrow,ct.Standalone);break;case"w":t=jf(1);break;case"ww":t=jf(2);break;case"W":t=jf(1,!0);break;case"d":t=ft(ne.Date,1);break;case"dd":t=ft(ne.Date,2);break;case"c":case"cc":t=ft(ne.Day,1);break;case"ccc":t=ze(me.Days,De.Abbreviated,ct.Standalone);break;case"cccc":t=ze(me.Days,De.Wide,ct.Standalone);break;case"ccccc":t=ze(me.Days,De.Narrow,ct.Standalone);break;case"cccccc":t=ze(me.Days,De.Short,ct.Standalone);break;case"E":case"EE":case"EEE":t=ze(me.Days,De.Abbreviated);break;case"EEEE":t=ze(me.Days,De.Wide);break;case"EEEEE":t=ze(me.Days,De.Narrow);break;case"EEEEEE":t=ze(me.Days,De.Short);break;case"a":case"aa":case"aaa":t=ze(me.DayPeriods,De.Abbreviated);break;case"aaaa":t=ze(me.DayPeriods,De.Wide);break;case"aaaaa":t=ze(me.DayPeriods,De.Narrow);break;case"b":case"bb":case"bbb":t=ze(me.DayPeriods,De.Abbreviated,ct.Standalone,!0);break;case"bbbb":t=ze(me.DayPeriods,De.Wide,ct.Standalone,!0);break;case"bbbbb":t=ze(me.DayPeriods,De.Narrow,ct.Standalone,!0);break;case"B":case"BB":case"BBB":t=ze(me.DayPeriods,De.Abbreviated,ct.Format,!0);break;case"BBBB":t=ze(me.DayPeriods,De.Wide,ct.Format,!0);break;case"BBBBB":t=ze(me.DayPeriods,De.Narrow,ct.Format,!0);break;case"h":t=ft(ne.Hours,1,-12);break;case"hh":t=ft(ne.Hours,2,-12);break;case"H":t=ft(ne.Hours,1);break;case"HH":t=ft(ne.Hours,2);break;case"m":t=ft(ne.Minutes,1);break;case"mm":t=ft(ne.Minutes,2);break;case"s":t=ft(ne.Seconds,1);break;case"ss":t=ft(ne.Seconds,2);break;case"S":t=ft(ne.FractionalSeconds,1);break;case"SS":t=ft(ne.FractionalSeconds,2);break;case"SSS":t=ft(ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ad(wt.Short);break;case"ZZZZZ":t=ad(wt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ad(wt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ad(wt.Long);break;default:return null}return zf[i]=t,t}(d);c+=u?u(r,e,l):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function sd(i,t,e){const n=new Date(0);return n.setFullYear(i,t,e),n.setHours(0,0,0),n}function Yn(i,t){const e=function LL(i){return qt(i)[B.LocaleId]}(i);if(Wa[e]=Wa[e]||{},Wa[e][t])return Wa[e][t];let n="";switch(t){case"shortDate":n=id(i,Xe.Short);break;case"mediumDate":n=id(i,Xe.Medium);break;case"longDate":n=id(i,Xe.Long);break;case"fullDate":n=id(i,Xe.Full);break;case"shortTime":n=nd(i,Xe.Short);break;case"mediumTime":n=nd(i,Xe.Medium);break;case"longTime":n=nd(i,Xe.Long);break;case"fullTime":n=nd(i,Xe.Full);break;case"short":const r=Yn(i,"shortTime"),s=Yn(i,"shortDate");n=od(rd(i,Xe.Short),[r,s]);break;case"medium":const o=Yn(i,"mediumTime"),a=Yn(i,"mediumDate");n=od(rd(i,Xe.Medium),[o,a]);break;case"long":const l=Yn(i,"longTime"),c=Yn(i,"longDate");n=od(rd(i,Xe.Long),[l,c]);break;case"full":const d=Yn(i,"fullTime"),u=Yn(i,"fullDate");n=od(rd(i,Xe.Full),[d,u])}return n&&(Wa[e][t]=n),n}function od(i,t){return t&&(i=i.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),i}function Zi(i,t,e="-",n,r){let s="";(i<0||r&&i<=0)&&(r?i=1-i:(i=-i,s=e));let o=String(i);for(;o.length0||a>-e)&&(a+=e),i===ne.Hours)0===a&&-12===e&&(a=12);else if(i===ne.FractionalSeconds)return function XL(i,t){return Zi(i,3).substr(0,t)}(a,t);const l=Ai(o,J.MinusSign);return Zi(a,t,l,n,r)}}function ze(i,t,e=ct.Format,n=!1){return function(r,s){return function eB(i,t,e,n,r,s){switch(e){case me.Months:return function HL(i,t,e){const n=qt(i),s=Ii([n[B.MonthsFormat],n[B.MonthsStandalone]],t);return Ii(s,e)}(t,r,n)[i.getMonth()];case me.Days:return function VL(i,t,e){const n=qt(i),s=Ii([n[B.DaysFormat],n[B.DaysStandalone]],t);return Ii(s,e)}(t,r,n)[i.getDay()];case me.DayPeriods:const o=i.getHours(),a=i.getMinutes();if(s){const c=function $L(i){const t=qt(i);return KD(t),(t[B.ExtraData][2]||[]).map(n=>"string"==typeof n?Hf(n):[Hf(n[0]),Hf(n[1])])}(t),d=function GL(i,t,e){const n=qt(i);KD(n);const s=Ii([n[B.ExtraData][0],n[B.ExtraData][1]],t)||[];return Ii(s,e)||[]}(t,r,n),u=c.findIndex(h=>{if(Array.isArray(h)){const[f,_]=h,v=o>=f.hours&&a>=f.minutes,b=o<_.hours||o===_.hours&&a<_.minutes;if(f.hours<_.hours){if(v&&b)return!0}else if(v||b)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==u)return d[u]}return function BL(i,t,e){const n=qt(i),s=Ii([n[B.DayPeriodsFormat],n[B.DayPeriodsStandalone]],t);return Ii(s,e)}(t,r,n)[o<12?0:1];case me.Eras:return function jL(i,t){return Ii(qt(i)[B.Eras],t)}(t,n)[i.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,s,i,t,e,n)}}function ad(i){return function(t,e,n){const r=-1*n,s=Ai(e,J.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(i){case wt.Short:return(r>=0?"+":"")+Zi(o,2,s)+Zi(Math.abs(r%60),2,s);case wt.ShortGMT:return"GMT"+(r>=0?"+":"")+Zi(o,1,s);case wt.Long:return"GMT"+(r>=0?"+":"")+Zi(o,2,s)+":"+Zi(Math.abs(r%60),2,s);case wt.Extended:return 0===n?"Z":(r>=0?"+":"")+Zi(o,2,s)+":"+Zi(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${i}"`)}}}function ZD(i){return sd(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))}function jf(i,t=!1){return function(e,n){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=ZD(e),o=function iB(i){const t=sd(i,0,1).getDay();return sd(i,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return Zi(r,i,Ai(n,J.MinusSign))}}function cd(i,t=!1){return function(e,n){return Zi(ZD(e).getFullYear(),i,Ai(n,J.MinusSign),t)}}const zf={};function XD(i,t){i=i.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(e)?t:e}function JD(i){return i instanceof Date&&!isNaN(i.valueOf())}class ud{}let vB=(()=>{class i extends ud{constructor(e){super(),this.locale=e}getPluralCategory(e,n){switch(UL(n||this.locale)(e)){case pt.Zero:return"zero";case pt.One:return"one";case pt.Two:return"two";case pt.Few:return"few";case pt.Many:return"many";default:return"other"}}}return i.\u0275fac=function(e){return new(e||i)(D(Wn))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function nw(i,t){t=encodeURIComponent(t);for(const e of i.split(";")){const n=e.indexOf("="),[r,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Ya=(()=>{class i{constructor(e,n,r,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Aa(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ee(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return i.\u0275fac=function(e){return new(e||i)(p(fi),p(_o),p(W),p(Cn))},i.\u0275dir=x({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i})();class bB{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,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 Zr=(()=>{class i{constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new bB(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,o),rw(a,r)}});for(let r=0,s=n.length;r{rw(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at),p(fi))},i.\u0275dir=x({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),i})();function rw(i,t){i.context.$implicit=t.item}let Qn=(()=>{class i{constructor(e,n){this._viewContainer=e,this._context=new CB,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){sw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){sw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at))},i.\u0275dir=x({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),i})();class CB{constructor(){this.$implicit=null,this.ngIf=null}}function sw(i,t){if(t&&!t.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${Ee(t)}'.`)}class qf{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Xr=(()=>{class i{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let n=0;n{class i{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new qf(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at),p(Xr,9))},i.\u0275dir=x({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),i})(),ow=(()=>{class i{constructor(e,n,r){r._addDefault(new qf(e,n))}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at),p(Xr,9))},i.\u0275dir=x({type:i,selectors:[["","ngSwitchDefault",""]]}),i})();const OB=new S("DATE_PIPE_DEFAULT_TIMEZONE");let hd=(()=>{class i{constructor(e,n){this.locale=e,this.defaultTimezone=n}transform(e,n="mediumDate",r,s){var o;if(null==e||""===e||e!=e)return null;try{return ZL(e,n,s||this.locale,null!==(o=null!=r?r:this.defaultTimezone)&&void 0!==o?o:void 0)}catch(a){throw function Xi(i,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Ee(i)}'`)}(i,a.message)}}}return i.\u0275fac=function(e){return new(e||i)(p(Wn,16),p(OB,24))},i.\u0275pipe=Xt({name:"date",type:i,pure:!0}),i})(),cw=(()=>{class i{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=dw}transform(e,n=dw){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const r=this.differ.diff(e),s=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(function BB(i,t){return{key:i,value:t}}(o.key,o.currentValue))})),(r||s)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}}return i.\u0275fac=function(e){return new(e||i)(p(_o,16))},i.\u0275pipe=Xt({name:"keyvalue",type:i,pure:!1}),i})();function dw(i,t){const e=i.key,n=t.key;if(e===n)return 0;if(void 0===e)return 1;if(void 0===n)return-1;if(null===e)return 1;if(null===n)return-1;if("string"==typeof e&&"string"==typeof n)return e{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[{provide:ud,useClass:vB}]}),i})();const uw="browser";let qB=(()=>{class i{}return i.\u0275prov=A({token:i,providedIn:"root",factory:()=>new YB(D(ie),window)}),i})();class YB{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function QB(i,t){const e=i.getElementById(t)||i.getElementsByName(t)[0];if(e)return e;if("function"==typeof i.createTreeWalker&&i.body&&(i.body.createShadowRoot||i.body.attachShadow)){const n=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=hw(this.window.history)||hw(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function hw(i){return Object.getOwnPropertyDescriptor(i,"scrollRestoration")}class pw{}class Kf extends class KB extends class TL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function kL(i){td||(td=i)}(new Kf)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function ZB(){return Ka=Ka||document.querySelector("base"),Ka?Ka.getAttribute("href"):null}();return null==e?null:function XB(i){pd=pd||document.createElement("a"),pd.setAttribute("href",i);const t=pd.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Ka=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return nw(document.cookie,t)}}let pd,Ka=null;const fw=new S("TRANSITION_ID"),e2=[{provide:Xc,useFactory:function JB(i,t,e){return()=>{e.get(mo).donePromise.then(()=>{const n=Mn(),r=t.querySelectorAll(`style[ng-transition="${i}"]`);for(let s=0;s{const s=t.findTestabilityInTree(n,r);if(null==s)throw new Error("Could not find testability for element.");return s},Le.getAllAngularTestabilities=()=>t.getAllTestabilities(),Le.getAllAngularRootElements=()=>t.getAllRootElements(),Le.frameworkStabilizers||(Le.frameworkStabilizers=[]),Le.frameworkStabilizers.push(n=>{const r=Le.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&n(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Mn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let t2=(()=>{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const fd=new S("EventManagerPlugins");let md=(()=>{class i{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let s=0;s{class i{constructor(){this._stylesSet=new Set}addStyles(e){const n=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),n.add(r))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),Za=(()=>{class i extends gw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,n,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(n.appendChild(o))})}addHost(e){const n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const n=this._hostNodes.get(e);n&&n.forEach(_w),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,r)=>{this._addStylesToHost(e,r,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(_w))}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function _w(i){Mn().remove(i)}const Xf={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/"},Jf=/%COMP%/g;function gd(i,t,e){for(let n=0;n{if("__ngUnwrap__"===t)return i;!1===i(t)&&(t.preventDefault(),t.returnValue=!1)}}let _d=(()=>{class i{constructor(e,n,r){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new em(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case Vi.Emulated:{let r=this.rendererByCompId.get(n.id);return r||(r=new l2(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,r)),r.applyToHost(e),r}case 1:case Vi.ShadowDom:return new c2(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const r=gd(n.id,n.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(D(md),D(Za),D($a))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class em{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Xf[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=Xf[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Xf[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(ui.DashCase|ui.Important)?t.style.setProperty(e,n,r&ui.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&ui.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,bw(n)):this.eventManager.addEventListener(t,e,bw(n))}}class l2 extends em{constructor(t,e,n,r){super(t),this.component=n;const s=gd(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr=function s2(i){return"_ngcontent-%COMP%".replace(Jf,i)}(r+"-"+n.id),this.hostAttr=function o2(i){return"_nghost-%COMP%".replace(Jf,i)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class c2 extends em{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=gd(r.id,r.styles,[]);for(let o=0;o{class i extends mw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Dw=["alt","control","meta","shift"],h2={"\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"},ww={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"},p2={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let f2=(()=>{class i extends mw{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,n,r){const s=i.parseEventName(n),o=i.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=i._normalizeKey(n.pop());let o="";if(Dw.forEach(l=>{const c=n.indexOf(l);c>-1&&(n.splice(c,1),o+=l+".")}),o+=s,0!=n.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let n="",r=function m2(i){let t=i.key;if(null==t){if(t=i.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===i.location&&ww.hasOwnProperty(t)&&(t=ww[t]))}return h2[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Dw.forEach(s=>{s!=r&&p2[s](e)&&(n+=s+".")}),n+=r,n}static eventCallback(e,n,r){return s=>{i.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const y2=SD(yL,"browser",[{provide:Ga,useValue:uw},{provide:_D,useValue:function g2(){Kf.makeCurrent(),Zf.init()},multi:!0},{provide:ie,useFactory:function v2(){return function IA(i){Eh=i}(document),document},deps:[]}]),b2=[{provide:jp,useValue:"root"},{provide:zn,useFactory:function _2(){return new zn},deps:[]},{provide:fd,useClass:d2,multi:!0,deps:[ie,te,Ga]},{provide:fd,useClass:f2,multi:!0,deps:[ie]},{provide:_d,useClass:_d,deps:[md,Za,$a]},{provide:Ba,useExisting:_d},{provide:gw,useExisting:Za},{provide:Za,useClass:Za,deps:[ie]},{provide:Af,useClass:Af,deps:[te]},{provide:md,useClass:md,deps:[fd,te]},{provide:pw,useClass:t2,deps:[]}];let Mw=(()=>{class i{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:i,providers:[{provide:$a,useValue:e.appId},{provide:fw,useExisting:$a},e2]}}}return i.\u0275fac=function(e){return new(e||i)(D(i,12))},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:b2,imports:[Mt,SL]}),i})();"undefined"!=typeof window&&window;let im=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:function(e){let n=null;return n=e?new(e||i):D(Ew),n},providedIn:"root"}),i})(),Ew=(()=>{class i extends im{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case Oe.NONE:return n;case Oe.HTML:return hn(n,"HTML")?di(n):My(this._doc,String(n)).toString();case Oe.STYLE:return hn(n,"Style")?di(n):n;case Oe.SCRIPT:if(hn(n,"Script"))return di(n);throw new Error("unsafe value used in a script context");case Oe.URL:return gy(n),hn(n,"URL")?di(n):Ca(String(n));case Oe.RESOURCE_URL:if(hn(n,"ResourceURL"))return di(n);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function UI(i){return new BI(i)}(e)}bypassSecurityTrustStyle(e){return function $I(i){return new VI(i)}(e)}bypassSecurityTrustScript(e){return function GI(i){return new HI(i)}(e)}bypassSecurityTrustUrl(e){return function WI(i){return new jI(i)}(e)}bypassSecurityTrustResourceUrl(e){return function qI(i){return new zI(i)}(e)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:function(e){let n=null;return n=e?new e:function A2(i){return new Ew(i.get(ie))}(D(Ge)),n},providedIn:"root"}),i})();function Q(...i){return vt(i,na(i))}class ti extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}const{isArray:I2}=Array,{getPrototypeOf:R2,prototype:O2,keys:P2}=Object;function kw(i){if(1===i.length){const t=i[0];if(I2(t))return{args:t,keys:null};if(function F2(i){return i&&"object"==typeof i&&R2(i)===O2}(t)){const e=P2(t);return{args:e.map(n=>t[n]),keys:e}}}return{args:i,keys:null}}const{isArray:N2}=Array;function nm(i){return de(t=>function L2(i,t){return N2(t)?i(...t):i(t)}(i,t))}function Tw(i,t){return i.reduce((e,n,r)=>(e[n]=t[r],e),{})}function Aw(...i){const t=na(i),e=av(i),{args:n,keys:r}=kw(i);if(0===n.length)return vt([],t);const s=new Ie(function B2(i,t,e=dr){return n=>{Iw(t,()=>{const{length:r}=i,s=new Array(r);let o=r,a=r;for(let l=0;l{const c=vt(i[l],t);let d=!1;c.subscribe(new Ue(n,u=>{s[l]=u,d||(d=!0,a--),a||n.next(e(s.slice()))},()=>{--o||n.complete()}))},n)},n)}}(n,t,r?o=>Tw(r,o):dr));return e?s.pipe(nm(e)):s}function Iw(i,t,e){i?Ln(e,i,t):t()}const vd=ta(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function Xa(...i){return function V2(){return ia(1)}()(vt(i,na(i)))}function Ja(i){return new Ie(t=>{ni(i()).subscribe(t)})}function Rw(){return Ke((i,t)=>{let e=null;i._refCount++;const n=new Ue(t,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),t.unsubscribe()});i.subscribe(n),n.closed||(e=i.connect())})}class H2 extends Ie{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,q_(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Te;const e=this.getSubject();t.add(this.source.subscribe(new Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Te.EMPTY)}return t}refCount(){return Rw()(this)}}function Ji(i,t){return Ke((e,n)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&n.complete();e.subscribe(new Ue(n,l=>{null==r||r.unsubscribe();let c=0;const d=s++;ni(i(l,d)).subscribe(r=new Ue(n,u=>n.next(t?t(l,u,d,c++):u),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function en(...i){const t=na(i);return Ke((e,n)=>{(t?Xa(i,e,t):Xa(i,e)).subscribe(n)})}function j2(i,t,e,n,r){return(s,o)=>{let a=e,l=t,c=0;s.subscribe(new Ue(o,d=>{const u=c++;l=a?i(l,d,u):(a=!0,d),n&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}function Ow(i,t){return Ke(j2(i,t,arguments.length>=2,!0))}function xt(i,t){return Ke((e,n)=>{let r=0;e.subscribe(new Ue(n,s=>i.call(t,s,r++)&&n.next(s)))})}function xn(i){return Ke((t,e)=>{let s,n=null,r=!1;n=t.subscribe(new Ue(e,void 0,void 0,o=>{s=ni(i(o,xn(i)(t))),n?(n.unsubscribe(),n=null,s.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,s.subscribe(e))})}function bo(i,t){return xe(t)?ut(i,t,1):ut(i,1)}function rm(i){return i<=0?()=>ln:Ke((t,e)=>{let n=[];t.subscribe(new Ue(e,r=>{n.push(r),i{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function Pw(i=z2){return Ke((t,e)=>{let n=!1;t.subscribe(new Ue(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(i())))})}function z2(){return new vd}function Fw(i){return Ke((t,e)=>{let n=!1;t.subscribe(new Ue(e,r=>{n=!0,e.next(r)},()=>{n||e.next(i),e.complete()}))})}function Co(i,t){const e=arguments.length>=2;return n=>n.pipe(i?xt((r,s)=>i(r,s,n)):dr,We(1),e?Fw(t):Pw(()=>new vd))}function Fe(i,t,e){const n=xe(i)||t||e?{next:i,error:t,complete:e}:i;return n?Ke((r,s)=>{var o;null===(o=n.subscribe)||void 0===o||o.call(n);let a=!0;r.subscribe(new Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):dr}function yd(i){return Ke((t,e)=>{try{t.subscribe(e)}finally{e.add(i)}})}class Kn{constructor(t,e){this.id=t,this.url=e}}class sm extends Kn{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class el extends Kn{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Nw extends Kn{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $2 extends Kn{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class G2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class W2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class q2 extends Kn{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Y2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lw{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bw{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class K2{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Z2{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X2{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class J2{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vw{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ye="primary";class eV{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Do(i){return new eV(i)}const Hw="ngNavigationCancelingError";function om(i){const t=Error("NavigationCancelingError: "+i);return t[Hw]=!0,t}function iV(i,t,e){const n=e.path.split("/");if(n.length>i.length||"full"===e.pathMatch&&(t.hasChildren()||n.lengthn[s]===r)}return i===t}function zw(i){return Array.prototype.concat.apply([],i)}function Uw(i){return i.length>0?i[i.length-1]:null}function Pt(i,t){for(const e in i)i.hasOwnProperty(e)&&t(i[e],e)}function En(i){return Jp(i)?i:Ra(i)?vt(Promise.resolve(i)):Q(i)}const sV={exact:function Ww(i,t,e){if(!es(i.segments,t.segments)||!bd(i.segments,t.segments,e)||i.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!i.children[n]||!Ww(i.children[n],t.children[n],e))return!1;return!0},subset:qw},$w={exact:function oV(i,t){return Sn(i,t)},subset:function aV(i,t){return Object.keys(t).length<=Object.keys(i).length&&Object.keys(t).every(e=>jw(i[e],t[e]))},ignored:()=>!0};function Gw(i,t,e){return sV[e.paths](i.root,t.root,e.matrixParams)&&$w[e.queryParams](i.queryParams,t.queryParams)&&!("exact"===e.fragment&&i.fragment!==t.fragment)}function qw(i,t,e){return Yw(i,t,t.segments,e)}function Yw(i,t,e,n){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!es(r,e)||t.hasChildren()||!bd(r,e,n))}if(i.segments.length===e.length){if(!es(i.segments,e)||!bd(i.segments,e,n))return!1;for(const r in t.children)if(!i.children[r]||!qw(i.children[r],t.children[r],n))return!1;return!0}{const r=e.slice(0,i.segments.length),s=e.slice(i.segments.length);return!!(es(i.segments,r)&&bd(i.segments,r,n)&&i.children[ye])&&Yw(i.children[ye],t,s,n)}}function bd(i,t,e){return t.every((n,r)=>$w[e](i[r].parameters,n.parameters))}class Jr{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Do(this.queryParams)),this._queryParamMap}toString(){return dV.serialize(this)}}class we{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Pt(e,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cd(this)}}class Zn{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Do(this.parameters)),this._parameterMap}toString(){return Jw(this)}}function es(i,t){return i.length===t.length&&i.every((e,n)=>e.path===t[n].path)}class Qw{}class Kw{parse(t){const e=new yV(t);return new Jr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${tl(t.root,!0)}`,n=function pV(i){const t=Object.keys(i).map(e=>{const n=i[e];return Array.isArray(n)?n.map(r=>`${Dd(e)}=${Dd(r)}`).join("&"):`${Dd(e)}=${Dd(n)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${n}${"string"==typeof t.fragment?`#${function uV(i){return encodeURI(i)}(t.fragment)}`:""}`}}const dV=new Kw;function Cd(i){return i.segments.map(t=>Jw(t)).join("/")}function tl(i,t){if(!i.hasChildren())return Cd(i);if(t){const e=i.children[ye]?tl(i.children[ye],!1):"",n=[];return Pt(i.children,(r,s)=>{s!==ye&&n.push(`${s}:${tl(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function cV(i,t){let e=[];return Pt(i.children,(n,r)=>{r===ye&&(e=e.concat(t(n,r)))}),Pt(i.children,(n,r)=>{r!==ye&&(e=e.concat(t(n,r)))}),e}(i,(n,r)=>r===ye?[tl(i.children[ye],!1)]:[`${r}:${tl(n,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[ye]?`${Cd(i)}/${e[0]}`:`${Cd(i)}/(${e.join("//")})`}}function Zw(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dd(i){return Zw(i).replace(/%3B/gi,";")}function am(i){return Zw(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wd(i){return decodeURIComponent(i)}function Xw(i){return wd(i.replace(/\+/g,"%20"))}function Jw(i){return`${am(i.path)}${function hV(i){return Object.keys(i).map(t=>`;${am(t)}=${am(i[t])}`).join("")}(i.parameters)}`}const fV=/^[^\/()?;=#]+/;function Md(i){const t=i.match(fV);return t?t[0]:""}const mV=/^[^=?&#]+/,_V=/^[^&#]+/;class yV{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[ye]=new we(t,e)),n}parseSegment(){const t=Md(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Zn(wd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Md(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=Md(this.remaining);r&&(n=r,this.capture(n))}t[wd(e)]=wd(n)}parseQueryParam(t){const e=function gV(i){const t=i.match(mV);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=function vV(i){const t=i.match(_V);return t?t[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const r=Xw(e),s=Xw(n);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Md(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=ye);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[ye]:new we([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class eM{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=lm(t,this._root);return e?e.children.map(n=>n.value):[]}firstChild(t){const e=lm(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=cm(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return cm(t,this._root).map(e=>e.value)}}function lm(i,t){if(i===t.value)return t;for(const e of t.children){const n=lm(i,e);if(n)return n}return null}function cm(i,t){if(i===t.value)return[t];for(const e of t.children){const n=cm(i,e);if(n.length)return n.unshift(t),n}return[]}class Xn{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function wo(i){const t={};return i&&i.children.forEach(e=>t[e.value.outlet]=e),t}class tM extends eM{constructor(t,e){super(t),this.snapshot=e,dm(this,t)}toString(){return this.snapshot.toString()}}function iM(i,t){const e=function bV(i,t){const o=new xd([],{},{},"",{},ye,t,null,i.root,-1,{});return new rM("",new Xn(o,[]))}(i,t),n=new ti([new Zn("",{})]),r=new ti({}),s=new ti({}),o=new ti({}),a=new ti(""),l=new Jn(n,r,o,a,s,ye,t,e.root);return l.snapshot=e.root,new tM(new Xn(l,[]),e)}class Jn{constructor(t,e,n,r,s,o,a,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(de(t=>Do(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(de(t=>Do(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function nM(i,t="emptyOnly"){const e=i.pathFromRoot;let n=0;if("always"!==t)for(n=e.length-1;n>=1;){const r=e[n],s=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(s.component)break;n--}}return function CV(i){return i.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class xd{constructor(t,e,n,r,s,o,a,l,c,d,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Do(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Do(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rM extends eM{constructor(t,e){super(e),this.url=t,dm(this,e)}toString(){return sM(this._root)}}function dm(i,t){t.value._routerState=i,t.children.forEach(e=>dm(i,e))}function sM(i){const t=i.children.length>0?` { ${i.children.map(sM).join(", ")} } `:"";return`${i.value}${t}`}function um(i){if(i.snapshot){const t=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Sn(t.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),t.fragment!==e.fragment&&i.fragment.next(e.fragment),Sn(t.params,e.params)||i.params.next(e.params),function nV(i,t){if(i.length!==t.length)return!1;for(let e=0;eSn(e.parameters,t[n].parameters))}(i.url,t.url);return e&&!(!i.parent!=!t.parent)&&(!i.parent||hm(i.parent,t.parent))}function il(i,t,e){if(e&&i.shouldReuseRoute(t.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=t.value;const r=function wV(i,t,e){return t.children.map(n=>{for(const r of e.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return il(i,n,r);return il(i,n)})}(i,t,e);return new Xn(n,r)}{if(i.shouldAttach(t.value)){const s=i.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>il(i,a)),o}}const n=function MV(i){return new Jn(new ti(i.url),new ti(i.params),new ti(i.queryParams),new ti(i.fragment),new ti(i.data),i.outlet,i.component,i)}(t.value),r=t.children.map(s=>il(i,s));return new Xn(n,r)}}function Sd(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function nl(i){return"object"==typeof i&&null!=i&&i.outlets}function pm(i,t,e,n,r){let s={};return n&&Pt(n,(o,a)=>{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Jr(e.root===i?t:oM(e.root,i,t),s,r)}function oM(i,t,e){const n={};return Pt(i.children,(r,s)=>{n[s]=r===t?e:oM(r,t,e)}),new we(i.segments,n)}class aM{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Sd(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(nl);if(r&&r!==Uw(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fm{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function lM(i,t,e){if(i||(i=new we([],{})),0===i.segments.length&&i.hasChildren())return Ed(i,t,e);const n=function AV(i,t,e){let n=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;const o=i.segments[r],a=e[n];if(nl(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!dM(l,c,o))return s;n+=2}else{if(!dM(l,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(i,t,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=lM(i.children[o],t,s))}),Pt(i.children,(s,o)=>{void 0===n[o]&&(r[o]=s)}),new we(i.segments,r)}}function mm(i,t,e){const n=i.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=mm(new we([],{}),0,e))}),t}function cM(i){const t={};return Pt(i,(e,n)=>t[n]=`${e}`),t}function dM(i,t,e){return i==e.path&&Sn(t,e.parameters)}class OV{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),um(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=wo(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Pt(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=wo(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(n&&n.outlet){const o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=wo(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=wo(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new J2(s.value.snapshot))}),t.children.length&&this.forwardEvent(new Z2(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(um(r),r===s)if(r.component){const o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),um(a.route.value),this.activateChildRoutes(t,null,o.children)}else{const a=function PV(i){for(let t=i.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)}}class gm{constructor(t,e){this.routes=t,this.module=e}}function wr(i){return"function"==typeof i}function ts(i){return i instanceof Jr}const rl=Symbol("INITIAL_VALUE");function sl(){return Ji(i=>Aw(i.map(t=>t.pipe(We(1),en(rl)))).pipe(Ow((t,e)=>{let n=!1;return e.reduce((r,s,o)=>r!==rl?r:(s===rl&&(n=!0),n||!1!==s&&o!==e.length-1&&!ts(s)?r:s),t)},rl),xt(t=>t!==rl),de(t=>ts(t)?t:!0===t),We(1)))}class HV{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ol,this.attachRef=null}}class ol{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new HV,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let _m=(()=>{class i{constructor(e,n,r,s,o){this.parentContexts=e,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new q,this.deactivateEvents=new q,this.attachEvents=new q,this.detachEvents=new q,this.name=s||ye,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new jV(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(p(ol),p(lt),p(br),At("name"),p(st))},i.\u0275dir=x({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class jV{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Jn?this.route:t===ol?this.childContexts:this.parent.get(t,e)}}let uM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=re({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&U(0,"router-outlet")},directives:[_m],encapsulation:2}),i})();function hM(i,t=""){for(let e=0;eRi(n)===t);return e.push(...i.filter(n=>Ri(n)!==t)),e}const fM={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function kd(i,t,e){var n;if(""===t.path)return"full"===t.pathMatch&&(i.hasChildren()||e.length>0)?Object.assign({},fM):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||iV)(e,i,t);if(!s)return Object.assign({},fM);const o={};Pt(s.posParams,(l,c)=>{o[c]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Td(i,t,e,n,r="corrected"){if(e.length>0&&function WV(i,t,e){return e.some(n=>Ad(i,t,n)&&Ri(n)!==ye)}(i,e,n)){const o=new we(t,function GV(i,t,e,n){const r={};r[ye]=n,n._sourceSegment=i,n._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Ri(s)!==ye){const o=new we([],{});o._sourceSegment=i,o._segmentIndexShift=t.length,r[Ri(s)]=o}return r}(i,t,n,new we(e,i.children)));return o._sourceSegment=i,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function qV(i,t,e){return e.some(n=>Ad(i,t,n))}(i,e,n)){const o=new we(i.segments,function $V(i,t,e,n,r,s){const o={};for(const a of n)if(Ad(i,e,a)&&!r[Ri(a)]){const l=new we([],{});l._sourceSegment=i,l._segmentIndexShift="legacy"===s?i.segments.length:t.length,o[Ri(a)]=l}return Object.assign(Object.assign({},r),o)}(i,t,e,n,i.children,r));return o._sourceSegment=i,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new we(i.segments,i.children);return s._sourceSegment=i,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function Ad(i,t,e){return(!(i.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function mM(i,t,e,n){return!!(Ri(i)===n||n!==ye&&Ad(t,e,i))&&("**"===i.path||kd(t,i,e).matched)}function gM(i,t,e){return 0===t.length&&!i.children[e]}class al{constructor(t){this.segmentGroup=t||null}}class _M{constructor(t){this.urlTree=t}}function Id(i){return new Ie(t=>t.error(new al(i)))}function vM(i){return new Ie(t=>t.error(new _M(i)))}function YV(i){return new Ie(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${i}'`)))}class ZV{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Gn)}apply(){const t=Td(this.urlTree.root,[],[],this.config).segmentGroup,e=new we(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ye).pipe(de(s=>this.createUrlTree(ym(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(xn(s=>{if(s instanceof _M)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof al?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ye).pipe(de(r=>this.createUrlTree(ym(r),t.queryParams,t.fragment))).pipe(xn(r=>{throw r instanceof al?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new we([],{[ye]:t}):t;return new Jr(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(de(s=>new we([],s))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return vt(r).pipe(bo(s=>{const o=n.children[s],a=pM(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(de(l=>({segment:l,outlet:s})))}),Ow((s,o)=>(s[o.outlet]=o.segment,s),{}),function U2(i,t){const e=arguments.length>=2;return n=>n.pipe(i?xt((r,s)=>i(r,s,n)):dr,rm(1),e?Fw(t):Pw(()=>new vd))}())}expandSegment(t,e,n,r,s,o){return vt(n).pipe(bo(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,s,o).pipe(xn(c=>{if(c instanceof al)return Q(null);throw c}))),Co(a=>!!a),xn((a,l)=>{if(a instanceof vd||"EmptyError"===a.name){if(gM(e,r,s))return Q(new we([],{}));throw new al(e)}throw a}))}expandSegmentAgainstRoute(t,e,n,r,s,o,a){return mM(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o):Id(e):Id(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?vM(s):this.lineralizeSegments(n,s).pipe(ut(o=>{const a=new we(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:d}=kd(e,r,s);if(!a)return Id(e);const u=this.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?vM(u):this.lineralizeSegments(r,u).pipe(ut(h=>this.expandSegment(t,e,n,h.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Q(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(de(h=>(n._loadedConfig=h,new we(r,{})))):Q(new we(r,{}));const{matched:o,consumedSegments:a,lastChild:l}=kd(e,n,r);if(!o)return Id(e);const c=r.slice(l);return this.getChildConfig(t,n,r).pipe(ut(u=>{const h=u.module,f=u.routes,{segmentGroup:_,slicedSegments:v}=Td(e,a,c,f),b=new we(_.segments,_.children);if(0===v.length&&b.hasChildren())return this.expandChildren(h,f,b).pipe(de(P=>new we(a,P)));if(0===f.length&&0===v.length)return Q(new we(a,{}));const M=Ri(n)===s;return this.expandSegment(h,b,f,v,M?ye:s,!0).pipe(de(T=>new we(a.concat(T.segments),T.children)))}))}getChildConfig(t,e,n){return e.children?Q(new gm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Q(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(ut(r=>r?this.configLoader.load(t.injector,e).pipe(de(s=>(e._loadedConfig=s,s))):function QV(i){return new Ie(t=>t.error(om(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`)))}(e))):Q(new gm([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Q(r.map(o=>{const a=t.get(o);let l;if(function NV(i){return i&&wr(i.canLoad)}(a))l=a.canLoad(e,n);else{if(!wr(a))throw new Error("Invalid CanLoad guard");l=a(e,n)}return En(l)})).pipe(sl(),Fe(o=>{if(!ts(o))return;const a=om(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),de(o=>!0===o)):Q(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Q(n);if(r.numberOfChildren>1||!r.children[ye])return YV(t.redirectTo);r=r.children[ye]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Jr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Pt(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);n[s]=e[a]}else n[s]=r}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let o={};return Pt(e.children,(a,l)=>{o[l]=this.createSegmentGroup(t,a,n,r)}),new we(s,o)}createSegments(t,e,n,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function ym(i){const t={};for(const n of Object.keys(i.children)){const s=ym(i.children[n]);(s.segments.length>0||s.hasChildren())&&(t[n]=s)}return function XV(i){if(1===i.numberOfChildren&&i.children[ye]){const t=i.children[ye];return new we(i.segments.concat(t.segments),t.children)}return i}(new we(i.segments,t))}class yM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Rd{constructor(t,e){this.component=t,this.route=e}}function eH(i,t,e){const n=i._root;return ll(n,t?t._root:null,e,[n.value])}function Od(i,t,e){const n=function iH(i){if(!i)return null;for(let t=i.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(n?n.module.injector:e).get(i)}function ll(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=wo(t);return i.children.forEach(o=>{(function nH(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=i.value,o=t?t.value:null,a=e?e.getContext(i.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function rH(i,t,e){if("function"==typeof e)return e(i,t);switch(e){case"pathParamsChange":return!es(i.url,t.url);case"pathParamsOrQueryParamsChange":return!es(i.url,t.url)||!Sn(i.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hm(i,t)||!Sn(i.queryParams,t.queryParams);default:return!hm(i,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new yM(n)):(s.data=o.data,s._resolvedData=o._resolvedData),ll(i,t,s.component?a?a.children:null:e,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Rd(a.outlet.component,o))}else o&&cl(t,a,r),r.canActivateChecks.push(new yM(n)),ll(i,null,s.component?a?a.children:null:e,n,r)})(o,s[o.value.outlet],e,n.concat([o.value]),r),delete s[o.value.outlet]}),Pt(s,(o,a)=>cl(o,e.getContext(a),r)),r}function cl(i,t,e){const n=wo(i),r=i.value;Pt(n,(s,o)=>{cl(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new Rd(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class pH{}function bM(i){return new Ie(t=>t.error(i))}class mH{constructor(t,e,n,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Td(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ye);if(null===e)return null;const n=new xd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ye,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Xn(n,e),s=new rM(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=nM(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=pM(t,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;n.push(...l)}const r=CM(n);return function gH(i){i.sort((t,e)=>t.value.outlet===ye?-1:e.value.outlet===ye?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,n,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,n,r);if(null!==o)return o}return gM(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!mM(t,e,n,r))return null;let s,o=[],a=[];if("**"===t.path){const f=n.length>0?Uw(n).parameters:{};s=new xd(n,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,MM(t),Ri(t),t.component,t,DM(e),wM(e)+n.length,xM(t))}else{const f=kd(e,t,n);if(!f.matched)return null;o=f.consumedSegments,a=n.slice(f.lastChild),s=new xd(o,f.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,MM(t),Ri(t),t.component,t,DM(e),wM(e)+o.length,xM(t))}const l=function _H(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:d}=Td(e,o,a,l.filter(f=>void 0===f.redirectTo),this.relativeLinkResolution);if(0===d.length&&c.hasChildren()){const f=this.processChildren(l,c);return null===f?null:[new Xn(s,f)]}if(0===l.length&&0===d.length)return[new Xn(s,[])];const u=Ri(t)===r,h=this.processSegment(l,c,d,u?ye:r);return null===h?null:[new Xn(s,h)]}}function vH(i){const t=i.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function CM(i){const t=[],e=new Set;for(const n of i){if(!vH(n)){t.push(n);continue}const r=t.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):t.push(n)}for(const n of e){const r=CM(n.children);t.push(new Xn(n.value,r))}return t.filter(n=>!e.has(n))}function DM(i){let t=i;for(;t._sourceSegment;)t=t._sourceSegment;return t}function wM(i){let t=i,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function MM(i){return i.data||{}}function xM(i){return i.resolve||{}}function bm(i){return Ji(t=>{const e=i(t);return e?vt(e).pipe(de(()=>t)):Q(t)})}class SH extends class xH{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Cm=new S("ROUTES");class SM{constructor(t,e,n,r){this.injector=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(de(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(t);return new gm(zw(o.injector.get(Cm,void 0,ae.Self|ae.Optional)).map(vm),o)}),xn(s=>{throw e._loader$=void 0,s}));return e._loader$=new H2(r,()=>new O).pipe(Rw()),e._loader$}loadModuleFactory(t){return En(t()).pipe(ut(e=>e instanceof L0?Q(e):vt(this.compiler.compileModuleAsync(e))))}}class kH{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function TH(i){throw i}function AH(i,t,e){return t.parse("/")}function EM(i,t){return Q(null)}const IH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let mi=(()=>{class i{constructor(e,n,r,s,o,a,l){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new O,this.errorHandler=TH,this.malformedUriErrorHandler=AH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:EM,afterPreactivation:EM},this.urlHandlingStrategy=new kH,this.routeReuseStrategy=new SH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Gn),this.console=o.get(yD);const u=o.get(te);this.isNgZoneEnabled=u instanceof te&&te.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function rV(){return new Jr(new we([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new SM(o,a,h=>this.triggerEvent(new Lw(h)),h=>this.triggerEvent(new Bw(h))),this.routerState=iM(this.currentUrlTree,this.rootComponentType),this.transitions=new ti({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const n=this.events;return e.pipe(xt(r=>0!==r.id),de(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Ji(r=>{let s=!1,o=!1;return Q(r).pipe(Fe(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ji(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Pd(a.source)&&(this.browserUrlTree=a.extractedUrl),Q(a).pipe(Ji(u=>{const h=this.transitions.getValue();return n.next(new sm(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions.getValue()?ln:Promise.resolve(u)}),function JV(i,t,e,n){return Ji(r=>function KV(i,t,e,n,r){return new ZV(i,t,e,n,r).apply()}(i,t,e,r.extractedUrl,n).pipe(de(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Fe(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function yH(i,t,e,n,r){return ut(s=>function fH(i,t,e,n,r="emptyOnly",s="legacy"){try{const o=new mH(i,t,e,n,r,s).recognize();return null===o?bM(new pH):Q(o)}catch(o){return bM(o)}}(i,t,s.urlAfterRedirects,e(s.urlAfterRedirects),n,r).pipe(de(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),Fe(u=>{if("eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(f,u)}this.browserUrlTree=u.urlAfterRedirects}const h=new G2(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);n.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:_,restoredState:v,extras:b}=a,M=new sm(h,this.serializeUrl(f),_,v);n.next(M);const w=iM(f,this.rootComponentType).snapshot;return Q(Object.assign(Object.assign({},a),{targetSnapshot:w,urlAfterRedirects:f,extras:Object.assign(Object.assign({},b),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),ln}),bm(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!f})}),Fe(a=>{const l=new W2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),de(a=>Object.assign(Object.assign({},a),{guards:eH(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function sH(i,t){return ut(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?Q(Object.assign(Object.assign({},e),{guardsResult:!0})):function oH(i,t,e,n){return vt(i).pipe(ut(r=>function hH(i,t,e,n,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Q(s.map(a=>{const l=Od(a,t,r);let c;if(function VV(i){return i&&wr(i.canDeactivate)}(l))c=En(l.canDeactivate(i,t,e,n));else{if(!wr(l))throw new Error("Invalid CanDeactivate guard");c=En(l(i,t,e,n))}return c.pipe(Co())})).pipe(sl()):Q(!0)}(r.component,r.route,e,t,n)),Co(r=>!0!==r,!0))}(o,n,r,i).pipe(ut(a=>a&&function FV(i){return"boolean"==typeof i}(a)?function aH(i,t,e,n){return vt(t).pipe(bo(r=>Xa(function cH(i,t){return null!==i&&t&&t(new K2(i)),Q(!0)}(r.route.parent,n),function lH(i,t){return null!==i&&t&&t(new X2(i)),Q(!0)}(r.route,n),function uH(i,t,e){const n=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function tH(i){const t=i.routeConfig?i.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:i,guards:t}:null}(o)).filter(o=>null!==o).map(o=>Ja(()=>Q(o.guards.map(l=>{const c=Od(l,o.node,e);let d;if(function BV(i){return i&&wr(i.canActivateChild)}(c))d=En(c.canActivateChild(n,i));else{if(!wr(c))throw new Error("Invalid CanActivateChild guard");d=En(c(n,i))}return d.pipe(Co())})).pipe(sl())));return Q(s).pipe(sl())}(i,r.path,e),function dH(i,t,e){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return Q(!0);const r=n.map(s=>Ja(()=>{const o=Od(s,t,e);let a;if(function LV(i){return i&&wr(i.canActivate)}(o))a=En(o.canActivate(t,i));else{if(!wr(o))throw new Error("Invalid CanActivate guard");a=En(o(t,i))}return a.pipe(Co())}));return Q(r).pipe(sl())}(i,r.route,e))),Co(r=>!0!==r,!0))}(n,s,i,t):Q(a)),de(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Fe(a=>{if(ts(a.guardsResult)){const c=om(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new q2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),xt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),bm(a=>{if(a.guards.canActivateChecks.length)return Q(a).pipe(Fe(l=>{const c=new Y2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Ji(l=>{let c=!1;return Q(l).pipe(function bH(i,t){return ut(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let s=0;return vt(r).pipe(bo(o=>function CH(i,t,e,n){return function DH(i,t,e,n){const r=Object.keys(i);if(0===r.length)return Q({});const s={};return vt(r).pipe(ut(o=>function wH(i,t,e,n){const r=Od(i,t,n);return En(r.resolve?r.resolve(t,e):r(t,e))}(i[o],t,e,n).pipe(Fe(a=>{s[o]=a}))),rm(1),ut(()=>Object.keys(s).length===r.length?Q(s):ln))}(i._resolve,i,t,n).pipe(de(s=>(i._resolvedData=s,i.data=Object.assign(Object.assign({},i.data),nM(i,e).resolve),null)))}(o.route,n,i,t)),Fe(()=>s++),rm(1),ut(o=>s===r.length?Q(e):ln))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Fe({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Fe(l=>{const c=new Q2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),bm(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!f})}),de(a=>{const l=function DV(i,t,e){const n=il(i,t._root,e?e._root:void 0);return new tM(n,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Fe(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((i,t,e)=>de(n=>(new OV(t,n.targetRouterState,n.currentRouterState,e).activate(i),n)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Fe({next(){s=!0},complete(){s=!0}}),yd(()=>{var a;s||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),xn(a=>{if(o=!0,function tV(i){return i&&i[Hw]}(a)){const l=ts(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Nw(r.id,this.serializeUrl(r.extractedUrl),a.message);n.next(c),l?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Pd(r.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new $2(r.id,this.serializeUrl(r.extractedUrl),a);n.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return ln}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,n,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){hM(e),this.config=e.map(vm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=n,c=r||this.routerState.root,d=l?this.currentUrlTree.fragment:o;let u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}return null!==u&&(u=this.removeEmptyProps(u)),function xV(i,t,e,n,r){if(0===e.length)return pm(t.root,t.root,t,n,r);const s=function SV(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new aM(!0,0,i);let t=0,e=!1;const n=i.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Pt(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new aM(e,t,n)}(e);if(s.toRoot())return pm(t.root,new we([],{}),t,n,r);const o=function EV(i,t,e){if(i.isAbsolute)return new fm(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new fm(s,s===t.root,0)}const n=Sd(i.commands[0])?0:1;return function kV(i,t,e){let n=i,r=t,s=e;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Error("Invalid number of '../'");r=n.segments.length}return new fm(n,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,i.numberOfDoubleDots)}(s,t,i),a=o.processChildren?Ed(o.segmentGroup,o.index,s.commands):lM(o.segmentGroup,o.index,s.commands);return pm(o.segmentGroup,a,t,n,r)}(c,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=ts(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return function OH(i){for(let t=0;t{const s=e[r];return null!=s&&(n[r]=s),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new el(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,n,r,s,o){var a,l,c;if(this.disposed)return Promise.resolve(!1);const d=this.transitions.value,u=Pd(n)&&d&&!Pd(d.source),h=d.rawUrl.toString()===e.toString(),f=d.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(u&&h&&f)return Promise.resolve(!0);let v,b,M;o?(v=o.resolve,b=o.reject,M=o.promise):M=new Promise((P,ue)=>{v=P,b=ue});const w=++this.navigationId;let T;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),T=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):T=0,this.setTransition({id:w,targetPageId:T,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:v,reject:b,promise:M,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),M.catch(P=>Promise.reject(P))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,n=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const r=new Nw(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return i.\u0275fac=function(e){Wr()},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function Pd(i){return"imperative"!==i}let Mo=(()=>{class i{constructor(e,n,r){this.router=e,this.route=n,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new O,this.subscription=e.events.subscribe(s=>{s instanceof el&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,n,r,s,o){if(0!==e||n||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:xo(this.skipLocationChange),replaceUrl:xo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:xo(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(p(mi),p(Jn),p(vo))},i.\u0275dir=x({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&R("click",function(s){return n.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&X("target",n.target)("href",n.href,It)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Ye]}),i})();function xo(i){return""===i||!!i}class kM{}class TM{preload(t,e){return Q(null)}}let AM=(()=>{class i{constructor(e,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new SM(r,n,l=>e.triggerEvent(new Lw(l)),l=>e.triggerEvent(new Bw(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(xt(e=>e instanceof el),bo(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Gn);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const s of n)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return vt(r).pipe(ia(),de(s=>{}))}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>(n._loadedConfig?Q(n._loadedConfig):this.loader.load(e.injector,n)).pipe(ut(s=>(n._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return i.\u0275fac=function(e){return new(e||i)(D(mi),D(Jc),D(Ge),D(kM))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),wm=(()=>{class i{constructor(e,n,r={}){this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof sm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof el&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Vw&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new Vw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){Wr()},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const is=new S("ROUTER_CONFIGURATION"),IM=new S("ROUTER_FORROOT_GUARD"),LH=[yo,{provide:Qw,useClass:Kw},{provide:mi,useFactory:function zH(i,t,e,n,r,s,o={},a,l){const c=new mi(null,i,t,e,n,r,zw(s));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function UH(i,t){i.errorHandler&&(t.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(t.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(t.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(t.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(t.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(t.canceledNavigationResolution=i.canceledNavigationResolution)}(o,c),o.enableTracing&&c.events.subscribe(d=>{var u,h;null===(u=console.group)||void 0===u||u.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[Qw,ol,yo,Ge,Jc,Cm,is,[class EH{},new Ct],[class MH{},new Ct]]},ol,{provide:Jn,useFactory:function $H(i){return i.routerState.root},deps:[mi]},AM,TM,class NH{preload(t,e){return e().pipe(xn(()=>Q(null)))}},{provide:is,useValue:{enableTracing:!1}}];function BH(){return new xD("Router",mi)}let Mm=(()=>{class i{constructor(e,n){}static forRoot(e,n){return{ngModule:i,providers:[LH,RM(e),{provide:IM,useFactory:jH,deps:[[mi,new Ct,new ci]]},{provide:is,useValue:n||{}},{provide:vo,useFactory:HH,deps:[Kr,[new ya(Bf),new Ct],is]},{provide:wm,useFactory:VH,deps:[mi,qB,is]},{provide:kM,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:TM},{provide:xD,multi:!0,useFactory:BH},[xm,{provide:Xc,multi:!0,useFactory:GH,deps:[xm]},{provide:OM,useFactory:WH,deps:[xm]},{provide:vD,multi:!0,useExisting:OM}]]}}static forChild(e){return{ngModule:i,providers:[RM(e)]}}}return i.\u0275fac=function(e){return new(e||i)(D(IM,8),D(mi,8))},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();function VH(i,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new wm(i,t,e)}function HH(i,t,e={}){return e.useHash?new PL(i,t):new qD(i,t)}function jH(i){return"guarded"}function RM(i){return[{provide:uI,multi:!0,useValue:i},{provide:Cm,multi:!0,useValue:i}]}let xm=(()=>{class i{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new O}appInitializer(){return this.injector.get(IL,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let n=null;const r=new Promise(a=>n=a),s=this.injector.get(mi),o=this.injector.get(is);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?Q(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),s.initialNavigation()):n(!0),r})}bootstrapListener(e){const n=this.injector.get(is),r=this.injector.get(AM),s=this.injector.get(wm),o=this.injector.get(mi),a=this.injector.get(go);e===a.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void 0===n.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return i.\u0275fac=function(e){return new(e||i)(D(Ge))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function GH(i){return i.appInitializer.bind(i)}function WH(i){return i.bootstrapListener.bind(i)}const OM=new S("Router Initializer");class PM{}class FM{}class kn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),s=r.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof kn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new kn;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof kn?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class YH{encodeKey(t){return NM(t)}encodeValue(t){return NM(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const KH=/%(\d[a-f0-9])/gi,ZH={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function NM(i){return encodeURIComponent(i).replace(KH,(t,e)=>{var n;return null!==(n=ZH[e])&&void 0!==n?n:t})}function LM(i){return`${i}`}class Mr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new YH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function QH(i,t){const e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Mr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(LM(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let n=this.map.get(t.param)||[];const r=n.indexOf(LM(t.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class XH{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function BM(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function VM(i){return"undefined"!=typeof Blob&&i instanceof Blob}function HM(i){return"undefined"!=typeof FormData&&i instanceof FormData}class dl{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function JH(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new kn),this.context||(this.context=new XH),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(d=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),d)),new dl(n,r,o,{params:d,headers:c,context:u,reportProgress:l,responseType:s,withCredentials:a})}}var mt=(()=>((mt=mt||{})[mt.Sent=0]="Sent",mt[mt.UploadProgress=1]="UploadProgress",mt[mt.ResponseHeader=2]="ResponseHeader",mt[mt.DownloadProgress=3]="DownloadProgress",mt[mt.Response=4]="Response",mt[mt.User=5]="User",mt))();class Sm{constructor(t,e=200,n="OK"){this.headers=t.headers||new kn,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Em extends Sm{constructor(t={}){super(t),this.type=mt.ResponseHeader}clone(t={}){return new Em({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Fd extends Sm{constructor(t={}){super(t),this.type=mt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Fd({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class jM extends Sm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function km(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}let Nd=(()=>{class i{constructor(e){this.handler=e}request(e,n,r={}){let s;if(e instanceof dl)s=e;else{let l,c;l=r.headers instanceof kn?r.headers:new kn(r.headers),r.params&&(c=r.params instanceof Mr?r.params:new Mr({fromObject:r.params})),s=new dl(e,n,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Q(s).pipe(bo(l=>this.handler.handle(l)));if(e instanceof dl||"events"===r.observe)return o;const a=o.pipe(xt(l=>l instanceof Fd));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(de(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(de(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(de(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(de(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new Mr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,km(r,n))}post(e,n,r={}){return this.request("POST",e,km(r,n))}put(e,n,r={}){return this.request("PUT",e,km(r,n))}}return i.\u0275fac=function(e){return new(e||i)(D(PM))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class zM{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const UM=new S("HTTP_INTERCEPTORS");let tj=(()=>{class i{intercept(e,n){return n.handle(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const ij=/^\)\]\}',?\n/;let $M=(()=>{class i{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ie(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,_)=>r.setRequestHeader(f,_.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const f=1223===r.status?204:r.status,_=r.statusText||"OK",v=new kn(r.getAllResponseHeaders()),b=function nj(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new Em({headers:v,status:f,statusText:_,url:b}),o},l=()=>{let{headers:f,status:_,statusText:v,url:b}=a(),M=null;204!==_&&(M=void 0===r.response?r.responseText:r.response),0===_&&(_=M?200:0);let w=_>=200&&_<300;if("json"===e.responseType&&"string"==typeof M){const T=M;M=M.replace(ij,"");try{M=""!==M?JSON.parse(M):null}catch(P){M=T,w&&(w=!1,M={error:P,text:M})}}w?(n.next(new Fd({body:M,headers:f,status:_,statusText:v,url:b||void 0})),n.complete()):n.error(new jM({error:M,headers:f,status:_,statusText:v,url:b||void 0}))},c=f=>{const{url:_}=a(),v=new jM({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:_||void 0});n.error(v)};let d=!1;const u=f=>{d||(n.next(a()),d=!0);let _={type:mt.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),"text"===e.responseType&&!!r.responseText&&(_.partialText=r.responseText),n.next(_)},h=f=>{let _={type:mt.UploadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),n.next(_)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",u),null!==s&&r.upload&&r.upload.addEventListener("progress",h)),r.send(s),n.next({type:mt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",u),null!==s&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return i.\u0275fac=function(e){return new(e||i)(D(pw))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Tm=new S("XSRF_COOKIE_NAME"),Am=new S("XSRF_HEADER_NAME");class GM{}let rj=(()=>{class i{constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nw(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(Ga),D(Tm))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),Im=(()=>{class i{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return n.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),n.handle(e)}}return i.\u0275fac=function(e){return new(e||i)(D(GM),D(Am))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),sj=(()=>{class i{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=this.injector.get(UM,[]);this.chain=n.reduceRight((r,s)=>new zM(r,s),this.backend)}return this.chain.handle(e)}}return i.\u0275fac=function(e){return new(e||i)(D(FM),D(Ge))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),oj=(()=>{class i{static disable(){return{ngModule:i,providers:[{provide:Im,useClass:tj}]}}static withOptions(e={}){return{ngModule:i,providers:[e.cookieName?{provide:Tm,useValue:e.cookieName}:[],e.headerName?{provide:Am,useValue:e.headerName}:[]]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Im,{provide:UM,useExisting:Im,multi:!0},{provide:GM,useClass:rj},{provide:Tm,useValue:"XSRF-TOKEN"},{provide:Am,useValue:"X-XSRF-TOKEN"}]}),i})(),aj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Nd,{provide:PM,useClass:sj},$M,{provide:FM,useExisting:$M}],imports:[[oj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i})();function So(i,t,e){return console.log("error => "+t),i.open(t,e,{duration:3e3,panelClass:"error-snack-bar"}),Q({})}function tn(i,t){return function lj(i,t,e,n){return t&&t(),n?(console.log("With errorer "+n),i().pipe(Fe(r=>console.log("Trap Begin...")),xn(n),yd(()=>{console.log("Trap End.."),e&&e()}))):i().pipe(Fe(r=>console.log("Trap Begin...")),yd(()=>{console.log("Trap End.."),e&&e()}))}(i,cj,dj,t)}function cj(){console.log("Showing loading..."),document.getElementById("loading-layer").style.display="block"}function dj(){console.log("Hiding loading..."),document.getElementById("loading-layer").style.display="none"}function Eo(i,t,e){console.log("success => "+t),i.open(t,e,{duration:3e3,panelClass:"success-snack-bar"})}let Ld=(()=>{class i{constructor(e){this.http=e,this.calistURL="/ca/",this.httpOptions={headers:new kn({"Content-Type":"application/json"})}}getCAList(){return this.http.get(this.calistURL+"getAll").pipe(Fe(e=>this.log(`fetched CA List ${JSON.stringify(e)}`)))}deleteCA(e){return console.log(`Executing deleteCA ${e}`),this.http.delete(this.calistURL+e).pipe(Fe(n=>this.log(`Delete CA by id ${JSON.stringify(n)}`)))}deleteCert(e,n){return console.log(`Executing deleteCert ${e}/${n}`),this.http.delete(this.calistURL+e+"/cert/"+n).pipe(Fe(r=>this.log(`Delete Cert by id ${e}/${n} result ${JSON.stringify(r)}`)))}expired(e){return null!=e&&(new Date).getTime()>=e.issueTime+36e5*e.validDays*24}expiredCert(e){return null!=e&&(new Date).getTime()>=e.issueTime+36e5*e.validDays*24}getCAById(e){return this.http.get(this.calistURL+"get/"+e).pipe(Fe(n=>this.log(`fetched CA by id ${JSON.stringify(n)}`)))}getCertsByCAId(e){return this.http.get(this.calistURL+e+"/cert").pipe(Fe(n=>this.log(`fetched CA by id ${JSON.stringify(n)}`)))}importCA(e){return this.http.put(this.calistURL+"import",e).pipe(Fe(n=>this.log(`import CA with ${JSON.stringify(e)} result ${JSON.stringify(n)}`)))}createCA(e){return this.http.put(this.calistURL+"new",e).pipe(Fe(n=>this.log(`create CA with ${JSON.stringify(e)} result ${JSON.stringify(n)}`)))}createCert(e,n){return this.http.put(this.calistURL+e+"/new",n).pipe(Fe(r=>this.log(`create Cert in CA ${e} with ${JSON.stringify(n)} result ${JSON.stringify(r)}`)))}inspectCert(e){return this.http.put(this.calistURL+"cert/inspect",e).pipe(Fe(n=>this.log(`Inspect Cert ${JSON.stringify(e)} result ${JSON.stringify(n)}`)))}getCertByCAAndCertId(e,n){return this.http.get(this.calistURL+e+"/cert/"+n).pipe(Fe(r=>this.log(`fetched Cert By ID ${e} + ${n}: ${JSON.stringify(r)}`)))}log(e){console.log(`CAService: ${e}`)}handleError(e="operation",n){return r=>(console.error(r),this.log(`${e} failed: ${r.message}`),Q(n))}}return i.\u0275fac=function(e){return new(e||i)(D(Nd))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Y(i){return null!=i&&"false"!=`${i}`}function Qt(i,t=0){return function uj(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):t}function Bd(i){return Array.isArray(i)?i:[i]}function gt(i){return null==i?"":"string"==typeof i?i:`${i}px`}function dt(i){return i instanceof W?i.nativeElement:i}const hj=["addListener","removeListener"],pj=["addEventListener","removeEventListener"],fj=["on","off"];function ns(i,t,e,n){if(xe(e)&&(n=e,e=void 0),n)return ns(i,t,e).pipe(nm(n));const[r,s]=function _j(i){return xe(i.addEventListener)&&xe(i.removeEventListener)}(i)?pj.map(o=>a=>i[o](t,a,e)):function mj(i){return xe(i.addListener)&&xe(i.removeListener)}(i)?hj.map(WM(i,t)):function gj(i){return xe(i.on)&&xe(i.off)}(i)?fj.map(WM(i,t)):[];if(!r&&uh(i))return ut(o=>ns(o,t,e))(ni(i));if(!r)throw new TypeError("Invalid event target");return new Ie(o=>{const a=(...l)=>o.next(1s(a)})}function WM(i,t){return e=>n=>i[e](t,n)}class vj extends Te{constructor(t,e){super()}schedule(t,e=0){return this}}const Vd={setInterval(...i){const{delegate:t}=Vd;return((null==t?void 0:t.setInterval)||setInterval)(...i)},clearInterval(i){const{delegate:t}=Vd;return((null==t?void 0:t.clearInterval)||clearInterval)(i)},delegate:void 0};class Rm extends vj{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return Vd.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;Vd.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,n=!1;try{this.work(t)}catch(s){n=!0,r=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Ds(n,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const ul={schedule(i){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=ul;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=t(s=>{e=void 0,i(s)});return new Te(()=>null==e?void 0:e(r))},requestAnimationFrame(...i){const{delegate:t}=ul;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:t}=ul;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...i)},delegate:void 0},qM={now:()=>(qM.delegate||Date).now(),delegate:void 0};class hl{constructor(t,e=hl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,n){return new this.schedulerActionCtor(this,t).schedule(n,e)}}hl.now=qM.now;class Om extends hl{constructor(t,e=hl.now){super(t,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const YM=new class bj extends Om{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let n,r=-1;t=t||e.shift();const s=e.length;do{if(n=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=ul.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,n=0){if(null!=n&&n>0||null==n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(ul.cancelAnimationFrame(e),t._scheduled=void 0)}});let Pm,Cj=1;const Hd={};function QM(i){return i in Hd&&(delete Hd[i],!0)}const Dj={setImmediate(i){const t=Cj++;return Hd[t]=!0,Pm||(Pm=Promise.resolve()),Pm.then(()=>QM(t)&&i()),t},clearImmediate(i){QM(i)}},{setImmediate:wj,clearImmediate:Mj}=Dj,jd={setImmediate(...i){const{delegate:t}=jd;return((null==t?void 0:t.setImmediate)||wj)(...i)},clearImmediate(i){const{delegate:t}=jd;return((null==t?void 0:t.clearImmediate)||Mj)(i)},delegate:void 0},zd=(new class Sj extends Om{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let n,r=-1;t=t||e.shift();const s=e.length;do{if(n=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=jd.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,n=0){if(null!=n&&n>0||null==n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(jd.clearImmediate(e),t._scheduled=void 0)}}),new Om(Rm)),KM=zd;function Fm(i=0,t,e=KM){let n=-1;return null!=t&&(ov(t)?e=t:n=t),new Ie(r=>{let s=function Tj(i){return i instanceof Date&&!isNaN(i)}(i)?+i-e.now():i;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=n?this.schedule(void 0,n):r.complete())},s)})}function ZM(i,t=KM){return function kj(i){return Ke((t,e)=>{let n=!1,r=null,s=null,o=!1;const a=()=>{if(null==s||s.unsubscribe(),s=null,n){n=!1;const c=r;r=null,e.next(c)}o&&e.complete()},l=()=>{s=null,o&&e.complete()};t.subscribe(new Ue(e,c=>{n=!0,r=c,s||ni(i(c)).subscribe(s=new Ue(e,a,l))},()=>{o=!0,(!n||!s||s.closed)&&e.complete()}))})}(()=>Fm(i,t))}let Nm;try{Nm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i){Nm=!1}let To,_t=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function WB(i){return i===uw}(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&&!Nm)&&"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 i.\u0275fac=function(e){return new(e||i)(D(Ga))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ko=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const XM=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function JM(){if(To)return To;if("object"!=typeof document||!document)return To=new Set(XM),To;let i=document.createElement("input");return To=new Set(XM.filter(t=>(i.setAttribute("type",t),i.type===t))),To}let pl,rs,Lm;function nn(i){return function Aj(){if(null==pl&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>pl=!0}))}finally{pl=pl||!1}return pl}()?i:!!i.capture}function Ij(){if(null==rs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return rs=!1,rs;if("scrollBehavior"in document.documentElement.style)rs=!0;else{const i=Element.prototype.scrollTo;rs=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return rs}function $d(i){if(function Rj(){if(null==Lm){const i="undefined"!=typeof document?document.head:null;Lm=!(!i||!i.createShadowRoot&&!i.attachShadow)}return Lm}()){const t=i.getRootNode?i.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Bm(){let i="undefined"!=typeof document&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const t=i.shadowRoot.activeElement;if(t===i)break;i=t}return i}function Oi(i){return i.composedPath?i.composedPath()[0]:i.target}function Vm(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const Oj=new S("cdk-dir-doc",{providedIn:"root",factory:function Pj(){return Dc(ie)}}),Fj=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let rn=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new q,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function Nj(i){const t=(null==i?void 0:i.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?Fj.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(D(Oj,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ao=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),Bj=(()=>{class i{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new O,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ie(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(ZM(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Q()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(xt(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=dt(n),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ns(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(_t),D(ie,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Io=(()=>{class i{constructor(e,n,r){this._platform=e,this._change=new O,this._changeListener=s=>{this._change.next(s)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(ZM(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(te),D(ie,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Tn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),Gd=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Ao,ko,Tn],Ao,Tn]}),i})();class Hm{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class fl extends Hm{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class ml extends Hm{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Hj extends Hm{constructor(t){super(),this.element=t instanceof W?t.nativeElement:t}}class Wd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof fl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ml?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Hj?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class jj extends Wd{constructor(t,e,n,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=n.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let qd=(()=>{class i extends Wd{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new q,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=n.createComponent(s,n.length,e.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(p(br),p(lt),p(ie))},i.\u0275dir=x({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[I]}),i})(),er=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();function Re(i){return Ke((t,e)=>{ni(i).subscribe(new Ue(e,()=>e.complete(),ws)),!e.closed&&t.subscribe(e)})}function ii(i,...t){return t.length?t.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}const ix=Ij();class t3{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=gt(-this._previousScrollPosition.left),t.style.top=gt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,n=t.style,r=this._document.body.style,s=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),ix&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ix&&(n.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class n3{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class nx{enable(){}disable(){}attach(){}}function Wm(i,t){return t.some(e=>i.bottome.bottom||i.righte.right)}function rx(i,t){return t.some(e=>i.tope.bottom||i.lefte.right)}class r3{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Wm(e,[{width:n,height:r,bottom:r,right:n,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 s3=(()=>{class i{constructor(e,n,r,s){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new nx,this.close=o=>new n3(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new t3(this._viewportRuler,this._document),this.reposition=o=>new r3(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return i.\u0275fac=function(e){return new(e||i)(D(Bj),D(Io),D(te),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class _l{constructor(t){if(this.scrollStrategy=new nx,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class o3{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class a3{constructor(t,e,n,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new O,this._attachments=new O,this._detachments=new O,this._locationChanges=Te.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._keydownEvents=new O,this._outsidePointerEvents=new O,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(We(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=gt(this._config.width),t.height=gt(this._config.height),t.minWidth=gt(this._config.minWidth),t.minHeight=gt(this._config.minHeight),t.maxWidth=gt(this._config.maxWidth),t.maxHeight=gt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const r=Bd(e||[]).filter(s=>!!s);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Re(jt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let qm=(()=>{class i{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Vm()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,n)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleAreal&&(l=d,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&&ls(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sx),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,n){let r,s;if("center"==n.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==n.originX?o:a}return e.left<0&&(r-=e.left),s="center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,n){let r,s;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,n,r){const s=ax(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-n.height,_=this._subtractOverflows(s.width,0-o,o+s.width-n.width),v=this._subtractOverflows(s.height,h,f),b=_*v;return{visibleArea:b,isCompletelyWithinViewport:s.width*s.height===b,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:_==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,s=n.right-e.x,o=ox(this._overlayRef.getConfig().minHeight),a=ox(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=ax(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-n.top-t.y,0),c=Math.max(s.left-n.left-t.x,0);let d=0,u=0;return d=r.width<=s.width?c||-o:t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-_/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=n.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=t.x,d=n.right-t.x;else{const f=Math.min(n.right-t.x+n.left,t.x),_=this._lastBoundingBoxSize.width;d=2*f,u=t.x-f,d>_&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-_/2)}return{top:o,left:u,bottom:a,right:h,width:d,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.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=gt(n.height),r.top=gt(n.top),r.bottom=gt(n.bottom),r.width=gt(n.width),r.left=gt(n.left),r.right=gt(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=gt(s)),o&&(r.maxWidth=gt(o))}this._lastBoundingBoxSize=n,ls(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ls(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ls(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();ls(n,this._getExactOverlayY(e,t,d)),ls(n,this._getExactOverlayX(e,t,d))}else n.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),o.maxHeight&&(r?n.maxHeight=gt(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=gt(o.maxWidth):s&&(n.maxWidth="")),ls(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=gt(s.y),r}_getExactOverlayX(t,e,n){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=gt(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:rx(t,n),isOriginOutsideView:Wm(t,n),isOverlayClipped:rx(e,n),isOverlayOutsideView:Wm(e,n)}}_subtractOverflows(t,...e){return e.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Bd(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof W)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function ls(i,t){for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function ox(i){if("number"!=typeof i&&null!=i){const[t,e]=i.split(l3);return e&&"px"!==e?null:parseFloat(t)}return i||null}function ax(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const lx="cdk-global-overlay-wrapper";class d3{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(lx),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=n,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(lx),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let u3=(()=>{class i{constructor(e,n,r,s){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=s}global(){return new d3}flexibleConnectedTo(e){return new c3(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(D(Io),D(ie),D(_t),D(qm))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),cx=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),h3=(()=>{class i extends cx{constructor(e){super(e),this._keydownListener=n=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(n);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),p3=(()=>{class i extends cx{constructor(e,n){super(e),this._platform=n,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Oi(r)},this._clickListener=r=>{const s=Oi(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),f3=0,Pi=(()=>{class i{constructor(e,n,r,s,o,a,l,c,d,u,h){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),s=this._createPortalOutlet(r),o=new _l(e);return o.direction=o.direction||this._directionality.value,new a3(s,n,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+f3++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(go)),new jj(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(D(s3),D(qm),D(br),D(u3),D(h3),D(Ge),D(te),D(ie),D(rn),D(yo),D(p3))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const m3=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],dx=new S("cdk-connected-overlay-scroll-strategy");let ux=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(p(W))},i.\u0275dir=x({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),hx=(()=>{class i{constructor(e,n,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Te.EMPTY,this._attachSubscription=Te.EMPTY,this._detachSubscription=Te.EMPTY,this._positionSubscription=Te.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new q,this.positionChange=new q,this.attach=new q,this.detach=new q,this.overlayKeydown=new q,this.overlayOutsideClick=new q,this._templatePortal=new ml(n,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Y(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Y(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Y(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Y(e)}get push(){return this._push}set push(e){this._push=Y(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=m3);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!ii(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new _l({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ux?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function zj(i,t=!1){return Ke((e,n)=>{let r=0;e.subscribe(new Ue(n,s=>{const o=i(s,r++);(o||t)&&n.next(s),!o&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(p(Pi),p(at),p(lt),p(dx),p(rn,8))},i.\u0275dir=x({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ye]}),i})();const _3={provide:dx,deps:[Pi],useFactory:function g3(i){return()=>i.scrollStrategies.reposition()}};let tr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Pi,_3],imports:[[Ao,er,Gd],Gd]}),i})();function Ym(i,t=zd){return Ke((e,n)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=s;s=null,n.next(c)}};function l(){const c=o+i,d=t.now();if(d{s=c,o=t.now(),r||(r=t.schedule(l,i),n.add(r))},()=>{a(),n.complete()},void 0,()=>{s=r=null}))})}function fx(i){return xt((t,e)=>i<=e)}function mx(i,t=dr){return i=null!=i?i:v3,Ke((e,n)=>{let r,s=!0;e.subscribe(new Ue(n,o=>{const a=t(o);(s||!i(r,a))&&(s=!1,r=a,n.next(o))}))})}function v3(i,t){return i===t}let gx=(()=>{class i{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),y3=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=dt(e);return new Ie(r=>{const o=this._observeElement(n).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new O,r=this._mutationObserverFactory.create(s=>n.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(D(gx))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Qm=(()=>{class i{constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new q,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Y(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qt(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ym(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(p(y3),p(W),p(te))},i.\u0275dir=x({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),vl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[gx]}),i})();function Qd(i,t){return(i.getAttribute(t)||"").match(/\S+/g)||[]}const vx="cdk-describedby-message-container",yx="cdk-describedby-message",Kd="cdk-describedby-host";let D3=0;const An=new Map;let gi=null,w3=(()=>{class i{constructor(e){this._document=e}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const s=Km(n,r);"string"!=typeof n?(bx(n),An.set(s,{messageElement:n,referenceCount:0})):An.has(s)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;const s=Km(n,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof n){const o=An.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}gi&&0===gi.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Kd}]`);for(let n=0;n0!=r.indexOf(yx));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=An.get(n);(function b3(i,t,e){const n=Qd(i,t);n.some(r=>r.trim()==e.trim())||(n.push(e.trim()),i.setAttribute(t,n.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Kd,""),r.referenceCount++}_removeMessageReference(e,n){const r=An.get(n);r.referenceCount--,function C3(i,t,e){const r=Qd(i,t).filter(s=>s!=e.trim());r.length?i.setAttribute(t,r.join(" ")):i.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Kd)}_isElementDescribedByMessage(e,n){const r=Qd(e,"aria-describedby"),s=An.get(n),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Km(i,t){return"string"==typeof i?`${t||""}/${i}`:i}function bx(i){i.id||(i.id=`${yx}-${D3++}`)}class Cx{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new O,this._typeaheadSubscription=Te.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new O,this.change=new O,t instanceof za&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Fe(e=>this._pressedLetters.push(e)),Ym(t),xt(()=>this._pressedLetters.length>0),de(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){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||ii(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof za?this._items.toArray():this._items}}class M3 extends Cx{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Dx extends Cx{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let wx=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function S3(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function x3(i){try{return i.frameElement}catch(t){return null}}(function P3(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(n&&(-1===xx(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),s=xx(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function R3(i){let t=i.nodeName.toLowerCase(),e="input"===t&&i.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function O3(i){return!function k3(i){return function A3(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function E3(i){let t=i.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(i)||function T3(i){return function I3(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||Mx(i))}(e)&&!this.isDisabled(e)&&((null==n?void 0:n.ignoreVisibility)||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Mx(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let t=i.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function xx(i){if(!Mx(i))return null;const t=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class F3{constructor(t,e,n,r,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return null==n||n.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(We(1)).subscribe(t)}}let N3=(()=>{class i{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new F3(e,this._checker,this._ngZone,this._document,n)}}return i.\u0275fac=function(e){return new(e||i)(D(wx),D(te),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Zm(i){return 0===i.offsetX&&0===i.offsetY}function Xm(i){const t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const L3=new S("cdk-input-modality-detector-options"),B3={ignoreKeys:[18,17,224,91,16]},Ro=nn({passive:!0,capture:!0});let V3=(()=>{class i{constructor(e,n,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new ti(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Oi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Zm(o)?"keyboard":"mouse"),this._mostRecentTarget=Oi(o))},this._onTouchstart=o=>{Xm(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Oi(o))},this._options=Object.assign(Object.assign({},B3),s),this.modalityDetected=this._modality.pipe(fx(1)),this.modalityChanged=this.modalityDetected.pipe(mx()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ro),r.addEventListener("mousedown",this._onMousedown,Ro),r.addEventListener("touchstart",this._onTouchstart,Ro)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ro),document.removeEventListener("mousedown",this._onMousedown,Ro),document.removeEventListener("touchstart",this._onTouchstart,Ro))}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(te),D(ie),D(L3,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const H3=new S("liveAnnouncerElement",{providedIn:"root",factory:function j3(){return null}}),z3=new S("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ex=(()=>{class i{constructor(e,n,r,s){this._ngZone=n,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){const r=this._defaultOptions;let s,o;return 1===n.length&&"number"==typeof n[0]?o=n[0]:[s,o]=n,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s{class i{constructor(e,n,r,s,o){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new O,this._rootNodeFocusAndBlurListener=a=>{const l=Oi(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let d=l;d;d=d.parentElement)c.call(this,a,d)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,n=!1){const r=dt(e);if(!this._platform.isBrowser||1!==r.nodeType)return Q(null);const s=$d(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;const a={checkChildren:n,subject:new O,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const n=dt(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const s=dt(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,n,l)):(this._setOrigin(n),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),s=Oi(e);!r||!r.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r.subject,null))}_emitOrigin(e,n){this._ngZone.run(()=>e.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zd),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zd)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Re(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zd),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zd),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r.subject,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&n.push([s,r])}),n}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(_t),D(V3),D(ie,8),D(U3,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const kx="cdk-high-contrast-black-on-white",Tx="cdk-high-contrast-white-on-black",Jm="cdk-high-contrast-active";let Ax=(()=>{class i{constructor(e,n){this._platform=e,this._document=n}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Jm),e.remove(kx),e.remove(Tx),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?(e.add(Jm),e.add(kx)):2===n&&(e.add(Jm),e.add(Tx))}}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),yl=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(D(Ax))},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[ko,vl]]}),i})();class Ix{}const nr="*";function Je(i,t){return{type:7,name:i,definitions:t,options:{}}}function Me(i,t=null){return{type:4,styles:t,timings:i}}function Rx(i,t=null){return{type:2,steps:i,options:t}}function V(i){return{type:6,styles:i,offset:null}}function ce(i,t,e){return{type:0,name:i,styles:t,options:e}}function be(i,t,e=null){return{type:1,expr:i,animation:t,options:e}}function Ox(i=null){return{type:9,options:i}}function Px(i,t,e=null){return{type:11,selector:i,animation:t,options:e}}function Fx(i){Promise.resolve(null).then(i)}class Oo{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Fx(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Nx{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const s=this.players.length;0==s?Fx(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const t=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function Lx(){return"undefined"!=typeof window&&void 0!==window.document}function tg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function xr(i){switch(i.length){case 0:return new Oo;case 1:return i[0];default:return new Nx(i)}}function Bx(i,t,e,n,r={},s={}){const o=[],a=[];let l=-1,c=null;if(n.forEach(d=>{const u=d.offset,h=u==l,f=h&&c||{};Object.keys(d).forEach(_=>{let v=_,b=d[_];if("offset"!==_)switch(v=t.normalizePropertyName(v,o),b){case"!":b=r[_];break;case nr:b=s[_];break;default:b=t.normalizeStyleValue(_,v,b,o)}f[v]=b}),h||a.push(f),c=f,l=u}),o.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${o.join(d)}`)}return a}function ig(i,t,e,n){switch(t){case"start":i.onStart(()=>n(e&&ng(e,"start",i)));break;case"done":i.onDone(()=>n(e&&ng(e,"done",i)));break;case"destroy":i.onDestroy(()=>n(e&&ng(e,"destroy",i)))}}function ng(i,t,e){const n=e.totalTime,s=rg(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,null==n?i.totalTime:n,!!e.disabled),o=i._data;return null!=o&&(s._data=o),s}function rg(i,t,e,n,r="",s=0,o){return{element:i,triggerName:t,fromState:e,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function _i(i,t,e){let n;return i instanceof Map?(n=i.get(t),n||i.set(t,n=e)):(n=i[t],n||(n=i[t]=e)),n}function Vx(i){const t=i.indexOf(":");return[i.substring(1,t),i.substr(t+1)]}let sg=(i,t)=>!1,Hx=(i,t,e)=>[];(tg()||"undefined"!=typeof Element)&&(sg=Lx()?(i,t)=>{for(;t&&t!==document.documentElement;){if(t===i)return!0;t=t.parentNode||t.host}return!1}:(i,t)=>i.contains(t),Hx=(i,t,e)=>{let n=[];if(e){const r=i.querySelectorAll(t);for(let s=0;s{const n=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[n]=i[e]}),t}let Ux=(()=>{class i{validateStyleProperty(e){return og(e)}matchesElement(e,n){return!1}containsElement(e,n){return ag(e,n)}query(e,n,r){return lg(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,s,o,a=[],l){return new Oo(r,s)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),cg=(()=>{class i{}return i.NOOP=new Ux,i})();const dg="ng-enter",Xd="ng-leave",Jd="ng-trigger",eu=".ng-trigger",Gx="ng-animating",ug=".ng-animating";function us(i){if("number"==typeof i)return i;const t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:hg(parseFloat(t[1]),t[2])}function hg(i,t){return"s"===t?1e3*i:i}function tu(i,t,e){return i.hasOwnProperty("duration")?i:function Q3(i,t,e){let r,s=0,o="";if("string"==typeof i){const a=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${i}" is invalid.`),{duration:0,delay:0,easing:""};r=hg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=hg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=i;if(!e){let a=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${i}" is invalid.`)}return{duration:r,delay:s,easing:o}}(i,t,e)}function Po(i,t={}){return Object.keys(i).forEach(e=>{t[e]=i[e]}),t}function Sr(i,t,e={}){if(t)for(let n in i)e[n]=i[n];else Po(i,e);return e}function qx(i,t,e){return e?t+":"+e+";":""}function Yx(i){let t="";for(let e=0;e{const r=fg(n);e&&!e.hasOwnProperty(n)&&(e[n]=i.style[r]),i.style[r]=t[n]}),tg()&&Yx(i))}function hs(i,t){i.style&&(Object.keys(t).forEach(e=>{const n=fg(e);i.style[n]=""}),tg()&&Yx(i))}function bl(i){return Array.isArray(i)?1==i.length?i[0]:Rx(i):i}const pg=new RegExp("{{\\s*(.+?)\\s*}}","g");function Qx(i){let t=[];if("string"==typeof i){let e;for(;e=pg.exec(i);)t.push(e[1]);pg.lastIndex=0}return t}function iu(i,t,e){const n=i.toString(),r=n.replace(pg,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return r==n?i:r}function nu(i){const t=[];let e=i.next();for(;!e.done;)t.push(e.value),e=i.next();return t}const Z3=/-+([a-z0-9])/g;function fg(i){return i.replace(Z3,(...t)=>t[1].toUpperCase())}function X3(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Kx(i,t){return 0===i||0===t}function Zx(i,t,e){const n=Object.keys(e);if(n.length&&t.length){let s=t[0],o=[];if(n.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;rfunction ez(i,t,e){if(":"==i[0]){const l=function tz(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(i,e);if("function"==typeof l)return void t.push(l);i=l}const n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(`The provided transition expression "${i}" is not supported`),t;const r=n[1],s=n[2],o=n[3];t.push(Xx(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(Xx(o,r))}(n,e,t)):e.push(i),e}const su=new Set(["true","1"]),ou=new Set(["false","0"]);function Xx(i,t){const e=su.has(i)||ou.has(i),n=su.has(t)||ou.has(t);return(r,s)=>{let o="*"==i||i==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?su.has(i):ou.has(i)),!a&&n&&"boolean"==typeof s&&(a=s?su.has(t):ou.has(t)),o&&a}}const iz=new RegExp("s*:selfs*,?","g");function gg(i,t,e){return new nz(i).build(t,e)}class nz{constructor(t){this._driver=t}build(t,e){const n=new oz(e);return this._resetContextStyleTimingState(n),vi(this,bl(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,o=r||{};if(n.styles.forEach(a=>{if(au(a)){const l=a;Object.keys(l).forEach(c=>{Qx(l[c]).forEach(d=>{o.hasOwnProperty(d)||s.add(d)})})}}),s.size){const a=nu(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=vi(this,bl(t.animation),e);return{type:1,matchers:J3(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ps(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(n=>vi(this,n,e)),options:ps(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=n;const a=vi(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:ps(t.options)}}visitAnimate(t,e){const n=function lz(i,t){let e=null;if(i.hasOwnProperty("duration"))e=i;else if("number"==typeof i)return _g(tu(i,t).duration,0,"");const n=i;if(n.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=_g(0,0,"");return s.dynamic=!0,s.strValue=n,s}return e=e||tu(n,t),_g(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let r,s=t.styles?t.styles:V({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};n.easing&&(c.easing=n.easing),o=V(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==nr?n.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):n.push(o)}):n.push(t.styles);let r=!1,s=null;return n.forEach(o=>{if(au(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:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let d=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),d=!1),s=c.startTime),d&&(l[a]={startTime:s,endTime:r}),e.options&&function K3(i,t,e){const n=t.params||{},r=Qx(i);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||e.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const o=[];let a=!1,l=!1,c=0;const d=t.steps.map(M=>{const w=this._makeStyleAst(M,e);let T=null!=w.offset?w.offset:function az(i){if("string"==typeof i)return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(au(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(au(i)&&i.hasOwnProperty("offset")){const e=i;t=parseFloat(e.offset),delete e.offset}return t}(w.styles),P=0;return null!=T&&(s++,P=w.offset=T),l=l||P<0||P>1,a=a||P0&&s{const T=h>0?w==f?1:h*w:o[w],P=T*b;e.currentTime=_+v.delay+P,v.duration=P,this._validateStyleAst(M,e),M.offset=T,n.styles.push(M)}),n}visitReference(t,e){return{type:8,animation:vi(this,bl(t.animation),e),options:ps(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ps(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ps(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function rz(i){const t=!!i.split(/\s*,\s*/).find(e=>":self"==e);return t&&(i=i.replace(iz,"")),i=i.replace(/@\*/g,eu).replace(/@\w+/g,e=>eu+"-"+e.substr(1)).replace(/:animating/g,ug),[i,t]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,_i(e.collectedStyles,e.currentQuerySelector,{});const a=vi(this,bl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:ps(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:tu(t.timings,e.errors,!0);return{type:12,animation:vi(this,bl(t.animation),e),timings:n,options:null}}}class oz{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function au(i){return!Array.isArray(i)&&"object"==typeof i}function ps(i){return i?(i=Po(i)).params&&(i.params=function sz(i){return i?Po(i):null}(i.params)):i={},i}function _g(i,t,e){return{duration:i,delay:t,easing:e}}function vg(i,t,e,n,r,s,o=null,a=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class lu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const uz=new RegExp(":enter","g"),pz=new RegExp(":leave","g");function yg(i,t,e,n,r,s={},o={},a,l,c=[]){return(new fz).buildKeyframes(i,t,e,n,r,s,o,a,l,c)}class fz{buildKeyframes(t,e,n,r,s,o,a,l,c,d=[]){c=c||new lu;const u=new bg(t,e,c,r,s,d,[]);u.options=l,u.currentTimeline.setStyles([o],null,u.errors,l),vi(this,n,u);const h=u.timelines.filter(f=>f.containsAnimation());if(h.length&&Object.keys(a).length){const f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,u.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[vg(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const o=null!=n.duration?us(n.duration):null,a=null!=n.delay?us(n.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),vi(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=cu);const o=us(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>vi(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?us(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),vi(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return tu(e.params?iu(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?us(r.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cu);let o=n;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(t.options,c);s&&u.delayNextStep(s),c===e.element&&(l=u.currentTimeline),vi(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;vi(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const cu={};class bg{constructor(t,e,n,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new du(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=us(n.duration)),null!=n.delay&&(r.delay=us(n.delay));const s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=iu(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,s=new bg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=cu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new mz(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(uz,"."+this._enterClassName)).replace(pz,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class du{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new du(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||nr,this._currentKeyframe[e]=nr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function gz(i,t){const e={};let n;return i.forEach(r=>{"*"===r?(n=n||Object.keys(t),n.forEach(s=>{e[s]=nr})):Sr(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=iu(o[a],s,n);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:nr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Sr(a,!0);Object.keys(c).forEach(d=>{const u=c[d];"!"==u?t.add(d):u==nr&&e.add(d)}),n||(c.offset=l/this.duration),r.push(c)});const s=t.size?nu(t.values()):[],o=e.size?nu(e.values()):[];if(n){const a=r[0],l=Po(a);a.offset=0,l.offset=1,r=[a,l]}return vg(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class mz extends du{constructor(t,e,n,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=n+e,a=e/o,l=Sr(t[0],!1);l.offset=0,s.push(l);const c=Sr(t[0],!1);c.offset=tS(a),s.push(c);const d=t.length-1;for(let u=1;u<=d;u++){let h=Sr(t[u],!1);h.offset=tS((e+h.offset*n)/o),s.push(h)}n=o,e=0,r="",t=s}return vg(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function tS(i,t=3){const e=Math.pow(10,t-1);return Math.round(i*e)/e}class Cg{}class _z extends Cg{normalizePropertyName(t,e){return fg(t)}normalizeStyleValue(t,e,n,r){let s="";const o=n.toString().trim();if(vz[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+s}}const vz=(()=>function yz(i){const t={};return i.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function iS(i,t,e,n,r,s,o,a,l,c,d,u,h){return{type:0,element:i,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Dg={};class nS{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function bz(i,t,e,n,r){return i.some(s=>s(t,e,n,r))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return s?s.buildStyles(e,n):o}build(t,e,n,r,s,o,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||Dg,_=this.buildStyles(n,a&&a.params||Dg,u),v=l&&l.params||Dg,b=this.buildStyles(r,v,u),M=new Set,w=new Map,T=new Map,P="void"===r,ue={params:Object.assign(Object.assign({},h),v)},Qe=d?[]:yg(t,e,this.ast.animation,s,o,_,b,ue,c,u);let et=0;if(Qe.forEach(bi=>{et=Math.max(bi.duration+bi.delay,et)}),u.length)return iS(e,this._triggerName,n,r,P,_,b,[],[],w,T,et,u);Qe.forEach(bi=>{const Ci=bi.element,Xo=_i(w,Ci,{});bi.preStyleProps.forEach(an=>Xo[an]=!0);const cr=_i(T,Ci,{});bi.postStyleProps.forEach(an=>cr[an]=!0),Ci!==e&&M.add(Ci)});const yi=nu(M.values());return iS(e,this._triggerName,n,r,P,_,b,Qe,yi,w,T,et)}}class Cz{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},r=Po(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=iu(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),n[c]=l})}}),n}}class wz{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new Cz(r.style,r.options&&r.options.params||{},n)}),rS(this.states,"true","1"),rS(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new nS(t,r,this.states))}),this.fallbackTransition=function Mz(i,t,e){return new nS(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(o=>o.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function rS(i,t,e){i.hasOwnProperty(t)?i.hasOwnProperty(e)||(i[e]=i[t]):i.hasOwnProperty(e)&&(i[t]=i[e])}const xz=new lu;class Sz{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=gg(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,s=Bx(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=yg(this._driver,e,s,dg,Xd,{},{},n,xz,r),o.forEach(d=>{const u=_i(a,d.element,{});d.postStyleProps.forEach(h=>u[h]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((d,u)=>{Object.keys(d).forEach(h=>{d[h]=this._driver.computeStyle(u,h,nr)})});const c=xr(o.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,r){const s=rg(e,"","","");return ig(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const sS="ng-animate-queued",wg="ng-animate-disabled",Iz=[],oS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fi="__ng_removed";class Mg{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function Nz(i){return null!=i?i:null}(n?t.value:t),n){const s=Po(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const Cl="void",xg=new Mg(Cl);class Oz{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ni(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Lz(i){return"start"==i||"done"==i}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);const s=_i(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};s.push(o);const a=_i(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ni(t,Jd),Ni(t,Jd+"-"+e),a[e]=xg),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const s=this._getTrigger(e),o=new Sg(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Ni(t,Jd),Ni(t,Jd+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new Mg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=xg),c.value!==Cl&&l.value===c.value){if(!function Hz(i,t){const e=Object.keys(i),n=Object.keys(t);if(e.length!=n.length)return!1;for(let r=0;r{hs(t,b),In(t,M)})}return}const h=_i(this._engine.playersByElement,t,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),_=!1;if(!f){if(!r)return;f=s.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:_}),_||(Ni(t,sS),o.onStart(()=>{Fo(t,sS)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const b=this._engine.playersByElement.get(t);if(b){let M=b.indexOf(o);M>=0&&b.splice(M,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,eu,!0);n.forEach(r=>{if(r[Fi])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,n,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Cl,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),n&&xr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=n[o]||xg,d=new Mg(Cl),u=new Sg(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Fi];(!s||s===oS)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Ni(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){const l=rg(s,n.triggerName,n.fromState.value,n.toState.value);l._data=t,ig(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const s=n.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(n=>n.element===t)||e,e}}class Pz{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){const n=new Oz(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const r=Object.keys(n);for(let s=0;s=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ni(t,wg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fo(t,wg))}removeNode(t,e,n,r){if(uu(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r,s){this.collectedLeaveElements.push(e),e[Fi]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,n,r,s){return uu(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,eu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ug,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return xr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const n=t[Fi];if(n&&n.setForRemoval){if(t[Fi]=oS,n.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(wg))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?xr(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new lu,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(j=>{d.add(j);const Z=this.driver.query(j,".ng-animate-queued",!0);for(let ee=0;ee{const ee=dg+v++;_.set(Z,ee),j.forEach(Ae=>Ni(Ae,ee))});const b=[],M=new Set,w=new Set;for(let j=0;jM.add(Ae)):w.add(Z))}const T=new Map,P=cS(h,Array.from(M));P.forEach((j,Z)=>{const ee=Xd+v++;T.set(Z,ee),j.forEach(Ae=>Ni(Ae,ee))}),t.push(()=>{f.forEach((j,Z)=>{const ee=_.get(Z);j.forEach(Ae=>Fo(Ae,ee))}),P.forEach((j,Z)=>{const ee=T.get(Z);j.forEach(Ae=>Fo(Ae,ee))}),b.forEach(j=>{this.processLeaveNode(j)})});const ue=[],Qe=[];for(let j=this._namespaceList.length-1;j>=0;j--)this._namespaceList[j].drainQueuedTransitions(e).forEach(ee=>{const Ae=ee.player,Tt=ee.element;if(ue.push(Ae),this.collectedEnterElements.length){const Zt=Tt[Fi];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(ee.triggerName)){const bs=Zt.previousTriggersValues.get(ee.triggerName),Pr=this.statesByElement.get(ee.element);Pr&&Pr[ee.triggerName]&&(Pr[ee.triggerName].value=bs)}return void Ae.destroy()}}const Nn=!u||!this.driver.containsElement(u,Tt),Di=T.get(Tt),Or=_.get(Tt),tt=this._buildInstruction(ee,n,Or,Di,Nn);if(tt.errors&&tt.errors.length)return void Qe.push(tt);if(Nn)return Ae.onStart(()=>hs(Tt,tt.fromStyles)),Ae.onDestroy(()=>In(Tt,tt.toStyles)),void r.push(Ae);if(ee.isFallbackTransition)return Ae.onStart(()=>hs(Tt,tt.fromStyles)),Ae.onDestroy(()=>In(Tt,tt.toStyles)),void r.push(Ae);const TT=[];tt.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||TT.push(Zt)}),tt.timelines=TT,n.append(Tt,tt.timelines),o.push({instruction:tt,player:Ae,element:Tt}),tt.queriedElements.forEach(Zt=>_i(a,Zt,[]).push(Ae)),tt.preStyleProps.forEach((Zt,bs)=>{const Pr=Object.keys(Zt);if(Pr.length){let Cs=l.get(bs);Cs||l.set(bs,Cs=new Set),Pr.forEach(B_=>Cs.add(B_))}}),tt.postStyleProps.forEach((Zt,bs)=>{const Pr=Object.keys(Zt);let Cs=c.get(bs);Cs||c.set(bs,Cs=new Set),Pr.forEach(B_=>Cs.add(B_))})});if(Qe.length){const j=[];Qe.forEach(Z=>{j.push(`@${Z.triggerName} has failed due to:\n`),Z.errors.forEach(ee=>j.push(`- ${ee}\n`))}),ue.forEach(Z=>Z.destroy()),this.reportError(j)}const et=new Map,yi=new Map;o.forEach(j=>{const Z=j.element;n.has(Z)&&(yi.set(Z,Z),this._beforeAnimationBuild(j.player.namespaceId,j.instruction,et))}),r.forEach(j=>{const Z=j.element;this._getPreviousPlayers(Z,!1,j.namespaceId,j.triggerName,null).forEach(Ae=>{_i(et,Z,[]).push(Ae),Ae.destroy()})});const bi=b.filter(j=>uS(j,l,c)),Ci=new Map;lS(Ci,this.driver,w,c,nr).forEach(j=>{uS(j,l,c)&&bi.push(j)});const cr=new Map;f.forEach((j,Z)=>{lS(cr,this.driver,new Set(j),l,"!")}),bi.forEach(j=>{const Z=Ci.get(j),ee=cr.get(j);Ci.set(j,Object.assign(Object.assign({},Z),ee))});const an=[],Jo=[],ea={};o.forEach(j=>{const{element:Z,player:ee,instruction:Ae}=j;if(n.has(Z)){if(d.has(Z))return ee.onDestroy(()=>In(Z,Ae.toStyles)),ee.disabled=!0,ee.overrideTotalTime(Ae.totalTime),void r.push(ee);let Tt=ea;if(yi.size>1){let Di=Z;const Or=[];for(;Di=Di.parentNode;){const tt=yi.get(Di);if(tt){Tt=tt;break}Or.push(Di)}Or.forEach(tt=>yi.set(tt,Tt))}const Nn=this._buildAnimation(ee.namespaceId,Ae,et,s,cr,Ci);if(ee.setRealPlayer(Nn),Tt===ea)an.push(ee);else{const Di=this.playersByElement.get(Tt);Di&&Di.length&&(ee.parentPlayer=xr(Di)),r.push(ee)}}else hs(Z,Ae.fromStyles),ee.onDestroy(()=>In(Z,Ae.toStyles)),Jo.push(ee),d.has(Z)&&r.push(ee)}),Jo.forEach(j=>{const Z=s.get(j.element);if(Z&&Z.length){const ee=xr(Z);j.setRealPlayer(ee)}}),r.forEach(j=>{j.parentPlayer?j.syncPlayerEvents(j.parentPlayer):j.destroy()});for(let j=0;j!Nn.destroyed);Tt.length?Bz(this,Z,Tt):this.processLeaveNode(Z)}return b.length=0,an.forEach(j=>{this.players.push(j),j.onDone(()=>{j.destroy();const Z=this.players.indexOf(j);this.players.splice(Z,1)}),j.play()}),an}elementContainsData(t,e){let n=!1;const r=e[Fi];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Cl;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,n){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==s,u=_i(n,c,[]);this._getPreviousPlayers(c,d,o,a,e.toState).forEach(f=>{const _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),u.push(f)})}hs(s,e.fromStyles)}_buildAnimation(t,e,n,r,s,o){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(_=>{const v=_.element;d.add(v);const b=v[Fi];if(b&&b.removedBeforeQueried)return new Oo(_.duration,_.delay);const M=v!==l,w=function Vz(i){const t=[];return dS(i,t),t}((n.get(v)||Iz).map(et=>et.getRealPlayer())).filter(et=>!!et.element&&et.element===v),T=s.get(v),P=o.get(v),ue=Bx(0,this._normalizer,0,_.keyframes,T,P),Qe=this._buildPlayer(_,ue,w);if(_.subTimeline&&r&&u.add(v),M){const et=new Sg(t,a,v);et.setRealPlayer(Qe),c.push(et)}return Qe});c.forEach(_=>{_i(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function Fz(i,t,e){let n;if(i instanceof Map){if(n=i.get(t),n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&i.delete(t)}}else if(n=i[t],n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&delete i[t]}return n}(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>Ni(_,Gx));const f=xr(h);return f.onDestroy(()=>{d.forEach(_=>Fo(_,Gx)),In(l,e.toStyles)}),u.forEach(_=>{_i(r,_,[]).push(f)}),f}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Oo(t.duration,t.delay)}}class Sg{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Oo,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>ig(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){_i(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uu(i){return i&&1===i.nodeType}function aS(i,t){const e=i.style.display;return i.style.display=null!=t?t:"none",e}function lS(i,t,e,n,r){const s=[];e.forEach(l=>s.push(aS(l)));const o=[];n.forEach((l,c)=>{const d={};l.forEach(u=>{const h=d[u]=t.computeStyle(c,u,r);(!h||0==h.length)&&(c[Fi]=Rz,o.push(c))}),i.set(c,d)});let a=0;return e.forEach(l=>aS(l,s[a++])),o}function cS(i,t){const e=new Map;if(i.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Ni(i,t){var e;null===(e=i.classList)||void 0===e||e.add(t)}function Fo(i,t){var e;null===(e=i.classList)||void 0===e||e.remove(t)}function Bz(i,t,e){xr(e).onDone(()=>i.processLeaveNode(t))}function dS(i,t){for(let e=0;er.add(s)):t.set(i,n),e.delete(i),!0}class hu{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Pz(t,e,n),this._timelineEngine=new Sz(t,e,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,n,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],c=gg(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function Dz(i,t,e){return new wz(i,t,e)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[s,o]=Vx(n);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if("@"==n.charAt(0)){const[o,a]=Vx(n);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function hS(i,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=Eg(t[0]),t.length>1&&(n=Eg(t[t.length-1]))):t&&(e=Eg(t)),e||n?new jz(i,e,n):null}let jz=(()=>{class i{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let s=i.initialStylesByElement.get(e);s||i.initialStylesByElement.set(e,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&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(hs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hs(this._element,this._endStyles),this._endStyles=null),In(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function Eg(i){let t=null;const e=Object.keys(i);for(let n=0;nthis._handleCallback(l)}apply(){(function Wz(i,t){const e=Tg(i,"").trim();let n=0;e.length&&(n=function Yz(i,t){let e=0;for(let n=0;n=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),_S(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function qz(i,t){const n=Tg(i,"").split(","),r=kg(n,t);r>=0&&(n.splice(r,1),pu(i,"",n.join(",")))}(this._element,this._name))}}function mS(i,t,e){pu(i,"PlayState",e,gS(i,t))}function gS(i,t){const e=Tg(i,"");return e.indexOf(",")>0?kg(e.split(","),t):kg([e],t)}function kg(i,t){for(let e=0;e=0)return e;return-1}function _S(i,t,e){e?i.removeEventListener(fS,t):i.addEventListener(fS,t)}function pu(i,t,e,n){const r=pS+t;if(null!=n){const s=i.style[r];if(s.length){const o=s.split(",");o[n]=e,e=o.join(",")}}i.style[r]=e}function Tg(i,t){return i.style[pS+t]||""}class vS{constructor(t,e,n,r,s,o,a,l){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Gz(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:mg(this.element,n))})}this.currentSnapshot=t}}class Zz extends Oo{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=zx(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class bS{constructor(){this._count=0}validateStyleProperty(t){return og(t)}matchesElement(t,e){return!1}containsElement(t,e){return ag(t,e)}query(t,e,n){return lg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(a=>zx(a));let r=`@keyframes ${e} {\n`,s="";n.forEach(a=>{s=" ";const l=parseFloat(a.offset);r+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(c=>{const d=a[c];switch(c){case"offset":return;case"easing":return void(d&&(r+=`${s}animation-timing-function: ${d};\n`));default:return void(r+=`${s}${c}: ${d};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(t,e,n,r,s,o=[],a){const l=o.filter(b=>b instanceof vS),c={};Kx(n,r)&&l.forEach(b=>{let M=b.currentSnapshot;Object.keys(M).forEach(w=>c[w]=M[w])});const d=function e5(i){let t={};return i&&(Array.isArray(i)?i:[i]).forEach(n=>{Object.keys(n).forEach(r=>{"offset"==r||"easing"==r||(t[r]=n[r])})}),t}(e=Zx(t,e,c));if(0==n)return new Zz(t,d);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function Jz(i){var t;const e=null===(t=i.getRootNode)||void 0===t?void 0:t.call(i);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const _=hS(t,e),v=new vS(t,e,u,n,r,s,d,_);return v.onDestroy(()=>function t5(i){i.parentNode.removeChild(i)}(h)),v}}class DS{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(t[n]=this._finished?e[n]:mg(this.element,n))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class n5{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wS().toString()),this._cssKeyframesDriver=new bS}validateStyleProperty(t){return og(t)}matchesElement(t,e){return!1}containsElement(t,e){return ag(t,e)}query(t,e,n){return lg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,s,o);const d={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(d.easing=s);const u={},h=o.filter(_=>_ instanceof DS);Kx(n,r)&&h.forEach(_=>{let v=_.currentSnapshot;Object.keys(v).forEach(b=>u[b]=v[b])});const f=hS(t,e=Zx(t,e=e.map(_=>Sr(_,!1)),u));return new DS(t,e,d,f)}}function wS(){return Lx()&&Element.prototype.animate||{}}let s5=(()=>{class i extends Ix{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Vi.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Rx(e):e;return MS(this._renderer,null,n,"register",[r]),new o5(n,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(D(Ba),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class o5 extends class $3{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new a5(this._id,t,e||{},this._renderer)}}class a5{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return MS(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function MS(i,t,e,n,r){return i.setProperty(t,`@@${e}:${n}`,r)}const xS="@.disabled";let l5=(()=>{class i{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let d=this._rendererCache.get(s);return d||(d=new SS("",s,this.engine),this._rendererCache.set(s,d)),d}const o=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(o,a,e,d.name,d)};return n.data.animation.forEach(l),new c5(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(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([n,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 i.\u0275fac=function(e){return new(e||i)(D(Ba),D(hu),D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class SS{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==xS?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class c5 extends SS{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==xS?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function d5(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function u5(i){const t=i.indexOf(".");return[i.substring(0,t),i.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(t,e,n)}}let h5=(()=>{class i extends hu{constructor(e,n,r){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(cg),D(Cg))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Ft=new S("AnimationModuleType"),ES=[{provide:Ix,useClass:s5},{provide:Cg,useFactory:function f5(){return new _z}},{provide:hu,useClass:h5},{provide:Ba,useFactory:function m5(i,t,e){return new l5(i,t,e)},deps:[_d,hu,te]}],kS=[{provide:cg,useFactory:function p5(){return function r5(){return"function"==typeof wS()}()?new n5:new bS}},{provide:Ft,useValue:"BrowserAnimations"},...ES],g5=[{provide:cg,useClass:Ux},{provide:Ft,useValue:"NoopAnimations"},...ES];let _5=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?g5:kS}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:kS,imports:[Mw]}),i})();function v5(i,t){if(1&i&&U(0,"mat-pseudo-checkbox",4),2&i){const e=fe();E("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function y5(i,t){if(1&i&&(m(0,"span",5),y(1),g()),2&i){const e=fe();C(1),Ze("(",e.group.label,")")}}const b5=["*"],D5=new S("mat-sanity-checks",{providedIn:"root",factory:function C5(){return!0}});let H=(()=>{class i{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Vm()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(D(Ax),D(D5,8),D(ie))},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Ao],Ao]}),i})();function fs(i){return class extends i{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Y(t)}}}function Er(i,t){return class extends i{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function rr(i){return class extends i{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Y(t)}}}function ms(i,t=0){return class extends i{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qt(e):this.defaultTabIndex}}}function Rg(i){return class extends i{constructor(...t){super(...t),this.stateChanges=new O,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}const w5=new S("MAT_DATE_LOCALE",{providedIn:"root",factory:function M5(){return Dc(Wn)}});class Rn{constructor(){this._localeChanges=new O,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),r=this.isValid(e);return n&&r?!this.compareDate(t,e):n==r}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Og=new S("mat-date-formats"),x5=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Pg(i,t){const e=Array(i);for(let n=0;n{class i extends Rn{constructor(e,n){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Pg(12,r=>this._format(n,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Pg(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){const n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Pg(7,r=>this._format(n,new Date(2017,0,r+1)))}getYearName(e){const n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,r){let s=this._createDateWithOverflow(e,n,r);return s.getMonth(),s}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},n),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,12*n)}addCalendarMonths(e,n){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+n)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(x5.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,n,r){const s=new Date;return s.setFullYear(e,n,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_format(e,n){const r=new Date;return r.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),r.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(D(w5,8),D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const E5={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let k5=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[{provide:Rn,useClass:S5}],imports:[[ko]]}),i})(),T5=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[{provide:Og,useValue:E5}],imports:[[k5]]}),i})(),No=(()=>{class i{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),mu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})();class R5{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const AS={enterDuration:225,exitDuration:150},Fg=nn({passive:!0}),IS=["mousedown","touchstart"],RS=["mouseup","mouseleave","touchend","touchcancel"];class OS{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=dt(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},AS),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=n.radius||function F5(i,t,e){const n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-o+"px",d.style.top=l-o+"px",d.style.height=2*o+"px",d.style.width=2*o+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d),function P5(i){window.getComputedStyle(i).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new R5(this,d,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const h=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!h||!this._isPointerDown)&&u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,r=Object.assign(Object.assign({},AS),t.config.animation);n.style.transitionDuration=`${r.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=dt(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(IS))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RS),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Zm(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,Fg)})})}_removeTriggerEvents(){this._triggerElement&&(IS.forEach(t=>{this._triggerElement.removeEventListener(t,this,Fg)}),this._pointerUpEventsRegistered&&RS.forEach(t=>{this._triggerElement.removeEventListener(t,this,Fg)}))}}const PS=new S("mat-ripple-global-options");let On=(()=>{class i{constructor(e,n,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new OS(this,n,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(te),p(_t),p(PS,8),p(Ft,8))},i.\u0275dir=x({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Ce("mat-ripple-unbounded",n.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"]}),i})(),sn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H,ko],H]}),i})(),FS=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,n){2&e&&Ce("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,n){},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}),i})(),Ng=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H]]}),i})();const NS=new S("MAT_OPTION_PARENT_COMPONENT"),LS=new S("MatOptgroup");let N5=0;class BS{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let L5=(()=>{class i{constructor(e,n,r,s){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+N5++,this.onSelectionChange=new q,this._stateChanges=new O}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(e){this._disabled=Y(e)}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(e,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ii(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new BS(this,e))}}return i.\u0275fac=function(e){Wr()},i.\u0275dir=x({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Lg=(()=>{class i extends L5{constructor(e,n,r,s){super(e,n,r,s)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(st),p(NS,8),p(LS,8))},i.\u0275cmp=re({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,n){1&e&&R("click",function(){return n._selectViaInteraction()})("keydown",function(s){return n._handleKeydown(s)}),2&e&&(Ti("id",n.id),X("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),Ce("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[I],ngContentSelectors:b5,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(e,n){1&e&&(Ot(),K(0,v5,1,2,"mat-pseudo-checkbox",0),m(1,"span",1),Ne(2),g(),K(3,y5,2,1,"span",2),U(4,"div",3)),2&e&&(E("ngIf",n.multiple),C(3),E("ngIf",n.group&&n.group._inert),C(1),E("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[Qn,On,FS],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}),i})();function Bg(i,t,e){if(e.length){let n=t.toArray(),r=e.toArray(),s=0;for(let o=0;o{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[sn,Mt,H,Ng]]}),i})();function B5(i,t){}class Vg{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const V5={dialogContainer:Je("dialogContainer",[ce("void, exit",V({opacity:0,transform:"scale(0.7)"})),ce("enter",V({transform:"none"})),be("* => enter",Me("150ms cubic-bezier(0, 0, 0.2, 1)",V({transform:"none",opacity:1}))),be("* => void, * => exit",Me("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",V({opacity:0})))])};let H5=(()=>{class i extends Wd{constructor(e,n,r,s,o,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=n,this._changeDetectorRef=r,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._focusMonitor=c,this._animationStateChanged=new q,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(d)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const n=Bm(),r=this._elementRef.nativeElement;(!n||n===this._document.body||n===r||r.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Bm())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=Bm();return e===n||e.contains(n)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(N3),p(st),p(ie,8),p(Vg),p(wx),p(te),p(ir))},i.\u0275dir=x({type:i,viewQuery:function(e,n){if(1&e&&Be(qd,7),2&e){let r;$(r=G())&&(n._portalOutlet=r.first)}},features:[I]}),i})(),j5=(()=>{class i extends H5{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:n}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}_onAnimationStart({toState:e,totalTime:n}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:n})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275cmp=re({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,n){1&e&&Vc("@dialogContainer.start",function(s){return n._onAnimationStart(s)})("@dialogContainer.done",function(s){return n._onAnimationDone(s)}),2&e&&(Ti("id",n._id),X("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),jc("@dialogContainer",n._state))},features:[I],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&K(0,B5,0,0,"ng-template",0)},directives:[qd],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[V5.dialogContainer]}}),i})(),z5=0;class kr{constructor(t,e,n="mat-dialog-"+z5++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new O,this._afterClosed=new O,this._beforeClosed=new O,this._state=0,e._id=n,e._animationStateChanged.pipe(xt(r=>"opened"===r.state),We(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(xt(r=>"closed"===r.state),We(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(xt(r=>27===r.keyCode&&!this.disableClose&&!ii(r))).subscribe(r=>{r.preventDefault(),Hg(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Hg(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(xt(e=>"closing"===e.state),We(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Hg(i,t,e){return void 0!==i._containerInstance&&(i._containerInstance._closeInteractionType=t),i.close(e)}const Lo=new S("MatDialogData"),U5=new S("mat-dialog-default-options"),HS=new S("mat-dialog-scroll-strategy"),G5={provide:HS,deps:[Pi],useFactory:function $5(i){return()=>i.scrollStrategies.block()}};let W5=(()=>{class i{constructor(e,n,r,s,o,a,l,c,d,u){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=d,this._animationMode=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O,this._afterOpenedAtThisLevel=new O,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Ja(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(en(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,n){if(n=function q5(i,t){return Object.assign(Object.assign({},t),i)}(n,this._defaultOptions||new Vg),n.id&&this.getDialogById(n.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(n),s=this._attachDialogContainer(r,n);if("NoopAnimations"!==this._animationMode){const a=s._animationStateChanged.subscribe(l=>{"opening"===l.state&&(this._dialogAnimatingOpen=!0),"opened"===l.state&&(this._dialogAnimatingOpen=!1,a.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Te),this._animationStateSubscriptions.add(a)}const o=this._attachDialogContent(e,s,r,n);return this._lastDialogRef=o,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),s._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const n=this._getOverlayConfig(e);return this._overlay.create(n)}_getOverlayConfig(e){const n=new _l({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachDialogContainer(e,n){const s=Ge.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Vg,useValue:n}]}),o=new fl(this._dialogContainerType,n.viewContainerRef,s,n.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,n,r,s){const o=new this._dialogRefConstructor(r,n,s.id);if(e instanceof at)n.attachTemplatePortal(new ml(e,null,{$implicit:s.data,dialogRef:o}));else{const a=this._createInjector(s,o,n),l=n.attachComponentPortal(new fl(e,s.viewContainerRef,a));o.componentInstance=l.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,n,r){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:n}];return e.direction&&(!s||!s.get(rn,null,ae.Optional))&&o.push({provide:rn,useValue:{value:e.direction,change:Q()}}),Ge.create({parent:s||this._injector,providers:o})}_removeOpenDialog(e){const n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){let s=n[r];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return i.\u0275fac=function(e){Wr()},i.\u0275dir=x({type:i}),i})(),wl=(()=>{class i extends W5{constructor(e,n,r,s,o,a,l,c){super(e,n,s,a,l,o,kr,j5,Lo,c)}}return i.\u0275fac=function(e){return new(e||i)(D(Pi),D(Ge),D(yo,8),D(U5,8),D(HS),D(i,12),D(qm),D(Ft,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),Y5=0,_u=(()=>{class i{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=jS(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){Hg(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return i.\u0275fac=function(e){return new(e||i)(p(kr,8),p(W),p(wl))},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&R("click",function(s){return n._onButtonClick(s)}),2&e&&X("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ye]}),i})(),Ml=(()=>{class i{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-dialog-title-"+Y5++}ngOnInit(){this._dialogRef||(this._dialogRef=jS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(p(kr,8),p(W),p(wl))},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,n){2&e&&Ti("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),xl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),Sl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),i})();function jS(i,t){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(n=>n.id===e.id):null}let Q5=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[wl,G5],imports:[[tr,er,H],H]}),i})();const zS=["mat-button",""],US=["*"],X5=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],J5=Er(fs(rr(class{constructor(i){this._elementRef=i}})));let Pn=(()=>{class i extends J5{constructor(e,n,r){super(e),this._focusMonitor=n,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of X5)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,n){e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(n=>this._getHostElement().hasAttribute(n))}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(ir),p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,n){if(1&e&&Be(On,5),2&e){let r;$(r=G())&&(n.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,n){2&e&&(X("disabled",n.disabled||null),Ce("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[I],attrs:zS,ngContentSelectors:US,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,n){1&e&&(Ot(),m(0,"span",0),Ne(1),g(),U(2,"span",1),U(3,"span",2)),2&e&&(C(2),Ce("mat-button-ripple-round",n.isRoundButton||n.isIconButton),E("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[On],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),i})(),jg=(()=>{class i extends Pn{constructor(e,n,r){super(n,e,r)}_haltDisabledEvents(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}return i.\u0275fac=function(e){return new(e||i)(p(ir),p(W),p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,n){1&e&&R("click",function(s){return n._haltDisabledEvents(s)}),2&e&&(X("tabindex",n.disabled?-1:n.tabIndex||0)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),Ce("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[I],attrs:zS,ngContentSelectors:US,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,n){1&e&&(Ot(),m(0,"span",0),Ne(1),g(),U(2,"span",1),U(3,"span",2)),2&e&&(C(2),Ce("mat-button-ripple-round",n.isRoundButton||n.isIconButton),E("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[On],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),i})(),Bo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[sn,H],H]}),i})();function eU(i,t){if(1&i&&(m(0,"div"),m(1,"div"),y(2),g(),g()),2&i){const e=t.$implicit;C(2),Pe(e)}}let $S=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Lo))},i.\u0275cmp=re({type:i,selectors:[["confirm-dialog"]],decls:9,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","warn",3,"mat-dialog-close"],["mat-button","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1),g(),m(2,"div",1),K(3,eU,3,1,"div",2),g(),m(4,"div",3),m(5,"button",4),y(6,"Confirm"),g(),m(7,"button",5),y(8,"Cancel"),g(),g()),2&e&&(C(1),Pe(n.data.title),C(2),E("ngForOf",n.data.messages),C(2),E("mat-dialog-close",!0),C(2),E("mat-dialog-close",!1))},directives:[Ml,xl,Zr,Sl,Pn,_u],styles:[""]}),i})();const GS=new Set;let Vo,tU=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nU}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function iU(i){if(!GS.has(i))try{Vo||(Vo=document.createElement("style"),Vo.setAttribute("type","text/css"),document.head.appendChild(Vo)),Vo.sheet&&(Vo.sheet.insertRule(`@media ${i} {body{ }}`,0),GS.add(i))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function nU(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let rU=(()=>{class i{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new O}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return WS(Bd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=Aw(WS(Bd(e)).map(o=>this._registerQuery(o).observable));return s=Xa(s.pipe(We(1)),s.pipe(fx(1),Ym(0))),s.pipe(de(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),s={observable:new Ie(o=>{const a=l=>this._zone.run(()=>o.next(l));return n.addListener(a),()=>{n.removeListener(a)}}).pipe(en(n),de(({matches:o})=>({query:e,matches:o})),Re(this._destroySubject)),mql:n};return this._queries.set(e,s),s}}return i.\u0275fac=function(e){return new(e||i)(D(tU),D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function WS(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function oU(i,t){if(1&i){const e=vn();m(0,"div",1),m(1,"button",2),R("click",function(){return Ui(e),fe().action()}),y(2),g(),g()}if(2&i){const e=fe();C(2),Pe(e.data.action)}}function aU(i,t){}const qS=new S("MatSnackBarData");class vu{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const lU=Math.pow(2,31)-1;class zg{constructor(t,e){this._overlayRef=e,this._afterDismissed=new O,this._afterOpened=new O,this._onAction=new O,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,lU))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let cU=(()=>{class i{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return i.\u0275fac=function(e){return new(e||i)(p(zg),p(qS))},i.\u0275cmp=re({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,n){1&e&&(m(0,"span"),y(1),g(),K(2,oU,3,1,"div",0)),2&e&&(C(1),Pe(n.data.message),C(1),E("ngIf",n.hasAction))},directives:[Qn,Pn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),i})();const dU={snackBarState:Je("state",[ce("void, hidden",V({transform:"scale(0.8)",opacity:0})),ce("visible",V({transform:"scale(1)",opacity:1})),be("* => visible",Me("150ms cubic-bezier(0, 0, 0.2, 1)")),be("* => void, * => hidden",Me("75ms cubic-bezier(0.4, 0.0, 1, 1)",V({opacity:0})))])};let uU=(()=>{class i extends Wd{constructor(e,n,r,s,o){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=s,this.snackBarConfig=o,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new O,this._onExit=new O,this._onEnter=new O,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),this._live="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:n,toState:r}=e;if(("void"===r&&"void"!==n||"hidden"===r)&&this._completeExit(),"visible"===r){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(We(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(r=>e.classList.add(r)):e.classList.add(n)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return i.\u0275fac=function(e){return new(e||i)(p(te),p(W),p(st),p(_t),p(vu))},i.\u0275cmp=re({type:i,selectors:[["snack-bar-container"]],viewQuery:function(e,n){if(1&e&&Be(qd,7),2&e){let r;$(r=G())&&(n._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,n){1&e&&Vc("@state.done",function(s){return n.onAnimationEnd(s)}),2&e&&jc("@state",n._animationState)},features:[I],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(m(0,"div",0),K(1,aU,0,0,"ng-template",1),g(),U(2,"div")),2&e&&(C(2),X("aria-live",n._live)("role",n._role))},directives:[qd],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[dU.snackBarState]}}),i})(),YS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[tr,er,Mt,Bo,H],H]}),i})();const hU=new S("mat-snack-bar-default-options",{providedIn:"root",factory:function pU(){return new vu}});let El=(()=>{class i{constructor(e,n,r,s,o,a){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=s,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=cU,this.snackBarContainerComponent=uU,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){const s=Object.assign(Object.assign({},this._defaultConfig),r);return s.data={message:e,action:n},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){const s=Ge.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:vu,useValue:n}]}),o=new fl(this.snackBarContainerComponent,n.viewContainerRef,s),a=e.attach(o);return a.instance.snackBarConfig=n,a.instance}_attach(e,n){const r=Object.assign(Object.assign(Object.assign({},new vu),this._defaultConfig),n),s=this._createOverlay(r),o=this._attachSnackBarContainer(s,r),a=new zg(o,s);if(e instanceof at){const l=new ml(e,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new fl(e,void 0,l),d=o.attachComponentPortal(c);a.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Re(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){const n=new _l;n.direction=e.direction;let r=this._overlay.position().global();const s="rtl"===e.direction,o="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!s||"end"===e.horizontalPosition&&s,a=!o&&"center"!==e.horizontalPosition;return o?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){return Ge.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:zg,useValue:n},{provide:qS,useValue:e.data}]})}}return i.\u0275fac=function(e){return new(e||i)(D(Pi),D(Ex),D(Ge),D(rU),D(i,12),D(hU))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:YS}),i})();const fU=["*",[["mat-card-footer"]]],mU=["*","mat-card-footer"];let Ug=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),i})(),yu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),i})(),bu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),i})(),$g=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,n){2&e&&Ce("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),i})(),Cu=(()=>{class i{constructor(e){this._animationMode=e}}return i.\u0275fac=function(e){return new(e||i)(p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,n){2&e&&Ce("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:mU,decls:2,vars:0,template:function(e,n){1&e&&(Ot(fU),Ne(0),Ne(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),i})(),QS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})(),gU=0;const _U=fs(class{}),KS="mat-badge-content";let vU=(()=>{class i extends _U{constructor(e,n,r,s,o){super(),this._ngZone=e,this._elementRef=n,this._ariaDescriber=r,this._renderer=s,this._animationMode=o,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=gU++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Y(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Y(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),n="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(KS),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(n)})}):e.classList.add(n),e}_updateRenderedContent(e){const n=`${null!=e?e:""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),e&&n.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${KS}`);for(const n of Array.from(e))n!==this._badgeElement&&n.remove()}}return i.\u0275fac=function(e){return new(e||i)(p(te),p(W),p(w3),p(Cn),p(Ft,8))},i.\u0275dir=x({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,n){2&e&&Ce("mat-badge-overlap",n.overlap)("mat-badge-above",n.isAbove())("mat-badge-below",!n.isAbove())("mat-badge-before",!n.isAfter())("mat-badge-after",n.isAfter())("mat-badge-small","small"===n.size)("mat-badge-medium","medium"===n.size)("mat-badge-large","large"===n.size)("mat-badge-hidden",n.hidden||!n.content)("mat-badge-disabled",n.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[I]}),i})(),yU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[yl,H],H]}),i})();const bU=["connectionContainer"],CU=["inputContainer"],DU=["label"];function wU(i,t){1&i&&(so(0),m(1,"div",14),U(2,"div",15),U(3,"div",16),U(4,"div",17),g(),m(5,"div",18),U(6,"div",15),U(7,"div",16),U(8,"div",17),g(),oo())}function MU(i,t){if(1&i){const e=vn();m(0,"div",19),R("cdkObserveContent",function(){return Ui(e),fe().updateOutlineGap()}),Ne(1,1),g()}2&i&&E("cdkObserveContentDisabled","outline"!=fe().appearance)}function xU(i,t){if(1&i&&(so(0),Ne(1,2),m(2,"span"),y(3),g(),oo()),2&i){const e=fe(2);C(3),Pe(e._control.placeholder)}}function SU(i,t){1&i&&Ne(0,3,["*ngSwitchCase","true"])}function EU(i,t){1&i&&(m(0,"span",23),y(1," *"),g())}function kU(i,t){if(1&i){const e=vn();m(0,"label",20,21),R("cdkObserveContent",function(){return Ui(e),fe().updateOutlineGap()}),K(2,xU,4,1,"ng-container",12),K(3,SU,1,0,"ng-content",12),K(4,EU,2,0,"span",22),g()}if(2&i){const e=fe();Ce("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),E("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),X("for",e._control.id)("aria-owns",e._control.id),C(2),E("ngSwitchCase",!1),C(1),E("ngSwitchCase",!0),C(1),E("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function TU(i,t){1&i&&(m(0,"div",24),Ne(1,4),g())}function AU(i,t){if(1&i&&(m(0,"div",25),U(1,"span",26),g()),2&i){const e=fe();C(1),Ce("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function IU(i,t){1&i&&(m(0,"div"),Ne(1,5),g()),2&i&&E("@transitionMessages",fe()._subscriptAnimationState)}function RU(i,t){if(1&i&&(m(0,"div",30),y(1),g()),2&i){const e=fe(2);E("id",e._hintLabelId),C(1),Pe(e.hintLabel)}}function OU(i,t){if(1&i&&(m(0,"div",27),K(1,RU,2,2,"div",28),Ne(2,6),U(3,"div",29),Ne(4,7),g()),2&i){const e=fe();E("@transitionMessages",e._subscriptAnimationState),C(1),E("ngIf",e.hintLabel)}}const PU=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],FU=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],NU=new S("MatError"),LU={transitionMessages:Je("transitionMessages",[ce("enter",V({opacity:1,transform:"translateY(0%)"})),be("void => enter",[V({opacity:0,transform:"translateY(-5px)"}),Me("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let kl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i}),i})();const BU=new S("MatHint");let Tr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-label"]]}),i})(),VU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-placeholder"]]}),i})();const HU=new S("MatPrefix"),jU=new S("MatSuffix");let ZS=0;const UU=Er(class{constructor(i){this._elementRef=i}},"primary"),$U=new S("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Tl=new S("MatFormField");let Ho=(()=>{class i extends UU{constructor(e,n,r,s,o,a,l){super(e),this._changeDetectorRef=n,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new O,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+ZS++,this._labelId="mat-form-field-label-"+ZS++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const n=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&n!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Y(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(en(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Re(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Re(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),jt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(en(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(en(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Re(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ns(this._label.nativeElement,"transitionend").pipe(We(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let n=0,r=0;const s=this._connectionContainerRef.nativeElement,o=s.querySelectorAll(".mat-form-field-outline-start"),a=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=s.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),d=e.children,u=this._getStartEnd(d[0].getBoundingClientRect());let h=0;for(let f=0;f0?.75*h+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,vl],H]}),i})();function JS(...i){const t=av(i),{args:e,keys:n}=kw(i),r=new Ie(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||s.next(n?Tw(n,a):a),s.complete())}))}});return t?r.pipe(nm(t)):r}let eE=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(p(Cn),p(W))},i.\u0275dir=x({type:i}),i})(),gs=(()=>{class i extends eE{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275dir=x({type:i,features:[I]}),i})();const kt=new S("NgValueAccessor"),WU={provide:kt,useExisting:_e(()=>_s),multi:!0},YU=new S("CompositionEventMode");let _s=(()=>{class i extends eE{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qU(){const i=Mn()?Mn().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(p(Cn),p(W),p(YU,8))},i.\u0275dir=x({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&R("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},features:[z([WU]),I]}),i})();function Ar(i){return null==i||0===i.length}function iE(i){return null!=i&&"number"==typeof i.length}const St=new S("NgValidators"),Ir=new S("NgAsyncValidators"),QU=/^(?=.{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 wu{static min(t){return function nE(i){return t=>{if(Ar(t.value)||Ar(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Ar(t.value)||Ar(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}(t)}static required(t){return sE(t)}static requiredTrue(t){return function oE(i){return!0===i.value?null:{required:!0}}(t)}static email(t){return function aE(i){return Ar(i.value)||QU.test(i.value)?null:{email:!0}}(t)}static minLength(t){return function lE(i){return t=>Ar(t.value)||!iE(t.value)?null:t.value.lengthiE(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}(t)}static pattern(t){return function dE(i){if(!i)return Al;let t,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(Ar(n.value))return null;const r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return gE(t)}static composeAsync(t){return _E(t)}}function sE(i){return Ar(i.value)?{required:!0}:null}function Al(i){return null}function uE(i){return null!=i}function hE(i){const t=Ra(i)?vt(i):i;return Jp(t),t}function pE(i){let t={};return i.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fE(i,t){return t.map(e=>e(i))}function mE(i){return i.map(t=>function KU(i){return!i.validate}(t)?t:e=>t.validate(e))}function gE(i){if(!i)return null;const t=i.filter(uE);return 0==t.length?null:function(e){return pE(fE(e,t))}}function Gg(i){return null!=i?gE(mE(i)):null}function _E(i){if(!i)return null;const t=i.filter(uE);return 0==t.length?null:function(e){return JS(fE(e,t).map(hE)).pipe(de(pE))}}function Wg(i){return null!=i?_E(mE(i)):null}function vE(i,t){return null===i?[t]:Array.isArray(i)?[...i,t]:[i,t]}function yE(i){return i._rawValidators}function bE(i){return i._rawAsyncValidators}function qg(i){return i?Array.isArray(i)?i:[i]:[]}function Mu(i,t){return Array.isArray(i)?i.includes(t):i===t}function CE(i,t){const e=qg(t);return qg(i).forEach(r=>{Mu(e,r)||e.push(r)}),e}function DE(i,t){return qg(t).filter(e=>!Mu(i,e))}class wE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Gg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Wg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class on extends wE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kt extends wE{get formDirective(){return null}get path(){return null}}let Il=(()=>{class i extends class ME{constructor(t){this._cd=t}is(t){var e,n,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(p(on,2))},i.\u0275dir=x({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Ce("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[I]}),i})();function Rl(i,t){Kg(i,t),t.valueAccessor.writeValue(i.value),function o4(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&SE(i,t)})}(i,t),function l4(i,t){const e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,t),function a4(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&SE(i,t),"submit"!==i.updateOn&&i.markAsTouched()})}(i,t),function s4(i,t){if(t.valueAccessor.setDisabledState){const e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,t)}function Eu(i,t,e=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Tu(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ku(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Kg(i,t){const e=yE(i);null!==t.validator?i.setValidators(vE(e,t.validator)):"function"==typeof e&&i.setValidators([e]);const n=bE(i);null!==t.asyncValidator?i.setAsyncValidators(vE(n,t.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);const r=()=>i.updateValueAndValidity();ku(t._rawValidators,r),ku(t._rawAsyncValidators,r)}function Tu(i,t){let e=!1;if(null!==i){if(null!==t.validator){const r=yE(i);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(null!==t.asyncValidator){const r=bE(i);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}const n=()=>{};return ku(t._rawValidators,n),ku(t._rawAsyncValidators,n),e}function SE(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function EE(i,t){Kg(i,t)}function kE(i,t){i._syncPendingControls(),t.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Au(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}const Ol="VALID",Iu="INVALID",jo="PENDING",Pl="DISABLED";function e_(i){return(i_(i)?i.validators:i)||null}function TE(i){return Array.isArray(i)?Gg(i):i||null}function t_(i,t){return(i_(t)?t.asyncValidators:i)||null}function AE(i){return Array.isArray(i)?Wg(i):i||null}function i_(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}const IE=i=>i instanceof s_,n_=i=>i instanceof o_;function RE(i){return IE(i)?i.value:i.getRawValue()}function OE(i,t){const e=n_(i),n=i.controls;if(!(e?Object.keys(n):n).length)throw new Nt(1e3,"");if(!n[t])throw new Nt(1001,"")}function PE(i,t){n_(i),i._forEachChild((n,r)=>{if(void 0===t[r])throw new Nt(1002,"")})}class r_{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=TE(this._rawValidators),this._composedAsyncValidatorFn=AE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ol}get invalid(){return this.status===Iu}get pending(){return this.status==jo}get disabled(){return this.status===Pl}get enabled(){return this.status!==Pl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=TE(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=AE(t)}addValidators(t){this.setValidators(CE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(CE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(DE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(DE(t,this._rawAsyncValidators))}hasValidator(t){return Mu(this._rawValidators,t)}hasAsyncValidator(t){return Mu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=jo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Pl,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ol,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ol||this.status===jo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pl:Ol}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=jo,this._hasOwnPendingAsyncValidator=!0;const e=hE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function h4(i,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let n=i;return t.forEach(r=>{n=n_(n)?n.controls.hasOwnProperty(r)?n.controls[r]:null:(i=>i instanceof f4)(n)&&n.at(r)||null}),n}(this,t,".")}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?Pl:this.errors?Iu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jo)?jo:this._anyControlsHaveStatus(Iu)?Iu:Ol}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){i_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class s_ extends r_{constructor(t=null,e,n){super(e_(e),t_(n,e)),this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Au(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Au(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class o_ extends r_{constructor(t,e,n){super(e_(e),t_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){PE(this,t),Object.keys(t).forEach(n=>{OE(this,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=RE(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class f4 extends r_{constructor(t,e,n){super(e_(e),t_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){PE(this,t),t.forEach((n,r)=>{OE(this,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>RE(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const m4={provide:Kt,useExisting:_e(()=>zo)},Fl=(()=>Promise.resolve(null))();let zo=(()=>{class i extends Kt{constructor(e,n){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new q,this.form=new o_({},Gg(e),Wg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Fl.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Rl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Fl.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),Au(this._directives,e)})}addFormGroup(e){Fl.then(()=>{const n=this._findContainer(e.path),r=new o_({});EE(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Fl.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Fl.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,kE(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(p(St,10),p(Ir,10))},i.\u0275dir=x({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&R("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[z([m4]),I]}),i})();const _4={provide:on,useExisting:_e(()=>Uo)},LE=(()=>Promise.resolve(null))();let Uo=(()=>{class i extends on{constructor(e,n,r,s){super(),this.control=new s_,this._registered=!1,this.update=new q,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function Xg(i,t){if(!t)return null;let e,n,r;return Array.isArray(t),t.forEach(s=>{s.constructor===_s?e=s:function u4(i){return Object.getPrototypeOf(i.constructor)===gs}(s)?n=s:r=s}),r||n||e||null}(0,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function Zg(i,t){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function Su(i,t){return[...t.path,i]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Rl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){LE.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;LE.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return i.\u0275fac=function(e){return new(e||i)(p(Kt,9),p(St,10),p(Ir,10),p(kt,10))},i.\u0275dir=x({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[z([_4]),I,Ye]}),i})(),VE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const a_=new S("NgModelWithFormControlWarning"),M4={provide:Kt,useExisting:_e(()=>$o)};let $o=(()=>{class i extends Kt{constructor(e,n){super(),this.validators=e,this.asyncValidators=n,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new q,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const n=this.form.get(e.path);return Rl(n,e),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Eu(e.control||null,e,!1),Au(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,kE(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(Eu(n||null,e),IE(r)&&(Rl(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);EE(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function c4(i,t){return Tu(i,t)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Kg(this.form,this),this._oldForm&&Tu(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(p(St,10),p(Ir,10))},i.\u0275dir=x({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&R("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[z([M4]),I,Ye]}),i})();const N4={provide:St,useExisting:_e(()=>Nl),multi:!0};let Nl=(()=>{class i{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?sE(e):null}registerOnValidatorChange(e){this._onChange=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&X("required",n.required?"":null)},inputs:{required:"required"},features:[z([N4])]}),i})(),tk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[VE]]}),i})(),z4=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[tk]}),i})(),U4=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:a_,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[tk]}),i})();const ik=nn({passive:!0});let $4=(()=>{class i{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ln;const n=dt(e),r=this._monitoredElements.get(n);if(r)return r.subject;const s=new O,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&n.classList.contains(o)&&(n.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(n.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",a,ik),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:s,unlisten:()=>{n.removeEventListener("animationstart",a,ik)}}),s}stopMonitoring(e){const n=dt(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[ko]]}),i})();const rk=new S("MAT_INPUT_VALUE_ACCESSOR"),G4=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let W4=0;const q4=Rg(class{constructor(i,t,e,n){this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=e,this.ngControl=n}});let Go=(()=>{class i extends q4{constructor(e,n,r,s,o,a,l,c,d,u){super(a,s,o,r),this._elementRef=e,this._platform=n,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+W4++,this.focused=!1,this.stateChanges=new O,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(_=>JM().has(_));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",_=>{const v=_.target;!v.value&&0===v.selectionStart&&0===v.selectionEnd&&(v.setSelectionRange(1,1),v.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Y(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,n,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(n=this.ngControl)||void 0===n?void 0:n.control)||void 0===r?void 0:r.hasValidator(wu.required))&&void 0!==s&&s}set required(e){this._required=Y(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&JM().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Y(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,n;const r=(null===(n=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===n?void 0:n.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){G4.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(_t),p(on,10),p(zo,8),p($o,8),p(No),p(rk,10),p($4),p(te),p(Tl,8))},i.\u0275dir=x({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,n){1&e&&R("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(Ti("disabled",n.disabled)("required",n.required),X("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),Ce("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[z([{provide:kl,useExisting:i}]),I,Ye]}),i})(),Y4=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[No],imports:[[nk,Du,H],nk,Du]}),i})();class Ll{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new O,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const K4=["trigger"],Z4=["panel"];function X4(i,t){if(1&i&&(m(0,"span",8),y(1),g()),2&i){const e=fe();C(1),Pe(e.placeholder)}}function J4(i,t){if(1&i&&(m(0,"span",12),y(1),g()),2&i){const e=fe(2);C(1),Pe(e.triggerValue)}}function e8(i,t){1&i&&Ne(0,0,["*ngSwitchCase","true"])}function t8(i,t){1&i&&(m(0,"span",9),K(1,J4,2,1,"span",10),K(2,e8,1,0,"ng-content",11),g()),2&i&&(E("ngSwitch",!!fe().customTrigger),C(2),E("ngSwitchCase",!0))}function n8(i,t){if(1&i){const e=vn();m(0,"div",13),m(1,"div",14,15),R("@transformPanel.done",function(r){return Ui(e),fe()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return Ui(e),fe()._handleKeydown(r)}),Ne(3,1),g(),g()}if(2&i){const e=fe();E("@transformPanelWrap",void 0),C(1),QC("mat-select-panel ",e._getPanelTheme(),""),Wt("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),E("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const r8=[[["mat-select-trigger"]],"*"],s8=["mat-select-trigger","*"],ak={transformPanelWrap:Je("transformPanelWrap",[be("* => void",Px("@transformPanel",[Ox()],{optional:!0}))]),transformPanel:Je("transformPanel",[ce("void",V({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ce("showing",V({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ce("showing-multiple",V({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),be("void => *",Me("120ms cubic-bezier(0, 0, 0.2, 1)")),be("* => void",Me("100ms 25ms linear",V({opacity:0})))])};let lk=0;const dk=new S("mat-select-scroll-strategy"),c8=new S("MAT_SELECT_CONFIG"),d8={provide:dk,deps:[Pi],useFactory:function l8(i){return()=>i.scrollStrategies.reposition()}};class u8{constructor(t,e){this.source=t,this.value=e}}const h8=rr(ms(fs(Rg(class{constructor(i,t,e,n,r){this._elementRef=i,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}})))),p8=new S("MatSelectTrigger");let f8=(()=>{class i extends h8{constructor(e,n,r,s,o,a,l,c,d,u,h,f,_,v){var b,M,w;super(o,s,l,c,u),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=a,this._parentFormField=d,this._liveAnnouncer=_,this._defaultOptions=v,this._panelOpen=!1,this._compareWith=(T,P)=>T===P,this._uid="mat-select-"+lk++,this._triggerAriaLabelledBy=null,this._destroy=new O,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+lk++,this._panelDoneAnimatingStream=new O,this._overlayPanelClass=(null===(b=this._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(w=null===(M=this._defaultOptions)||void 0===M?void 0:M.disableOptionCentering)&&void 0!==w&&w,this.ariaLabel="",this.optionSelectionChanges=Ja(()=>{const T=this.options;return T?T.changes.pipe(en(T),Ji(()=>jt(...T.map(P=>P.onSelectionChange)))):this._ngZone.onStable.pipe(We(1),Ji(()=>this.optionSelectionChanges))}),this.openedChange=new q,this._openedStream=this.openedChange.pipe(xt(T=>T),de(()=>{})),this._closedStream=this.openedChange.pipe(xt(T=>!T),de(()=>{})),this.selectionChange=new q,this.valueChange=new q,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,n,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(n=this.ngControl)||void 0===n?void 0:n.control)||void 0===r?void 0:r.hasValidator(wu.required))&&void 0!==s&&s}set required(e){this._required=Y(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Y(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Y(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qt(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Ll(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(mx(),Re(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Re(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(en(null),Re(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,n;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(n=this._selectionModel)||void 0===n?void 0:n.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const n=e.keyCode,r=40===n||38===n||37===n||39===n,s=13===n||32===n,o=this._keyManager;if(!o.isTyping()&&s&&!ii(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,r=e.keyCode,s=40===r||38===r,o=n.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!n.activeItem||ii(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=n.activeItemIndex;n.onKeydown(e),this._multiple&&s&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==a&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(We(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectValue(n)),this._sortValues();else{const n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(s){return!1}});return n&&this._selectionModel.select(n),n}_initKeyManager(){this._keyManager=new M3(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Re(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Re(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=jt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Re(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),jt(...this.options.map(n=>n._stateChanges)).pipe(Re(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,n){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const n=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(n?n+" ":"")+this.ariaLabelledby:n}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const n=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(n?n+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(p(Io),p(st),p(te),p(No),p(W),p(rn,8),p(zo,8),p($o,8),p(Tl,8),p(on,10),At("tabindex"),p(dk),p(Ex),p(c8,8))},i.\u0275dir=x({type:i,viewQuery:function(e,n){if(1&e&&(Be(K4,5),Be(Z4,5),Be(hx,5)),2&e){let r;$(r=G())&&(n.trigger=r.first),$(r=G())&&(n.panel=r.first),$(r=G())&&(n._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[I,Ye]}),i})(),uk=(()=>{class i extends f8{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,n,r){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-n+s/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Re(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(We(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const n=Bg(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===n?0:function VS(i,t,e,n){return ie+n?Math.max(0,i-n+t):e}((e+n)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new u8(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),s=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let c=this._selectionModel.selected[0]||this.options.first;o=c&&c.group?32:16}r||(o*=-1);const a=0-(e.left+o-(r?s:0)),l=e.right+o-n.width+(r?0:s);a>0?o+=a+8:l>0&&(o-=l+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,n,r){const s=this._getItemHeight(),o=(s-this._triggerRect.height)/2,a=Math.floor(256/s);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*s:this._scrollTop===r?(e-(this._getItemCount()-a))*s+(s-(this._getItemCount()*s-256)%s):n-s/2,Math.round(-1*l-o))}_checkOverlayWithinViewport(e){const n=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,o=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*n,256)-a-this._triggerRect.height;c>o?this._adjustPanelUp(c,o):a>s?this._adjustPanelDown(a,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,n){const r=Math.round(e-n);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,n,r){const s=Math.round(e-n);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),n=this._getItemCount(),r=Math.min(n*e,256),o=n*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=Bg(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,o),this._offsetY=this._calculateOverlayOffsetY(a,l,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),n=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-n+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275cmp=re({type:i,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(Se(r,p8,5),Se(r,Lg,5),Se(r,LS,5)),2&e){let s;$(s=G())&&(n.customTrigger=s.first),$(s=G())&&(n.options=s),$(s=G())&&(n.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,n){1&e&&R("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(X("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),Ce("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[z([{provide:kl,useExisting:i},{provide:NS,useExisting:i}]),I],ngContentSelectors:s8,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,n){if(1&e&&(Ot(r8),m(0,"div",0,1),R("click",function(){return n.toggle()}),m(3,"div",2),K(4,X4,2,1,"span",3),K(5,t8,3,2,"span",4),g(),m(6,"div",5),U(7,"div",6),g(),g(),K(8,n8,4,14,"ng-template",7),R("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=_n(1);X("aria-owns",n.panelOpen?n.id+"-panel":null),C(3),E("ngSwitch",n.empty),X("id",n._valueId),C(1),E("ngSwitchCase",!0),C(1),E("ngSwitchCase",!1),C(3),E("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[ux,Xr,Qa,hx,ow,Ya],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ak.transformPanelWrap,ak.transformPanel]},changeDetection:0}),i})(),h_=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[d8],imports:[[Mt,tr,gu,H],Tn,Du,gu,H]}),i})();const m8=function(i){return{"expired-ca":i}};function g8(i,t){if(1&i){const e=vn();m(0,"div",8),m(1,"mat-card",9),m(2,"mat-card-title",10),y(3),g(),m(4,"mat-card-subtitle"),y(5),g(),m(6,"mat-card-content"),y(7," CA ID: "),m(8,"strong",11),y(9),g(),U(10,"p"),y(11," Valid from "),m(12,"strong"),y(13),Dn(14,"date"),g(),y(15," -> "),m(16,"strong"),y(17),Dn(18,"date"),g(),U(19,"p"),y(20," Algorithms: "),m(21,"strong"),y(22),g(),U(23,"p"),g(),m(24,"mat-card-actions",12),m(25,"a",13),y(26,"Open"),g(),m(27,"button",14),R("click",function(){const s=Ui(e).$implicit;return fe().deleteCA(s.id,s.subject)}),y(28,"Delete"),g(),g(),g(),g()}if(2&i){const e=t.$implicit,n=fe();C(1),tf("matBadge",e.certCount),E("ngClass",Yr(16,m8,n.caService.expired(e))),C(2),Ze(" CN=",e.commonName," "),C(2),Pe(e.subject),C(4),Pe(e.id),C(4),Pe(wn(14,10,e.issueTime,"yyyy-MM-dd")),C(4),Pe(wn(18,13,36e5*e.validDays*24+e.issueTime,"yyyy-MM-dd")),C(5),lo("RSA",e.keyLength,"Bits with ",e.digestAlgorithm,""),C(3),qi("routerLink","/cadetail/",e.id,"")}}function _8(i,t){1&i&&(m(0,"div",8),m(1,"mat-card"),m(2,"mat-card-title",10),y(3,"No Certificate Authorities Yet!"),g(),m(4,"mat-card-subtitle"),y(5,"Why don't you create one?"),g(),m(6,"mat-card-content"),y(7,' Just click the "Create New Certificate Authority" button above. '),g(),g(),g())}const Nu=".small-card[_ngcontent-%COMP%]{width:700px;padding:30px}.small-card-title[_ngcontent-%COMP%]{padding-left:30px;padding-top:30px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.expired-ca[_ngcontent-%COMP%]{background-color:#f2913d}.active-ca[_ngcontent-%COMP%]{background-color:#bef7dd}mat-form-field[_ngcontent-%COMP%]{padding:5px}";function v8(i,t){1&i&&(m(0,"div"),y(1,"Certificate Information"),g())}function y8(i,t){if(1&i&&(m(0,"div",9),m(1,"mat-card"),m(2,"mat-card-title",10),y(3),g(),m(4,"mat-card-subtitle"),m(5,"label",11),y(6),g(),g(),g(),g()),2&i){const e=t.$implicit;C(3),Pe(e.key),C(3),Pe(e.value)}}let b8=(()=>{class i{constructor(e,n,r,s,o){this.route=e,this.caService=n,this.location=r,this.dialog=s,this._snackBar=o,this.importCAData={cert:"",key:"",password:"changeit"},this.viewCertData={cert:"",info:new Map},this.createCAData={commonName:"",countryCode:"",state:"",city:"",organization:"",organizationUnit:"",validDays:"365",digestAlgorithm:"sha512",keyLength:"4096",password:"changeit"},this.calist=[]}ngOnInit(){this.getCAList()}deleteCA(e,n){this.dialog.open($S,{width:"500px",data:{title:"Are you sure?",messages:["You are about to delete Certicate Authority with:",`Subject: ${n}`,`ID: ${e}`,"---------","This can't be undone."]}}).afterClosed().subscribe(s=>{s&&(console.log(`Deleting CA ${e}`),tn(()=>this.caService.deleteCA(e),o=>So(this._snackBar,"Failed to delete CA","Dismiss")).subscribe(o=>{o.id&&Eo(this._snackBar,"Successfully deleted CA","Dismiss"),this.getCAList()}))})}openViewCertDialog(){this.dialog.open(w8,{width:"80%",data:this.viewCertData})}openImportDialog(){this.dialog.open(D8,{width:"800px",data:this.importCAData}).afterClosed().subscribe(n=>{n&&(console.log("The dialog was closed"),this.importCAData=n,console.log(JSON.stringify(n)),tn(()=>this.caService.importCA(n),r=>So(this._snackBar,"Failed to import CA","Dismiss")).subscribe(r=>{r.id&&Eo(this._snackBar,"Successfully imported CA","Dismiss"),this.getCAList()}))})}openCreateDialog(){this.dialog.open(C8,{width:"500px",data:this.createCAData}).afterClosed().subscribe(n=>{n&&(console.log("The dialog was closed"),this.createCAData=n,console.log(JSON.stringify(n)),tn(()=>this.caService.createCA(n),r=>So(this._snackBar,"Failed to create CA","Dismiss")).subscribe(r=>{r.id&&Eo(this._snackBar,"Successfully created CA","Dismiss"),this.getCAList()}))})}getCAList(){tn(()=>this.caService.getCAList()).subscribe(e=>this.calist=e)}}return i.\u0275fac=function(e){return new(e||i)(p(Jn),p(Ld),p(yo),p(wl),p(El))},i.\u0275cmp=re({type:i,selectors:[["app-calist"]],decls:18,vars:2,consts:[[1,"small-card-title"],["routerLink","/"],["align","start"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","secondary",3,"click"],[1,"flex-container"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngFor","ngForOf"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngIf"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","fxFlex","20",1,"small-card"],["matBadgeSize","large",3,"ngClass","matBadge"],[2,"font-size","16px"],[2,"color","green"],["align","end"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click"]],template:function(e,n){1&e&&(m(0,"div"),m(1,"div",0),m(2,"a",1),y(3,"Home"),g(),g(),U(4,"p"),m(5,"div",0),m(6,"h1"),y(7,"Available Certificate Authorities"),g(),m(8,"mat-card-actions",2),m(9,"button",3),R("click",function(){return n.openCreateDialog()}),y(10,"Create New Certificate Authority"),g(),m(11,"button",3),R("click",function(){return n.openImportDialog()}),y(12,"Import Existing Certificate Authority"),g(),m(13,"button",4),R("click",function(){return n.openViewCertDialog()}),y(14,"Inspect Certificate Info"),g(),g(),g(),g(),m(15,"div",5),K(16,g8,29,18,"div",6),K(17,_8,8,0,"div",7),g()),2&e&&(C(16),E("ngForOf",n.calist),C(1),E("ngIf",0==n.calist.length))},directives:[Mo,$g,Pn,Zr,Qn,Cu,Ya,vU,yu,bu,Ug,jg],pipes:[hd],styles:[Nu]}),i})(),C8=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n}onNoClick(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Lo))},i.\u0275cmp=re({type:i,selectors:[["create-ca-dialog"]],decls:58,vars:11,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["matInput","","required","",3,"ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["required","",3,"value","valueChange"],["value","2048"],["value","4096"],["value","8192"],["value","sha256"],["value","sha512"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"mat-dialog-close"],["mat-button","",3,"click"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1,"Create a new CA"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Common Name"),g(),m(6,"input",3),R("ngModelChange",function(s){return n.data.commonName=s}),g(),g(),m(7,"mat-form-field",2),m(8,"mat-label"),y(9,"Country Code"),g(),m(10,"input",3),R("ngModelChange",function(s){return n.data.countryCode=s}),g(),g(),m(11,"mat-form-field",2),m(12,"mat-label"),y(13,"State"),g(),m(14,"input",4),R("ngModelChange",function(s){return n.data.state=s}),g(),g(),m(15,"mat-form-field",2),m(16,"mat-label"),y(17,"City"),g(),m(18,"input",4),R("ngModelChange",function(s){return n.data.city=s}),g(),g(),m(19,"mat-form-field",2),m(20,"mat-label"),y(21,"Organization"),g(),m(22,"input",3),R("ngModelChange",function(s){return n.data.organization=s}),g(),g(),m(23,"mat-form-field",2),m(24,"mat-label"),y(25,"Organization Unit"),g(),m(26,"input",4),R("ngModelChange",function(s){return n.data.organizationUnit=s}),g(),g(),m(27,"mat-form-field",2),m(28,"mat-label"),y(29,"Valid Days"),g(),m(30,"input",3),R("ngModelChange",function(s){return n.data.validDays=s}),g(),g(),m(31,"mat-form-field",2),m(32,"mat-label"),y(33,"Keystore Password(optional)"),g(),m(34,"input",4),R("ngModelChange",function(s){return n.data.password=s}),g(),g(),m(35,"mat-form-field",2),m(36,"mat-label"),y(37,"Key Length"),g(),m(38,"mat-select",5),R("valueChange",function(s){return n.data.keyLength=s}),m(39,"mat-option",6),y(40," RSA2048 Bit "),g(),m(41,"mat-option",7),y(42," RSA4096 Bit "),g(),m(43,"mat-option",8),y(44," RSA8192 Bit "),g(),g(),g(),m(45,"mat-form-field",2),m(46,"mat-label"),y(47,"Digest Algorithm"),g(),m(48,"mat-select",5),R("valueChange",function(s){return n.data.digestAlgorithm=s}),m(49,"mat-option",9),y(50," sha256 "),g(),m(51,"mat-option",10),y(52," sha512 "),g(),g(),g(),g(),m(53,"div",11),m(54,"button",12),y(55,"Create"),g(),m(56,"button",13),R("click",function(){return n.onNoClick()}),y(57,"Cancel"),g(),g()),2&e&&(C(6),E("ngModel",n.data.commonName),C(4),E("ngModel",n.data.countryCode),C(4),E("ngModel",n.data.state),C(4),E("ngModel",n.data.city),C(4),E("ngModel",n.data.organization),C(4),E("ngModel",n.data.organizationUnit),C(4),E("ngModel",n.data.validDays),C(4),E("ngModel",n.data.password),C(4),E("value",n.data.keyLength),C(10),E("value",n.data.digestAlgorithm),C(6),E("mat-dialog-close",n.data))},directives:[Ml,xl,Ho,Tr,Go,_s,Nl,Il,Uo,uk,Lg,Sl,Pn,_u],styles:[Nu]}),i})(),D8=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n}onNoClick(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Lo))},i.\u0275cmp=re({type:i,selectors:[["import-ca-dialog"]],decls:20,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["matInput","",3,"ngModel","ngModelChange"],["appearance","fill",2,"width","100%"],["matInput","","cols","200","rows","30",2,"font-family","Courier",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"mat-dialog-close"],["mat-button","",3,"click"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1,"Import Existing CA"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Keystore Password()"),g(),m(6,"input",3),R("ngModelChange",function(s){return n.data.password=s}),g(),g(),m(7,"mat-form-field",4),m(8,"mat-label"),y(9,"Certificate"),g(),m(10,"textarea",5),R("ngModelChange",function(s){return n.data.cert=s}),g(),g(),m(11,"mat-form-field",4),m(12,"mat-label"),y(13,"Private Key"),g(),m(14,"textarea",5),R("ngModelChange",function(s){return n.data.key=s}),g(),g(),g(),m(15,"div",6),m(16,"button",7),y(17,"Create"),g(),m(18,"button",8),R("click",function(){return n.onNoClick()}),y(19,"Cancel"),g(),g()),2&e&&(C(6),E("ngModel",n.data.password),C(4),E("ngModel",n.data.cert),C(4),E("ngModel",n.data.key),C(2),E("mat-dialog-close",n.data))},directives:[Ml,xl,Ho,Tr,Go,_s,Il,Uo,Sl,Pn,_u],styles:[Nu]}),i})(),w8=(()=>{class i{constructor(e,n,r,s){this.dialogRef=e,this.data=n,this.caService=r,this._snackBar=s}onNoClick(){this.data.cert="",this.data.info=new Map,this.dialogRef.close()}asIsOrder(e,n){return 1}decodeCert(){console.log(this.data.cert),tn(()=>this.caService.inspectCert(this.data),e=>So(this._snackBar,"Failed to inspect cert","Dismiss")).subscribe(e=>{e.info&&(Eo(this._snackBar,"Successfully inspected cert","Dismiss"),console.log(JSON.stringify(e)),this.data.info=e.info)})}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Lo),p(Ld),p(El))},i.\u0275cmp=re({type:i,selectors:[["view-cert-dialog"]],decls:15,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill",2,"width","100%"],["matInput","","cols","200","rows","30",2,"font-family","Courier",3,"ngModel","ngModelChange"],[4,"ngIf"],["style","padding:5px",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"click"],["mat-button","",3,"click"],[2,"padding","5px"],[2,"font-size","12px"],[2,"color","green"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1,"View Cert Info"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Certificate"),g(),m(6,"textarea",3),R("ngModelChange",function(s){return n.data.cert=s}),g(),g(),K(7,v8,2,0,"div",4),K(8,y8,7,2,"div",5),Dn(9,"keyvalue"),g(),m(10,"div",6),m(11,"button",7),R("click",function(){return n.decodeCert()}),y(12,"Decode"),g(),m(13,"button",8),R("click",function(){return n.onNoClick()}),y(14,"Cancel"),g(),g()),2&e&&(C(6),E("ngModel",n.data.cert),C(1),E("ngIf",n.data.info.size>0),C(1),E("ngForOf",wn(9,3,n.data.info,n.asIsOrder)))},directives:[Ml,xl,Ho,Tr,Go,_s,Il,Uo,Qn,Zr,Sl,Pn,Cu,yu,bu],pipes:[cw],styles:[Nu]}),i})();class M8{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){const t=this._textarea;t&&(t.remove(),this._textarea=void 0)}}let x8=(()=>{class i{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),r=n.copy();return n.destroy(),r}beginCopy(e){return new M8(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const S8=new S("CDK_COPY_TO_CLIPBOARD_CONFIG");let hk=(()=>{class i{constructor(e,n,r){this._clipboard=e,this._ngZone=n,this.text="",this.attempts=1,this.copied=new q,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let n=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const s=()=>{const o=r.copy();o||!--n||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(o)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(s,1))};s()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return i.\u0275fac=function(e){return new(e||i)(p(x8),p(te),p(S8,8))},i.\u0275dir=x({type:i,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,n){1&e&&R("click",function(){return n.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),i})(),E8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const k8=["*"],pk=new S("MatChipRemove"),fk=new S("MatChipAvatar"),mk=new S("MatChipTrailingIcon");class T8{constructor(t){this._elementRef=t}}const A8=ms(Er(rr(T8),"primary"),-1);let Lu=(()=>{class i extends A8{constructor(e,n,r,s,o,a,l,c){super(e),this._ngZone=n,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new O,this._onBlur=new O,this.selectionChange=new q,this.destroyed=new q,this.removed=new q,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new OS(this,n,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const n=Y(e);n!==this._selected&&(this._selected=n,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Y(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Y(e)}get removable(){return this._removable}set removable(e){this._removable=Y(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",n=this._elementRef.nativeElement;n.hasAttribute(e)||n.tagName.toLowerCase()===e?n.classList.add(e):n.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled?e.preventDefault():e.stopPropagation()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(We(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(te),p(_t),p(PS,8),p(st),p(ie),p(Ft,8),At("tabindex"))},i.\u0275dir=x({type:i,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,n,r){if(1&e&&(Se(r,fk,5),Se(r,mk,5),Se(r,pk,5)),2&e){let s;$(s=G())&&(n.avatar=s.first),$(s=G())&&(n.trailingIcon=s.first),$(s=G())&&(n.removeIcon=s.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,n){1&e&&R("click",function(s){return n._handleClick(s)})("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&e&&(X("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),Ce("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[I]}),i})(),gk=(()=>{class i{constructor(e,n){this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}_handleClick(e){const n=this._parentChip;n.removable&&!n.disabled&&n.remove(),e.stopPropagation()}}return i.\u0275fac=function(e){return new(e||i)(p(Lu),p(W))},i.\u0275dir=x({type:i,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,n){1&e&&R("click",function(s){return n._handleClick(s)})},features:[z([{provide:pk,useExisting:i}])]}),i})();const _k=new S("mat-chips-default-options");let O8=0,vk=(()=>{class i{constructor(e,n){this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new q,this.placeholder="",this.id="mat-chip-list-input-"+O8++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Y(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=Y(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!ii(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!ii(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(_k))},i.\u0275dir=x({type:i,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,n){1&e&&R("keydown",function(s){return n._keydown(s)})("keyup",function(s){return n._keyup(s)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&e&&(Ti("id",n.id),X("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ye]}),i})();const P8=Rg(class{constructor(i,t,e,n){this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=e,this.ngControl=n}});let F8=0;class N8{constructor(t,e){this.source=t,this.value=e}}let yk=(()=>{class i extends P8{constructor(e,n,r,s,o,a,l){super(a,s,o,l),this._elementRef=e,this._changeDetectorRef=n,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new O,this._uid="mat-chip-list-"+F8++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,d)=>c===d,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new q,this.valueChange=new q,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,n;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(n=this._selectionModel)||void 0===n?void 0:n.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=Y(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,n,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(n=this.ngControl)||void 0===n?void 0:n.control)||void 0===r?void 0:r.hasValidator(wu.required))&&void 0!==s&&s}set required(e){this._required=Y(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Y(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Y(e),this.chips&&this.chips.forEach(n=>n.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return jt(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return jt(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return jt(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return jt(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new Dx(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Re(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Re(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(en(null),Re(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Ll(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const n=e.target;n&&n.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,n)),this._sortValues();else{const r=this._selectValue(e,n);r&&n&&this._keyManager.setActiveItem(r)}}_selectValue(e,n=!0){const r=this.chips.find(s=>null!=s.value&&this._compareWith(s.value,e));return r&&(n?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(n=>{n!==e&&n.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let n=null;n=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.change.emit(new N8(this,n)),this.valueChange.emit(n),this._onChange(n),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(n=>{!this._selectionModel.isSelected(n)&&n.selected&&n.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let n=this.chips.toArray().indexOf(e.chip);this._isValidIndex(n)&&this._keyManager.updateActiveItem(n),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const n=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&n._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let n=e.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-chip"))return!0;n=n.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(st),p(rn,8),p(zo,8),p($o,8),p(No),p(on,10))},i.\u0275cmp=re({type:i,selectors:[["mat-chip-list"]],contentQueries:function(e,n,r){if(1&e&&Se(r,Lu,5),2&e){let s;$(s=G())&&(n.chips=s)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,n){1&e&&R("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(s){return n._keydown(s)}),2&e&&(Ti("id",n._uid),X("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),Ce("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[z([{provide:kl,useExisting:i}]),I],ngContentSelectors:k8,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,n){1&e&&(Ot(),m(0,"div",0),Ne(1),g())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),i})(),L8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[No,{provide:_k,useValue:{separatorKeyCodes:[13]}}],imports:[[H]]}),i})();const V8=["*"];let Bu;function Hl(i){var t;return(null===(t=function H8(){if(void 0===Bu&&(Bu=null,"undefined"!=typeof window)){const i=window;void 0!==i.trustedTypes&&(Bu=i.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Bu}())||void 0===t?void 0:t.createHTML(i))||i}function bk(i){return Error(`Unable to find icon with the name "${i}"`)}function Ck(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Dk(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class vs{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Vu=(()=>{class i{constructor(e,n,r,s){this._httpClient=e,this._sanitizer=n,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,s){return this._addSvgIconConfig(e,n,new vs(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,s){const o=this._sanitizer.sanitize(Oe.HTML,r);if(!o)throw Dk(r);const a=Hl(o);return this._addSvgIconConfig(e,n,new vs("",a,s))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new vs(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const s=this._sanitizer.sanitize(Oe.HTML,n);if(!s)throw Dk(n);const o=Hl(s);return this._addSvgIconSetConfig(e,new vs("",o,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(Oe.RESOURCE_URL,e);if(!n)throw Ck(e);const r=this._cachedIconsByUrl.get(n);return r?Q(Hu(r)):this._loadSvgIconFromConfig(new vs(e,null)).pipe(Fe(s=>this._cachedIconsByUrl.set(n,s)),de(s=>Hu(s)))}getNamedSvgIcon(e,n=""){const r=wk(n,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(n,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(n);return o?this._getSvgFromIconSetConfigs(e,o):function B8(i,t){const e=xe(i)?i:()=>i,n=r=>r.error(e());return new Ie(t?r=>t.schedule(n,0,r):n)}(bk(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(Hu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(de(n=>Hu(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?Q(r):JS(n.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(xn(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Oe.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})))).pipe(de(()=>{const o=this._extractIconWithNameFromAnySet(e,n);if(!o)throw bk(e);return o}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const s=n[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Fe(n=>e.svgText=n),de(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Fe(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const s=e.querySelector(`[id="${n}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(Hl(""));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString(Hl("")),r=e.attributes;for(let s=0;sHl(d)),yd(()=>this._inProgressUrlFetches.delete(a)),uv());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(wk(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;rt?t.pathname+t.search:""}}}),Mk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],q8=Mk.map(i=>`[${i}]`).join(", "),Y8=/^url\(['"]?#(.*?)['"]?\)$/;let Q8=(()=>{class i extends $8{constructor(e,n,r,s,o){super(e),this._iconRegistry=n,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Te.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Y(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=e.querySelectorAll("style");for(let s=0;s{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(q8),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=n[s],l=a.getAttribute(o),c=l?l.match(Y8):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(We(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${s.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(Vu),At("aria-hidden"),p(G8),p(zn))},i.\u0275cmp=re({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,n){2&e&&(X("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet),Ce("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[I],ngContentSelectors:V8,decls:1,vars:0,template:function(e,n){1&e&&(Ot(),Ne(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),i})(),xk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})();function K8(i,t){1&i&&(m(0,"label"),m(1,"strong",15),y(2,"Invalid: Expired"),g(),g())}function Z8(i,t){1&i&&(m(0,"label"),m(1,"strong",16),y(2,"Valid"),g(),g())}const X8=function(i){return{"expired-ca":i}};function J8(i,t){if(1&i){const e=vn();m(0,"mat-card",5),m(1,"h1"),y(2,"Certificate Authority Details"),g(),m(3,"mat-card-actions",6),m(4,"button",7),R("click",function(){return Ui(e),fe().openCreateDialog()}),y(5,"Create New Certificate"),g(),g(),m(6,"mat-card-title",8),y(7),g(),m(8,"mat-card-subtitle"),y(9),g(),m(10,"mat-card-content"),y(11," Valid from "),m(12,"strong"),y(13),Dn(14,"date"),g(),y(15," -> "),m(16,"strong"),y(17),Dn(18,"date"),g(),U(19,"p"),y(20," Algorithm: "),m(21,"strong"),y(22),g(),U(23,"p"),g(),K(24,K8,3,0,"label",9),K(25,Z8,3,0,"label",9),U(26,"p"),m(27,"button",10),y(28,"Copy CA Cert"),g(),y(29," \xa0 "),m(30,"button",10),y(31,"Copy CA Key"),g(),m(32,"div",11),m(33,"mat-form-field",12),m(34,"mat-label"),y(35,"CA Certificate"),g(),m(36,"textarea",13),y(37),g(),g(),m(38,"mat-form-field",12),m(39,"mat-label"),y(40,"CA Private Key"),g(),m(41,"textarea",13),y(42),g(),g(),g(),y(43," Download CA: \xa0 "),m(44,"a",14),y(45,"Cert"),g(),y(46," \xa0 "),m(47,"a",14),y(48,"Key"),g(),y(49," \xa0 "),m(50,"a",14),y(51,"PKCS12"),g(),y(52," \xa0 "),m(53,"a",14),y(54,"Trust Store (JKS Format)"),g(),y(55," \xa0 "),m(56,"a",14),y(57,"Keystore And Trust Store Password (Same)"),g(),g()}if(2&i){const e=fe();E("ngClass",Yr(24,X8,e.caService.expired(e.cadetail))),C(7),Ze("CN=",e.cadetail.commonName,""),C(2),Pe(e.cadetail.subject),C(4),Pe(wn(14,18,e.cadetail.issueTime,"yyyy-MM-dd")),C(4),Pe(wn(18,21,36e5*e.cadetail.validDays*24+e.cadetail.issueTime,"yyyy-MM-dd")),C(5),lo("RSA",e.cadetail.keyLength,"Bits with ",e.cadetail.digestAlgorithm,""),C(2),E("ngIf",e.caService.expired(e.cadetail)),C(1),E("ngIf",!e.caService.expired(e.cadetail)),C(2),E("cdkCopyToClipboard",e.cadetail.cert),C(3),E("cdkCopyToClipboard",e.cadetail.key),C(7),Pe(e.cadetail.cert),C(5),Pe(e.cadetail.key),C(2),qi("href","/ca/download/",e.cadetail.id,"/cert",It),C(3),qi("href","/ca/download/",e.cadetail.id,"/key",It),C(3),qi("href","/ca/download/",e.cadetail.id,"/pkcs12",It),C(3),qi("href","/ca/download/",e.cadetail.id,"/truststore",It),C(3),qi("href","/ca/download/",e.cadetail.id,"/password",It)}}function e$(i,t){1&i&&(m(0,"div",0),m(1,"mat-card"),m(2,"mat-card-title",8),y(3,"No Certificates Yet!"),g(),m(4,"mat-card-subtitle"),y(5,"Why don't you create one?"),g(),m(6,"mat-card-content"),y(7,' Just click the "Create New Certificate" button above. '),g(),g(),g())}const t$=function(i,t){return{expired:i,active:t}};function i$(i,t){if(1&i){const e=vn();m(0,"div",0),m(1,"mat-card",5),m(2,"mat-card-title",8),y(3),g(),m(4,"mat-card-content"),y(5),U(6,"p"),y(7),U(8,"p"),y(9),U(10,"p"),y(11),U(12,"p"),y(13),U(14,"p"),y(15),U(16,"p"),y(17," Valid from "),m(18,"strong"),y(19),Dn(20,"date"),g(),y(21," -> "),m(22,"strong"),y(23),Dn(24,"date"),g(),U(25,"p"),y(26," Algorithm: "),m(27,"strong"),y(28),g(),U(29,"p"),g(),m(30,"mat-card-actions",19),m(31,"a",20),y(32,"View"),g(),m(33,"button",21),R("click",function(){const s=Ui(e).$implicit,o=fe(2);return o.deleteCert(o.cadetail,s)}),y(34,"Delete"),g(),g(),g(),g()}if(2&i){const e=t.$implicit,n=fe(2);C(1),E("ngClass",function j0(i,t,e,n,r){return U0(k(),Ut(),i,t,e,n,r)}(20,t$,n.caService.expiredCert(e),!n.caService.expiredCert(e))),C(2),Ze("CN=",e.commonName,""),C(2),Ze(" Cert ID: ",e.id," "),C(2),Ze(" Country: ",e.countryCode," "),C(2),Ze(" State: ",e.state," "),C(2),Ze(" Locality: ",e.city," "),C(2),Ze(" Organization: ",e.organization," "),C(2),Ze(" Organization Unit: ",e.organizationUnit," "),C(4),Pe(wn(20,14,e.issueTime,"yyyy-MM-dd")),C(4),Pe(wn(24,17,36e5*e.validDays*24+e.issueTime,"yyyy-MM-dd")),C(5),lo("RSA",e.keyLength,"Bits with ",e.digestAlgorithm,""),C(3),pi("routerLink","/certdetail/",n.cadetail.id,"/",e.id,"")}}function n$(i,t){if(1&i&&(m(0,"div",11),K(1,e$,8,0,"div",17),K(2,i$,35,23,"div",18),g()),2&i){const e=fe();C(1),E("ngIf",0==e.certList.length),C(1),E("ngForOf",e.certList)}}function r$(i,t){if(1&i){const e=vn();m(0,"mat-chip",21),R("removed",function(){const s=Ui(e).$implicit;return fe().removeDNS(s)}),y(1),m(2,"button",22),m(3,"mat-icon"),y(4,"cancel"),g(),g(),g()}if(2&i){const e=t.$implicit;C(1),Ze(" ",e," ")}}function s$(i,t){if(1&i){const e=vn();m(0,"mat-chip",21),R("removed",function(){const s=Ui(e).$implicit;return fe().removeIP(s)}),y(1),m(2,"button",22),m(3,"mat-icon"),y(4,"cancel"),g(),g(),g()}if(2&i){const e=t.$implicit;C(1),Ze(" ",e," ")}}const Sk=".small-card[_ngcontent-%COMP%]{padding:30px}.cakeys[_ngcontent-%COMP%]{padding-right:20px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.active[_ngcontent-%COMP%]{background-color:#bef7dd}mat-form-field[_ngcontent-%COMP%]{padding:5px}";let o$=(()=>{class i{constructor(e,n,r,s){this.route=e,this.caService=n,this.dialog=r,this._snackBar=s,this.id="",this.createCertData={commonName:"",countryCode:"",state:"",city:"",organization:"",organizationUnit:"",validDays:"365",digestAlgorithm:"sha512",keyLength:"4096",password:"changeit",dnsList:[],ipList:[]},this.certList=[],this.disableSelect=new s_(!1)}ngOnInit(){this.route.params.forEach(e=>{this.id=e.id}),this.id&&this.reloadData()}deleteCert(e,n){this.dialog.open($S,{width:"500px",data:{title:"Are you sure?",messages:["You are about to delete Certicate with:",`Subject: ${n.subject}`,`ID: ${n.id}`,`from CA ${e.commonName}, CAID ${e.id}`,"---------","This can't be undone."]}}).afterClosed().subscribe(s=>{s&&(console.log(`Deleting Cert ${n.id}`),tn(()=>this.caService.deleteCert(e.id,n.id),o=>So(this._snackBar,"Failed to delete Certificate","Dismiss")).subscribe(o=>{o.id&&Eo(this._snackBar,"Successfully created cert","Dismiss"),this.reloadData()}))})}reloadData(){this.id&&(tn(()=>this.caService.getCAById(`${this.id}`)).subscribe(e=>this.cadetail=e),tn(()=>this.caService.getCertsByCAId(`${this.id}`)).subscribe(e=>this.certList=e))}openCreateDialog(){this.dialog.open(a$,{width:"500px",data:this.createCertData}).afterClosed().subscribe(n=>{this.cadetail&&n&&(console.log("The dialog was closed"),this.createCertData=n,console.log(JSON.stringify(n)),tn(()=>this.caService.createCert(this.cadetail.id,n),r=>So(this._snackBar,"Failed to create cert","Dismiss")).subscribe(r=>{r.id&&Eo(this._snackBar,"Successfully created cert","Dismiss"),this.reloadData()}))})}}return i.\u0275fac=function(e){return new(e||i)(p(Jn),p(Ld),p(wl),p(El))},i.\u0275cmp=re({type:i,selectors:[["app-cadetail"]],decls:9,vars:4,consts:[["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","fxFlex","20",1,"small-card"],["routerLink","/"],[3,"routerLink"],[3,"ngClass",4,"ngIf"],["class","flex-container",4,"ngIf"],[3,"ngClass"],["align","start"],["mat-raised-button","","color","primary",3,"click"],[2,"font-size","16px"],[4,"ngIf"],["mat-raised-button","","color","secondary",3,"cdkCopyToClipboard"],[1,"flex-container"],["appearance","fill",1,"cakeys",2,"width","48%"],["matInput","","disabled","","cols","200","rows","30",2,"font-family","Courier"],["mat-raised-button","","color","primary",3,"href"],[2,"color","red"],[2,"color","green"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngIf"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngFor","ngForOf"],["align","end"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click"]],template:function(e,n){1&e&&(m(0,"div"),m(1,"div",0),m(2,"a",1),y(3,"Home"),g(),y(4," > "),m(5,"a",2),y(6),g(),K(7,J8,58,26,"mat-card",3),g(),K(8,n$,3,2,"div",4),g()),2&e&&(C(5),qi("routerLink","/cadetail/",null==n.cadetail?null:n.cadetail.id,""),C(1),Ze("CN=",null==n.cadetail?null:n.cadetail.commonName,""),C(1),E("ngIf",n.cadetail),C(1),E("ngIf",n.cadetail))},directives:[Mo,Qn,Cu,Ya,$g,Pn,yu,bu,Ug,hk,Ho,Tr,Go,jg,Zr],pipes:[hd],styles:[Sk]}),i})(),a$=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n,this.separatorKeysCodes=[13,188],this.addOnBlur=!0}addDNS(e){const n=(e.value||"").trim();n&&this.data.dnsList.push(n),e.chipInput.clear()}removeDNS(e){const n=this.data.dnsList.indexOf(e);n>=0&&this.data.dnsList.splice(n,1)}addIP(e){const n=(e.value||"").trim();n&&this.data.ipList.push(n),e.chipInput.clear()}removeIP(e){const n=this.data.ipList.indexOf(e);n>=0&&this.data.ipList.splice(n,1)}onNoClick(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Lo))},i.\u0275cmp=re({type:i,selectors:[["create-cert-dialog"]],decls:72,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["matInput","","required","",3,"ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["required","",3,"value","valueChange"],["value","2048"],["value","4096"],["value","8192"],["value","sha256"],["value","sha512"],["aria-label","DNS Name selection"],["dnsList",""],[3,"removed",4,"ngFor","ngForOf"],["placeholder","New DNS...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["aria-label","IP Addresses selection"],["ipList",""],["placeholder","New IP Address...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"mat-dialog-close"],["mat-button","",3,"click"],[3,"removed"],["matChipRemove",""]],template:function(e,n){if(1&e&&(m(0,"h1",0),y(1,"Create a new Cert"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Common Name"),g(),m(6,"input",3),R("ngModelChange",function(s){return n.data.commonName=s}),g(),g(),m(7,"mat-form-field",2),m(8,"mat-label"),y(9,"Country Code"),g(),m(10,"input",3),R("ngModelChange",function(s){return n.data.countryCode=s}),g(),g(),m(11,"mat-form-field",2),m(12,"mat-label"),y(13,"State"),g(),m(14,"input",4),R("ngModelChange",function(s){return n.data.state=s}),g(),g(),m(15,"mat-form-field",2),m(16,"mat-label"),y(17,"City"),g(),m(18,"input",4),R("ngModelChange",function(s){return n.data.city=s}),g(),g(),m(19,"mat-form-field",2),m(20,"mat-label"),y(21,"Organization"),g(),m(22,"input",3),R("ngModelChange",function(s){return n.data.organization=s}),g(),g(),m(23,"mat-form-field",2),m(24,"mat-label"),y(25,"Organization Unit"),g(),m(26,"input",4),R("ngModelChange",function(s){return n.data.organizationUnit=s}),g(),g(),m(27,"mat-form-field",2),m(28,"mat-label"),y(29,"Valid Days"),g(),m(30,"input",3),R("ngModelChange",function(s){return n.data.validDays=s}),g(),g(),m(31,"mat-form-field",2),m(32,"mat-label"),y(33,"Key Length"),g(),m(34,"mat-select",5),R("valueChange",function(s){return n.data.keyLength=s}),m(35,"mat-option",6),y(36," RSA2048 Bit "),g(),m(37,"mat-option",7),y(38," RSA4096 Bit "),g(),m(39,"mat-option",8),y(40," RSA8192 Bit "),g(),g(),g(),m(41,"mat-form-field",2),m(42,"mat-label"),y(43,"Digest Algorithm"),g(),m(44,"mat-select",5),R("valueChange",function(s){return n.data.digestAlgorithm=s}),m(45,"mat-option",9),y(46," sha256 "),g(),m(47,"mat-option",10),y(48," sha512 "),g(),g(),g(),m(49,"mat-form-field",2),m(50,"mat-label"),y(51,"Keystore Password(optional)"),g(),m(52,"input",4),R("ngModelChange",function(s){return n.data.password=s}),g(),g(),m(53,"mat-form-field",2),m(54,"mat-label"),y(55,"DNS Names"),g(),m(56,"mat-chip-list",11,12),K(58,r$,5,1,"mat-chip",13),m(59,"input",14),R("matChipInputTokenEnd",function(s){return n.addDNS(s)}),g(),g(),g(),m(60,"mat-form-field",2),m(61,"mat-label"),y(62,"IP Addresses"),g(),m(63,"mat-chip-list",15,16),K(65,s$,5,1,"mat-chip",13),m(66,"input",17),R("matChipInputTokenEnd",function(s){return n.addIP(s)}),g(),g(),g(),g(),m(67,"div",18),m(68,"button",19),y(69,"Create"),g(),m(70,"button",20),R("click",function(){return n.onNoClick()}),y(71,"Cancel"),g(),g()),2&e){const r=_n(57),s=_n(64);C(6),E("ngModel",n.data.commonName),C(4),E("ngModel",n.data.countryCode),C(4),E("ngModel",n.data.state),C(4),E("ngModel",n.data.city),C(4),E("ngModel",n.data.organization),C(4),E("ngModel",n.data.organizationUnit),C(4),E("ngModel",n.data.validDays),C(4),E("value",n.data.keyLength),C(10),E("value",n.data.digestAlgorithm),C(8),E("ngModel",n.data.password),C(6),E("ngForOf",n.data.dnsList),C(1),E("matChipInputFor",r)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",n.addOnBlur),C(6),E("ngForOf",n.data.ipList),C(1),E("matChipInputFor",s)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",n.addOnBlur),C(2),E("mat-dialog-close",n.data)}},directives:[Ml,xl,Ho,Tr,Go,_s,Nl,Il,Uo,uk,Lg,yk,Zr,vk,Sl,Pn,_u,Lu,gk,Q8],styles:[Sk]}),i})();function l$(i,t){1&i&&(m(0,"label"),m(1,"strong",13),y(2,"Invalid: Expired"),g(),g())}function c$(i,t){1&i&&(m(0,"label"),m(1,"strong",14),y(2,"Valid"),g(),g())}function d$(i,t){if(1&i&&(m(0,"label"),m(1,"strong"),y(2),g(),y(3,"; \xa0 "),g()),2&i){const e=t.$implicit;C(2),Pe(e)}}function u$(i,t){if(1&i&&(m(0,"div"),y(1," Valid for these DNS names: "),K(2,d$,4,1,"label",15),g()),2&i){const e=fe(2);C(2),E("ngForOf",e.certdetail.dnsList)}}function h$(i,t){1&i&&(m(0,"label"),y(1," No DNS names configured. "),g())}function p$(i,t){if(1&i&&(m(0,"label"),m(1,"strong"),y(2),g(),y(3,"; \xa0 "),g()),2&i){const e=t.$implicit;C(2),Pe(e)}}function f$(i,t){if(1&i&&(m(0,"div"),y(1," Valid for these IP Addresses: "),K(2,p$,4,1,"label",15),g()),2&i){const e=fe(2);C(2),E("ngForOf",e.certdetail.ipList)}}function m$(i,t){1&i&&(m(0,"label"),y(1," No IP Addresses configured. "),g())}const g$=function(i){return{expired:i}};function _$(i,t){if(1&i&&(m(0,"mat-card",4),m(1,"h1"),y(2,"Certificate Detail"),g(),m(3,"mat-card-title",5),y(4),g(),m(5,"mat-card-subtitle"),y(6),g(),m(7,"mat-card-content"),y(8," Valid from: "),m(9,"strong"),y(10),Dn(11,"date"),g(),y(12," -> "),m(13,"strong"),y(14),Dn(15,"date"),g(),U(16,"p"),y(17," Algorithm: "),m(18,"strong"),y(19),g(),U(20,"p"),g(),y(21," Status: "),K(22,l$,3,0,"label",6),K(23,c$,3,0,"label",6),U(24,"p"),K(25,u$,3,1,"div",6),K(26,h$,2,0,"label",6),K(27,f$,3,1,"div",6),K(28,m$,2,0,"label",6),U(29,"p"),m(30,"button",7),y(31,"Copy Cert"),g(),y(32," \xa0 "),m(33,"button",7),y(34,"Copy Key"),g(),m(35,"div",8),m(36,"mat-form-field",9),m(37,"mat-label"),y(38,"Certificate"),g(),m(39,"textarea",10),y(40),g(),g(),m(41,"mat-form-field",9),m(42,"mat-label"),y(43,"Private Key"),g(),m(44,"textarea",10),y(45),g(),g(),g(),m(46,"mat-card-actions",11),m(47,"a",12),y(48,"Download Everything"),g(),m(49,"a",12),y(50,"Cert"),g(),m(51,"a",12),y(52,"Cert Request"),g(),m(53,"a",12),y(54,"Key"),g(),m(55,"a",12),y(56,"KeyStore in JKS"),g(),m(57,"a",12),y(58,"KeyStore in PKCS12"),g(),m(59,"a",12),y(60,"KeyStore Password"),g(),m(61,"a",12),y(62,"Trust Store"),g(),m(63,"a",12),y(64,"Trust Store Password"),g(),g(),g()),2&i){const e=fe();E("ngClass",Yr(41,g$,e.caService.expiredCert(e.certdetail))),C(4),Ze("CN=",e.certdetail.commonName,""),C(2),Pe(e.certdetail.subject),C(4),Pe(wn(11,35,e.certdetail.issueTime,"yyyy-MM-dd")),C(4),Pe(wn(15,38,36e5*e.certdetail.validDays*24+e.certdetail.issueTime,"yyyy-MM-dd")),C(5),lo("RSA",e.certdetail.keyLength,"Bits with ",e.certdetail.digestAlgorithm,""),C(3),E("ngIf",e.caService.expiredCert(e.certdetail)),C(1),E("ngIf",!e.caService.expiredCert(e.certdetail)),C(2),E("ngIf",e.certdetail.dnsList.length>0),C(1),E("ngIf",0==e.certdetail.dnsList.length),C(1),E("ngIf",e.certdetail.ipList.length>0),C(1),E("ngIf",0==e.certdetail.ipList.length),C(2),E("cdkCopyToClipboard",e.certdetail.cert),C(3),E("cdkCopyToClipboard",e.certdetail.key),C(7),Pe(e.certdetail.cert),C(5),Pe(e.certdetail.key),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/bundle",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/cert",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/csr",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/key",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/jks",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/pkcs12",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/password",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/truststore",It),C(2),pi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/truststorePassword",It)}}const v$=[{path:"",redirectTo:"/calist",pathMatch:"full"},{matcher:i=>(console.log(i),1===i.length&&"cadetail"===i[0].path?{consumed:i,posParams:{id:new Zn("",{})}}:2===i.length&&"cadetail"===i[0].path?{consumed:i,posParams:{id:new Zn(i[1].path,{})}}:null),component:o$},{matcher:i=>(console.log(JSON.stringify(i)),3===i.length&&"certdetail"===i[0].path?{consumed:i,posParams:{caid:new Zn(i[1].path,{}),certid:new Zn(i[2].path,{})}}:null),component:(()=>{class i{constructor(e,n,r){this.route=e,this.caService=n,this._snackBar=r,this.caid="",this.certid=""}ngOnInit(){this.route.params.forEach(e=>{this.caid=e.caid,this.certid=e.certid}),this.caid&&this.certid&&(tn(()=>this.caService.getCAById(`${this.caid}`)).subscribe(e=>this.cadetail=e),tn(()=>this.caService.getCertByCAAndCertId(`${this.caid}`,`${this.certid}`)).subscribe(e=>this.certdetail=e))}}return i.\u0275fac=function(e){return new(e||i)(p(Jn),p(Ld),p(El))},i.\u0275cmp=re({type:i,selectors:[["app-certdetail"]],decls:11,vars:6,consts:[["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","fxFlex","20",1,"small-card"],["routerLink","/"],[3,"routerLink"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[2,"font-size","16px"],[4,"ngIf"],["mat-raised-button","","color","secondary",3,"cdkCopyToClipboard"],[1,"flex-container"],["appearance","fill",1,"cakeys",2,"width","48%"],["matInput","","disabled","","cols","200","rows","30",2,"font-family","Courier"],["align","start"],["mat-raised-button","","color","primary",3,"href"],[2,"color","red"],[2,"color","green"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(m(0,"div"),m(1,"div",0),m(2,"a",1),y(3,"Home"),g(),y(4," > "),m(5,"a",2),y(6),g(),y(7," > "),m(8,"a",2),y(9),g(),K(10,_$,65,43,"mat-card",3),g(),g()),2&e&&(C(5),qi("routerLink","/cadetail/",null==n.cadetail?null:n.cadetail.id,""),C(1),Ze("CN=",null==n.cadetail?null:n.cadetail.commonName,""),C(2),pi("routerLink","/certdetail/",null==n.cadetail?null:n.cadetail.id,"/",null==n.certdetail?null:n.certdetail.id,""),C(1),Ze("CN=",null==n.certdetail?null:n.certdetail.commonName,""),C(1),E("ngIf",n.certdetail))},directives:[Mo,Qn,Cu,Ya,yu,bu,Ug,Pn,hk,Ho,Tr,Go,$g,jg,Zr],pipes:[hd],styles:[".small-card[_ngcontent-%COMP%]{padding:30px}.cakeys[_ngcontent-%COMP%]{padding-right:20px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.active[_ngcontent-%COMP%]{background-color:#bef7dd}"]}),i})()},{path:"calist",component:b8}];let y$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mm.forRoot(v$)],Mm]}),i})();function b$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=fe();Wt("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}function C$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=fe();Wt("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}function D$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=fe();Wt("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}function w$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=fe();Wt("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}const S$=Er(class{constructor(i){this._elementRef=i}},"primary"),Ek=new S("mat-progress-spinner-default-options",{providedIn:"root",factory:function E$(){return{diameter:100}}});class sr extends S${constructor(t,e,n,r,s){super(t),this._document=n,this._diameter=100,this._value=0,this.mode="determinate";const o=sr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Qt(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Qt(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Qt(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=$d(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,n=sr._diameters;let r=n.get(t);if(!r||!r.has(e)){const s=this._document.createElement("style");s.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),s.textContent=this._getAnimationText(),t.appendChild(s),r||(r=new Set,n.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}sr._diameters=new WeakMap,sr.\u0275fac=function(t){return new(t||sr)(p(W),p(_t),p(ie,8),p(Ft,8),p(Ek))},sr.\u0275cmp=re({type:sr,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(X("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Wt("width",e.diameter,"px")("height",e.diameter,"px"),Ce("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[I],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(gr(),m(0,"svg",0),K(1,b$,1,9,"circle",1),K(2,C$,1,7,"circle",2),g()),2&t&&(Wt("width",e.diameter,"px")("height",e.diameter,"px"),E("ngSwitch","indeterminate"===e.mode),X("viewBox",e._getViewBox()),C(1),E("ngSwitchCase",!0),C(1),E("ngSwitchCase",!1))},directives:[Xr,Qa],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let T$=(()=>{class i extends sr{constructor(e,n,r,s,o){super(e,n,r,s,o),this.mode="indeterminate"}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(_t),p(ie,8),p(Ft,8),p(Ek))},i.\u0275cmp=re({type:i,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,n){2&e&&(Wt("width",n.diameter,"px")("height",n.diameter,"px"),Ce("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color"},features:[I],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,n){1&e&&(gr(),m(0,"svg",0),K(1,D$,1,9,"circle",1),K(2,w$,1,7,"circle",2),g()),2&e&&(Wt("width",n.diameter,"px")("height",n.diameter,"px"),E("ngSwitch","indeterminate"===n.mode),X("viewBox",n._getViewBox()),C(1),E("ngSwitchCase",!0),C(1),E("ngSwitchCase",!1))},directives:[Xr,Qa],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),i})(),A$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H,Mt],H]}),i})(),I$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=re({type:i,selectors:[["app-spinner"]],decls:2,vars:0,consts:[[1,"loading"],[1,"overlay"]],template:function(e,n){1&e&&(m(0,"div",0),U(1,"mat-spinner",1),g())},directives:[T$],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;top:20%;left:50%;z-index:100;text-align:center}.loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;display:block;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}"]}),i})(),R$=(()=>{class i{constructor(e){this._snackBar=e}say(e,n){this._snackBar.open(e,n)}}return i.\u0275fac=function(e){return new(e||i)(p(El))},i.\u0275cmp=re({type:i,selectors:[["app-toaster"]],decls:0,vars:0,template:function(e,n){},styles:[""]}),i})(),O$=(()=>{class i{constructor(){this.title="minca-ui"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=re({type:i,selectors:[["app-root"]],decls:3,vars:0,consts:[["id","loading-layer",2,"display","none"],["id","toaster007"]],template:function(e,n){1&e&&(U(0,"router-outlet"),U(1,"app-spinner",0),U(2,"app-toaster",1))},directives:[_m,I$,R$],styles:[""]}),i})(),kk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();function f_(i,t,e){for(let n in t)if(t.hasOwnProperty(n)){const r=t[n];r?i.setProperty(n,r,(null==e?void 0:e.has(n))?"important":""):i.removeProperty(n)}return i}function qo(i,t){const e=t?"":"none";f_(i.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Tk(i,t,e){f_(i.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function ju(i,t){return t&&"none"!=t?i+" "+t:i}function Ak(i){const t=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*t}function m_(i,t){return i.getPropertyValue(t).split(",").map(n=>n.trim())}function g_(i){const t=i.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function __(i,t,e){const{top:n,bottom:r,left:s,right:o}=i;return e>=n&&e<=r&&t>=s&&t<=o}function jl(i,t,e){i.top+=t,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function Ik(i,t,e,n){const{top:r,right:s,bottom:o,left:a,width:l,height:c}=i,d=l*t,u=c*t;return n>r-u&&na-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:g_(e)})})}handleScroll(t){const e=Oi(t),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let s,o;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();s=c.top,o=c.left}else s=e.scrollTop,o=e.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&e!==d&&e.contains(d)&&jl(c.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}}function Ok(i){const t=i.cloneNode(!0),e=t.querySelectorAll("[id]"),n=i.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._handles.find(c=>a.target&&(a.target===c||c.contains(a.target)));l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),_=this._dropContainer;if(!f)return void this._endDragSequence(a);(!_||!_.isDragging()&&!_.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const d=this._activeTransform;d.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Rk(n,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Y(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(n=>qo(n,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(n=>dt(n)),this._handles.forEach(n=>qo(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=dt(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Bk),e.addEventListener("touchstart",this._pointerDown,Lk)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?dt(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){var t,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(t=this._rootElement)||void 0===t||t.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),qo(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),qo(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var t,e;null===(t=this._preview)||void 0===t||t.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var t,e;null===(t=this._placeholder)||void 0===t||t.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){zl(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,s=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(o,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),Tk(n,!1,v_),this._document.body.appendChild(r.replaceChild(s,n)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=zl(e),s=!r&&0!==e.button,o=this._rootElement,a=Oi(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Xm(e):Zm(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),n||s||l||c)return;if(this._handles.length){const h=o.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=g_(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Tk(this._rootElement,!0,v_),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),s=this._getDragDistance(r),o=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:s,dropPoint:r}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:r}),e.drop(this,n,this._initialIndex,this._initialContainer,o,s,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:r}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let r;if(n&&t){const s=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(n,t.context);o.detectChanges(),r=Hk(o,this._document),this._previewRef=o,t.matchSize?jk(r,s):r.style.transform=zu(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const s=this._rootElement;r=Ok(s),jk(r,s.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return f_(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},v_),qo(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(s=>r.classList.add(s)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function F$(i){const t=getComputedStyle(i),e=m_(t,"transition-property"),n=e.find(a=>"transform"===a||"all"===a);if(!n)return 0;const r=e.indexOf(n),s=m_(t,"transition-duration"),o=m_(t,"transition-delay");return Ak(s[r])+Ak(o[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=o=>{var a;(!o||Oi(o)===this._preview&&"transform"===o.propertyName)&&(null===(a=this._preview)||void 0===a||a.removeEventListener("transitionend",r),n(),clearTimeout(s))},s=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=Hk(this._placeholderRef,this._document)):n=Ok(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),r=t===this._rootElement?null:t,s=r?r.getBoundingClientRect():n,o=zl(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:s.left-n.left+(o.pageX-s.left-a.left),y:s.top-n.top+(o.pageY-s.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=zl(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=n.pageX-e.left,s=n.pageY-e.top;if(this._ownerSVGElement){const o=this._ownerSVGElement.getScreenCTM();if(o){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=s,a.matrixTransform(o.inverse())}}return{x:r,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:s,y:o}=this._pickupPositionInElement,a=this._boundaryRect,l=this._previewRect,c=a.top+o,d=a.bottom-(l.height-o);n=Vk(n,a.left+s,a.right-(l.width-s)),r=Vk(r,c,d)}return{x:n,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,r=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),a=Math.abs(n-s.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=e>s.x?1:-1,s.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=n>s.y?1:-1,s.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,qo(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Bk),t.removeEventListener("touchstart",this._pointerDown,Lk)}_applyRootElementTransform(t,e){const n=zu(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=ju(n,this._initialTransform)}_applyPreviewTransform(t,e){var n;const r=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,s=zu(t,e);this._preview.style.transform=ju(s,r)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===r.width&&0===r.height)return;const s=n.left-r.left,o=r.right-n.right,a=n.top-r.top,l=r.bottom-n.bottom;n.width>r.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,n.height>r.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:zl(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=Oi(t);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&jl(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=$d(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const n=this._previewContainer||"global";if("parent"===n)return t;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return dt(n)}}function zu(i,t){return`translate3d(${Math.round(i)}px, ${Math.round(t)}px, 0)`}function Vk(i,t,e){return Math.max(t,Math.min(e,i))}function zl(i){return"t"===i.type[0]}function Hk(i,t){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const n=t.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function jk(i,t){i.style.width=`${t.width}px`,i.style.height=`${t.height}px`,i.style.transform=zu(t.left,t.top)}function Ul(i,t){return Math.max(0,Math.min(t,i))}class H${constructor(t,e,n,r,s){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new O,this.entered=new O,this.exited=new O,this.dropped=new O,this.sorted=new O,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Te.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new O,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function P$(i=0,t=zd){return i<0&&(i=0),Fm(i,i,t)}(0,YM).pipe(Re(this._stopScrollTimers)).subscribe(()=>{const o=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?o.scrollBy(0,-a):2===this._verticalScrollDirection&&o.scrollBy(0,a),1===this._horizontalScrollDirection?o.scrollBy(-a,0):2===this._horizontalScrollDirection&&o.scrollBy(a,0)})},this.element=dt(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Rk(n,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,n,r){let s;this._draggingStarted(),null==r?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,n))):s=r;const o=this._activeDraggables,a=o.indexOf(t),l=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),!c&&(null==s||-1===s||s-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const d=c.getRootElement();d.parentElement.insertBefore(l,d),o.splice(s,0,t)}else dt(this.element).appendChild(l),o.push(t);l.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,r,s,o,a){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:s,distance:o,dropPoint:a})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=dt(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,r){if(this.sortingDisabled||!this._clientRect||!Ik(this._clientRect,.05,e,n))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,n,r);if(-1===o&&s.length>0)return;const a="horizontal"===this._orientation,l=s.findIndex(b=>b.drag===t),c=s[o],u=c.clientRect,h=l>o?1:-1,f=this._getItemOffsetPx(s[l].clientRect,u,h),_=this._getSiblingOffsetPx(l,s,h),v=s.slice();(function V$(i,t,e){const n=Ul(t,i.length-1),r=Ul(e,i.length-1);if(n===r)return;const s=i[n],o=r{if(v[M]===b)return;const w=b.drag===t,T=w?f:_,P=w?t.getPlaceholderElement():b.drag.getRootElement();b.offset+=T,a?(P.style.transform=ju(`translate3d(${Math.round(b.offset)}px, 0, 0)`,b.initialTransform),jl(b.clientRect,0,T)):(P.style.transform=ju(`translate3d(0, ${Math.round(b.offset)}px, 0)`,b.initialTransform),jl(b.clientRect,T,0))}),this._previousSwap.overlaps=__(u,e,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,r=0,s=0;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||n||Ik(o.clientRect,.05,t,e)&&([r,s]=function j$(i,t,e,n){const r=$k(t,n),s=Gk(t,e);let o=0,a=0;if(r){const l=i.scrollTop;1===r?l>0&&(o=1):i.scrollHeight-l>i.clientHeight&&(o=2)}if(s){const l=i.scrollLeft;1===s?l>0&&(a=1):i.scrollWidth-l>i.clientWidth&&(a=2)}return[o,a]}(a,o.clientRect,t,e),(r||s)&&(n=a))}),!r&&!s){const{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};r=$k(l,e),s=Gk(l,t),n=window}n&&(r!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=s,this._scrollNode=n,(r||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=dt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=dt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:g_(n)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=dt(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var n;const r=e.getRootElement();if(r){const s=null===(n=this._itemPositions.find(o=>o.drag===e))||void 0===n?void 0:n.initialTransform;r.style.transform=s||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,n){const r="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*n];let a=s[r?"width":"height"]*n;if(o){const l=r?"left":"top",c=r?"right":"bottom";-1===n?a-=o.clientRect[l]-s[c]:a+=s[l]-o.clientRect[c]}return a}_getItemOffsetPx(t,e,n){const r="horizontal"===this._orientation;let s=r?e.left-t.left:e.top-t.top;return-1===n&&(s+=r?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const o=n[n.length-1].clientRect;return r?t>=o.right:e>=o.bottom}{const o=n[0].clientRect;return r?t<=o.left:e<=o.top}}_getItemIndexFromPointerPosition(t,e,n,r){const s="horizontal"===this._orientation,o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=s?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return s?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&nr._canReceive(t,e,n))}_canReceive(t,e,n){if(!this._clientRect||!__(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const s=dt(this.element);return r===s||s.contains(r)}_startReceiving(t,e){const n=this._activeSiblings;!n.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:n})=>{jl(n,e.top,e.left)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=$d(dt(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function $k(i,t){const{top:e,bottom:n,height:r}=i,s=.05*r;return t>=e-s&&t<=e+s?1:t>=n-s&&t<=n+s?2:0}function Gk(i,t){const{left:e,right:n,width:r}=i,s=.05*r;return t>=e-s&&t<=e+s?1:t>=n-s&&t<=n+s?2:0}const Uu=nn({passive:!1,capture:!0});let z$=(()=>{class i{constructor(e,n){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new O,this.pointerUp=new O,this.scroll=new O,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=n}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Uu)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Uu)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:s=>this.pointerUp.next(s),options:!0}).set("scroll",{handler:s=>this.scroll.next(s),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Uu}),r||this._globalListeners.set("mousemove",{handler:s=>this.pointerMove.next(s),options:Uu}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((s,o)=>{this._document.addEventListener(o,s.handler,s.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new Ie(r=>this._ngZone.runOutsideAngular(()=>{const o=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",o,!0),()=>{e.removeEventListener("scroll",o,!0)}}))),jt(...n)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const U$={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let $$=(()=>{class i{constructor(e,n,r,s){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=s}createDrag(e,n=U$){return new B$(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new H$(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(te),D(Io),D(z$))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),G$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[$$],imports:[Tn]}),i})(),Wk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Ao]]}),i})(),Xk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Gd]]}),i})(),Jk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const mG={provide:new S("mat-autocomplete-scroll-strategy"),deps:[Pi],useFactory:function fG(i){return()=>i.scrollStrategies.reposition()}};let yG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[mG],imports:[[tr,gu,H,Mt],Tn,gu,H]}),i})(),bG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[tr,H,er],H]}),i})(),EG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H,sn],H]}),i})(),lT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),VG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[sn,H,vl,lT],H,lT]}),i})(),O_=(()=>{class i{constructor(){this.changes=new O,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const KG={provide:O_,deps:[[new Ct,new ci,O_]],useFactory:function QG(i){return i||new O_}};let ZG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[KG,No],imports:[[H,Mt,er,Bo,Wk,xk,sn],H]}),i})(),l6=(()=>{class i{constructor(){this.changes=new O,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,n){return`${e} \u2013 ${n}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const u6={provide:new S("mat-datepicker-scroll-strategy"),deps:[Pi],useFactory:function d6(i){return()=>i.scrollStrategies.reposition()}};let g6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[l6,u6],imports:[[Mt,Bo,tr,yl,er,H],Tn]}),i})(),pT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})(),_6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,kk,er]]}),i})(),b6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[mu,H],mu,H]}),i})(),P6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[mu,sn,H,Ng,Mt],mu,H,Ng,pT]}),i})();const B6={provide:new S("mat-menu-scroll-strategy"),deps:[Pi],useFactory:function L6(i){return()=>i.scrollStrategies.reposition()}};let V6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[B6],imports:[[Mt,H,sn,tr],Tn,H]}),i})();const U6={provide:new S("mat-tooltip-scroll-strategy"),deps:[Pi],useFactory:function z6(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}};let vT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[U6],imports:[[yl,Mt,tr,H],H,Tn]}),i})(),P_=(()=>{class i{constructor(){this.changes=new O,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,n,r)=>{if(0==r||0==n)return`0 of ${r}`;const s=e*n;return`${s+1} \u2013 ${s<(r=Math.max(r,0))?Math.min(s+n,r):s+n} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Q6={provide:P_,deps:[[new Ct,new ci,P_]],useFactory:function Y6(i){return i||new P_}};let K6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Q6],imports:[[Mt,Bo,h_,vT,H]]}),i})(),X6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H],H]}),i})(),uW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[sn,H],H]}),i})(),pW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,ko,Tn],Tn,H]}),i})(),MW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H],H]}),i})(),wT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),BW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[wT,sn,H,vl],wT,H]}),i})(),N_=(()=>{class i{constructor(){this.changes=new O}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const HW={provide:N_,deps:[[new Ct,new ci,N_]],useFactory:function VW(i){return i||new N_}};let jW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[HW],imports:[[Mt,H]]}),i})(),rq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Xk,H],H]}),i})(),dq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,er,sn,vl,yl],H]}),i})(),uq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})(),yq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Jk,H],H]}),i})(),bq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[yl,kk,E8,Wk,Xk,Jk,G$,yG,yU,bG,Bo,EG,QS,VG,L8,ZG,g6,Q5,pT,_6,b6,xk,Y4,P6,V6,T5,K6,X6,A$,uW,sn,h_,pW,MW,BW,YS,jW,rq,dq,uq,vT,yq,tr,er,Gd]}),i})(),Cq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i,bootstrap:[O$]}),i.\u0275inj=F({providers:[],imports:[[Mw,y$,aj,_5,Mm,QS,Bo,Du,z4,U4,h_,bq]]}),i})();(function tL(){ID=!1})(),y2().bootstrapModule(Cq).catch(i=>console.error(i))}},xe=>{xe(xe.s=348)}]); \ No newline at end of file diff --git a/src/main/resources/static/main.dfff79e842c0147f.js b/src/main/resources/static/main.dfff79e842c0147f.js new file mode 100644 index 0000000..bc81fec --- /dev/null +++ b/src/main/resources/static/main.dfff79e842c0147f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkminca_ui=self.webpackChunkminca_ui||[]).push([[179],{348:()=>{function xe(i){return"function"==typeof i}function na(i){const e=i(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Yl=na(i=>function(e){i(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function xs(i,t){if(i){const e=i.indexOf(t);0<=e&&i.splice(e,1)}}class Te{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(xe(n))try{n()}catch(s){t=s instanceof Yl?s.errors:[s]}const{_teardowns:r}=this;if(r){this._teardowns=null;for(const s of r)try{G_(s)}catch(o){t=null!=t?t:[],o instanceof Yl?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Yl(t)}}add(t){var e;if(t&&t!==this)if(this.closed)G_(t);else{if(t instanceof Te){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&xs(e,t)}remove(t){const{_teardowns:e}=this;e&&xs(e,t),t instanceof Te&&t._removeParent(this)}}Te.EMPTY=(()=>{const i=new Te;return i.closed=!0,i})();const U_=Te.EMPTY;function $_(i){return i instanceof Te||i&&"closed"in i&&xe(i.remove)&&xe(i.add)&&xe(i.unsubscribe)}function G_(i){xe(i)?i():i.unsubscribe()}const Nr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ql={setTimeout(...i){const{delegate:t}=Ql;return((null==t?void 0:t.setTimeout)||setTimeout)(...i)},clearTimeout(i){const{delegate:t}=Ql;return((null==t?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function W_(i){Ql.setTimeout(()=>{const{onUnhandledError:t}=Nr;if(!t)throw i;t(i)})}function Ss(){}const AT=rh("C",void 0,void 0);function rh(i,t,e){return{kind:i,value:t,error:e}}let Lr=null;function Kl(i){if(Nr.useDeprecatedSynchronousErrorHandling){const t=!Lr;if(t&&(Lr={errorThrown:!1,error:null}),i(),t){const{errorThrown:e,error:n}=Lr;if(Lr=null,e)throw n}}else i()}class sh extends Te{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,$_(t)&&t.add(this)):this.destination=PT}static create(t,e,n){return new oh(t,e,n)}next(t){this.isStopped?lh(function RT(i){return rh("N",i,void 0)}(t),this):this._next(t)}error(t){this.isStopped?lh(function IT(i){return rh("E",void 0,i)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?lh(AT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class oh extends sh{constructor(t,e,n){let r;if(super(),xe(t))r=t;else if(t){let s;({next:r,error:e,complete:n}=t),this&&Nr.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe()):s=t,r=null==r?void 0:r.bind(s),e=null==e?void 0:e.bind(s),n=null==n?void 0:n.bind(s)}this.destination={next:r?ah(r):Ss,error:ah(null!=e?e:q_),complete:n?ah(n):Ss}}}function ah(i,t){return(...e)=>{try{i(...e)}catch(n){Nr.useDeprecatedSynchronousErrorHandling?function OT(i){Nr.useDeprecatedSynchronousErrorHandling&&Lr&&(Lr.errorThrown=!0,Lr.error=i)}(n):W_(n)}}}function q_(i){throw i}function lh(i,t){const{onStoppedNotification:e}=Nr;e&&Ql.setTimeout(()=>e(i,t))}const PT={closed:!0,next:Ss,error:q_,complete:Ss},ch="function"==typeof Symbol&&Symbol.observable||"@@observable";function dr(i){return i}let Ie=(()=>{class i{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new i;return n.source=this,n.operator=e,n}subscribe(e,n,r){const s=function NT(i){return i&&i instanceof sh||function FT(i){return i&&xe(i.next)&&xe(i.error)&&xe(i.complete)}(i)&&$_(i)}(e)?e:new oh(e,n,r);return Kl(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=Q_(n))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),null==o||o.unsubscribe()}},s,r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[ch](){return this}pipe(...e){return function Y_(i){return 0===i.length?dr:1===i.length?i[0]:function(e){return i.reduce((n,r)=>r(n),e)}}(e)(this)}toPromise(e){return new(e=Q_(e))((n,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>n(s))})}}return i.create=t=>new i(t),i})();function Q_(i){var t;return null!==(t=null!=i?i:Nr.Promise)&&void 0!==t?t:Promise}const LT=na(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let O=(()=>{class i extends Ie{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new K_(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new LT}next(e){Kl(()=>{if(this._throwIfClosed(),!this.isStopped){const n=this.observers.slice();for(const r of n)r.next(e)}})}error(e){Kl(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Kl(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:r,observers:s}=this;return n||r?U_:(s.push(e),new Te(()=>xs(s,e)))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:s}=this;n?e.error(r):s&&e.complete()}asObservable(){const e=new Ie;return e.source=this,e}}return i.create=(t,e)=>new K_(t,e),i})();class K_ extends O{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)}error(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:U_}}function Z_(i){return xe(null==i?void 0:i.lift)}function Ke(i){return t=>{if(Z_(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}class Ue extends sh{constructor(t,e,n,r,s){super(t),this.onFinalize=s,this._next=e?function(o){try{e(o)}catch(a){t.error(a)}}:super._next,this._error=r?function(o){try{r(o)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){t.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}function ue(i,t){return Ke((e,n)=>{let r=0;e.subscribe(new Ue(n,s=>{n.next(i.call(t,s,r++))}))})}function Br(i){return this instanceof Br?(this.v=i,this):new Br(i)}function HT(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(i,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){n[h]&&(r[h]=function(f){return new Promise(function(_,v){s.push([h,f,_,v])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof Br?Promise.resolve(h.value.v).then(c,d):u(s[0][2],h)}(n[h](f))}catch(_){u(s[0][3],_)}}function c(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function jT(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=i[Symbol.asyncIterator];return t?t.call(i):(i=function ev(i){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=i[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=i[s](o)).done,o.value)})}}}const uh=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function tv(i){return xe(null==i?void 0:i.then)}function iv(i){return xe(i[ch])}function nv(i){return Symbol.asyncIterator&&xe(null==i?void 0:i[Symbol.asyncIterator])}function rv(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const sv=function UT(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ov(i){return xe(null==i?void 0:i[sv])}function av(i){return HT(this,arguments,function*(){const e=i.getReader();try{for(;;){const{value:n,done:r}=yield Br(e.read());if(r)return yield Br(void 0);yield yield Br(n)}}finally{e.releaseLock()}})}function lv(i){return xe(null==i?void 0:i.getReader)}function ni(i){if(i instanceof Ie)return i;if(null!=i){if(iv(i))return function $T(i){return new Ie(t=>{const e=i[ch]();if(xe(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(uh(i))return function GT(i){return new Ie(t=>{for(let e=0;e{i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,W_)})}(i);if(nv(i))return cv(i);if(ov(i))return function qT(i){return new Ie(t=>{for(const e of i)if(t.next(e),t.closed)return;t.complete()})}(i);if(lv(i))return function YT(i){return cv(av(i))}(i)}throw rv(i)}function cv(i){return new Ie(t=>{(function QT(i,t){var e,n,r,s;return function BT(i,t,e,n){return new(e||(e=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(u){o(u)}}function l(d){try{c(n.throw(d))}catch(u){o(u)}}function c(d){d.done?s(d.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(d.value).then(a,l)}c((n=n.apply(i,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=jT(i);!(n=yield e.next()).done;)if(t.next(n.value),t.closed)return}catch(o){r={error:o}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}t.complete()})})(i,t).catch(e=>t.error(e))})}function Ln(i,t,e,n=0,r=!1){const s=t.schedule(function(){e(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(s),!r)return s}function ut(i,t,e=1/0){return xe(t)?ut((n,r)=>ue((s,o)=>t(n,s,r,o))(ni(i(n,r))),e):("number"==typeof t&&(e=t),Ke((n,r)=>function KT(i,t,e,n,r,s,o,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&t.complete()},f=v=>c{s&&t.next(v),c++;let C=!1;ni(e(v,d++)).subscribe(new Ue(t,M=>{null==r||r(M),s?f(M):t.next(M)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c_(M)):_(M)}h()}catch(M){t.error(M)}}))};return i.subscribe(new Ue(t,f,()=>{u=!0,h()})),()=>{null==a||a()}}(n,r,i,e)))}function ra(i=1/0){return ut(dr,i)}const cn=new Ie(i=>i.complete());function dv(i){return i&&xe(i.schedule)}function hh(i){return i[i.length-1]}function uv(i){return xe(hh(i))?i.pop():void 0}function sa(i){return dv(hh(i))?i.pop():void 0}function hv(i,t=0){return Ke((e,n)=>{e.subscribe(new Ue(n,r=>Ln(n,i,()=>n.next(r),t),()=>Ln(n,i,()=>n.complete(),t),r=>Ln(n,i,()=>n.error(r),t)))})}function pv(i,t=0){return Ke((e,n)=>{n.add(i.schedule(()=>e.subscribe(n),t))})}function fv(i,t){if(!i)throw new Error("Iterable cannot be null");return new Ie(e=>{Ln(e,t,()=>{const n=i[Symbol.asyncIterator]();Ln(e,t,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function vt(i,t){return t?function rA(i,t){if(null!=i){if(iv(i))return function JT(i,t){return ni(i).pipe(pv(t),hv(t))}(i,t);if(uh(i))return function tA(i,t){return new Ie(e=>{let n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}(i,t);if(tv(i))return function eA(i,t){return ni(i).pipe(pv(t),hv(t))}(i,t);if(nv(i))return fv(i,t);if(ov(i))return function iA(i,t){return new Ie(e=>{let n;return Ln(e,t,()=>{n=i[sv](),Ln(e,t,()=>{let r,s;try{({value:r,done:s}=n.next())}catch(o){return void e.error(o)}s?e.complete():e.next(r)},0,!0)}),()=>xe(null==n?void 0:n.return)&&n.return()})}(i,t);if(lv(i))return function nA(i,t){return fv(av(i),t)}(i,t)}throw rv(i)}(i,t):ni(i)}function jt(...i){const t=sa(i),e=function XT(i,t){return"number"==typeof hh(i)?i.pop():t}(i,1/0),n=i;return n.length?1===n.length?ni(n[0]):ra(e)(vt(n,t)):cn}function We(i){return i<=0?()=>cn:Ke((t,e)=>{let n=0;t.subscribe(new Ue(e,r=>{++n<=i&&(e.next(r),i<=n&&e.complete())}))})}function mv(i={}){const{connector:t=(()=>new O),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=i;return s=>{let o=null,a=null,l=null,c=0,d=!1,u=!1;const h=()=>{null==a||a.unsubscribe(),a=null},f=()=>{h(),o=l=null,d=u=!1},_=()=>{const v=o;f(),null==v||v.unsubscribe()};return Ke((v,C)=>{c++,!u&&!d&&h();const M=l=null!=l?l:t();C.add(()=>{c--,0===c&&!u&&!d&&(a=ph(_,r))}),M.subscribe(C),o||(o=new oh({next:w=>M.next(w),error:w=>{u=!0,h(),a=ph(f,e,w),M.error(w)},complete:()=>{d=!0,h(),a=ph(f,n),M.complete()}}),vt(v).subscribe(o))})(s)}}function ph(i,t,...e){return!0===t?(i(),null):!1===t?null:t(...e).pipe(We(1)).subscribe(()=>i())}function Ve(i){for(let t in i)if(i[t]===Ve)return t;throw Error("Could not find renamed property on target object.")}function fh(i,t){for(const e in t)t.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(i[e]=t[e])}function Ee(i){if("string"==typeof i)return i;if(Array.isArray(i))return"["+i.map(Ee).join(", ")+"]";if(null==i)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;const t=i.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function mh(i,t){return null==i||""===i?null===t?"":t:null==t||""===t?i:i+" "+t}const sA=Ve({__forward_ref__:Ve});function _e(i){return i.__forward_ref__=_e,i.toString=function(){return Ee(this())},i}function pe(i){return gv(i)?i():i}function gv(i){return"function"==typeof i&&i.hasOwnProperty(sA)&&i.__forward_ref__===_e}class Nt extends Error{constructor(t,e){super(function gh(i,t){return`NG0${Math.abs(i)}${t?": "+t:""}`}(t,e)),this.code=t}}function oe(i){return"string"==typeof i?i:null==i?"":String(i)}function zt(i){return"function"==typeof i?i.name||i.toString():"object"==typeof i&&null!=i&&"function"==typeof i.type?i.type.name||i.type.toString():oe(i)}function Zl(i,t){const e=t?` in ${t}`:"";throw new Nt(-201,`No provider for ${zt(i)} found${e}`)}function si(i,t){null==i&&function $e(i,t,e,n){throw new Error(`ASSERTION ERROR: ${i}`+(null==n?"":` [Expected=> ${e} ${n} ${t} <=Actual]`))}(t,i,null,"!=")}function A(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function F(i){return{providers:i.providers||[],imports:i.imports||[]}}function _h(i){return _v(i,Xl)||_v(i,yv)}function _v(i,t){return i.hasOwnProperty(t)?i[t]:null}function vv(i){return i&&(i.hasOwnProperty(vh)||i.hasOwnProperty(hA))?i[vh]:null}const Xl=Ve({\u0275prov:Ve}),vh=Ve({\u0275inj:Ve}),yv=Ve({ngInjectableDef:Ve}),hA=Ve({ngInjectorDef:Ve});var ae=(()=>((ae=ae||{})[ae.Default=0]="Default",ae[ae.Host=1]="Host",ae[ae.Self=2]="Self",ae[ae.SkipSelf=4]="SkipSelf",ae[ae.Optional=8]="Optional",ae))();let yh;function ur(i){const t=yh;return yh=i,t}function bv(i,t,e){const n=_h(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&ae.Optional?null:void 0!==t?t:void Zl(Ee(i),"Injector")}function hr(i){return{toString:i}.toString()}var Hi=(()=>((Hi=Hi||{})[Hi.OnPush=0]="OnPush",Hi[Hi.Default=1]="Default",Hi))(),ji=(()=>{return(i=ji||(ji={}))[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom",ji;var i})();const fA="undefined"!=typeof globalThis&&globalThis,mA="undefined"!=typeof window&&window,gA="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Le=fA||"undefined"!=typeof global&&global||mA||gA,Es={},He=[],Jl=Ve({\u0275cmp:Ve}),bh=Ve({\u0275dir:Ve}),Ch=Ve({\u0275pipe:Ve}),Cv=Ve({\u0275mod:Ve}),Vn=Ve({\u0275fac:Ve}),oa=Ve({__NG_ELEMENT_ID__:Ve});let _A=0;function re(i){return hr(()=>{const e={},n={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Hi.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||He,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||ji.Emulated,id:"c",styles:i.styles||He,_:null,setInput:null,schemas:i.schemas||null,tView:null},r=i.directives,s=i.features,o=i.pipes;return n.id+=_A++,n.inputs=xv(i.inputs,e),n.outputs=xv(i.outputs),s&&s.forEach(a=>a(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Dv):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(wv):null,n})}function Dv(i){return Lt(i)||function pr(i){return i[bh]||null}(i)}function wv(i){return function Vr(i){return i[Ch]||null}(i)}const Mv={};function N(i){return hr(()=>{const t={type:i.type,bootstrap:i.bootstrap||He,declarations:i.declarations||He,imports:i.imports||He,exports:i.exports||He,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(Mv[i.id]=i.type),t})}function xv(i,t){if(null==i)return Es;const e={};for(const n in i)if(i.hasOwnProperty(n)){let r=i[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=n,t&&(t[r]=s)}return e}const x=re;function Xt(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Lt(i){return i[Jl]||null}function Mi(i,t){const e=i[Cv]||null;if(!e&&!0===t)throw new Error(`Type ${Ee(i)} does not have '\u0275mod' property.`);return e}function dn(i){return Array.isArray(i)&&"object"==typeof i[1]}function Ui(i){return Array.isArray(i)&&!0===i[1]}function Mh(i){return 0!=(8&i.flags)}function nc(i){return 2==(2&i.flags)}function rc(i){return 1==(1&i.flags)}function $i(i){return null!==i.template}function wA(i){return 0!=(512&i[2])}function Ur(i,t){return i.hasOwnProperty(Vn)?i[Vn]:null}class SA{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ye(){return Ev}function Ev(i){return i.type.prototype.ngOnChanges&&(i.setInput=kA),EA}function EA(){const i=Tv(this),t=null==i?void 0:i.current;if(t){const e=i.previous;if(e===Es)i.previous=t;else for(let n in t)e[n]=t[n];i.current=null,this.ngOnChanges(t)}}function kA(i,t,e,n){const r=Tv(i)||function TA(i,t){return i[kv]=t}(i,{previous:Es,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new SA(l&&l.currentValue,t,o===Es),i[n]=t}Ye.ngInherit=!0;const kv="__ngSimpleChanges__";function Tv(i){return i[kv]||null}const Av="http://www.w3.org/2000/svg";let Eh;function it(i){return!!i.listen}const Rv={createRenderer:(i,t)=>function kh(){return void 0!==Eh?Eh:"undefined"!=typeof document?document:void 0}()};function ht(i){for(;Array.isArray(i);)i=i[0];return i}function sc(i,t){return ht(t[i])}function Ei(i,t){return ht(t[i.index])}function Th(i,t){return i.data[t]}function Rs(i,t){return i[t]}function ai(i,t){const e=t[i];return dn(e)?e:e[0]}function Ov(i){return 4==(4&i[2])}function Ah(i){return 128==(128&i[2])}function fr(i,t){return null==t?null:i[t]}function Pv(i){i[18]=0}function Ih(i,t){i[5]+=t;let e=i,n=i[3];for(;null!==n&&(1===t&&1===e[5]||-1===t&&0===e[5]);)n[5]+=t,e=n,n=n[3]}const se={lFrame:zv(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Fv(){return se.bindingsEnabled}function k(){return se.lFrame.lView}function ke(){return se.lFrame.tView}function li(i){return se.lFrame.contextLView=i,i[8]}function yt(){let i=Nv();for(;null!==i&&64===i.type;)i=i.parent;return i}function Nv(){return se.lFrame.currentTNode}function un(i,t){const e=se.lFrame;e.currentTNode=i,e.isParent=t}function Rh(){return se.lFrame.isParent}function Oh(){se.lFrame.isParent=!1}function oc(){return se.isInCheckNoChangesMode}function ac(i){se.isInCheckNoChangesMode=i}function Ut(){const i=se.lFrame;let t=i.bindingRootIndex;return-1===t&&(t=i.bindingRootIndex=i.tView.bindingStartIndex),t}function Os(){return se.lFrame.bindingIndex++}function jn(i){const t=se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+i,e}function UA(i,t){const e=se.lFrame;e.bindingIndex=e.bindingRootIndex=i,Ph(t)}function Ph(i){se.lFrame.currentDirectiveIndex=i}function Fh(i){const t=se.lFrame.currentDirectiveIndex;return-1===t?null:i[t]}function Vv(){return se.lFrame.currentQueryIndex}function Nh(i){se.lFrame.currentQueryIndex=i}function GA(i){const t=i[1];return 2===t.type?t.declTNode:1===t.type?i[6]:null}function Hv(i,t,e){if(e&ae.SkipSelf){let r=t,s=i;for(;!(r=r.parent,null!==r||e&ae.Host||(r=GA(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,i=s}const n=se.lFrame=jv();return n.currentTNode=t,n.lView=i,!0}function lc(i){const t=jv(),e=i[1];se.lFrame=t,t.currentTNode=e.firstChild,t.lView=i,t.tView=e,t.contextLView=i,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function jv(){const i=se.lFrame,t=null===i?null:i.child;return null===t?zv(i):t}function zv(i){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=t),t}function Uv(){const i=se.lFrame;return se.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}const $v=Uv;function cc(){const i=Uv();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function $t(){return se.lFrame.selectedIndex}function mr(i){se.lFrame.selectedIndex=i}function nt(){const i=se.lFrame;return Th(i.tView,i.selectedIndex)}function gr(){se.lFrame.currentNamespace=Av}function dc(i,t){for(let e=t.directiveStart,n=t.directiveEnd;e=n)break}else t[l]<0&&(i[18]+=65536),(a>11>16&&(3&i[2])===t){i[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ua{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function pc(i,t,e){const n=it(i);let r=0;for(;rt){o=s-1;break}}}for(;s>16}(i),n=t;for(;e>0;)n=n[15],e--;return n}let Hh=!0;function mc(i){const t=Hh;return Hh=i,t}let rI=0;function pa(i,t){const e=zh(i,t);if(-1!==e)return e;const n=t[1];n.firstCreatePass&&(i.injectorIndex=t.length,jh(n.data,i),jh(t,null),jh(n.blueprint,null));const r=gc(i,t),s=i.injectorIndex;if(Qv(r)){const o=Ps(r),a=Fs(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function jh(i,t){i.push(0,0,0,0,0,0,0,0,t)}function zh(i,t){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===t[i.injectorIndex+8]?-1:i.injectorIndex}function gc(i,t){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;let e=0,n=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(n=2===o?s.declTNode:1===o?r[6]:null,null===n)return-1;if(e++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return-1}function _c(i,t,e){!function sI(i,t,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(oa)&&(n=e[oa]),null==n&&(n=e[oa]=rI++);const r=255&n;t.data[i+(r>>5)]|=1<=0?255&t:aI:t}(e);if("function"==typeof s){if(!Hv(t,i,n))return n&ae.Host?Xv(r,e,n):Jv(t,e,n,r);try{const o=s(n);if(null!=o||n&ae.Optional)return o;Zl(e)}finally{$v()}}else if("number"==typeof s){let o=null,a=zh(i,t),l=-1,c=n&ae.Host?t[16][6]:null;for((-1===a||n&ae.SkipSelf)&&(l=-1===a?gc(i,t):t[a+8],-1!==l&&ny(n,!1)?(o=t[1],a=Ps(l),t=Fs(l,t)):a=-1);-1!==a;){const d=t[1];if(iy(s,a,d.data)){const u=lI(a,t,e,o,n,c);if(u!==ty)return u}l=t[a+8],-1!==l&&ny(n,t[1].data[a+8]===c)&&iy(s,a,t)?(o=d,a=Ps(l),t=Fs(l,t)):a=-1}}}return Jv(t,e,n,r)}const ty={};function aI(){return new Ns(yt(),k())}function lI(i,t,e,n,r,s){const o=t[1],a=o.data[i+8],d=vc(a,o,e,null==n?nc(a)&&Hh:n!=o&&0!=(3&a.type),r&ae.Host&&s===a);return null!==d?fa(t,o,d,a):ty}function vc(i,t,e,n,r){const s=i.providerIndexes,o=t.data,a=1048575&s,l=i.directiveStart,d=s>>20,h=r?a+d:i.directiveEnd;for(let f=n?a:a+d;f=l&&_.type===e)return f}if(r){const f=o[l];if(f&&$i(f)&&f.type===e)return l}return null}function fa(i,t,e,n){let r=i[e];const s=t.data;if(function JA(i){return i instanceof ua}(r)){const o=r;o.resolving&&function oA(i,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${i}`:"";throw new Nt(-200,`Circular dependency in DI detected for ${i}${e}`)}(zt(s[e]));const a=mc(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ur(o.injectImpl):null;Hv(i,n,ae.Default);try{r=i[e]=o.factory(void 0,s,i,n),t.firstCreatePass&&e>=n.directiveStart&&function ZA(i,t,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(n){const o=Ev(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(i,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-i,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(i,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i,s))}(e,s[e],t)}finally{null!==l&&ur(l),mc(a),o.resolving=!1,$v()}}return r}function iy(i,t,e){return!!(e[t+(i>>5)]&1<{const t=i.prototype.constructor,e=t[Vn]||Uh(t),n=Object.prototype;let r=Object.getPrototypeOf(i.prototype).constructor;for(;r&&r!==n;){const s=r[Vn]||Uh(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Uh(i){return gv(i)?()=>{const t=Uh(pe(i));return t&&t()}:Ur(i)}function At(i){return function oI(i,t){if("class"===t)return i.classes;if("style"===t)return i.styles;const e=i.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function $h(i){return function(...e){if(i){const n=i(...e);for(const r in n)this[r]=n[r]}}}(t);function r(...s){if(this instanceof r)return n.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,d){const u=l.hasOwnProperty(Bs)?l[Bs]:Object.defineProperty(l,Bs,{value:[]})[Bs];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=i,r.annotationCls=r,r})}class S{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const uI=new S("AnalyzeForEntryComponents");function ki(i,t){void 0===t&&(t=i);for(let e=0;eArray.isArray(e)?hn(e,t):t(e))}function sy(i,t,e){t>=i.length?i.push(e):i.splice(t,0,e)}function yc(i,t){return t>=i.length-1?i.pop():i.splice(t,1)[0]}function _a(i,t){const e=[];for(let n=0;n=0?i[1|n]=e:(n=~n,function fI(i,t,e,n){let r=i.length;if(r==t)i.push(e,n);else if(1===r)i.push(n,i[0]),i[0]=e;else{for(r--,i.push(i[r-1],i[r]);r>t;)i[r]=i[r-2],r--;i[t]=e,i[t+1]=n}}(i,n,t,e)),n}function Wh(i,t){const e=js(i,t);if(e>=0)return i[1|e]}function js(i,t){return function ly(i,t,e){let n=0,r=i.length>>e;for(;r!==n;){const s=n+(r-n>>1),o=i[s<t?r=s:n=s+1}return~(r<({token:i})),-1),Ct=ba(Hs("Optional"),8),di=ba(Hs("SkipSelf"),4);let Mc;function Us(i){var t;return(null===(t=function Zh(){if(void 0===Mc&&(Mc=null,Le.trustedTypes))try{Mc=Le.trustedTypes.createPolicy("angular",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch(i){}return Mc}())||void 0===t?void 0:t.createHTML(i))||i}class $r{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class BI extends $r{getTypeName(){return"HTML"}}class VI extends $r{getTypeName(){return"Style"}}class HI extends $r{getTypeName(){return"Script"}}class jI extends $r{getTypeName(){return"URL"}}class zI extends $r{getTypeName(){return"ResourceURL"}}function ui(i){return i instanceof $r?i.changingThisBreaksApplicationSecurity:i}function pn(i,t){const e=by(i);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function by(i){return i instanceof $r&&i.getTypeName()||null}class YI{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Us(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class QI{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Us(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Us(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0wa(t.trim())).join(", ")),this.buf.push(" ",o,'="',Ey(l),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Jh.hasOwnProperty(e)&&!wy.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Ey(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const tR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iR=/([^\#-~ |!])/g;function Ey(i){return i.replace(/&/g,"&").replace(tR,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(iR,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function ky(i,t){let e=null;try{Sc=Sc||function Cy(i){const t=new QI(i);return function KI(){try{return!!(new window.DOMParser).parseFromString(Us(""),"text/html")}catch(i){return!1}}()?new YI(t):t}(i);let n=t?String(t):"";e=Sc.getInertBodyElement(n);let r=5,s=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=e.innerHTML,e=Sc.getInertBodyElement(n)}while(n!==s);return Us((new eR).sanitizeChildren(ip(e)||e))}finally{if(e){const n=ip(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ip(i){return"content"in i&&function nR(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var Oe=(()=>((Oe=Oe||{})[Oe.NONE=0]="NONE",Oe[Oe.HTML=1]="HTML",Oe[Oe.STYLE=2]="STYLE",Oe[Oe.SCRIPT=3]="SCRIPT",Oe[Oe.URL=4]="URL",Oe[Oe.RESOURCE_URL=5]="RESOURCE_URL",Oe))();function It(i){const t=function xa(){const i=k();return i&&i[12]}();return t?t.sanitize(Oe.URL,i)||"":pn(i,"URL")?ui(i):wa(oe(i))}const Iy="__ngContext__";function Vt(i,t){i[Iy]=t}function rp(i){const t=function Sa(i){return i[Iy]||null}(i);return t?Array.isArray(t)?t:t.lView:null}function op(i){return i.ngOriginalError}function bR(i,...t){i.error(...t)}class zn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=function yR(i){return i&&i.ngErrorLogger||bR}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&op(t);for(;e&&op(e);)e=op(e);return e||null}}const Ny=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Le))();function mn(i){return i instanceof Function?i():i}var hi=(()=>((hi=hi||{})[hi.Important=1]="Important",hi[hi.DashCase=2]="DashCase",hi))();function lp(i,t){return undefined(i,t)}function Ea(i){const t=i[3];return Ui(t)?t[3]:t}function cp(i){return jy(i[13])}function dp(i){return jy(i[4])}function jy(i){for(;null!==i&&!Ui(i);)i=i[4];return i}function Gs(i,t,e,n,r){if(null!=n){let s,o=!1;Ui(n)?s=n:dn(n)&&(o=!0,n=n[0]);const a=ht(n);0===i&&null!==e?null==r?qy(t,e,a):Gr(t,e,a,r||null,!0):1===i&&null!==e?Gr(t,e,a,r||null,!0):2===i?function eb(i,t,e){const n=Ec(i,t);n&&function UR(i,t,e,n){it(i)?i.removeChild(t,e,n):t.removeChild(e)}(i,n,t,e)}(t,a,o):3===i&&t.destroyNode(a),null!=s&&function WR(i,t,e,n,r){const s=e[7];s!==ht(e)&&Gs(t,i,n,s,r);for(let a=10;a0&&(i[e-1][4]=n[4]);const s=yc(i,10+t);!function FR(i,t){ka(i,t,t[11],2,null,null),t[0]=null,t[6]=null}(n[1],n);const o=s[19];null!==o&&o.detachView(s[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}function $y(i,t){if(!(256&t[2])){const e=t[11];it(e)&&e.destroyNode&&ka(i,t,e,3,null,null),function BR(i){let t=i[13];if(!t)return fp(i[1],i);for(;t;){let e=null;if(dn(t))e=t[13];else{const n=t[10];n&&(e=n)}if(!e){for(;t&&!t[4]&&t!==i;)dn(t)&&fp(t[1],t),t=t[3];null===t&&(t=i),dn(t)&&fp(t[1],t),e=t&&t[4]}t=e}}(t)}}function fp(i,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function zR(i,t){let e;if(null!=i&&null!=(e=i.destroyHooks))for(let n=0;n=0?n[r=c]():n[r=-c].unsubscribe(),s+=2}else{const o=n[r=e[s+1]];e[s].call(o)}if(null!==n){for(let s=r+1;ss?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==nb(f,c,0)||2&n&&c!==h){if(Gi(n))return!1;o=!0}}}}else{if(!o&&!Gi(n)&&!Gi(l))return!1;if(o&&Gi(l))continue;o=!1,n=l|1&n}}return Gi(n)||o}function Gi(i){return 0==(1&i)}function ZR(i,t,e,n){if(null===t)return-1;let r=0;if(n||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""!==r&&!Gi(o)&&(t+=ab(s,r),r=""),n=o,s=s||!Gi(n);e++}return""!==r&&(t+=ab(s,r)),t}const le={};function b(i){lb(ke(),k(),$t()+i,oc())}function lb(i,t,e,n){if(!n)if(3==(3&t[2])){const s=i.preOrderCheckHooks;null!==s&&uc(t,s,e)}else{const s=i.preOrderHooks;null!==s&&hc(t,s,0,e)}mr(e)}function Ac(i,t){return i<<17|t<<2}function Wi(i){return i>>17&32767}function yp(i){return 2|i}function Un(i){return(131068&i)>>2}function bp(i,t){return-131069&i|t<<2}function Cp(i){return 1|i}function yb(i,t){const e=i.contentQueries;if(null!==e)for(let n=0;n20&&lb(i,t,20,oc()),e(n,r)}finally{mr(s)}}function Cb(i,t,e){if(Mh(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const e=i[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(n,r,o)}}function Tb(i,t){null!==i.hostBindings&&i.hostBindings(1,t)}function Ab(i,t){t.flags|=2,(i.components||(i.components=[])).push(t.index)}function R1(i,t,e){if(e){if(t.exportAs)for(let n=0;n0&&Fp(e)}}function Fp(i){for(let n=cp(i);null!==n;n=dp(n))for(let r=10;r0&&Fp(s)}const e=i[1].components;if(null!==e)for(let n=0;n0&&Fp(r)}}function V1(i,t){const e=ai(t,i),n=e[1];(function H1(i,t){for(let e=t.length;ePromise.resolve(null))();function Fb(i){return i[7]||(i[7]=[])}function Nb(i){return i.cleanup||(i.cleanup=[])}function Lb(i,t,e){return(null===i||$i(i))&&(e=function OA(i){for(;Array.isArray(i);){if("object"==typeof i[1])return i;i=i[0]}return null}(e[t.index])),e[11]}function Bb(i,t){const e=i[9],n=e?e.get(zn,null):null;n&&n.handleError(t)}function Vb(i,t,e,n,r){for(let s=0;sthis.processProvider(a,t,e)),hn([t],a=>this.processInjectorType(a,[],s)),this.records.set(Hp,Qs(void 0,this));const o=this.records.get(jp);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:Ee(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=va,n=ae.Default){this.assertNotDestroyed();const r=uy(this),s=ur(void 0);try{if(!(n&ae.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function iO(i){return"function"==typeof i||"object"==typeof i&&i instanceof S}(t)&&_h(t);a=l&&this.injectableDefInScope(l)?Qs(Up(t),Ia):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(n&ae.Self?jb():this.parent).get(t,e=n&ae.Optional&&e===va?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Cc]=o[Cc]||[]).unshift(Ee(t)),r)throw o;return function SI(i,t,e,n){const r=i[Cc];throw t[dy]&&r.unshift(t[dy]),i.message=function EI(i,t,e,n=null){i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;let r=Ee(t);if(Array.isArray(t))r=t.map(Ee).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Ee(a)))}r=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${i.replace(CI,"\n ")}`}("\n"+i.message,r,e,n),i.ngTokenPath=r,i[Cc]=null,i}(o,t,"R3InjectorError",this.source)}throw o}finally{ur(s),uy(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((n,r)=>t.push(Ee(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=pe(t)))return!1;let r=vv(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==n.indexOf(o);if(void 0!==s&&(r=vv(s)),null==r)return!1;if(null!=r.imports&&!a){let d;n.push(o);try{hn(r.imports,u=>{this.processInjectorType(u,e,n)&&(void 0===d&&(d=[]),d.push(u))})}finally{}if(void 0!==d)for(let u=0;uthis.processProvider(_,h,f||He))}}this.injectorDefTypes.add(o);const l=Ur(o)||(()=>new o);this.records.set(o,Qs(l,Ia));const c=r.providers;if(null!=c&&!a){const d=t;hn(c,u=>this.processProvider(u,d,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Ks(t=pe(t))?t:pe(t&&t.provide);const s=function K1(i,t,e){return Gb(i)?Qs(void 0,i.useValue):Qs($b(i),Ia)}(t);if(Ks(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Qs(void 0,Ia,!0),o.factory=()=>Qh(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===Ia&&(e.value=q1,e.value=e.factory()),"object"==typeof e.value&&e.value&&function tO(i){return null!==i&&"object"==typeof i&&"function"==typeof i.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=pe(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Up(i){const t=_h(i),e=null!==t?t.factory:Ur(i);if(null!==e)return e;if(i instanceof S)throw new Error(`Token ${Ee(i)} is missing a \u0275prov definition.`);if(i instanceof Function)return function Q1(i){const t=i.length;if(t>0){const n=_a(t,"?");throw new Error(`Can't resolve all parameters for ${Ee(i)}: (${n.join(", ")}).`)}const e=function dA(i){const t=i&&(i[Xl]||i[yv]);if(t){const e=function uA(i){if(i.hasOwnProperty("name"))return i.name;const t=(""+i).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(i);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(i);return null!==e?()=>e.factory(i):()=>new i}(i);throw new Error("unreachable")}function $b(i,t,e){let n;if(Ks(i)){const r=pe(i);return Ur(r)||Up(r)}if(Gb(i))n=()=>pe(i.useValue);else if(function X1(i){return!(!i||!i.useFactory)}(i))n=()=>i.useFactory(...Qh(i.deps||[]));else if(function Z1(i){return!(!i||!i.useExisting)}(i))n=()=>D(pe(i.useExisting));else{const r=pe(i&&(i.useClass||i.provide));if(!function eO(i){return!!i.deps}(i))return Ur(r)||Up(r);n=()=>new r(...Qh(i.deps))}return n}function Qs(i,t,e=!1){return{factory:i,value:t,multi:e?[]:void 0}}function Gb(i){return null!==i&&"object"==typeof i&&wI in i}function Ks(i){return"function"==typeof i}let Ge=(()=>{class i{static create(e,n){var r;if(Array.isArray(e))return zb({name:""},n,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return zb({name:s},e.parent,e.providers,s)}}}return i.THROW_IF_NOT_FOUND=va,i.NULL=new Hb,i.\u0275prov=A({token:i,providedIn:"any",factory:()=>D(Hp)}),i.__NG_ELEMENT_ID__=-1,i})();function dO(i,t){dc(rp(i)[1],yt())}function I(i){let t=function nC(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),e=!0;const n=[i];for(;t;){let r;if($i(i))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(e){n.push(r);const o=i;o.inputs=Wp(i.inputs),o.declaredInputs=Wp(i.declaredInputs),o.outputs=Wp(i.outputs);const a=r.hostBindings;a&&fO(i,a);const l=r.viewQuery,c=r.contentQueries;if(l&&hO(i,l),c&&pO(i,c),fh(i.inputs,r.inputs),fh(i.declaredInputs,r.declaredInputs),fh(i.outputs,r.outputs),$i(r)&&r.data.animation){const d=i.data;d.animation=(d.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o=0;n--){const r=i[n];r.hostVars=t+=r.hostVars,r.hostAttrs=fc(r.hostAttrs,e=fc(e,r.hostAttrs))}}(n)}function Wp(i){return i===Es?{}:i===He?[]:i}function hO(i,t){const e=i.viewQuery;i.viewQuery=e?(n,r)=>{t(n,r),e(n,r)}:t}function pO(i,t){const e=i.contentQueries;i.contentQueries=e?(n,r,s)=>{t(n,r,s),e(n,r,s)}:t}function fO(i,t){const e=i.hostBindings;i.hostBindings=e?(n,r)=>{t(n,r),e(n,r)}:t}let Nc=null;function Zs(){if(!Nc){const i=Le.Symbol;if(i&&i.iterator)Nc=i.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ht(P[n.index])):n.index;if(it(e)){let P=null;if(!a&&l&&(P=function $O(i,t,e,n){const r=i.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(i,t,r,n.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=s,P.__ngLastListenerFn__=s,f=!1;else{s=ef(n,t,u,s,!1);const he=e.listen(M,r,s);h.push(s,he),d&&d.push(r,T,w,w+1)}}else s=ef(n,t,u,s,!0),M.addEventListener(r,s,o),h.push(s),d&&d.push(r,T,w,o)}else s=ef(n,t,u,s,!1);const _=n.outputs;let v;if(f&&null!==_&&(v=_[r])){const C=v.length;if(C)for(let M=0;M0;)t=t[15],i--;return t}(i,se.lFrame.contextLView))[8]}(i)}function GO(i,t){let e=null;const n=function XR(i){const t=i.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(i);for(let r=0;r=0}const Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function PC(i){return i.substring(Dt.key,Dt.keyEnd)}function FC(i,t){const e=Dt.textEnd;return e===t?-1:(t=Dt.keyEnd=function XO(i,t,e){for(;t32;)t++;return t}(i,Dt.key=t,e),uo(i,t,e))}function uo(i,t,e){for(;t=0;e=FC(t,e))ci(i,PC(t),!0)}function Ki(i,t,e,n){const r=k(),s=ke(),o=jn(2);s.firstUpdatePass&&jC(s,i,o,n),t!==le&&Ht(r,o,t)&&UC(s,s.data[$t()],r,r[11],i,r[o+1]=function cP(i,t){return null==i||("string"==typeof t?i+=t:"object"==typeof i&&(i=Ee(ui(i)))),i}(t,e),n,o)}function HC(i,t){return t>=i.expandoStartIndex}function jC(i,t,e,n){const r=i.data;if(null===r[e+1]){const s=r[$t()],o=HC(i,e);GC(s,n)&&null===t&&!o&&(t=!1),t=function nP(i,t,e,n){const r=Fh(i);let s=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(e=Fa(e=nf(null,i,t,e,n),t.attrs,n),s=null);else{const o=t.directiveStylingLast;if(-1===o||i[o]!==r)if(e=nf(r,i,t,e,n),null===s){let l=function rP(i,t,e){const n=e?t.classBindings:t.styleBindings;if(0!==Un(n))return i[Wi(n)]}(i,t,n);void 0!==l&&Array.isArray(l)&&(l=nf(null,i,t,l[1],n),l=Fa(l,t.attrs,n),function sP(i,t,e,n){i[Wi(e?t.classBindings:t.styleBindings)]=n}(i,t,n,l))}else s=function oP(i,t,e){let n;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(c=!0)}else d=e;if(r)if(0!==l){const h=Wi(i[a+1]);i[n+1]=Ac(h,a),0!==h&&(i[h+1]=bp(i[h+1],n)),i[a+1]=function o1(i,t){return 131071&i|t<<17}(i[a+1],n)}else i[n+1]=Ac(a,0),0!==a&&(i[a+1]=bp(i[a+1],n)),a=n;else i[n+1]=Ac(l,0),0===a?a=n:i[l+1]=bp(i[l+1],n),l=n;c&&(i[n+1]=yp(i[n+1])),OC(i,d,n,!0),OC(i,d,n,!1),function qO(i,t,e,n,r){const s=r?i.residualClasses:i.residualStyles;null!=s&&"string"==typeof t&&js(s,t)>=0&&(e[n+1]=Cp(e[n+1]))}(t,d,i,n,s),o=Ac(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,n)}}function nf(i,t,e,n,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=i[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=e[r+1];h===le&&(h=u?He:void 0);let f=u?Wh(h,n):d===n?h:void 0;if(c&&!Hc(f)&&(f=Wh(l,n)),Hc(f)&&(a=f,o))return a;const _=i[r+1];r=o?Wi(_):Un(_)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Wh(l,n))}return a}function Hc(i){return void 0!==i}function GC(i,t){return 0!=(i.flags&(t?16:32))}function y(i,t=""){const e=k(),n=ke(),r=i+20,s=n.firstCreatePass?Ws(n,r,1,t,null):n.data[r],o=e[r]=function up(i,t){return it(i)?i.createText(t):i.createTextNode(t)}(e[11],t);kc(n,e,o,s),un(s,!1)}function Pe(i){return Ze("",i,""),Pe}function Ze(i,t,e){const n=k(),r=Js(n,i,t,e);return r!==le&&$n(n,$t(),r),Ze}function ho(i,t,e,n,r){const s=k(),o=eo(s,i,t,e,n,r);return o!==le&&$n(s,$t(),o),ho}function JC(i,t,e){!function Zi(i,t,e,n){const r=ke(),s=jn(2);r.firstUpdatePass&&jC(r,null,s,n);const o=k();if(e!==le&&Ht(o,s,e)){const a=r.data[$t()];if(GC(a,n)&&!HC(r,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=mh(l,e||"")),Xp(r,a,o,e,n)}else!function lP(i,t,e,n,r,s,o,a){r===le&&(r=He);let l=0,c=0,d=0((B=B||{})[B.LocaleId=0]="LocaleId",B[B.DayPeriodsFormat=1]="DayPeriodsFormat",B[B.DayPeriodsStandalone=2]="DayPeriodsStandalone",B[B.DaysFormat=3]="DaysFormat",B[B.DaysStandalone=4]="DaysStandalone",B[B.MonthsFormat=5]="MonthsFormat",B[B.MonthsStandalone=6]="MonthsStandalone",B[B.Eras=7]="Eras",B[B.FirstDayOfWeek=8]="FirstDayOfWeek",B[B.WeekendRange=9]="WeekendRange",B[B.DateFormat=10]="DateFormat",B[B.TimeFormat=11]="TimeFormat",B[B.DateTimeFormat=12]="DateTimeFormat",B[B.NumberSymbols=13]="NumberSymbols",B[B.NumberFormats=14]="NumberFormats",B[B.CurrencyCode=15]="CurrencyCode",B[B.CurrencySymbol=16]="CurrencySymbol",B[B.CurrencyName=17]="CurrencyName",B[B.Currencies=18]="Currencies",B[B.Directionality=19]="Directionality",B[B.PluralCase=20]="PluralCase",B[B.ExtraData=21]="ExtraData",B))();const zc="en-US";let h0=zc;function af(i,t,e,n,r){if(i=pe(i),Array.isArray(i))for(let s=0;s>20;if(Ks(i)||!i.multi){const f=new ua(l,r,p),_=cf(a,t,r?d:d+h,u);-1===_?(_c(pa(c,o),s,a),lf(s,i,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[_]=f,o[_]=f)}else{const f=cf(a,t,d+h,u),_=cf(a,t,d,d+h),v=f>=0&&e[f],C=_>=0&&e[_];if(r&&!C||!r&&!v){_c(pa(c,o),s,a);const M=function EF(i,t,e,n,r){const s=new ua(i,e,p);return s.multi=[],s.index=t,s.componentProviders=0,N0(s,r,n&&!e),s}(r?SF:xF,e.length,r,n,l);!r&&C&&(e[_].providerFactory=M),lf(s,i,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(M),o.push(M)}else lf(s,i,f>-1?f:_,N0(e[r?_:f],l,!r&&n));!r&&n&&C&&e[_].componentProviders++}}}function lf(i,t,e,n){const r=Ks(t),s=function J1(i){return!!i.useClass}(t);if(r||s){const l=(s?pe(t.useClass):t).prototype.ngOnDestroy;if(l){const c=i.destroyHooks||(i.destroyHooks=[]);if(!r&&t.multi){const d=c.indexOf(e);-1===d?c.push(e,[n,l]):c[d+1].push(n,l)}else c.push(e,l)}}}function N0(i,t,e){return e&&i.componentProviders++,i.multi.push(t)-1}function cf(i,t,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function MF(i,t,e){const n=ke();if(n.firstCreatePass){const r=$i(i);af(e,n.data,n.blueprint,r,!0),af(t,n.data,n.blueprint,r,!1)}}(n,r?r(i):i,t)}}class L0{}class AF{resolveComponentFactory(t){throw function TF(i){const t=Error(`No component factory found for ${Ee(i)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=i,t}(t)}}let br=(()=>{class i{}return i.NULL=new AF,i})();function IF(){return mo(yt(),k())}function mo(i,t){return new W(Ei(i,t))}let W=(()=>{class i{constructor(e){this.nativeElement=e}}return i.__NG_ELEMENT_ID__=IF,i})();function RF(i){return i instanceof W?i.nativeElement:i}class Ha{}let Cn=(()=>{class i{}return i.__NG_ELEMENT_ID__=()=>function PF(){const i=k(),e=ai(yt().index,i);return function OF(i){return i[11]}(dn(e)?e:i)}(),i})(),FF=(()=>{class i{}return i.\u0275prov=A({token:i,providedIn:"root",factory:()=>null}),i})();class Cr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const NF=new Cr("13.1.2"),uf={};function qc(i,t,e,n,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&n.push(ht(s)),Ui(s))for(let a=10;a-1&&(pp(t,n),yc(e,n))}this._attachedToViewContainer=!1}$y(this._lView[1],this._lView)}onDestroy(t){xb(this._lView[1],this._lView,null,t)}markForCheck(){Np(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bp(this._lView[1],this._lView,this.context)}checkNoChanges(){!function z1(i,t,e){ac(!0);try{Bp(i,t,e)}finally{ac(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function LR(i,t){ka(i,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class LF extends ja{constructor(t){super(t),this._view=t}detectChanges(){Pb(this._view)}checkNoChanges(){!function U1(i){ac(!0);try{Pb(i)}finally{ac(!1)}}(this._view)}get context(){return null}}class V0 extends br{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Lt(t);return new hf(e,this.ngModule)}}function H0(i){const t=[];for(let e in i)i.hasOwnProperty(e)&&t.push({propName:i[e],templateName:e});return t}const VF=new S("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ny});class hf extends L0{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function r1(i){return i.map(n1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return H0(this.componentDef.inputs)}get outputs(){return H0(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function HF(i,t){return{get:(e,n,r)=>{const s=i.get(e,uf,r);return s!==uf||n===uf?s:t.get(e,n,r)}}}(t,r.injector):t,o=s.get(Ha,Rv),a=s.get(FF,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function Mb(i,t,e){if(it(i))return i.selectRootElement(t,e===ji.ShadowDom);let n="string"==typeof t?i.querySelector(t):t;return n.textContent="",n}(l,n,this.componentDef.encapsulation):hp(o.createRenderer(null,this.componentDef),c,function BF(i){const t=i.toLowerCase();return"svg"===t?Av:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h=function iC(i,t){return{components:[],scheduler:i||Ny,clean:$1,playerHandler:t||null,flags:0}}(),f=Oc(0,null,null,1,0,null,null,null,null,null),_=Ta(null,f,h,u,null,null,o,l,a,s);let v,C;lc(_);try{const M=function eC(i,t,e,n,r,s){const o=e[1];e[20]=i;const l=Ws(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Fc(l,c,!0),null!==i&&(pc(r,i,c),null!==l.classes&&vp(r,i,l.classes),null!==l.styles&&ib(r,i,l.styles)));const d=n.createRenderer(i,t),u=Ta(e,Db(t),null,t.onPush?64:16,e[20],l,n,d,s||null,null);return o.firstCreatePass&&(_c(pa(l,e),o,t.type),Ab(o,l),Ib(l,e.length,1)),Pc(e,u),e[20]=u}(d,this.componentDef,_,o,l);if(d)if(n)pc(l,d,["ng-version",NF.full]);else{const{attrs:w,classes:T}=function s1(i){const t=[],e=[];let n=1,r=2;for(;n0&&vp(l,d,T.join(" "))}if(C=Th(f,20),void 0!==e){const w=C.projection=[];for(let T=0;Tl(o,t)),t.contentQueries){const l=yt();t.contentQueries(1,o,l.directiveStart)}const a=yt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(mr(a.index),kb(e[1],a,0,a.directiveStart,a.directiveEnd,t),Tb(t,o)),o}(M,this.componentDef,_,h,[dO]),Aa(f,_,null)}finally{cc()}return new zF(this.componentType,v,mo(C,_),_,C)}}class zF extends class kF{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new LF(r),this.componentType=t}get injector(){return new Ns(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Gn{}class j0{}const go=new Map;class $0 extends Gn{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new V0(this);const n=Mi(t);this._bootstrapComponents=mn(n.bootstrap),this._r3Injector=Ub(t,e,[{provide:Gn,useValue:this},{provide:br,useValue:this.componentFactoryResolver}],Ee(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ge.THROW_IF_NOT_FOUND,n=ae.Default){return t===Ge||t===Gn||t===Hp?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class pf extends j0{constructor(t){super(),this.moduleType=t,null!==Mi(t)&&function $F(i){const t=new Set;!function e(n){const r=Mi(n,!0),s=r.id;null!==s&&(function z0(i,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${i} - ${Ee(t)} vs ${Ee(t.name)}`)}(s,go.get(s),n),go.set(s,n));const o=mn(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(i)}(t)}create(t){return new $0(this.moduleType,t)}}function Qr(i,t,e,n){return function W0(i,t,e,n,r,s){const o=t+e;return Ht(i,o,r)?_n(i,o+1,s?n.call(s,r):n(r)):za(i,o+1)}(k(),Ut(),i,t,e,n)}function za(i,t){const e=i[t];return e===le?void 0:e}function q0(i,t,e,n,r,s,o){const a=t+e;return Wr(i,a,r,s)?_n(i,a+2,o?n.call(o,r,s):n(r,s)):za(i,a+2)}function Dn(i,t){const e=ke();let n;const r=i+20;e.firstCreatePass?(n=function JF(i,t){if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];if(i===n.name)return n}}(t,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const s=n.factory||(n.factory=Ur(n.type)),o=ur(p);try{const a=mc(!1),l=s();return mc(a),function DO(i,t,e,n){e>=i.data.length&&(i.data[e]=null,i.blueprint[e]=null),t[e]=n}(e,k(),r,l),l}finally{ur(o)}}function wn(i,t,e,n){const r=i+20,s=k(),o=Rs(s,r);return function Ua(i,t){return i[1].data[t].pure}(s,r)?q0(s,Ut(),t,o.transform,e,n,o):o.transform(e,n)}function ff(i){return t=>{setTimeout(i,void 0,t)}}const q=class rN extends O{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const u=t;a=null===(r=u.next)||void 0===r?void 0:r.bind(u),l=null===(s=u.error)||void 0===s?void 0:s.bind(u),c=null===(o=u.complete)||void 0===o?void 0:o.bind(u)}this.__isAsync&&(l=ff(l),a&&(a=ff(a)),c&&(c=ff(c)));const d=super.subscribe({next:a,error:l,complete:c});return t instanceof Te&&t.add(d),d}};function sN(){return this._results[Zs()]()}class $a{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Zs(),n=$a.prototype;n[e]||(n[e]=sN)}get changes(){return this._changes||(this._changes=new q)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const r=ki(t);(this._changesDetected=!function hI(i,t,e){if(i.length!==t.length)return!1;for(let n=0;n{class i{}return i.__NG_ELEMENT_ID__=lN,i})();const oN=at,aN=class extends oN{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ta(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Aa(e,n,t),new ja(n)}};function lN(){return Yc(yt(),k())}function Yc(i,t){return 4&i.type?new aN(t,i,mo(i,t)):null}let lt=(()=>{class i{}return i.__NG_ELEMENT_ID__=cN,i})();function cN(){return J0(yt(),k())}const dN=lt,Z0=class extends dN{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return mo(this._hostTNode,this._hostLView)}get injector(){return new Ns(this._hostTNode,this._hostLView)}get parentInjector(){const t=gc(this._hostTNode,this._hostLView);if(Qv(t)){const e=Fs(t,this._hostLView),n=Ps(t);return new Ns(e[1].data[n+8],e)}return new Ns(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=X0(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const o=t&&!function ga(i){return"function"==typeof i}(t);let a;if(o)a=e;else{const u=e||{};a=u.index,n=u.injector,r=u.projectableNodes,s=u.ngModuleRef}const l=o?t:new hf(Lt(t)),c=n||this.parentInjector;if(!s&&null==l.ngModule&&c){const u=c.get(Gn,null);u&&(s=u)}const d=l.create(c,r,void 0,s);return this.insert(d.hostView,a),d}insert(t,e){const n=t._lView,r=n[1];if(function FA(i){return Ui(i[3])}(n)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const u=n[3],h=new Z0(u,u[6],u[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function VR(i,t,e,n){const r=10+n,s=e.length;n>0&&(e[r-1][4]=t),n0)n.push(o[a/2]);else{const c=s[a+1],d=t[-l];for(let u=10;u{class i{constructor(e){this.appInits=e,this.resolve=Zc,this.reject=Zc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return i.\u0275fac=function(e){return new(e||i)(D(Xc,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Wa=new S("AppId"),LN={provide:Wa,useFactory:function NN(){return`${Sf()}${Sf()}${Sf()}`},deps:[]};function Sf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const CD=new S("Platform Initializer"),qa=new S("Platform ID"),DD=new S("appBootstrapListener");let wD=(()=>{class i{log(e){console.log(e)}warn(e){console.warn(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Wn=new S("LocaleId"),MD=new S("DefaultCurrencyCode");class BN{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let Jc=(()=>{class i{compileModuleSync(e){return new pf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=mn(Mi(e).declarations).reduce((o,a)=>{const l=Lt(a);return l&&o.push(new hf(l)),o},[]);return new BN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const HN=(()=>Promise.resolve(0))();function Ef(i){"undefined"==typeof Zone?HN.then(()=>{i&&i.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",i)}class te{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new q(!1),this.onMicrotaskEmpty=new q(!1),this.onStable=new q(!1),this.onError=new q(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function jN(){let i=Le.requestAnimationFrame,t=Le.cancelAnimationFrame;if("undefined"!=typeof Zone&&i&&t){const e=i[Zone.__symbol__("OriginalDelegate")];e&&(i=e);const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function $N(i){const t=()=>{!function UN(i){i.isCheckStableRunning||-1!==i.lastRequestAnimationFrameId||(i.lastRequestAnimationFrameId=i.nativeRequestAnimationFrame.call(Le,()=>{i.fakeTopEventTask||(i.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{i.lastRequestAnimationFrameId=-1,Tf(i),i.isCheckStableRunning=!0,kf(i),i.isCheckStableRunning=!1},void 0,()=>{},()=>{})),i.fakeTopEventTask.invoke()}),Tf(i))}(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,o,a)=>{try{return xD(i),e.invokeTask(r,s,o,a)}finally{(i.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||i.shouldCoalesceRunChangeDetection)&&t(),SD(i)}},onInvoke:(e,n,r,s,o,a,l)=>{try{return xD(i),e.invoke(r,s,o,a,l)}finally{i.shouldCoalesceRunChangeDetection&&t(),SD(i)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(i._hasPendingMicrotasks=s.microTask,Tf(i),kf(i)):"macroTask"==s.change&&(i.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),i.runOutsideAngular(()=>i.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!te.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(te.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,zN,Zc,Zc);try{return s.runTask(o,e,n)}finally{s.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const zN={};function kf(i){if(0==i._nesting&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function Tf(i){i.hasPendingMicrotasks=!!(i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&-1!==i.lastRequestAnimationFrameId)}function xD(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function SD(i){i._nesting--,kf(i)}class GN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new q,this.onMicrotaskEmpty=new q,this.onStable=new q,this.onError=new q}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Af=(()=>{class i{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{te.assertNotInAngularZone(),Ef(()=>{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())Ef(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,n,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,n,r){return[]}}return i.\u0275fac=function(e){return new(e||i)(D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),ED=(()=>{class i{constructor(){this._applications=new Map,If.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return If.findTestabilityInTree(this,e,n)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class WN{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Xi,If=new WN;const kD=new S("AllowMultipleToken");class TD{constructor(t,e){this.name=t,this.token=e}}function AD(i,t,e=[]){const n=`Platform: ${t}`,r=new S(n);return(s=[])=>{let o=ID();if(!o||o.injector.get(kD,!1))if(i)i(e.concat(s).concat({provide:r,useValue:!0}));else{const a=e.concat(s).concat({provide:r,useValue:!0},{provide:jp,useValue:"platform"});!function KN(i){if(Xi&&!Xi.destroyed&&!Xi.injector.get(kD,!1))throw new Nt(400,"");Xi=i.get(RD);const t=i.get(CD,null);t&&t.forEach(e=>e())}(Ge.create({providers:a,name:n}))}return function ZN(i){const t=ID();if(!t)throw new Nt(401,"");return t}()}}function ID(){return Xi&&!Xi.destroyed?Xi:null}let RD=(()=>{class i{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const a=function XN(i,t){let e;return e="noop"===i?new GN:("zone.js"===i?void 0:i)||new te({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),l=[{provide:te,useValue:a}];return a.run(()=>{const c=Ge.create({providers:l,parent:this.injector,name:e.moduleType.name}),d=e.create(c),u=d.injector.get(zn,null);if(!u)throw new Nt(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{u.handleError(f)}});d.onDestroy(()=>{Rf(this._modules,d),h.unsubscribe()})}),function JN(i,t,e){try{const n=e();return Pa(n)?n.catch(r=>{throw t.runOutsideAngular(()=>i.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>i.handleError(n)),n}}(u,a,()=>{const h=d.injector.get(vo);return h.runInitializers(),h.donePromise.then(()=>(function OP(i){si(i,"Expected localeId to be defined"),"string"==typeof i&&(h0=i.toLowerCase().replace(/_/g,"-"))}(d.injector.get(Wn,zc)||zc),this._moduleDoBootstrap(d),d))})})}bootstrapModule(e,n=[]){const r=OD({},n);return function YN(i,t,e){const n=new pf(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const n=e.injector.get(yo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Nt(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Nt(404,"");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return i.\u0275fac=function(e){return new(e||i)(D(Ge))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function OD(i,t){return Array.isArray(t)?t.reduce(OD,i):Object.assign(Object.assign({},i),t)}let yo=(()=>{class i{constructor(e,n,r,s,o){this._zone=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Ie(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Ie(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),Ef(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),u.unsubscribe()}});this.isStable=jt(a,l.pipe(mv()))}bootstrap(e,n){if(!this._initStatus.done)throw new Nt(405,"");let r;r=e instanceof L0?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function QN(i){return i.isBoundToModule}(r)?void 0:this._injector.get(Gn),a=r.create(Ge.NULL,[],n||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Af,null),d=c&&a.injector.get(ED);return c&&d&&d.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Rf(this.components,a),d&&d.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Nt(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Rf(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(DD,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(Ge),D(zn),D(br),D(vo))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function Rf(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}let FD=!0,st=(()=>{class i{}return i.__NG_ELEMENT_ID__=iL,i})();function iL(i){return function nL(i,t,e){if(nc(i)&&!e){const n=ai(i.index,t);return new ja(n,n)}return 47&i.type?new ja(t[16],t):null}(yt(),k(),16==(16&i))}class zD{constructor(){}supports(t){return Ra(t)}create(t){return new cL(t)}}const lL=(i,t)=>t;class cL{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||lL}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const o=!n||e&&e.currentIndex<$D(n,r,s)?e:n,a=$D(o,r,s),l=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,d=l-r;if(c!=d){for(let h=0;h{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new dL(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new UD),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new UD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class dL{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class uL{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class UD{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new uL,this.map.set(e,n)),n.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $D(i,t,e){const n=i.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const n=new pL(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class pL{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function WD(){return new mi([new zD])}let mi=(()=>{class i{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||WD()),deps:[[i,new di,new Ct]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function fL(i){return i.name||typeof i}(e)}'`)}}return i.\u0275prov=A({token:i,providedIn:"root",factory:WD}),i})();function qD(){return new bo([new GD])}let bo=(()=>{class i{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||qD()),deps:[[i,new di,new Ct]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return i.\u0275prov=A({token:i,providedIn:"root",factory:qD}),i})();const mL=[new GD],_L=new mi([new zD]),vL=new bo(mL),yL=AD(null,"core",[{provide:qa,useValue:"unknown"},{provide:RD,deps:[Ge]},{provide:ED,deps:[]},{provide:wD,deps:[]}]),ML=[{provide:yo,useClass:yo,deps:[te,Ge,zn,br,vo]},{provide:VF,deps:[te],useFactory:function xL(i){let t=[];return i.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:vo,useClass:vo,deps:[[new Ct,Xc]]},{provide:Jc,useClass:Jc,deps:[]},LN,{provide:mi,useFactory:function bL(){return _L},deps:[]},{provide:bo,useFactory:function CL(){return vL},deps:[]},{provide:Wn,useFactory:function DL(i){return i||function wL(){return"undefined"!=typeof $localize&&$localize.locale||zc}()},deps:[[new Ca(Wn),new Ct,new di]]},{provide:MD,useValue:"USD"}];let SL=(()=>{class i{constructor(e){}}return i.\u0275fac=function(e){return new(e||i)(D(yo))},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:ML}),i})(),td=null;function Mn(){return td}const ie=new S("DocumentToken");let Zr=(()=>{class i{historyGo(e){throw new Error("Not implemented")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:function(){return function AL(){return D(YD)}()},providedIn:"platform"}),i})();const IL=new S("Location Initialized");let YD=(()=>{class i extends Zr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mn().getBaseHref(this._doc)}onPopState(e){const n=Mn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Mn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,n,r){QD()?this._history.pushState(e,n,r):this.location.hash=r}replaceState(e,n,r){QD()?this._history.replaceState(e,n,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:function(){return function RL(){return new YD(D(ie))}()},providedIn:"platform"}),i})();function QD(){return!!window.history.pushState}function Lf(i,t){if(0==i.length)return t;if(0==t.length)return i;let e=0;return i.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?i+t.substring(1):1==e?i+t:i+"/"+t}function KD(i){const t=i.match(/#|\?|$/),e=t&&t.index||i.length;return i.slice(0,e-("/"===i[e-1]?1:0))+i.slice(e)}function qn(i){return i&&"?"!==i[0]?"?"+i:i}let Co=(()=>{class i{historyGo(e){throw new Error("Not implemented")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:function(){return function OL(i){const t=D(ie).location;return new ZD(D(Zr),t&&t.origin||"")}()},providedIn:"root"}),i})();const Bf=new S("appBaseHref");let ZD=(()=>{class i extends Co{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)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=n}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Lf(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+qn(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,s){const o=this.prepareExternalUrl(r+qn(s));this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,s){const o=this.prepareExternalUrl(r+qn(s));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,r;null===(r=(n=this._platformLocation).historyGo)||void 0===r||r.call(n,e)}}return i.\u0275fac=function(e){return new(e||i)(D(Zr),D(Bf,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),PL=(()=>{class i extends Co{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=Lf(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,s){let o=this.prepareExternalUrl(r+qn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,s){let o=this.prepareExternalUrl(r+qn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,r;null===(r=(n=this._platformLocation).historyGo)||void 0===r||r.call(n,e)}}return i.\u0275fac=function(e){return new(e||i)(D(Zr),D(Bf,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),Do=(()=>{class i{constructor(e,n){this._subject=new q,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=KD(XD(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+qn(n))}normalize(e){return i.stripTrailingSlash(function NL(i,t){return i&&t.startsWith(i)?t.substring(i.length):t}(this._baseHref,XD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._platformStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+qn(n)),r)}replaceState(e,n="",r=null){this._platformStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+qn(n)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var n,r;null===(r=(n=this._platformStrategy).historyGo)||void 0===r||r.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}}return i.normalizeQueryParams=qn,i.joinWithSlash=Lf,i.stripTrailingSlash=KD,i.\u0275fac=function(e){return new(e||i)(D(Co),D(Zr))},i.\u0275prov=A({token:i,factory:function(){return function FL(){return new Do(D(Co),D(Zr))}()},providedIn:"root"}),i})();function XD(i){return i.replace(/\/index.html$/,"")}var pt=(()=>((pt=pt||{})[pt.Zero=0]="Zero",pt[pt.One=1]="One",pt[pt.Two=2]="Two",pt[pt.Few=3]="Few",pt[pt.Many=4]="Many",pt[pt.Other=5]="Other",pt))(),ct=(()=>((ct=ct||{})[ct.Format=0]="Format",ct[ct.Standalone=1]="Standalone",ct))(),De=(()=>((De=De||{})[De.Narrow=0]="Narrow",De[De.Abbreviated=1]="Abbreviated",De[De.Wide=2]="Wide",De[De.Short=3]="Short",De))(),Xe=(()=>((Xe=Xe||{})[Xe.Short=0]="Short",Xe[Xe.Medium=1]="Medium",Xe[Xe.Long=2]="Long",Xe[Xe.Full=3]="Full",Xe))(),J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Group=1]="Group",J[J.List=2]="List",J[J.PercentSign=3]="PercentSign",J[J.PlusSign=4]="PlusSign",J[J.MinusSign=5]="MinusSign",J[J.Exponential=6]="Exponential",J[J.SuperscriptingExponent=7]="SuperscriptingExponent",J[J.PerMille=8]="PerMille",J[J.Infinity=9]="Infinity",J[J.NaN=10]="NaN",J[J.TimeSeparator=11]="TimeSeparator",J[J.CurrencyDecimal=12]="CurrencyDecimal",J[J.CurrencyGroup=13]="CurrencyGroup",J))();function id(i,t){return Ri(qt(i)[B.DateFormat],t)}function nd(i,t){return Ri(qt(i)[B.TimeFormat],t)}function rd(i,t){return Ri(qt(i)[B.DateTimeFormat],t)}function Ii(i,t){const e=qt(i),n=e[B.NumberSymbols][t];if(void 0===n){if(t===J.CurrencyDecimal)return e[B.NumberSymbols][J.Decimal];if(t===J.CurrencyGroup)return e[B.NumberSymbols][J.Group]}return n}const UL=function d0(i){return qt(i)[B.PluralCase]};function ew(i){if(!i[B.ExtraData])throw new Error(`Missing extra locale data for the locale "${i[B.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ri(i,t){for(let e=t;e>-1;e--)if(void 0!==i[e])return i[e];throw new Error("Locale data API: locale data undefined")}function Hf(i){const[t,e]=i.split(":");return{hours:+t,minutes:+e}}const QL=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ya={},KL=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var wt=(()=>((wt=wt||{})[wt.Short=0]="Short",wt[wt.ShortGMT=1]="ShortGMT",wt[wt.Long=2]="Long",wt[wt.Extended=3]="Extended",wt))(),ne=(()=>((ne=ne||{})[ne.FullYear=0]="FullYear",ne[ne.Month=1]="Month",ne[ne.Date=2]="Date",ne[ne.Hours=3]="Hours",ne[ne.Minutes=4]="Minutes",ne[ne.Seconds=5]="Seconds",ne[ne.FractionalSeconds=6]="FractionalSeconds",ne[ne.Day=7]="Day",ne))(),me=(()=>((me=me||{})[me.DayPeriods=0]="DayPeriods",me[me.Days=1]="Days",me[me.Months=2]="Months",me[me.Eras=3]="Eras",me))();function ZL(i,t,e,n){let r=function oB(i){if(nw(i))return i;if("number"==typeof i&&!isNaN(i))return new Date(i);if("string"==typeof i){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){const[r,s=1,o=1]=i.split("-").map(a=>+a);return sd(r,s-1,o)}const e=parseFloat(i);if(!isNaN(i-e))return new Date(e);let n;if(n=i.match(QL))return function aB(i){const t=new Date(0);let e=0,n=0;const r=i[8]?t.setUTCFullYear:t.setFullYear,s=i[8]?t.setUTCHours:t.setHours;i[9]&&(e=Number(i[9]+i[10]),n=Number(i[9]+i[11])),r.call(t,Number(i[1]),Number(i[2])-1,Number(i[3]));const o=Number(i[4]||0)-e,a=Number(i[5]||0)-n,l=Number(i[6]||0),c=Math.floor(1e3*parseFloat("0."+(i[7]||0)));return s.call(t,o,a,l,c),t}(n)}const t=new Date(i);if(!nw(t))throw new Error(`Unable to convert "${i}" into a date`);return t}(i);t=Yn(e,t)||t;let a,o=[];for(;t;){if(a=KL.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const d=o.pop();if(!d)break;t=d}}let l=r.getTimezoneOffset();n&&(l=iw(n,l),r=function sB(i,t,e){const n=e?-1:1,r=i.getTimezoneOffset();return function rB(i,t){return(i=new Date(i.getTime())).setMinutes(i.getMinutes()+t),i}(i,n*(iw(t,r)-r))}(r,n,!0));let c="";return o.forEach(d=>{const u=function nB(i){if(zf[i])return zf[i];let t;switch(i){case"G":case"GG":case"GGG":t=ze(me.Eras,De.Abbreviated);break;case"GGGG":t=ze(me.Eras,De.Wide);break;case"GGGGG":t=ze(me.Eras,De.Narrow);break;case"y":t=ft(ne.FullYear,1,0,!1,!0);break;case"yy":t=ft(ne.FullYear,2,0,!0,!0);break;case"yyy":t=ft(ne.FullYear,3,0,!1,!0);break;case"yyyy":t=ft(ne.FullYear,4,0,!1,!0);break;case"Y":t=cd(1);break;case"YY":t=cd(2,!0);break;case"YYY":t=cd(3);break;case"YYYY":t=cd(4);break;case"M":case"L":t=ft(ne.Month,1,1);break;case"MM":case"LL":t=ft(ne.Month,2,1);break;case"MMM":t=ze(me.Months,De.Abbreviated);break;case"MMMM":t=ze(me.Months,De.Wide);break;case"MMMMM":t=ze(me.Months,De.Narrow);break;case"LLL":t=ze(me.Months,De.Abbreviated,ct.Standalone);break;case"LLLL":t=ze(me.Months,De.Wide,ct.Standalone);break;case"LLLLL":t=ze(me.Months,De.Narrow,ct.Standalone);break;case"w":t=jf(1);break;case"ww":t=jf(2);break;case"W":t=jf(1,!0);break;case"d":t=ft(ne.Date,1);break;case"dd":t=ft(ne.Date,2);break;case"c":case"cc":t=ft(ne.Day,1);break;case"ccc":t=ze(me.Days,De.Abbreviated,ct.Standalone);break;case"cccc":t=ze(me.Days,De.Wide,ct.Standalone);break;case"ccccc":t=ze(me.Days,De.Narrow,ct.Standalone);break;case"cccccc":t=ze(me.Days,De.Short,ct.Standalone);break;case"E":case"EE":case"EEE":t=ze(me.Days,De.Abbreviated);break;case"EEEE":t=ze(me.Days,De.Wide);break;case"EEEEE":t=ze(me.Days,De.Narrow);break;case"EEEEEE":t=ze(me.Days,De.Short);break;case"a":case"aa":case"aaa":t=ze(me.DayPeriods,De.Abbreviated);break;case"aaaa":t=ze(me.DayPeriods,De.Wide);break;case"aaaaa":t=ze(me.DayPeriods,De.Narrow);break;case"b":case"bb":case"bbb":t=ze(me.DayPeriods,De.Abbreviated,ct.Standalone,!0);break;case"bbbb":t=ze(me.DayPeriods,De.Wide,ct.Standalone,!0);break;case"bbbbb":t=ze(me.DayPeriods,De.Narrow,ct.Standalone,!0);break;case"B":case"BB":case"BBB":t=ze(me.DayPeriods,De.Abbreviated,ct.Format,!0);break;case"BBBB":t=ze(me.DayPeriods,De.Wide,ct.Format,!0);break;case"BBBBB":t=ze(me.DayPeriods,De.Narrow,ct.Format,!0);break;case"h":t=ft(ne.Hours,1,-12);break;case"hh":t=ft(ne.Hours,2,-12);break;case"H":t=ft(ne.Hours,1);break;case"HH":t=ft(ne.Hours,2);break;case"m":t=ft(ne.Minutes,1);break;case"mm":t=ft(ne.Minutes,2);break;case"s":t=ft(ne.Seconds,1);break;case"ss":t=ft(ne.Seconds,2);break;case"S":t=ft(ne.FractionalSeconds,1);break;case"SS":t=ft(ne.FractionalSeconds,2);break;case"SSS":t=ft(ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ad(wt.Short);break;case"ZZZZZ":t=ad(wt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ad(wt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ad(wt.Long);break;default:return null}return zf[i]=t,t}(d);c+=u?u(r,e,l):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function sd(i,t,e){const n=new Date(0);return n.setFullYear(i,t,e),n.setHours(0,0,0),n}function Yn(i,t){const e=function LL(i){return qt(i)[B.LocaleId]}(i);if(Ya[e]=Ya[e]||{},Ya[e][t])return Ya[e][t];let n="";switch(t){case"shortDate":n=id(i,Xe.Short);break;case"mediumDate":n=id(i,Xe.Medium);break;case"longDate":n=id(i,Xe.Long);break;case"fullDate":n=id(i,Xe.Full);break;case"shortTime":n=nd(i,Xe.Short);break;case"mediumTime":n=nd(i,Xe.Medium);break;case"longTime":n=nd(i,Xe.Long);break;case"fullTime":n=nd(i,Xe.Full);break;case"short":const r=Yn(i,"shortTime"),s=Yn(i,"shortDate");n=od(rd(i,Xe.Short),[r,s]);break;case"medium":const o=Yn(i,"mediumTime"),a=Yn(i,"mediumDate");n=od(rd(i,Xe.Medium),[o,a]);break;case"long":const l=Yn(i,"longTime"),c=Yn(i,"longDate");n=od(rd(i,Xe.Long),[l,c]);break;case"full":const d=Yn(i,"fullTime"),u=Yn(i,"fullDate");n=od(rd(i,Xe.Full),[d,u])}return n&&(Ya[e][t]=n),n}function od(i,t){return t&&(i=i.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),i}function Ji(i,t,e="-",n,r){let s="";(i<0||r&&i<=0)&&(r?i=1-i:(i=-i,s=e));let o=String(i);for(;o.length0||a>-e)&&(a+=e),i===ne.Hours)0===a&&-12===e&&(a=12);else if(i===ne.FractionalSeconds)return function XL(i,t){return Ji(i,3).substr(0,t)}(a,t);const l=Ii(o,J.MinusSign);return Ji(a,t,l,n,r)}}function ze(i,t,e=ct.Format,n=!1){return function(r,s){return function eB(i,t,e,n,r,s){switch(e){case me.Months:return function HL(i,t,e){const n=qt(i),s=Ri([n[B.MonthsFormat],n[B.MonthsStandalone]],t);return Ri(s,e)}(t,r,n)[i.getMonth()];case me.Days:return function VL(i,t,e){const n=qt(i),s=Ri([n[B.DaysFormat],n[B.DaysStandalone]],t);return Ri(s,e)}(t,r,n)[i.getDay()];case me.DayPeriods:const o=i.getHours(),a=i.getMinutes();if(s){const c=function $L(i){const t=qt(i);return ew(t),(t[B.ExtraData][2]||[]).map(n=>"string"==typeof n?Hf(n):[Hf(n[0]),Hf(n[1])])}(t),d=function GL(i,t,e){const n=qt(i);ew(n);const s=Ri([n[B.ExtraData][0],n[B.ExtraData][1]],t)||[];return Ri(s,e)||[]}(t,r,n),u=c.findIndex(h=>{if(Array.isArray(h)){const[f,_]=h,v=o>=f.hours&&a>=f.minutes,C=o<_.hours||o===_.hours&&a<_.minutes;if(f.hours<_.hours){if(v&&C)return!0}else if(v||C)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==u)return d[u]}return function BL(i,t,e){const n=qt(i),s=Ri([n[B.DayPeriodsFormat],n[B.DayPeriodsStandalone]],t);return Ri(s,e)}(t,r,n)[o<12?0:1];case me.Eras:return function jL(i,t){return Ri(qt(i)[B.Eras],t)}(t,n)[i.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,s,i,t,e,n)}}function ad(i){return function(t,e,n){const r=-1*n,s=Ii(e,J.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(i){case wt.Short:return(r>=0?"+":"")+Ji(o,2,s)+Ji(Math.abs(r%60),2,s);case wt.ShortGMT:return"GMT"+(r>=0?"+":"")+Ji(o,1,s);case wt.Long:return"GMT"+(r>=0?"+":"")+Ji(o,2,s)+":"+Ji(Math.abs(r%60),2,s);case wt.Extended:return 0===n?"Z":(r>=0?"+":"")+Ji(o,2,s)+":"+Ji(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${i}"`)}}}function tw(i){return sd(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))}function jf(i,t=!1){return function(e,n){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=tw(e),o=function iB(i){const t=sd(i,0,1).getDay();return sd(i,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return Ji(r,i,Ii(n,J.MinusSign))}}function cd(i,t=!1){return function(e,n){return Ji(tw(e).getFullYear(),i,Ii(n,J.MinusSign),t)}}const zf={};function iw(i,t){i=i.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(e)?t:e}function nw(i){return i instanceof Date&&!isNaN(i.valueOf())}class ud{}let vB=(()=>{class i extends ud{constructor(e){super(),this.locale=e}getPluralCategory(e,n){switch(UL(n||this.locale)(e)){case pt.Zero:return"zero";case pt.One:return"one";case pt.Two:return"two";case pt.Few:return"few";case pt.Many:return"many";default:return"other"}}}return i.\u0275fac=function(e){return new(e||i)(D(Wn))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function aw(i,t){t=encodeURIComponent(t);for(const e of i.split(";")){const n=e.indexOf("="),[r,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Ka=(()=>{class i{constructor(e,n,r,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ra(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ee(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return i.\u0275fac=function(e){return new(e||i)(p(mi),p(bo),p(W),p(Cn))},i.\u0275dir=x({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i})();class bB{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,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 Xr=(()=>{class i{constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new bB(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,o),lw(a,r)}});for(let r=0,s=n.length;r{lw(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at),p(mi))},i.\u0275dir=x({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),i})();function lw(i,t){i.context.$implicit=t.item}let Qn=(()=>{class i{constructor(e,n){this._viewContainer=e,this._context=new CB,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){cw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){cw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at))},i.\u0275dir=x({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),i})();class CB{constructor(){this.$implicit=null,this.ngIf=null}}function cw(i,t){if(t&&!t.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${Ee(t)}'.`)}class qf{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Jr=(()=>{class i{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let n=0;n{class i{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new qf(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at),p(Jr,9))},i.\u0275dir=x({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),i})(),dw=(()=>{class i{constructor(e,n,r){r._addDefault(new qf(e,n))}}return i.\u0275fac=function(e){return new(e||i)(p(lt),p(at),p(Jr,9))},i.\u0275dir=x({type:i,selectors:[["","ngSwitchDefault",""]]}),i})();const OB=new S("DATE_PIPE_DEFAULT_TIMEZONE");let hd=(()=>{class i{constructor(e,n){this.locale=e,this.defaultTimezone=n}transform(e,n="mediumDate",r,s){var o;if(null==e||""===e||e!=e)return null;try{return ZL(e,n,s||this.locale,null!==(o=null!=r?r:this.defaultTimezone)&&void 0!==o?o:void 0)}catch(a){throw function en(i,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Ee(i)}'`)}(i,a.message)}}}return i.\u0275fac=function(e){return new(e||i)(p(Wn,16),p(OB,24))},i.\u0275pipe=Xt({name:"date",type:i,pure:!0}),i})(),pw=(()=>{class i{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=fw}transform(e,n=fw){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const r=this.differ.diff(e),s=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(function BB(i,t){return{key:i,value:t}}(o.key,o.currentValue))})),(r||s)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}}return i.\u0275fac=function(e){return new(e||i)(p(bo,16))},i.\u0275pipe=Xt({name:"keyvalue",type:i,pure:!1}),i})();function fw(i,t){const e=i.key,n=t.key;if(e===n)return 0;if(void 0===e)return 1;if(void 0===n)return-1;if(null===e)return 1;if(null===n)return-1;if("string"==typeof e&&"string"==typeof n)return e{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[{provide:ud,useClass:vB}]}),i})();const mw="browser";let qB=(()=>{class i{}return i.\u0275prov=A({token:i,providedIn:"root",factory:()=>new YB(D(ie),window)}),i})();class YB{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function QB(i,t){const e=i.getElementById(t)||i.getElementsByName(t)[0];if(e)return e;if("function"==typeof i.createTreeWalker&&i.body&&(i.body.createShadowRoot||i.body.attachShadow)){const n=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=gw(this.window.history)||gw(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function gw(i){return Object.getOwnPropertyDescriptor(i,"scrollRestoration")}class _w{}class Kf extends class KB extends class TL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function kL(i){td||(td=i)}(new Kf)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function ZB(){return Xa=Xa||document.querySelector("base"),Xa?Xa.getAttribute("href"):null}();return null==e?null:function XB(i){pd=pd||document.createElement("a"),pd.setAttribute("href",i);const t=pd.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Xa=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return aw(document.cookie,t)}}let pd,Xa=null;const vw=new S("TRANSITION_ID"),e2=[{provide:Xc,useFactory:function JB(i,t,e){return()=>{e.get(vo).donePromise.then(()=>{const n=Mn(),r=t.querySelectorAll(`style[ng-transition="${i}"]`);for(let s=0;s{const s=t.findTestabilityInTree(n,r);if(null==s)throw new Error("Could not find testability for element.");return s},Le.getAllAngularTestabilities=()=>t.getAllTestabilities(),Le.getAllAngularRootElements=()=>t.getAllRootElements(),Le.frameworkStabilizers||(Le.frameworkStabilizers=[]),Le.frameworkStabilizers.push(n=>{const r=Le.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&n(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Mn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let t2=(()=>{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const fd=new S("EventManagerPlugins");let md=(()=>{class i{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let s=0;s{class i{constructor(){this._stylesSet=new Set}addStyles(e){const n=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),n.add(r))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),Ja=(()=>{class i extends bw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,n,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(n.appendChild(o))})}addHost(e){const n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const n=this._hostNodes.get(e);n&&n.forEach(Cw),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,r)=>{this._addStylesToHost(e,r,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Cw))}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function Cw(i){Mn().remove(i)}const Xf={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/"},Jf=/%COMP%/g;function gd(i,t,e){for(let n=0;n{if("__ngUnwrap__"===t)return i;!1===i(t)&&(t.preventDefault(),t.returnValue=!1)}}let _d=(()=>{class i{constructor(e,n,r){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new em(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case ji.Emulated:{let r=this.rendererByCompId.get(n.id);return r||(r=new l2(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,r)),r.applyToHost(e),r}case 1:case ji.ShadowDom:return new c2(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const r=gd(n.id,n.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(D(md),D(Ja),D(Wa))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class em{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Xf[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=Xf[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Xf[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(hi.DashCase|hi.Important)?t.style.setProperty(e,n,r&hi.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&hi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Mw(n)):this.eventManager.addEventListener(t,e,Mw(n))}}class l2 extends em{constructor(t,e,n,r){super(t),this.component=n;const s=gd(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr=function s2(i){return"_ngcontent-%COMP%".replace(Jf,i)}(r+"-"+n.id),this.hostAttr=function o2(i){return"_nghost-%COMP%".replace(Jf,i)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class c2 extends em{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=gd(r.id,r.styles,[]);for(let o=0;o{class i extends yw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Sw=["alt","control","meta","shift"],h2={"\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"},Ew={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"},p2={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let f2=(()=>{class i extends yw{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,n,r){const s=i.parseEventName(n),o=i.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=i._normalizeKey(n.pop());let o="";if(Sw.forEach(l=>{const c=n.indexOf(l);c>-1&&(n.splice(c,1),o+=l+".")}),o+=s,0!=n.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let n="",r=function m2(i){let t=i.key;if(null==t){if(t=i.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===i.location&&Ew.hasOwnProperty(t)&&(t=Ew[t]))}return h2[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Sw.forEach(s=>{s!=r&&p2[s](e)&&(n+=s+".")}),n+=r,n}static eventCallback(e,n,r){return s=>{i.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const y2=AD(yL,"browser",[{provide:qa,useValue:mw},{provide:CD,useValue:function g2(){Kf.makeCurrent(),Zf.init()},multi:!0},{provide:ie,useFactory:function v2(){return function IA(i){Eh=i}(document),document},deps:[]}]),b2=[{provide:jp,useValue:"root"},{provide:zn,useFactory:function _2(){return new zn},deps:[]},{provide:fd,useClass:d2,multi:!0,deps:[ie,te,qa]},{provide:fd,useClass:f2,multi:!0,deps:[ie]},{provide:_d,useClass:_d,deps:[md,Ja,Wa]},{provide:Ha,useExisting:_d},{provide:bw,useExisting:Ja},{provide:Ja,useClass:Ja,deps:[ie]},{provide:Af,useClass:Af,deps:[te]},{provide:md,useClass:md,deps:[fd,te]},{provide:_w,useClass:t2,deps:[]}];let kw=(()=>{class i{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:i,providers:[{provide:Wa,useValue:e.appId},{provide:vw,useExisting:Wa},e2]}}}return i.\u0275fac=function(e){return new(e||i)(D(i,12))},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:b2,imports:[Mt,SL]}),i})();"undefined"!=typeof window&&window;let im=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:function(e){let n=null;return n=e?new(e||i):D(Iw),n},providedIn:"root"}),i})(),Iw=(()=>{class i extends im{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case Oe.NONE:return n;case Oe.HTML:return pn(n,"HTML")?ui(n):ky(this._doc,String(n)).toString();case Oe.STYLE:return pn(n,"Style")?ui(n):n;case Oe.SCRIPT:if(pn(n,"Script"))return ui(n);throw new Error("unsafe value used in a script context");case Oe.URL:return by(n),pn(n,"URL")?ui(n):wa(String(n));case Oe.RESOURCE_URL:if(pn(n,"ResourceURL"))return ui(n);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function UI(i){return new BI(i)}(e)}bypassSecurityTrustStyle(e){return function $I(i){return new VI(i)}(e)}bypassSecurityTrustScript(e){return function GI(i){return new HI(i)}(e)}bypassSecurityTrustUrl(e){return function WI(i){return new jI(i)}(e)}bypassSecurityTrustResourceUrl(e){return function qI(i){return new zI(i)}(e)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:function(e){let n=null;return n=e?new e:function A2(i){return new Iw(i.get(ie))}(D(Ge)),n},providedIn:"root"}),i})();function Q(...i){return vt(i,sa(i))}class ti extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}const{isArray:I2}=Array,{getPrototypeOf:R2,prototype:O2,keys:P2}=Object;function Rw(i){if(1===i.length){const t=i[0];if(I2(t))return{args:t,keys:null};if(function F2(i){return i&&"object"==typeof i&&R2(i)===O2}(t)){const e=P2(t);return{args:e.map(n=>t[n]),keys:e}}}return{args:i,keys:null}}const{isArray:N2}=Array;function nm(i){return ue(t=>function L2(i,t){return N2(t)?i(...t):i(t)}(i,t))}function Ow(i,t){return i.reduce((e,n,r)=>(e[n]=t[r],e),{})}function Pw(...i){const t=sa(i),e=uv(i),{args:n,keys:r}=Rw(i);if(0===n.length)return vt([],t);const s=new Ie(function B2(i,t,e=dr){return n=>{Fw(t,()=>{const{length:r}=i,s=new Array(r);let o=r,a=r;for(let l=0;l{const c=vt(i[l],t);let d=!1;c.subscribe(new Ue(n,u=>{s[l]=u,d||(d=!0,a--),a||n.next(e(s.slice()))},()=>{--o||n.complete()}))},n)},n)}}(n,t,r?o=>Ow(r,o):dr));return e?s.pipe(nm(e)):s}function Fw(i,t,e){i?Ln(e,i,t):t()}const vd=na(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function el(...i){return function V2(){return ra(1)}()(vt(i,sa(i)))}function tl(i){return new Ie(t=>{ni(i()).subscribe(t)})}function Nw(){return Ke((i,t)=>{let e=null;i._refCount++;const n=new Ue(t,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),t.unsubscribe()});i.subscribe(n),n.closed||(e=i.connect())})}class H2 extends Ie{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Z_(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Te;const e=this.getSubject();t.add(this.source.subscribe(new Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Te.EMPTY)}return t}refCount(){return Nw()(this)}}function tn(i,t){return Ke((e,n)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&n.complete();e.subscribe(new Ue(n,l=>{null==r||r.unsubscribe();let c=0;const d=s++;ni(i(l,d)).subscribe(r=new Ue(n,u=>n.next(t?t(l,u,d,c++):u),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function nn(...i){const t=sa(i);return Ke((e,n)=>{(t?el(i,e,t):el(i,e)).subscribe(n)})}function j2(i,t,e,n,r){return(s,o)=>{let a=e,l=t,c=0;s.subscribe(new Ue(o,d=>{const u=c++;l=a?i(l,d,u):(a=!0,d),n&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}function Lw(i,t){return Ke(j2(i,t,arguments.length>=2,!0))}function xt(i,t){return Ke((e,n)=>{let r=0;e.subscribe(new Ue(n,s=>i.call(t,s,r++)&&n.next(s)))})}function xn(i){return Ke((t,e)=>{let s,n=null,r=!1;n=t.subscribe(new Ue(e,void 0,void 0,o=>{s=ni(i(o,xn(i)(t))),n?(n.unsubscribe(),n=null,s.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,s.subscribe(e))})}function wo(i,t){return xe(t)?ut(i,t,1):ut(i,1)}function rm(i){return i<=0?()=>cn:Ke((t,e)=>{let n=[];t.subscribe(new Ue(e,r=>{n.push(r),i{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function Bw(i=z2){return Ke((t,e)=>{let n=!1;t.subscribe(new Ue(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(i())))})}function z2(){return new vd}function Vw(i){return Ke((t,e)=>{let n=!1;t.subscribe(new Ue(e,r=>{n=!0,e.next(r)},()=>{n||e.next(i),e.complete()}))})}function Mo(i,t){const e=arguments.length>=2;return n=>n.pipe(i?xt((r,s)=>i(r,s,n)):dr,We(1),e?Vw(t):Bw(()=>new vd))}function Fe(i,t,e){const n=xe(i)||t||e?{next:i,error:t,complete:e}:i;return n?Ke((r,s)=>{var o;null===(o=n.subscribe)||void 0===o||o.call(n);let a=!0;r.subscribe(new Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):dr}function yd(i){return Ke((t,e)=>{try{t.subscribe(e)}finally{e.add(i)}})}class Kn{constructor(t,e){this.id=t,this.url=e}}class sm extends Kn{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class il extends Kn{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Hw extends Kn{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $2 extends Kn{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class G2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class W2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class q2 extends Kn{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Y2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q2 extends Kn{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jw{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zw{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class K2{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Z2{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X2{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class J2{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uw{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ye="primary";class eV{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function xo(i){return new eV(i)}const $w="ngNavigationCancelingError";function om(i){const t=Error("NavigationCancelingError: "+i);return t[$w]=!0,t}function iV(i,t,e){const n=e.path.split("/");if(n.length>i.length||"full"===e.pathMatch&&(t.hasChildren()||n.lengthn[s]===r)}return i===t}function Ww(i){return Array.prototype.concat.apply([],i)}function qw(i){return i.length>0?i[i.length-1]:null}function Pt(i,t){for(const e in i)i.hasOwnProperty(e)&&t(i[e],e)}function En(i){return Jp(i)?i:Pa(i)?vt(Promise.resolve(i)):Q(i)}const sV={exact:function Kw(i,t,e){if(!ts(i.segments,t.segments)||!bd(i.segments,t.segments,e)||i.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!i.children[n]||!Kw(i.children[n],t.children[n],e))return!1;return!0},subset:Zw},Yw={exact:function oV(i,t){return Sn(i,t)},subset:function aV(i,t){return Object.keys(t).length<=Object.keys(i).length&&Object.keys(t).every(e=>Gw(i[e],t[e]))},ignored:()=>!0};function Qw(i,t,e){return sV[e.paths](i.root,t.root,e.matrixParams)&&Yw[e.queryParams](i.queryParams,t.queryParams)&&!("exact"===e.fragment&&i.fragment!==t.fragment)}function Zw(i,t,e){return Xw(i,t,t.segments,e)}function Xw(i,t,e,n){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!ts(r,e)||t.hasChildren()||!bd(r,e,n))}if(i.segments.length===e.length){if(!ts(i.segments,e)||!bd(i.segments,e,n))return!1;for(const r in t.children)if(!i.children[r]||!Zw(i.children[r],t.children[r],n))return!1;return!0}{const r=e.slice(0,i.segments.length),s=e.slice(i.segments.length);return!!(ts(i.segments,r)&&bd(i.segments,r,n)&&i.children[ye])&&Xw(i.children[ye],t,s,n)}}function bd(i,t,e){return t.every((n,r)=>Yw[e](i[r].parameters,n.parameters))}class es{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xo(this.queryParams)),this._queryParamMap}toString(){return dV.serialize(this)}}class we{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Pt(e,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cd(this)}}class Zn{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=xo(this.parameters)),this._parameterMap}toString(){return nM(this)}}function ts(i,t){return i.length===t.length&&i.every((e,n)=>e.path===t[n].path)}class Jw{}class eM{parse(t){const e=new yV(t);return new es(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${nl(t.root,!0)}`,n=function pV(i){const t=Object.keys(i).map(e=>{const n=i[e];return Array.isArray(n)?n.map(r=>`${Dd(e)}=${Dd(r)}`).join("&"):`${Dd(e)}=${Dd(n)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${n}${"string"==typeof t.fragment?`#${function uV(i){return encodeURI(i)}(t.fragment)}`:""}`}}const dV=new eM;function Cd(i){return i.segments.map(t=>nM(t)).join("/")}function nl(i,t){if(!i.hasChildren())return Cd(i);if(t){const e=i.children[ye]?nl(i.children[ye],!1):"",n=[];return Pt(i.children,(r,s)=>{s!==ye&&n.push(`${s}:${nl(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function cV(i,t){let e=[];return Pt(i.children,(n,r)=>{r===ye&&(e=e.concat(t(n,r)))}),Pt(i.children,(n,r)=>{r!==ye&&(e=e.concat(t(n,r)))}),e}(i,(n,r)=>r===ye?[nl(i.children[ye],!1)]:[`${r}:${nl(n,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[ye]?`${Cd(i)}/${e[0]}`:`${Cd(i)}/(${e.join("//")})`}}function tM(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dd(i){return tM(i).replace(/%3B/gi,";")}function am(i){return tM(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wd(i){return decodeURIComponent(i)}function iM(i){return wd(i.replace(/\+/g,"%20"))}function nM(i){return`${am(i.path)}${function hV(i){return Object.keys(i).map(t=>`;${am(t)}=${am(i[t])}`).join("")}(i.parameters)}`}const fV=/^[^\/()?;=#]+/;function Md(i){const t=i.match(fV);return t?t[0]:""}const mV=/^[^=?&#]+/,_V=/^[^&#]+/;class yV{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[ye]=new we(t,e)),n}parseSegment(){const t=Md(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Zn(wd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Md(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=Md(this.remaining);r&&(n=r,this.capture(n))}t[wd(e)]=wd(n)}parseQueryParam(t){const e=function gV(i){const t=i.match(mV);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=function vV(i){const t=i.match(_V);return t?t[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const r=iM(e),s=iM(n);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Md(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=ye);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[ye]:new we([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class rM{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=lm(t,this._root);return e?e.children.map(n=>n.value):[]}firstChild(t){const e=lm(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=cm(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return cm(t,this._root).map(e=>e.value)}}function lm(i,t){if(i===t.value)return t;for(const e of t.children){const n=lm(i,e);if(n)return n}return null}function cm(i,t){if(i===t.value)return[t];for(const e of t.children){const n=cm(i,e);if(n.length)return n.unshift(t),n}return[]}class Xn{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function So(i){const t={};return i&&i.children.forEach(e=>t[e.value.outlet]=e),t}class sM extends rM{constructor(t,e){super(t),this.snapshot=e,dm(this,t)}toString(){return this.snapshot.toString()}}function oM(i,t){const e=function bV(i,t){const o=new xd([],{},{},"",{},ye,t,null,i.root,-1,{});return new lM("",new Xn(o,[]))}(i,t),n=new ti([new Zn("",{})]),r=new ti({}),s=new ti({}),o=new ti({}),a=new ti(""),l=new Jn(n,r,o,a,s,ye,t,e.root);return l.snapshot=e.root,new sM(new Xn(l,[]),e)}class Jn{constructor(t,e,n,r,s,o,a,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(ue(t=>xo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ue(t=>xo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function aM(i,t="emptyOnly"){const e=i.pathFromRoot;let n=0;if("always"!==t)for(n=e.length-1;n>=1;){const r=e[n],s=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(s.component)break;n--}}return function CV(i){return i.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class xd{constructor(t,e,n,r,s,o,a,l,c,d,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=xo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class lM extends rM{constructor(t,e){super(e),this.url=t,dm(this,e)}toString(){return cM(this._root)}}function dm(i,t){t.value._routerState=i,t.children.forEach(e=>dm(i,e))}function cM(i){const t=i.children.length>0?` { ${i.children.map(cM).join(", ")} } `:"";return`${i.value}${t}`}function um(i){if(i.snapshot){const t=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Sn(t.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),t.fragment!==e.fragment&&i.fragment.next(e.fragment),Sn(t.params,e.params)||i.params.next(e.params),function nV(i,t){if(i.length!==t.length)return!1;for(let e=0;eSn(e.parameters,t[n].parameters))}(i.url,t.url);return e&&!(!i.parent!=!t.parent)&&(!i.parent||hm(i.parent,t.parent))}function rl(i,t,e){if(e&&i.shouldReuseRoute(t.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=t.value;const r=function wV(i,t,e){return t.children.map(n=>{for(const r of e.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return rl(i,n,r);return rl(i,n)})}(i,t,e);return new Xn(n,r)}{if(i.shouldAttach(t.value)){const s=i.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>rl(i,a)),o}}const n=function MV(i){return new Jn(new ti(i.url),new ti(i.params),new ti(i.queryParams),new ti(i.fragment),new ti(i.data),i.outlet,i.component,i)}(t.value),r=t.children.map(s=>rl(i,s));return new Xn(n,r)}}function Sd(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function sl(i){return"object"==typeof i&&null!=i&&i.outlets}function pm(i,t,e,n,r){let s={};return n&&Pt(n,(o,a)=>{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new es(e.root===i?t:dM(e.root,i,t),s,r)}function dM(i,t,e){const n={};return Pt(i.children,(r,s)=>{n[s]=r===t?e:dM(r,t,e)}),new we(i.segments,n)}class uM{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Sd(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(sl);if(r&&r!==qw(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fm{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function hM(i,t,e){if(i||(i=new we([],{})),0===i.segments.length&&i.hasChildren())return Ed(i,t,e);const n=function AV(i,t,e){let n=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;const o=i.segments[r],a=e[n];if(sl(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!fM(l,c,o))return s;n+=2}else{if(!fM(l,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(i,t,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=hM(i.children[o],t,s))}),Pt(i.children,(s,o)=>{void 0===n[o]&&(r[o]=s)}),new we(i.segments,r)}}function mm(i,t,e){const n=i.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=mm(new we([],{}),0,e))}),t}function pM(i){const t={};return Pt(i,(e,n)=>t[n]=`${e}`),t}function fM(i,t,e){return i==e.path&&Sn(t,e.parameters)}class OV{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),um(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=So(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Pt(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=So(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(n&&n.outlet){const o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=So(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=So(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new J2(s.value.snapshot))}),t.children.length&&this.forwardEvent(new Z2(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(um(r),r===s)if(r.component){const o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),um(a.route.value),this.activateChildRoutes(t,null,o.children)}else{const a=function PV(i){for(let t=i.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)}}class gm{constructor(t,e){this.routes=t,this.module=e}}function wr(i){return"function"==typeof i}function is(i){return i instanceof es}const ol=Symbol("INITIAL_VALUE");function al(){return tn(i=>Pw(i.map(t=>t.pipe(We(1),nn(ol)))).pipe(Lw((t,e)=>{let n=!1;return e.reduce((r,s,o)=>r!==ol?r:(s===ol&&(n=!0),n||!1!==s&&o!==e.length-1&&!is(s)?r:s),t)},ol),xt(t=>t!==ol),ue(t=>is(t)?t:!0===t),We(1)))}class HV{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ll,this.attachRef=null}}class ll{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new HV,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let _m=(()=>{class i{constructor(e,n,r,s,o){this.parentContexts=e,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new q,this.deactivateEvents=new q,this.attachEvents=new q,this.detachEvents=new q,this.name=s||ye,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new jV(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(p(ll),p(lt),p(br),At("name"),p(st))},i.\u0275dir=x({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class jV{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Jn?this.route:t===ll?this.childContexts:this.parent.get(t,e)}}let mM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=re({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&U(0,"router-outlet")},directives:[_m],encapsulation:2}),i})();function gM(i,t=""){for(let e=0;eOi(n)===t);return e.push(...i.filter(n=>Oi(n)!==t)),e}const vM={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function kd(i,t,e){var n;if(""===t.path)return"full"===t.pathMatch&&(i.hasChildren()||e.length>0)?Object.assign({},vM):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||iV)(e,i,t);if(!s)return Object.assign({},vM);const o={};Pt(s.posParams,(l,c)=>{o[c]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Td(i,t,e,n,r="corrected"){if(e.length>0&&function WV(i,t,e){return e.some(n=>Ad(i,t,n)&&Oi(n)!==ye)}(i,e,n)){const o=new we(t,function GV(i,t,e,n){const r={};r[ye]=n,n._sourceSegment=i,n._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Oi(s)!==ye){const o=new we([],{});o._sourceSegment=i,o._segmentIndexShift=t.length,r[Oi(s)]=o}return r}(i,t,n,new we(e,i.children)));return o._sourceSegment=i,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function qV(i,t,e){return e.some(n=>Ad(i,t,n))}(i,e,n)){const o=new we(i.segments,function $V(i,t,e,n,r,s){const o={};for(const a of n)if(Ad(i,e,a)&&!r[Oi(a)]){const l=new we([],{});l._sourceSegment=i,l._segmentIndexShift="legacy"===s?i.segments.length:t.length,o[Oi(a)]=l}return Object.assign(Object.assign({},r),o)}(i,t,e,n,i.children,r));return o._sourceSegment=i,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new we(i.segments,i.children);return s._sourceSegment=i,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function Ad(i,t,e){return(!(i.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function yM(i,t,e,n){return!!(Oi(i)===n||n!==ye&&Ad(t,e,i))&&("**"===i.path||kd(t,i,e).matched)}function bM(i,t,e){return 0===t.length&&!i.children[e]}class cl{constructor(t){this.segmentGroup=t||null}}class CM{constructor(t){this.urlTree=t}}function Id(i){return new Ie(t=>t.error(new cl(i)))}function DM(i){return new Ie(t=>t.error(new CM(i)))}function YV(i){return new Ie(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${i}'`)))}class ZV{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Gn)}apply(){const t=Td(this.urlTree.root,[],[],this.config).segmentGroup,e=new we(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ye).pipe(ue(s=>this.createUrlTree(ym(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(xn(s=>{if(s instanceof CM)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof cl?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ye).pipe(ue(r=>this.createUrlTree(ym(r),t.queryParams,t.fragment))).pipe(xn(r=>{throw r instanceof cl?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new we([],{[ye]:t}):t;return new es(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(ue(s=>new we([],s))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return vt(r).pipe(wo(s=>{const o=n.children[s],a=_M(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(ue(l=>({segment:l,outlet:s})))}),Lw((s,o)=>(s[o.outlet]=o.segment,s),{}),function U2(i,t){const e=arguments.length>=2;return n=>n.pipe(i?xt((r,s)=>i(r,s,n)):dr,rm(1),e?Vw(t):Bw(()=>new vd))}())}expandSegment(t,e,n,r,s,o){return vt(n).pipe(wo(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,s,o).pipe(xn(c=>{if(c instanceof cl)return Q(null);throw c}))),Mo(a=>!!a),xn((a,l)=>{if(a instanceof vd||"EmptyError"===a.name){if(bM(e,r,s))return Q(new we([],{}));throw new cl(e)}throw a}))}expandSegmentAgainstRoute(t,e,n,r,s,o,a){return yM(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o):Id(e):Id(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?DM(s):this.lineralizeSegments(n,s).pipe(ut(o=>{const a=new we(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:d}=kd(e,r,s);if(!a)return Id(e);const u=this.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?DM(u):this.lineralizeSegments(r,u).pipe(ut(h=>this.expandSegment(t,e,n,h.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Q(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(ue(h=>(n._loadedConfig=h,new we(r,{})))):Q(new we(r,{}));const{matched:o,consumedSegments:a,lastChild:l}=kd(e,n,r);if(!o)return Id(e);const c=r.slice(l);return this.getChildConfig(t,n,r).pipe(ut(u=>{const h=u.module,f=u.routes,{segmentGroup:_,slicedSegments:v}=Td(e,a,c,f),C=new we(_.segments,_.children);if(0===v.length&&C.hasChildren())return this.expandChildren(h,f,C).pipe(ue(P=>new we(a,P)));if(0===f.length&&0===v.length)return Q(new we(a,{}));const M=Oi(n)===s;return this.expandSegment(h,C,f,v,M?ye:s,!0).pipe(ue(T=>new we(a.concat(T.segments),T.children)))}))}getChildConfig(t,e,n){return e.children?Q(new gm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Q(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(ut(r=>r?this.configLoader.load(t.injector,e).pipe(ue(s=>(e._loadedConfig=s,s))):function QV(i){return new Ie(t=>t.error(om(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`)))}(e))):Q(new gm([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Q(r.map(o=>{const a=t.get(o);let l;if(function NV(i){return i&&wr(i.canLoad)}(a))l=a.canLoad(e,n);else{if(!wr(a))throw new Error("Invalid CanLoad guard");l=a(e,n)}return En(l)})).pipe(al(),Fe(o=>{if(!is(o))return;const a=om(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ue(o=>!0===o)):Q(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Q(n);if(r.numberOfChildren>1||!r.children[ye])return YV(t.redirectTo);r=r.children[ye]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new es(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Pt(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);n[s]=e[a]}else n[s]=r}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let o={};return Pt(e.children,(a,l)=>{o[l]=this.createSegmentGroup(t,a,n,r)}),new we(s,o)}createSegments(t,e,n,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function ym(i){const t={};for(const n of Object.keys(i.children)){const s=ym(i.children[n]);(s.segments.length>0||s.hasChildren())&&(t[n]=s)}return function XV(i){if(1===i.numberOfChildren&&i.children[ye]){const t=i.children[ye];return new we(i.segments.concat(t.segments),t.children)}return i}(new we(i.segments,t))}class wM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Rd{constructor(t,e){this.component=t,this.route=e}}function eH(i,t,e){const n=i._root;return dl(n,t?t._root:null,e,[n.value])}function Od(i,t,e){const n=function iH(i){if(!i)return null;for(let t=i.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(n?n.module.injector:e).get(i)}function dl(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=So(t);return i.children.forEach(o=>{(function nH(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=i.value,o=t?t.value:null,a=e?e.getContext(i.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function rH(i,t,e){if("function"==typeof e)return e(i,t);switch(e){case"pathParamsChange":return!ts(i.url,t.url);case"pathParamsOrQueryParamsChange":return!ts(i.url,t.url)||!Sn(i.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hm(i,t)||!Sn(i.queryParams,t.queryParams);default:return!hm(i,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new wM(n)):(s.data=o.data,s._resolvedData=o._resolvedData),dl(i,t,s.component?a?a.children:null:e,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Rd(a.outlet.component,o))}else o&&ul(t,a,r),r.canActivateChecks.push(new wM(n)),dl(i,null,s.component?a?a.children:null:e,n,r)})(o,s[o.value.outlet],e,n.concat([o.value]),r),delete s[o.value.outlet]}),Pt(s,(o,a)=>ul(o,e.getContext(a),r)),r}function ul(i,t,e){const n=So(i),r=i.value;Pt(n,(s,o)=>{ul(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new Rd(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class pH{}function MM(i){return new Ie(t=>t.error(i))}class mH{constructor(t,e,n,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Td(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ye);if(null===e)return null;const n=new xd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ye,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Xn(n,e),s=new lM(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=aM(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=_M(t,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;n.push(...l)}const r=xM(n);return function gH(i){i.sort((t,e)=>t.value.outlet===ye?-1:e.value.outlet===ye?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,n,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,n,r);if(null!==o)return o}return bM(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!yM(t,e,n,r))return null;let s,o=[],a=[];if("**"===t.path){const f=n.length>0?qw(n).parameters:{};s=new xd(n,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,kM(t),Oi(t),t.component,t,SM(e),EM(e)+n.length,TM(t))}else{const f=kd(e,t,n);if(!f.matched)return null;o=f.consumedSegments,a=n.slice(f.lastChild),s=new xd(o,f.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,kM(t),Oi(t),t.component,t,SM(e),EM(e)+o.length,TM(t))}const l=function _H(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:d}=Td(e,o,a,l.filter(f=>void 0===f.redirectTo),this.relativeLinkResolution);if(0===d.length&&c.hasChildren()){const f=this.processChildren(l,c);return null===f?null:[new Xn(s,f)]}if(0===l.length&&0===d.length)return[new Xn(s,[])];const u=Oi(t)===r,h=this.processSegment(l,c,d,u?ye:r);return null===h?null:[new Xn(s,h)]}}function vH(i){const t=i.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function xM(i){const t=[],e=new Set;for(const n of i){if(!vH(n)){t.push(n);continue}const r=t.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):t.push(n)}for(const n of e){const r=xM(n.children);t.push(new Xn(n.value,r))}return t.filter(n=>!e.has(n))}function SM(i){let t=i;for(;t._sourceSegment;)t=t._sourceSegment;return t}function EM(i){let t=i,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function kM(i){return i.data||{}}function TM(i){return i.resolve||{}}function bm(i){return tn(t=>{const e=i(t);return e?vt(e).pipe(ue(()=>t)):Q(t)})}class SH extends class xH{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Cm=new S("ROUTES");class AM{constructor(t,e,n,r){this.injector=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(ue(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(t);return new gm(Ww(o.injector.get(Cm,void 0,ae.Self|ae.Optional)).map(vm),o)}),xn(s=>{throw e._loader$=void 0,s}));return e._loader$=new H2(r,()=>new O).pipe(Nw()),e._loader$}loadModuleFactory(t){return En(t()).pipe(ut(e=>e instanceof j0?Q(e):vt(this.compiler.compileModuleAsync(e))))}}class kH{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function TH(i){throw i}function AH(i,t,e){return t.parse("/")}function IM(i,t){return Q(null)}const IH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gi=(()=>{class i{constructor(e,n,r,s,o,a,l){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new O,this.errorHandler=TH,this.malformedUriErrorHandler=AH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:IM,afterPreactivation:IM},this.urlHandlingStrategy=new kH,this.routeReuseStrategy=new SH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Gn),this.console=o.get(wD);const u=o.get(te);this.isNgZoneEnabled=u instanceof te&&te.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function rV(){return new es(new we([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new AM(o,a,h=>this.triggerEvent(new jw(h)),h=>this.triggerEvent(new zw(h))),this.routerState=oM(this.currentUrlTree,this.rootComponentType),this.transitions=new ti({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const n=this.events;return e.pipe(xt(r=>0!==r.id),ue(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),tn(r=>{let s=!1,o=!1;return Q(r).pipe(Fe(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),tn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Pd(a.source)&&(this.browserUrlTree=a.extractedUrl),Q(a).pipe(tn(u=>{const h=this.transitions.getValue();return n.next(new sm(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions.getValue()?cn:Promise.resolve(u)}),function JV(i,t,e,n){return tn(r=>function KV(i,t,e,n,r){return new ZV(i,t,e,n,r).apply()}(i,t,e,r.extractedUrl,n).pipe(ue(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Fe(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function yH(i,t,e,n,r){return ut(s=>function fH(i,t,e,n,r="emptyOnly",s="legacy"){try{const o=new mH(i,t,e,n,r,s).recognize();return null===o?MM(new pH):Q(o)}catch(o){return MM(o)}}(i,t,s.urlAfterRedirects,e(s.urlAfterRedirects),n,r).pipe(ue(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),Fe(u=>{if("eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(f,u)}this.browserUrlTree=u.urlAfterRedirects}const h=new G2(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);n.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:_,restoredState:v,extras:C}=a,M=new sm(h,this.serializeUrl(f),_,v);n.next(M);const w=oM(f,this.rootComponentType).snapshot;return Q(Object.assign(Object.assign({},a),{targetSnapshot:w,urlAfterRedirects:f,extras:Object.assign(Object.assign({},C),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),cn}),bm(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!f})}),Fe(a=>{const l=new W2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ue(a=>Object.assign(Object.assign({},a),{guards:eH(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function sH(i,t){return ut(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?Q(Object.assign(Object.assign({},e),{guardsResult:!0})):function oH(i,t,e,n){return vt(i).pipe(ut(r=>function hH(i,t,e,n,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Q(s.map(a=>{const l=Od(a,t,r);let c;if(function VV(i){return i&&wr(i.canDeactivate)}(l))c=En(l.canDeactivate(i,t,e,n));else{if(!wr(l))throw new Error("Invalid CanDeactivate guard");c=En(l(i,t,e,n))}return c.pipe(Mo())})).pipe(al()):Q(!0)}(r.component,r.route,e,t,n)),Mo(r=>!0!==r,!0))}(o,n,r,i).pipe(ut(a=>a&&function FV(i){return"boolean"==typeof i}(a)?function aH(i,t,e,n){return vt(t).pipe(wo(r=>el(function cH(i,t){return null!==i&&t&&t(new K2(i)),Q(!0)}(r.route.parent,n),function lH(i,t){return null!==i&&t&&t(new X2(i)),Q(!0)}(r.route,n),function uH(i,t,e){const n=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function tH(i){const t=i.routeConfig?i.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:i,guards:t}:null}(o)).filter(o=>null!==o).map(o=>tl(()=>Q(o.guards.map(l=>{const c=Od(l,o.node,e);let d;if(function BV(i){return i&&wr(i.canActivateChild)}(c))d=En(c.canActivateChild(n,i));else{if(!wr(c))throw new Error("Invalid CanActivateChild guard");d=En(c(n,i))}return d.pipe(Mo())})).pipe(al())));return Q(s).pipe(al())}(i,r.path,e),function dH(i,t,e){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return Q(!0);const r=n.map(s=>tl(()=>{const o=Od(s,t,e);let a;if(function LV(i){return i&&wr(i.canActivate)}(o))a=En(o.canActivate(t,i));else{if(!wr(o))throw new Error("Invalid CanActivate guard");a=En(o(t,i))}return a.pipe(Mo())}));return Q(r).pipe(al())}(i,r.route,e))),Mo(r=>!0!==r,!0))}(n,s,i,t):Q(a)),ue(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Fe(a=>{if(is(a.guardsResult)){const c=om(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new q2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),xt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),bm(a=>{if(a.guards.canActivateChecks.length)return Q(a).pipe(Fe(l=>{const c=new Y2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),tn(l=>{let c=!1;return Q(l).pipe(function bH(i,t){return ut(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let s=0;return vt(r).pipe(wo(o=>function CH(i,t,e,n){return function DH(i,t,e,n){const r=Object.keys(i);if(0===r.length)return Q({});const s={};return vt(r).pipe(ut(o=>function wH(i,t,e,n){const r=Od(i,t,n);return En(r.resolve?r.resolve(t,e):r(t,e))}(i[o],t,e,n).pipe(Fe(a=>{s[o]=a}))),rm(1),ut(()=>Object.keys(s).length===r.length?Q(s):cn))}(i._resolve,i,t,n).pipe(ue(s=>(i._resolvedData=s,i.data=Object.assign(Object.assign({},i.data),aM(i,e).resolve),null)))}(o.route,n,i,t)),Fe(()=>s++),rm(1),ut(o=>s===r.length?Q(e):cn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Fe({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Fe(l=>{const c=new Q2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),bm(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!f})}),ue(a=>{const l=function DV(i,t,e){const n=rl(i,t._root,e?e._root:void 0);return new sM(n,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Fe(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((i,t,e)=>ue(n=>(new OV(t,n.targetRouterState,n.currentRouterState,e).activate(i),n)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Fe({next(){s=!0},complete(){s=!0}}),yd(()=>{var a;s||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),xn(a=>{if(o=!0,function tV(i){return i&&i[$w]}(a)){const l=is(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Hw(r.id,this.serializeUrl(r.extractedUrl),a.message);n.next(c),l?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Pd(r.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new $2(r.id,this.serializeUrl(r.extractedUrl),a);n.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return cn}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,n,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){gM(e),this.config=e.map(vm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=n,c=r||this.routerState.root,d=l?this.currentUrlTree.fragment:o;let u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}return null!==u&&(u=this.removeEmptyProps(u)),function xV(i,t,e,n,r){if(0===e.length)return pm(t.root,t.root,t,n,r);const s=function SV(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new uM(!0,0,i);let t=0,e=!1;const n=i.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Pt(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new uM(e,t,n)}(e);if(s.toRoot())return pm(t.root,new we([],{}),t,n,r);const o=function EV(i,t,e){if(i.isAbsolute)return new fm(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new fm(s,s===t.root,0)}const n=Sd(i.commands[0])?0:1;return function kV(i,t,e){let n=i,r=t,s=e;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Error("Invalid number of '../'");r=n.segments.length}return new fm(n,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,i.numberOfDoubleDots)}(s,t,i),a=o.processChildren?Ed(o.segmentGroup,o.index,s.commands):hM(o.segmentGroup,o.index,s.commands);return pm(o.segmentGroup,a,t,n,r)}(c,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=is(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return function OH(i){for(let t=0;t{const s=e[r];return null!=s&&(n[r]=s),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new il(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,n,r,s,o){var a,l,c;if(this.disposed)return Promise.resolve(!1);const d=this.transitions.value,u=Pd(n)&&d&&!Pd(d.source),h=d.rawUrl.toString()===e.toString(),f=d.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(u&&h&&f)return Promise.resolve(!0);let v,C,M;o?(v=o.resolve,C=o.reject,M=o.promise):M=new Promise((P,he)=>{v=P,C=he});const w=++this.navigationId;let T;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),T=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):T=0,this.setTransition({id:w,targetPageId:T,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:v,reject:C,promise:M,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),M.catch(P=>Promise.reject(P))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,n=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const r=new Hw(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return i.\u0275fac=function(e){qr()},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function Pd(i){return"imperative"!==i}let Eo=(()=>{class i{constructor(e,n,r){this.router=e,this.route=n,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new O,this.subscription=e.events.subscribe(s=>{s instanceof il&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,n,r,s,o){if(0!==e||n||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:ko(this.skipLocationChange),replaceUrl:ko(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ko(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(p(gi),p(Jn),p(Co))},i.\u0275dir=x({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&R("click",function(s){return n.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&X("target",n.target)("href",n.href,It)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Ye]}),i})();function ko(i){return""===i||!!i}class RM{}class OM{preload(t,e){return Q(null)}}let PM=(()=>{class i{constructor(e,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new AM(r,n,l=>e.triggerEvent(new jw(l)),l=>e.triggerEvent(new zw(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(xt(e=>e instanceof il),wo(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Gn);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const s of n)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return vt(r).pipe(ra(),ue(s=>{}))}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>(n._loadedConfig?Q(n._loadedConfig):this.loader.load(e.injector,n)).pipe(ut(s=>(n._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return i.\u0275fac=function(e){return new(e||i)(D(gi),D(Jc),D(Ge),D(RM))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),wm=(()=>{class i{constructor(e,n,r={}){this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof sm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof il&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Uw&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new Uw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){qr()},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const ns=new S("ROUTER_CONFIGURATION"),FM=new S("ROUTER_FORROOT_GUARD"),LH=[Do,{provide:Jw,useClass:eM},{provide:gi,useFactory:function zH(i,t,e,n,r,s,o={},a,l){const c=new gi(null,i,t,e,n,r,Ww(s));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function UH(i,t){i.errorHandler&&(t.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(t.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(t.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(t.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(t.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(t.canceledNavigationResolution=i.canceledNavigationResolution)}(o,c),o.enableTracing&&c.events.subscribe(d=>{var u,h;null===(u=console.group)||void 0===u||u.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[Jw,ll,Do,Ge,Jc,Cm,ns,[class EH{},new Ct],[class MH{},new Ct]]},ll,{provide:Jn,useFactory:function $H(i){return i.routerState.root},deps:[gi]},PM,OM,class NH{preload(t,e){return e().pipe(xn(()=>Q(null)))}},{provide:ns,useValue:{enableTracing:!1}}];function BH(){return new TD("Router",gi)}let Mm=(()=>{class i{constructor(e,n){}static forRoot(e,n){return{ngModule:i,providers:[LH,NM(e),{provide:FM,useFactory:jH,deps:[[gi,new Ct,new di]]},{provide:ns,useValue:n||{}},{provide:Co,useFactory:HH,deps:[Zr,[new Ca(Bf),new Ct],ns]},{provide:wm,useFactory:VH,deps:[gi,qB,ns]},{provide:RM,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:OM},{provide:TD,multi:!0,useFactory:BH},[xm,{provide:Xc,multi:!0,useFactory:GH,deps:[xm]},{provide:LM,useFactory:WH,deps:[xm]},{provide:DD,multi:!0,useExisting:LM}]]}}static forChild(e){return{ngModule:i,providers:[NM(e)]}}}return i.\u0275fac=function(e){return new(e||i)(D(FM,8),D(gi,8))},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();function VH(i,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new wm(i,t,e)}function HH(i,t,e={}){return e.useHash?new PL(i,t):new ZD(i,t)}function jH(i){return"guarded"}function NM(i){return[{provide:uI,multi:!0,useValue:i},{provide:Cm,multi:!0,useValue:i}]}let xm=(()=>{class i{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new O}appInitializer(){return this.injector.get(IL,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let n=null;const r=new Promise(a=>n=a),s=this.injector.get(gi),o=this.injector.get(ns);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?Q(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),s.initialNavigation()):n(!0),r})}bootstrapListener(e){const n=this.injector.get(ns),r=this.injector.get(PM),s=this.injector.get(wm),o=this.injector.get(gi),a=this.injector.get(yo);e===a.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void 0===n.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return i.\u0275fac=function(e){return new(e||i)(D(Ge))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();function GH(i){return i.appInitializer.bind(i)}function WH(i){return i.bootstrapListener.bind(i)}const LM=new S("Router Initializer");class BM{}class VM{}class kn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),s=r.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof kn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new kn;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof kn?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class YH{encodeKey(t){return HM(t)}encodeValue(t){return HM(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const KH=/%(\d[a-f0-9])/gi,ZH={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function HM(i){return encodeURIComponent(i).replace(KH,(t,e)=>{var n;return null!==(n=ZH[e])&&void 0!==n?n:t})}function jM(i){return`${i}`}class Mr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new YH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function QH(i,t){const e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Mr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(jM(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let n=this.map.get(t.param)||[];const r=n.indexOf(jM(t.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class XH{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function zM(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function UM(i){return"undefined"!=typeof Blob&&i instanceof Blob}function $M(i){return"undefined"!=typeof FormData&&i instanceof FormData}class hl{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function JH(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new kn),this.context||(this.context=new XH),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(d=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),d)),new hl(n,r,o,{params:d,headers:c,context:u,reportProgress:l,responseType:s,withCredentials:a})}}var mt=(()=>((mt=mt||{})[mt.Sent=0]="Sent",mt[mt.UploadProgress=1]="UploadProgress",mt[mt.ResponseHeader=2]="ResponseHeader",mt[mt.DownloadProgress=3]="DownloadProgress",mt[mt.Response=4]="Response",mt[mt.User=5]="User",mt))();class Sm{constructor(t,e=200,n="OK"){this.headers=t.headers||new kn,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Em extends Sm{constructor(t={}){super(t),this.type=mt.ResponseHeader}clone(t={}){return new Em({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Fd extends Sm{constructor(t={}){super(t),this.type=mt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Fd({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class GM extends Sm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function km(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}let Nd=(()=>{class i{constructor(e){this.handler=e}request(e,n,r={}){let s;if(e instanceof hl)s=e;else{let l,c;l=r.headers instanceof kn?r.headers:new kn(r.headers),r.params&&(c=r.params instanceof Mr?r.params:new Mr({fromObject:r.params})),s=new hl(e,n,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Q(s).pipe(wo(l=>this.handler.handle(l)));if(e instanceof hl||"events"===r.observe)return o;const a=o.pipe(xt(l=>l instanceof Fd));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new Mr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,km(r,n))}post(e,n,r={}){return this.request("POST",e,km(r,n))}put(e,n,r={}){return this.request("PUT",e,km(r,n))}}return i.\u0275fac=function(e){return new(e||i)(D(BM))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class WM{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const qM=new S("HTTP_INTERCEPTORS");let tj=(()=>{class i{intercept(e,n){return n.handle(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const ij=/^\)\]\}',?\n/;let YM=(()=>{class i{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ie(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,_)=>r.setRequestHeader(f,_.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const f=1223===r.status?204:r.status,_=r.statusText||"OK",v=new kn(r.getAllResponseHeaders()),C=function nj(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new Em({headers:v,status:f,statusText:_,url:C}),o},l=()=>{let{headers:f,status:_,statusText:v,url:C}=a(),M=null;204!==_&&(M=void 0===r.response?r.responseText:r.response),0===_&&(_=M?200:0);let w=_>=200&&_<300;if("json"===e.responseType&&"string"==typeof M){const T=M;M=M.replace(ij,"");try{M=""!==M?JSON.parse(M):null}catch(P){M=T,w&&(w=!1,M={error:P,text:M})}}w?(n.next(new Fd({body:M,headers:f,status:_,statusText:v,url:C||void 0})),n.complete()):n.error(new GM({error:M,headers:f,status:_,statusText:v,url:C||void 0}))},c=f=>{const{url:_}=a(),v=new GM({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:_||void 0});n.error(v)};let d=!1;const u=f=>{d||(n.next(a()),d=!0);let _={type:mt.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),"text"===e.responseType&&!!r.responseText&&(_.partialText=r.responseText),n.next(_)},h=f=>{let _={type:mt.UploadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),n.next(_)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",u),null!==s&&r.upload&&r.upload.addEventListener("progress",h)),r.send(s),n.next({type:mt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",u),null!==s&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return i.\u0275fac=function(e){return new(e||i)(D(_w))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Tm=new S("XSRF_COOKIE_NAME"),Am=new S("XSRF_HEADER_NAME");class QM{}let rj=(()=>{class i{constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=aw(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(qa),D(Tm))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),Im=(()=>{class i{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return n.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),n.handle(e)}}return i.\u0275fac=function(e){return new(e||i)(D(QM),D(Am))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),sj=(()=>{class i{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=this.injector.get(qM,[]);this.chain=n.reduceRight((r,s)=>new WM(r,s),this.backend)}return this.chain.handle(e)}}return i.\u0275fac=function(e){return new(e||i)(D(VM),D(Ge))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),oj=(()=>{class i{static disable(){return{ngModule:i,providers:[{provide:Im,useClass:tj}]}}static withOptions(e={}){return{ngModule:i,providers:[e.cookieName?{provide:Tm,useValue:e.cookieName}:[],e.headerName?{provide:Am,useValue:e.headerName}:[]]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Im,{provide:qM,useExisting:Im,multi:!0},{provide:QM,useClass:rj},{provide:Tm,useValue:"XSRF-TOKEN"},{provide:Am,useValue:"X-XSRF-TOKEN"}]}),i})(),aj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Nd,{provide:BM,useClass:sj},YM,{provide:VM,useExisting:YM}],imports:[[oj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i})();function rs(i,t,e){return console.log("error => "+t),i.open(t,e,{duration:3e3,panelClass:"error-snack-bar"}),Q({})}function Pi(i,t){return function lj(i,t,e,n){return t&&t(),n?(console.log("With errorer "+n),i().pipe(Fe(r=>console.log("Trap Begin...")),xn(n),yd(()=>{console.log("Trap End.."),e&&e()}))):i().pipe(Fe(r=>console.log("Trap Begin...")),yd(()=>{console.log("Trap End.."),e&&e()}))}(i,cj,dj,t)}function cj(){console.log("Showing loading..."),document.getElementById("loading-layer").style.display="block"}function dj(){console.log("Hiding loading..."),document.getElementById("loading-layer").style.display="none"}function ss(i,t,e){console.log("success => "+t),i.open(t,e,{duration:3e3,panelClass:"success-snack-bar"})}let Ld=(()=>{class i{constructor(e){this.http=e,this.calistURL="/ca/",this.httpOptions={headers:new kn({"Content-Type":"application/json"})}}getCAList(){return this.http.get(this.calistURL+"getAll").pipe(Fe(e=>this.log(`fetched CA List ${JSON.stringify(e)}`)))}deleteCA(e){return console.log(`Executing deleteCA ${e}`),this.http.delete(this.calistURL+e).pipe(Fe(n=>this.log(`Delete CA by id ${JSON.stringify(n)}`)))}deleteCert(e,n){return console.log(`Executing deleteCert ${e}/${n}`),this.http.delete(this.calistURL+e+"/cert/"+n).pipe(Fe(r=>this.log(`Delete Cert by id ${e}/${n} result ${JSON.stringify(r)}`)))}expired(e){return null!=e&&(new Date).getTime()>=e.issueTime+36e5*e.validDays*24}expiredCert(e){return null!=e&&(new Date).getTime()>=e.issueTime+36e5*e.validDays*24}getCAById(e){return this.http.get(this.calistURL+"get/"+e).pipe(Fe(n=>this.log(`fetched CA by id ${JSON.stringify(n)}`)))}getCertsByCAId(e){return this.http.get(this.calistURL+e+"/cert").pipe(Fe(n=>this.log(`fetched CA by id ${JSON.stringify(n)}`)))}importCA(e){return this.http.put(this.calistURL+"import",e).pipe(Fe(n=>this.log(`import CA with ${JSON.stringify(e)} result ${JSON.stringify(n)}`)))}createCA(e){return this.http.put(this.calistURL+"new",e).pipe(Fe(n=>this.log(`create CA with ${JSON.stringify(e)} result ${JSON.stringify(n)}`)))}createCert(e,n){return this.http.put(this.calistURL+e+"/new",n).pipe(Fe(r=>this.log(`create Cert in CA ${e} with ${JSON.stringify(n)} result ${JSON.stringify(r)}`)))}renewCert(e,n,r){return this.http.post(this.calistURL+e+"/cert/"+n+"/renew/"+r,"").pipe(Fe(s=>this.log(`renew cert ${n} in CA ${e} for ${r} days result ${JSON.stringify(s)}`)))}inspectCert(e){return this.http.put(this.calistURL+"cert/inspect",e).pipe(Fe(n=>this.log(`Inspect Cert ${JSON.stringify(e)} result ${JSON.stringify(n)}`)))}getCertByCAAndCertId(e,n){return this.http.get(this.calistURL+e+"/cert/"+n).pipe(Fe(r=>this.log(`fetched Cert By ID ${e} + ${n}: ${JSON.stringify(r)}`)))}log(e){console.log(`CAService: ${e}`)}handleError(e="operation",n){return r=>(console.error(r),this.log(`${e} failed: ${r.message}`),Q(n))}}return i.\u0275fac=function(e){return new(e||i)(D(Nd))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Y(i){return null!=i&&"false"!=`${i}`}function Qt(i,t=0){return function uj(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):t}function Bd(i){return Array.isArray(i)?i:[i]}function gt(i){return null==i?"":"string"==typeof i?i:`${i}px`}function dt(i){return i instanceof W?i.nativeElement:i}const hj=["addListener","removeListener"],pj=["addEventListener","removeEventListener"],fj=["on","off"];function os(i,t,e,n){if(xe(e)&&(n=e,e=void 0),n)return os(i,t,e).pipe(nm(n));const[r,s]=function _j(i){return xe(i.addEventListener)&&xe(i.removeEventListener)}(i)?pj.map(o=>a=>i[o](t,a,e)):function mj(i){return xe(i.addListener)&&xe(i.removeListener)}(i)?hj.map(KM(i,t)):function gj(i){return xe(i.on)&&xe(i.off)}(i)?fj.map(KM(i,t)):[];if(!r&&uh(i))return ut(o=>os(o,t,e))(ni(i));if(!r)throw new TypeError("Invalid event target");return new Ie(o=>{const a=(...l)=>o.next(1s(a)})}function KM(i,t){return e=>n=>i[e](t,n)}class vj extends Te{constructor(t,e){super()}schedule(t,e=0){return this}}const Vd={setInterval(...i){const{delegate:t}=Vd;return((null==t?void 0:t.setInterval)||setInterval)(...i)},clearInterval(i){const{delegate:t}=Vd;return((null==t?void 0:t.clearInterval)||clearInterval)(i)},delegate:void 0};class Rm extends vj{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return Vd.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;Vd.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,n=!1;try{this.work(t)}catch(s){n=!0,r=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,xs(n,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const pl={schedule(i){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=pl;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=t(s=>{e=void 0,i(s)});return new Te(()=>null==e?void 0:e(r))},requestAnimationFrame(...i){const{delegate:t}=pl;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:t}=pl;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...i)},delegate:void 0},ZM={now:()=>(ZM.delegate||Date).now(),delegate:void 0};class fl{constructor(t,e=fl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,n){return new this.schedulerActionCtor(this,t).schedule(n,e)}}fl.now=ZM.now;class Om extends fl{constructor(t,e=fl.now){super(t,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const XM=new class bj extends Om{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let n,r=-1;t=t||e.shift();const s=e.length;do{if(n=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=pl.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,n=0){if(null!=n&&n>0||null==n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(pl.cancelAnimationFrame(e),t._scheduled=void 0)}});let Pm,Cj=1;const Hd={};function JM(i){return i in Hd&&(delete Hd[i],!0)}const Dj={setImmediate(i){const t=Cj++;return Hd[t]=!0,Pm||(Pm=Promise.resolve()),Pm.then(()=>JM(t)&&i()),t},clearImmediate(i){JM(i)}},{setImmediate:wj,clearImmediate:Mj}=Dj,jd={setImmediate(...i){const{delegate:t}=jd;return((null==t?void 0:t.setImmediate)||wj)(...i)},clearImmediate(i){const{delegate:t}=jd;return((null==t?void 0:t.clearImmediate)||Mj)(i)},delegate:void 0},zd=(new class Sj extends Om{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let n,r=-1;t=t||e.shift();const s=e.length;do{if(n=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=jd.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,n=0){if(null!=n&&n>0||null==n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(jd.clearImmediate(e),t._scheduled=void 0)}}),new Om(Rm)),ex=zd;function Fm(i=0,t,e=ex){let n=-1;return null!=t&&(dv(t)?e=t:n=t),new Ie(r=>{let s=function Tj(i){return i instanceof Date&&!isNaN(i)}(i)?+i-e.now():i;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=n?this.schedule(void 0,n):r.complete())},s)})}function tx(i,t=ex){return function kj(i){return Ke((t,e)=>{let n=!1,r=null,s=null,o=!1;const a=()=>{if(null==s||s.unsubscribe(),s=null,n){n=!1;const c=r;r=null,e.next(c)}o&&e.complete()},l=()=>{s=null,o&&e.complete()};t.subscribe(new Ue(e,c=>{n=!0,r=c,s||ni(i(c)).subscribe(s=new Ue(e,a,l))},()=>{o=!0,(!n||!s||s.closed)&&e.complete()}))})}(()=>Fm(i,t))}let Nm;try{Nm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i){Nm=!1}let Ao,_t=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function WB(i){return i===mw}(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&&!Nm)&&"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 i.\u0275fac=function(e){return new(e||i)(D(qa))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),To=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const ix=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function nx(){if(Ao)return Ao;if("object"!=typeof document||!document)return Ao=new Set(ix),Ao;let i=document.createElement("input");return Ao=new Set(ix.filter(t=>(i.setAttribute("type",t),i.type===t))),Ao}let ml,as,Lm;function rn(i){return function Aj(){if(null==ml&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ml=!0}))}finally{ml=ml||!1}return ml}()?i:!!i.capture}function Ij(){if(null==as){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return as=!1,as;if("scrollBehavior"in document.documentElement.style)as=!0;else{const i=Element.prototype.scrollTo;as=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return as}function $d(i){if(function Rj(){if(null==Lm){const i="undefined"!=typeof document?document.head:null;Lm=!(!i||!i.createShadowRoot&&!i.attachShadow)}return Lm}()){const t=i.getRootNode?i.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Bm(){let i="undefined"!=typeof document&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const t=i.shadowRoot.activeElement;if(t===i)break;i=t}return i}function Fi(i){return i.composedPath?i.composedPath()[0]:i.target}function Vm(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const Oj=new S("cdk-dir-doc",{providedIn:"root",factory:function Pj(){return Dc(ie)}}),Fj=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let sn=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new q,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function Nj(i){const t=(null==i?void 0:i.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?Fj.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(D(Oj,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Io=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),Bj=(()=>{class i{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new O,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ie(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(tx(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Q()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(xt(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=dt(n),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>os(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(_t),D(ie,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ro=(()=>{class i{constructor(e,n,r){this._platform=e,this._change=new O,this._changeListener=s=>{this._change.next(s)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(tx(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(te),D(ie,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Tn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),Gd=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Io,To,Tn],Io,Tn]}),i})();class Hm{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class gl extends Hm{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class _l extends Hm{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Hj extends Hm{constructor(t){super(),this.element=t instanceof W?t.nativeElement:t}}class Wd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof gl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _l?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Hj?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class jj extends Wd{constructor(t,e,n,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=n.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let qd=(()=>{class i extends Wd{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new q,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=n.createComponent(s,n.length,e.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(p(br),p(lt),p(ie))},i.\u0275dir=x({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[I]}),i})(),er=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();function Re(i){return Ke((t,e)=>{ni(i).subscribe(new Ue(e,()=>e.complete(),Ss)),!e.closed&&t.subscribe(e)})}function ii(i,...t){return t.length?t.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}const ox=Ij();class t3{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=gt(-this._previousScrollPosition.left),t.style.top=gt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,n=t.style,r=this._document.body.style,s=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),ox&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ox&&(n.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class n3{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ax{enable(){}disable(){}attach(){}}function Wm(i,t){return t.some(e=>i.bottome.bottom||i.righte.right)}function lx(i,t){return t.some(e=>i.tope.bottom||i.lefte.right)}class r3{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Wm(e,[{width:n,height:r,bottom:r,right:n,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 s3=(()=>{class i{constructor(e,n,r,s){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new ax,this.close=o=>new n3(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new t3(this._viewportRuler,this._document),this.reposition=o=>new r3(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return i.\u0275fac=function(e){return new(e||i)(D(Bj),D(Ro),D(te),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class yl{constructor(t){if(this.scrollStrategy=new ax,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class o3{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class a3{constructor(t,e,n,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new O,this._attachments=new O,this._detachments=new O,this._locationChanges=Te.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._keydownEvents=new O,this._outsidePointerEvents=new O,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(We(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=gt(this._config.width),t.height=gt(this._config.height),t.minWidth=gt(this._config.minWidth),t.minHeight=gt(this._config.minHeight),t.maxWidth=gt(this._config.maxWidth),t.maxHeight=gt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const r=Bd(e||[]).filter(s=>!!s);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Re(jt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let qm=(()=>{class i{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Vm()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,n)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleAreal&&(l=d,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&&us(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(cx),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,n){let r,s;if("center"==n.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==n.originX?o:a}return e.left<0&&(r-=e.left),s="center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,n){let r,s;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,n,r){const s=ux(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-n.height,_=this._subtractOverflows(s.width,0-o,o+s.width-n.width),v=this._subtractOverflows(s.height,h,f),C=_*v;return{visibleArea:C,isCompletelyWithinViewport:s.width*s.height===C,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:_==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,s=n.right-e.x,o=dx(this._overlayRef.getConfig().minHeight),a=dx(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=ux(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-n.top-t.y,0),c=Math.max(s.left-n.left-t.x,0);let d=0,u=0;return d=r.width<=s.width?c||-o:t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-_/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=n.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=t.x,d=n.right-t.x;else{const f=Math.min(n.right-t.x+n.left,t.x),_=this._lastBoundingBoxSize.width;d=2*f,u=t.x-f,d>_&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-_/2)}return{top:o,left:u,bottom:a,right:h,width:d,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.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=gt(n.height),r.top=gt(n.top),r.bottom=gt(n.bottom),r.width=gt(n.width),r.left=gt(n.left),r.right=gt(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=gt(s)),o&&(r.maxWidth=gt(o))}this._lastBoundingBoxSize=n,us(this._boundingBox.style,r)}_resetBoundingBoxStyles(){us(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){us(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();us(n,this._getExactOverlayY(e,t,d)),us(n,this._getExactOverlayX(e,t,d))}else n.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),o.maxHeight&&(r?n.maxHeight=gt(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=gt(o.maxWidth):s&&(n.maxWidth="")),us(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=gt(s.y),r}_getExactOverlayX(t,e,n){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=gt(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:lx(t,n),isOriginOutsideView:Wm(t,n),isOverlayClipped:lx(e,n),isOverlayOutsideView:Wm(e,n)}}_subtractOverflows(t,...e){return e.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Bd(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof W)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function us(i,t){for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function dx(i){if("number"!=typeof i&&null!=i){const[t,e]=i.split(l3);return e&&"px"!==e?null:parseFloat(t)}return i||null}function ux(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const hx="cdk-global-overlay-wrapper";class d3{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(hx),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=n,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(hx),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let u3=(()=>{class i{constructor(e,n,r,s){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=s}global(){return new d3}flexibleConnectedTo(e){return new c3(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(D(Ro),D(ie),D(_t),D(qm))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),px=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),h3=(()=>{class i extends px{constructor(e){super(e),this._keydownListener=n=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(n);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),p3=(()=>{class i extends px{constructor(e,n){super(e),this._platform=n,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Fi(r)},this._clickListener=r=>{const s=Fi(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),f3=0,Ni=(()=>{class i{constructor(e,n,r,s,o,a,l,c,d,u,h){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),s=this._createPortalOutlet(r),o=new yl(e);return o.direction=o.direction||this._directionality.value,new a3(s,n,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+f3++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(yo)),new jj(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(D(s3),D(qm),D(br),D(u3),D(h3),D(Ge),D(te),D(ie),D(sn),D(Do),D(p3))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const m3=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fx=new S("cdk-connected-overlay-scroll-strategy");let mx=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(p(W))},i.\u0275dir=x({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),gx=(()=>{class i{constructor(e,n,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Te.EMPTY,this._attachSubscription=Te.EMPTY,this._detachSubscription=Te.EMPTY,this._positionSubscription=Te.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new q,this.positionChange=new q,this.attach=new q,this.detach=new q,this.overlayKeydown=new q,this.overlayOutsideClick=new q,this._templatePortal=new _l(n,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Y(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Y(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Y(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Y(e)}get push(){return this._push}set push(e){this._push=Y(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=m3);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!ii(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new yl({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof mx?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function zj(i,t=!1){return Ke((e,n)=>{let r=0;e.subscribe(new Ue(n,s=>{const o=i(s,r++);(o||t)&&n.next(s),!o&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(p(Ni),p(at),p(lt),p(fx),p(sn,8))},i.\u0275dir=x({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ye]}),i})();const _3={provide:fx,deps:[Ni],useFactory:function g3(i){return()=>i.scrollStrategies.reposition()}};let tr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Ni,_3],imports:[[Io,er,Gd],Gd]}),i})();function Ym(i,t=zd){return Ke((e,n)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=s;s=null,n.next(c)}};function l(){const c=o+i,d=t.now();if(d{s=c,o=t.now(),r||(r=t.schedule(l,i),n.add(r))},()=>{a(),n.complete()},void 0,()=>{s=r=null}))})}function vx(i){return xt((t,e)=>i<=e)}function yx(i,t=dr){return i=null!=i?i:v3,Ke((e,n)=>{let r,s=!0;e.subscribe(new Ue(n,o=>{const a=t(o);(s||!i(r,a))&&(s=!1,r=a,n.next(o))}))})}function v3(i,t){return i===t}let bx=(()=>{class i{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),y3=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=dt(e);return new Ie(r=>{const o=this._observeElement(n).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new O,r=this._mutationObserverFactory.create(s=>n.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(D(bx))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Qm=(()=>{class i{constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new q,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Y(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qt(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ym(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(p(y3),p(W),p(te))},i.\u0275dir=x({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),bl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[bx]}),i})();function Qd(i,t){return(i.getAttribute(t)||"").match(/\S+/g)||[]}const Dx="cdk-describedby-message-container",wx="cdk-describedby-message",Kd="cdk-describedby-host";let D3=0;const An=new Map;let _i=null,w3=(()=>{class i{constructor(e){this._document=e}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const s=Km(n,r);"string"!=typeof n?(Mx(n),An.set(s,{messageElement:n,referenceCount:0})):An.has(s)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;const s=Km(n,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof n){const o=An.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}_i&&0===_i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Kd}]`);for(let n=0;n0!=r.indexOf(wx));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=An.get(n);(function b3(i,t,e){const n=Qd(i,t);n.some(r=>r.trim()==e.trim())||(n.push(e.trim()),i.setAttribute(t,n.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Kd,""),r.referenceCount++}_removeMessageReference(e,n){const r=An.get(n);r.referenceCount--,function C3(i,t,e){const r=Qd(i,t).filter(s=>s!=e.trim());r.length?i.setAttribute(t,r.join(" ")):i.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Kd)}_isElementDescribedByMessage(e,n){const r=Qd(e,"aria-describedby"),s=An.get(n),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Km(i,t){return"string"==typeof i?`${t||""}/${i}`:i}function Mx(i){i.id||(i.id=`${wx}-${D3++}`)}class xx{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new O,this._typeaheadSubscription=Te.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new O,this.change=new O,t instanceof $a&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Fe(e=>this._pressedLetters.push(e)),Ym(t),xt(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){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||ii(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof $a?this._items.toArray():this._items}}class M3 extends xx{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Sx extends xx{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Ex=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function S3(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function x3(i){try{return i.frameElement}catch(t){return null}}(function P3(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(n&&(-1===Tx(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),s=Tx(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function R3(i){let t=i.nodeName.toLowerCase(),e="input"===t&&i.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function O3(i){return!function k3(i){return function A3(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function E3(i){let t=i.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(i)||function T3(i){return function I3(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||kx(i))}(e)&&!this.isDisabled(e)&&((null==n?void 0:n.ignoreVisibility)||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function kx(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let t=i.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function Tx(i){if(!kx(i))return null;const t=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class F3{constructor(t,e,n,r,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return null==n||n.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(We(1)).subscribe(t)}}let N3=(()=>{class i{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new F3(e,this._checker,this._ngZone,this._document,n)}}return i.\u0275fac=function(e){return new(e||i)(D(Ex),D(te),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Zm(i){return 0===i.offsetX&&0===i.offsetY}function Xm(i){const t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const L3=new S("cdk-input-modality-detector-options"),B3={ignoreKeys:[18,17,224,91,16]},Oo=rn({passive:!0,capture:!0});let V3=(()=>{class i{constructor(e,n,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new ti(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Fi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Zm(o)?"keyboard":"mouse"),this._mostRecentTarget=Fi(o))},this._onTouchstart=o=>{Xm(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Fi(o))},this._options=Object.assign(Object.assign({},B3),s),this.modalityDetected=this._modality.pipe(vx(1)),this.modalityChanged=this.modalityDetected.pipe(yx()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Oo),r.addEventListener("mousedown",this._onMousedown,Oo),r.addEventListener("touchstart",this._onTouchstart,Oo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Oo),document.removeEventListener("mousedown",this._onMousedown,Oo),document.removeEventListener("touchstart",this._onTouchstart,Oo))}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(te),D(ie),D(L3,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const H3=new S("liveAnnouncerElement",{providedIn:"root",factory:function j3(){return null}}),z3=new S("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ix=(()=>{class i{constructor(e,n,r,s){this._ngZone=n,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){const r=this._defaultOptions;let s,o;return 1===n.length&&"number"==typeof n[0]?o=n[0]:[s,o]=n,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s{class i{constructor(e,n,r,s,o){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new O,this._rootNodeFocusAndBlurListener=a=>{const l=Fi(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let d=l;d;d=d.parentElement)c.call(this,a,d)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,n=!1){const r=dt(e);if(!this._platform.isBrowser||1!==r.nodeType)return Q(null);const s=$d(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;const a={checkChildren:n,subject:new O,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const n=dt(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const s=dt(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,n,l)):(this._setOrigin(n),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),s=Fi(e);!r||!r.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r.subject,null))}_emitOrigin(e,n){this._ngZone.run(()=>e.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zd),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zd)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Re(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zd),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zd),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r.subject,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&n.push([s,r])}),n}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(_t),D(V3),D(ie,8),D(U3,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Rx="cdk-high-contrast-black-on-white",Ox="cdk-high-contrast-white-on-black",Jm="cdk-high-contrast-active";let Px=(()=>{class i{constructor(e,n){this._platform=e,this._document=n}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Jm),e.remove(Rx),e.remove(Ox),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?(e.add(Jm),e.add(Rx)):2===n&&(e.add(Jm),e.add(Ox))}}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Cl=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(D(Px))},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[To,bl]]}),i})();class Fx{}const nr="*";function Je(i,t){return{type:7,name:i,definitions:t,options:{}}}function Me(i,t=null){return{type:4,styles:t,timings:i}}function Nx(i,t=null){return{type:2,steps:i,options:t}}function V(i){return{type:6,styles:i,offset:null}}function de(i,t,e){return{type:0,name:i,styles:t,options:e}}function be(i,t,e=null){return{type:1,expr:i,animation:t,options:e}}function Lx(i=null){return{type:9,options:i}}function Bx(i,t,e=null){return{type:11,selector:i,animation:t,options:e}}function Vx(i){Promise.resolve(null).then(i)}class Po{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Vx(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Hx{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const s=this.players.length;0==s?Vx(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const t=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function jx(){return"undefined"!=typeof window&&void 0!==window.document}function tg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function xr(i){switch(i.length){case 0:return new Po;case 1:return i[0];default:return new Hx(i)}}function zx(i,t,e,n,r={},s={}){const o=[],a=[];let l=-1,c=null;if(n.forEach(d=>{const u=d.offset,h=u==l,f=h&&c||{};Object.keys(d).forEach(_=>{let v=_,C=d[_];if("offset"!==_)switch(v=t.normalizePropertyName(v,o),C){case"!":C=r[_];break;case nr:C=s[_];break;default:C=t.normalizeStyleValue(_,v,C,o)}f[v]=C}),h||a.push(f),c=f,l=u}),o.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${o.join(d)}`)}return a}function ig(i,t,e,n){switch(t){case"start":i.onStart(()=>n(e&&ng(e,"start",i)));break;case"done":i.onDone(()=>n(e&&ng(e,"done",i)));break;case"destroy":i.onDestroy(()=>n(e&&ng(e,"destroy",i)))}}function ng(i,t,e){const n=e.totalTime,s=rg(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,null==n?i.totalTime:n,!!e.disabled),o=i._data;return null!=o&&(s._data=o),s}function rg(i,t,e,n,r="",s=0,o){return{element:i,triggerName:t,fromState:e,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function vi(i,t,e){let n;return i instanceof Map?(n=i.get(t),n||i.set(t,n=e)):(n=i[t],n||(n=i[t]=e)),n}function Ux(i){const t=i.indexOf(":");return[i.substring(1,t),i.substr(t+1)]}let sg=(i,t)=>!1,$x=(i,t,e)=>[];(tg()||"undefined"!=typeof Element)&&(sg=jx()?(i,t)=>{for(;t&&t!==document.documentElement;){if(t===i)return!0;t=t.parentNode||t.host}return!1}:(i,t)=>i.contains(t),$x=(i,t,e)=>{let n=[];if(e){const r=i.querySelectorAll(t);for(let s=0;s{const n=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[n]=i[e]}),t}let qx=(()=>{class i{validateStyleProperty(e){return og(e)}matchesElement(e,n){return!1}containsElement(e,n){return ag(e,n)}query(e,n,r){return lg(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,s,o,a=[],l){return new Po(r,s)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),cg=(()=>{class i{}return i.NOOP=new qx,i})();const dg="ng-enter",Xd="ng-leave",Jd="ng-trigger",eu=".ng-trigger",Qx="ng-animating",ug=".ng-animating";function fs(i){if("number"==typeof i)return i;const t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:hg(parseFloat(t[1]),t[2])}function hg(i,t){return"s"===t?1e3*i:i}function tu(i,t,e){return i.hasOwnProperty("duration")?i:function Q3(i,t,e){let r,s=0,o="";if("string"==typeof i){const a=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${i}" is invalid.`),{duration:0,delay:0,easing:""};r=hg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=hg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=i;if(!e){let a=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${i}" is invalid.`)}return{duration:r,delay:s,easing:o}}(i,t,e)}function Fo(i,t={}){return Object.keys(i).forEach(e=>{t[e]=i[e]}),t}function Sr(i,t,e={}){if(t)for(let n in i)e[n]=i[n];else Fo(i,e);return e}function Zx(i,t,e){return e?t+":"+e+";":""}function Xx(i){let t="";for(let e=0;e{const r=fg(n);e&&!e.hasOwnProperty(n)&&(e[n]=i.style[r]),i.style[r]=t[n]}),tg()&&Xx(i))}function ms(i,t){i.style&&(Object.keys(t).forEach(e=>{const n=fg(e);i.style[n]=""}),tg()&&Xx(i))}function Dl(i){return Array.isArray(i)?1==i.length?i[0]:Nx(i):i}const pg=new RegExp("{{\\s*(.+?)\\s*}}","g");function Jx(i){let t=[];if("string"==typeof i){let e;for(;e=pg.exec(i);)t.push(e[1]);pg.lastIndex=0}return t}function iu(i,t,e){const n=i.toString(),r=n.replace(pg,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return r==n?i:r}function nu(i){const t=[];let e=i.next();for(;!e.done;)t.push(e.value),e=i.next();return t}const Z3=/-+([a-z0-9])/g;function fg(i){return i.replace(Z3,(...t)=>t[1].toUpperCase())}function X3(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function eS(i,t){return 0===i||0===t}function tS(i,t,e){const n=Object.keys(e);if(n.length&&t.length){let s=t[0],o=[];if(n.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;rfunction ez(i,t,e){if(":"==i[0]){const l=function tz(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(i,e);if("function"==typeof l)return void t.push(l);i=l}const n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(`The provided transition expression "${i}" is not supported`),t;const r=n[1],s=n[2],o=n[3];t.push(iS(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(iS(o,r))}(n,e,t)):e.push(i),e}const su=new Set(["true","1"]),ou=new Set(["false","0"]);function iS(i,t){const e=su.has(i)||ou.has(i),n=su.has(t)||ou.has(t);return(r,s)=>{let o="*"==i||i==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?su.has(i):ou.has(i)),!a&&n&&"boolean"==typeof s&&(a=s?su.has(t):ou.has(t)),o&&a}}const iz=new RegExp("s*:selfs*,?","g");function gg(i,t,e){return new nz(i).build(t,e)}class nz{constructor(t){this._driver=t}build(t,e){const n=new oz(e);return this._resetContextStyleTimingState(n),yi(this,Dl(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,o=r||{};if(n.styles.forEach(a=>{if(au(a)){const l=a;Object.keys(l).forEach(c=>{Jx(l[c]).forEach(d=>{o.hasOwnProperty(d)||s.add(d)})})}}),s.size){const a=nu(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=yi(this,Dl(t.animation),e);return{type:1,matchers:J3(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:gs(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(n=>yi(this,n,e)),options:gs(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=n;const a=yi(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:gs(t.options)}}visitAnimate(t,e){const n=function lz(i,t){let e=null;if(i.hasOwnProperty("duration"))e=i;else if("number"==typeof i)return _g(tu(i,t).duration,0,"");const n=i;if(n.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=_g(0,0,"");return s.dynamic=!0,s.strValue=n,s}return e=e||tu(n,t),_g(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let r,s=t.styles?t.styles:V({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};n.easing&&(c.easing=n.easing),o=V(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==nr?n.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):n.push(o)}):n.push(t.styles);let r=!1,s=null;return n.forEach(o=>{if(au(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:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let d=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),d=!1),s=c.startTime),d&&(l[a]={startTime:s,endTime:r}),e.options&&function K3(i,t,e){const n=t.params||{},r=Jx(i);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||e.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const o=[];let a=!1,l=!1,c=0;const d=t.steps.map(M=>{const w=this._makeStyleAst(M,e);let T=null!=w.offset?w.offset:function az(i){if("string"==typeof i)return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(au(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(au(i)&&i.hasOwnProperty("offset")){const e=i;t=parseFloat(e.offset),delete e.offset}return t}(w.styles),P=0;return null!=T&&(s++,P=w.offset=T),l=l||P<0||P>1,a=a||P0&&s{const T=h>0?w==f?1:h*w:o[w],P=T*C;e.currentTime=_+v.delay+P,v.duration=P,this._validateStyleAst(M,e),M.offset=T,n.styles.push(M)}),n}visitReference(t,e){return{type:8,animation:yi(this,Dl(t.animation),e),options:gs(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gs(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gs(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function rz(i){const t=!!i.split(/\s*,\s*/).find(e=>":self"==e);return t&&(i=i.replace(iz,"")),i=i.replace(/@\*/g,eu).replace(/@\w+/g,e=>eu+"-"+e.substr(1)).replace(/:animating/g,ug),[i,t]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,vi(e.collectedStyles,e.currentQuerySelector,{});const a=yi(this,Dl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:gs(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:tu(t.timings,e.errors,!0);return{type:12,animation:yi(this,Dl(t.animation),e),timings:n,options:null}}}class oz{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function au(i){return!Array.isArray(i)&&"object"==typeof i}function gs(i){return i?(i=Fo(i)).params&&(i.params=function sz(i){return i?Fo(i):null}(i.params)):i={},i}function _g(i,t,e){return{duration:i,delay:t,easing:e}}function vg(i,t,e,n,r,s,o=null,a=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class lu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const uz=new RegExp(":enter","g"),pz=new RegExp(":leave","g");function yg(i,t,e,n,r,s={},o={},a,l,c=[]){return(new fz).buildKeyframes(i,t,e,n,r,s,o,a,l,c)}class fz{buildKeyframes(t,e,n,r,s,o,a,l,c,d=[]){c=c||new lu;const u=new bg(t,e,c,r,s,d,[]);u.options=l,u.currentTimeline.setStyles([o],null,u.errors,l),yi(this,n,u);const h=u.timelines.filter(f=>f.containsAnimation());if(h.length&&Object.keys(a).length){const f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,u.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[vg(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const o=null!=n.duration?fs(n.duration):null,a=null!=n.delay?fs(n.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),yi(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=cu);const o=fs(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>yi(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?fs(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),yi(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return tu(e.params?iu(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?fs(r.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cu);let o=n;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(t.options,c);s&&u.delayNextStep(s),c===e.element&&(l=u.currentTimeline),yi(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;yi(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const cu={};class bg{constructor(t,e,n,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new du(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=fs(n.duration)),null!=n.delay&&(r.delay=fs(n.delay));const s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=iu(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,s=new bg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=cu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new mz(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(uz,"."+this._enterClassName)).replace(pz,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class du{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new du(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||nr,this._currentKeyframe[e]=nr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function gz(i,t){const e={};let n;return i.forEach(r=>{"*"===r?(n=n||Object.keys(t),n.forEach(s=>{e[s]=nr})):Sr(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=iu(o[a],s,n);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:nr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Sr(a,!0);Object.keys(c).forEach(d=>{const u=c[d];"!"==u?t.add(d):u==nr&&e.add(d)}),n||(c.offset=l/this.duration),r.push(c)});const s=t.size?nu(t.values()):[],o=e.size?nu(e.values()):[];if(n){const a=r[0],l=Fo(a);a.offset=0,l.offset=1,r=[a,l]}return vg(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class mz extends du{constructor(t,e,n,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=n+e,a=e/o,l=Sr(t[0],!1);l.offset=0,s.push(l);const c=Sr(t[0],!1);c.offset=sS(a),s.push(c);const d=t.length-1;for(let u=1;u<=d;u++){let h=Sr(t[u],!1);h.offset=sS((e+h.offset*n)/o),s.push(h)}n=o,e=0,r="",t=s}return vg(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function sS(i,t=3){const e=Math.pow(10,t-1);return Math.round(i*e)/e}class Cg{}class _z extends Cg{normalizePropertyName(t,e){return fg(t)}normalizeStyleValue(t,e,n,r){let s="";const o=n.toString().trim();if(vz[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+s}}const vz=(()=>function yz(i){const t={};return i.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function oS(i,t,e,n,r,s,o,a,l,c,d,u,h){return{type:0,element:i,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Dg={};class aS{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function bz(i,t,e,n,r){return i.some(s=>s(t,e,n,r))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return s?s.buildStyles(e,n):o}build(t,e,n,r,s,o,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||Dg,_=this.buildStyles(n,a&&a.params||Dg,u),v=l&&l.params||Dg,C=this.buildStyles(r,v,u),M=new Set,w=new Map,T=new Map,P="void"===r,he={params:Object.assign(Object.assign({},h),v)},Qe=d?[]:yg(t,e,this.ast.animation,s,o,_,C,he,c,u);let et=0;if(Qe.forEach(Ci=>{et=Math.max(Ci.duration+Ci.delay,et)}),u.length)return oS(e,this._triggerName,n,r,P,_,C,[],[],w,T,et,u);Qe.forEach(Ci=>{const Di=Ci.element,ea=vi(w,Di,{});Ci.preStyleProps.forEach(ln=>ea[ln]=!0);const cr=vi(T,Di,{});Ci.postStyleProps.forEach(ln=>cr[ln]=!0),Di!==e&&M.add(Di)});const bi=nu(M.values());return oS(e,this._triggerName,n,r,P,_,C,Qe,bi,w,T,et)}}class Cz{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},r=Fo(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=iu(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),n[c]=l})}}),n}}class wz{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new Cz(r.style,r.options&&r.options.params||{},n)}),lS(this.states,"true","1"),lS(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new aS(t,r,this.states))}),this.fallbackTransition=function Mz(i,t,e){return new aS(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(o=>o.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function lS(i,t,e){i.hasOwnProperty(t)?i.hasOwnProperty(e)||(i[e]=i[t]):i.hasOwnProperty(e)&&(i[t]=i[e])}const xz=new lu;class Sz{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=gg(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,s=zx(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=yg(this._driver,e,s,dg,Xd,{},{},n,xz,r),o.forEach(d=>{const u=vi(a,d.element,{});d.postStyleProps.forEach(h=>u[h]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((d,u)=>{Object.keys(d).forEach(h=>{d[h]=this._driver.computeStyle(u,h,nr)})});const c=xr(o.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,r){const s=rg(e,"","","");return ig(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const cS="ng-animate-queued",wg="ng-animate-disabled",Iz=[],dS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Li="__ng_removed";class Mg{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function Nz(i){return null!=i?i:null}(n?t.value:t),n){const s=Fo(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const wl="void",xg=new Mg(wl);class Oz{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Bi(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Lz(i){return"start"==i||"done"==i}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);const s=vi(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};s.push(o);const a=vi(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Bi(t,Jd),Bi(t,Jd+"-"+e),a[e]=xg),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const s=this._getTrigger(e),o=new Sg(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Bi(t,Jd),Bi(t,Jd+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new Mg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=xg),c.value!==wl&&l.value===c.value){if(!function Hz(i,t){const e=Object.keys(i),n=Object.keys(t);if(e.length!=n.length)return!1;for(let r=0;r{ms(t,C),In(t,M)})}return}const h=vi(this._engine.playersByElement,t,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),_=!1;if(!f){if(!r)return;f=s.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:_}),_||(Bi(t,cS),o.onStart(()=>{No(t,cS)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const C=this._engine.playersByElement.get(t);if(C){let M=C.indexOf(o);M>=0&&C.splice(M,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,eu,!0);n.forEach(r=>{if(r[Li])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,n,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,wl,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),n&&xr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=n[o]||xg,d=new Mg(wl),u=new Sg(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Li];(!s||s===dS)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Bi(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){const l=rg(s,n.triggerName,n.fromState.value,n.toState.value);l._data=t,ig(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const s=n.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(n=>n.element===t)||e,e}}class Pz{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){const n=new Oz(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const r=Object.keys(n);for(let s=0;s=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Bi(t,wg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),No(t,wg))}removeNode(t,e,n,r){if(uu(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r,s){this.collectedLeaveElements.push(e),e[Li]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,n,r,s){return uu(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,eu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ug,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return xr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const n=t[Li];if(n&&n.setForRemoval){if(t[Li]=dS,n.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(wg))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?xr(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new lu,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(j=>{d.add(j);const Z=this.driver.query(j,".ng-animate-queued",!0);for(let ee=0;ee{const ee=dg+v++;_.set(Z,ee),j.forEach(Ae=>Bi(Ae,ee))});const C=[],M=new Set,w=new Set;for(let j=0;jM.add(Ae)):w.add(Z))}const T=new Map,P=pS(h,Array.from(M));P.forEach((j,Z)=>{const ee=Xd+v++;T.set(Z,ee),j.forEach(Ae=>Bi(Ae,ee))}),t.push(()=>{f.forEach((j,Z)=>{const ee=_.get(Z);j.forEach(Ae=>No(Ae,ee))}),P.forEach((j,Z)=>{const ee=T.get(Z);j.forEach(Ae=>No(Ae,ee))}),C.forEach(j=>{this.processLeaveNode(j)})});const he=[],Qe=[];for(let j=this._namespaceList.length-1;j>=0;j--)this._namespaceList[j].drainQueuedTransitions(e).forEach(ee=>{const Ae=ee.player,Tt=ee.element;if(he.push(Ae),this.collectedEnterElements.length){const Zt=Tt[Li];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(ee.triggerName)){const ws=Zt.previousTriggersValues.get(ee.triggerName),Fr=this.statesByElement.get(ee.element);Fr&&Fr[ee.triggerName]&&(Fr[ee.triggerName].value=ws)}return void Ae.destroy()}}const Nn=!u||!this.driver.containsElement(u,Tt),wi=T.get(Tt),Pr=_.get(Tt),tt=this._buildInstruction(ee,n,Pr,wi,Nn);if(tt.errors&&tt.errors.length)return void Qe.push(tt);if(Nn)return Ae.onStart(()=>ms(Tt,tt.fromStyles)),Ae.onDestroy(()=>In(Tt,tt.toStyles)),void r.push(Ae);if(ee.isFallbackTransition)return Ae.onStart(()=>ms(Tt,tt.fromStyles)),Ae.onDestroy(()=>In(Tt,tt.toStyles)),void r.push(Ae);const TT=[];tt.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||TT.push(Zt)}),tt.timelines=TT,n.append(Tt,tt.timelines),o.push({instruction:tt,player:Ae,element:Tt}),tt.queriedElements.forEach(Zt=>vi(a,Zt,[]).push(Ae)),tt.preStyleProps.forEach((Zt,ws)=>{const Fr=Object.keys(Zt);if(Fr.length){let Ms=l.get(ws);Ms||l.set(ws,Ms=new Set),Fr.forEach(z_=>Ms.add(z_))}}),tt.postStyleProps.forEach((Zt,ws)=>{const Fr=Object.keys(Zt);let Ms=c.get(ws);Ms||c.set(ws,Ms=new Set),Fr.forEach(z_=>Ms.add(z_))})});if(Qe.length){const j=[];Qe.forEach(Z=>{j.push(`@${Z.triggerName} has failed due to:\n`),Z.errors.forEach(ee=>j.push(`- ${ee}\n`))}),he.forEach(Z=>Z.destroy()),this.reportError(j)}const et=new Map,bi=new Map;o.forEach(j=>{const Z=j.element;n.has(Z)&&(bi.set(Z,Z),this._beforeAnimationBuild(j.player.namespaceId,j.instruction,et))}),r.forEach(j=>{const Z=j.element;this._getPreviousPlayers(Z,!1,j.namespaceId,j.triggerName,null).forEach(Ae=>{vi(et,Z,[]).push(Ae),Ae.destroy()})});const Ci=C.filter(j=>mS(j,l,c)),Di=new Map;hS(Di,this.driver,w,c,nr).forEach(j=>{mS(j,l,c)&&Ci.push(j)});const cr=new Map;f.forEach((j,Z)=>{hS(cr,this.driver,new Set(j),l,"!")}),Ci.forEach(j=>{const Z=Di.get(j),ee=cr.get(j);Di.set(j,Object.assign(Object.assign({},Z),ee))});const ln=[],ta=[],ia={};o.forEach(j=>{const{element:Z,player:ee,instruction:Ae}=j;if(n.has(Z)){if(d.has(Z))return ee.onDestroy(()=>In(Z,Ae.toStyles)),ee.disabled=!0,ee.overrideTotalTime(Ae.totalTime),void r.push(ee);let Tt=ia;if(bi.size>1){let wi=Z;const Pr=[];for(;wi=wi.parentNode;){const tt=bi.get(wi);if(tt){Tt=tt;break}Pr.push(wi)}Pr.forEach(tt=>bi.set(tt,Tt))}const Nn=this._buildAnimation(ee.namespaceId,Ae,et,s,cr,Di);if(ee.setRealPlayer(Nn),Tt===ia)ln.push(ee);else{const wi=this.playersByElement.get(Tt);wi&&wi.length&&(ee.parentPlayer=xr(wi)),r.push(ee)}}else ms(Z,Ae.fromStyles),ee.onDestroy(()=>In(Z,Ae.toStyles)),ta.push(ee),d.has(Z)&&r.push(ee)}),ta.forEach(j=>{const Z=s.get(j.element);if(Z&&Z.length){const ee=xr(Z);j.setRealPlayer(ee)}}),r.forEach(j=>{j.parentPlayer?j.syncPlayerEvents(j.parentPlayer):j.destroy()});for(let j=0;j!Nn.destroyed);Tt.length?Bz(this,Z,Tt):this.processLeaveNode(Z)}return C.length=0,ln.forEach(j=>{this.players.push(j),j.onDone(()=>{j.destroy();const Z=this.players.indexOf(j);this.players.splice(Z,1)}),j.play()}),ln}elementContainsData(t,e){let n=!1;const r=e[Li];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==wl;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,n){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==s,u=vi(n,c,[]);this._getPreviousPlayers(c,d,o,a,e.toState).forEach(f=>{const _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),u.push(f)})}ms(s,e.fromStyles)}_buildAnimation(t,e,n,r,s,o){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(_=>{const v=_.element;d.add(v);const C=v[Li];if(C&&C.removedBeforeQueried)return new Po(_.duration,_.delay);const M=v!==l,w=function Vz(i){const t=[];return fS(i,t),t}((n.get(v)||Iz).map(et=>et.getRealPlayer())).filter(et=>!!et.element&&et.element===v),T=s.get(v),P=o.get(v),he=zx(0,this._normalizer,0,_.keyframes,T,P),Qe=this._buildPlayer(_,he,w);if(_.subTimeline&&r&&u.add(v),M){const et=new Sg(t,a,v);et.setRealPlayer(Qe),c.push(et)}return Qe});c.forEach(_=>{vi(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function Fz(i,t,e){let n;if(i instanceof Map){if(n=i.get(t),n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&i.delete(t)}}else if(n=i[t],n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&delete i[t]}return n}(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>Bi(_,Qx));const f=xr(h);return f.onDestroy(()=>{d.forEach(_=>No(_,Qx)),In(l,e.toStyles)}),u.forEach(_=>{vi(r,_,[]).push(f)}),f}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Po(t.duration,t.delay)}}class Sg{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Po,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>ig(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){vi(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uu(i){return i&&1===i.nodeType}function uS(i,t){const e=i.style.display;return i.style.display=null!=t?t:"none",e}function hS(i,t,e,n,r){const s=[];e.forEach(l=>s.push(uS(l)));const o=[];n.forEach((l,c)=>{const d={};l.forEach(u=>{const h=d[u]=t.computeStyle(c,u,r);(!h||0==h.length)&&(c[Li]=Rz,o.push(c))}),i.set(c,d)});let a=0;return e.forEach(l=>uS(l,s[a++])),o}function pS(i,t){const e=new Map;if(i.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Bi(i,t){var e;null===(e=i.classList)||void 0===e||e.add(t)}function No(i,t){var e;null===(e=i.classList)||void 0===e||e.remove(t)}function Bz(i,t,e){xr(e).onDone(()=>i.processLeaveNode(t))}function fS(i,t){for(let e=0;er.add(s)):t.set(i,n),e.delete(i),!0}class hu{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Pz(t,e,n),this._timelineEngine=new Sz(t,e,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,n,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],c=gg(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function Dz(i,t,e){return new wz(i,t,e)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[s,o]=Ux(n);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if("@"==n.charAt(0)){const[o,a]=Ux(n);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function gS(i,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=Eg(t[0]),t.length>1&&(n=Eg(t[t.length-1]))):t&&(e=Eg(t)),e||n?new jz(i,e,n):null}let jz=(()=>{class i{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let s=i.initialStylesByElement.get(e);s||i.initialStylesByElement.set(e,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&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(ms(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ms(this._element,this._endStyles),this._endStyles=null),In(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function Eg(i){let t=null;const e=Object.keys(i);for(let n=0;nthis._handleCallback(l)}apply(){(function Wz(i,t){const e=Tg(i,"").trim();let n=0;e.length&&(n=function Yz(i,t){let e=0;for(let n=0;n=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),CS(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function qz(i,t){const n=Tg(i,"").split(","),r=kg(n,t);r>=0&&(n.splice(r,1),pu(i,"",n.join(",")))}(this._element,this._name))}}function yS(i,t,e){pu(i,"PlayState",e,bS(i,t))}function bS(i,t){const e=Tg(i,"");return e.indexOf(",")>0?kg(e.split(","),t):kg([e],t)}function kg(i,t){for(let e=0;e=0)return e;return-1}function CS(i,t,e){e?i.removeEventListener(vS,t):i.addEventListener(vS,t)}function pu(i,t,e,n){const r=_S+t;if(null!=n){const s=i.style[r];if(s.length){const o=s.split(",");o[n]=e,e=o.join(",")}}i.style[r]=e}function Tg(i,t){return i.style[_S+t]||""}class DS{constructor(t,e,n,r,s,o,a,l){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Gz(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:mg(this.element,n))})}this.currentSnapshot=t}}class Zz extends Po{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Wx(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class MS{constructor(){this._count=0}validateStyleProperty(t){return og(t)}matchesElement(t,e){return!1}containsElement(t,e){return ag(t,e)}query(t,e,n){return lg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(a=>Wx(a));let r=`@keyframes ${e} {\n`,s="";n.forEach(a=>{s=" ";const l=parseFloat(a.offset);r+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(c=>{const d=a[c];switch(c){case"offset":return;case"easing":return void(d&&(r+=`${s}animation-timing-function: ${d};\n`));default:return void(r+=`${s}${c}: ${d};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(t,e,n,r,s,o=[],a){const l=o.filter(C=>C instanceof DS),c={};eS(n,r)&&l.forEach(C=>{let M=C.currentSnapshot;Object.keys(M).forEach(w=>c[w]=M[w])});const d=function e5(i){let t={};return i&&(Array.isArray(i)?i:[i]).forEach(n=>{Object.keys(n).forEach(r=>{"offset"==r||"easing"==r||(t[r]=n[r])})}),t}(e=tS(t,e,c));if(0==n)return new Zz(t,d);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function Jz(i){var t;const e=null===(t=i.getRootNode)||void 0===t?void 0:t.call(i);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const _=gS(t,e),v=new DS(t,e,u,n,r,s,d,_);return v.onDestroy(()=>function t5(i){i.parentNode.removeChild(i)}(h)),v}}class SS{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(t[n]=this._finished?e[n]:mg(this.element,n))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class n5{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ES().toString()),this._cssKeyframesDriver=new MS}validateStyleProperty(t){return og(t)}matchesElement(t,e){return!1}containsElement(t,e){return ag(t,e)}query(t,e,n){return lg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,s,o);const d={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(d.easing=s);const u={},h=o.filter(_=>_ instanceof SS);eS(n,r)&&h.forEach(_=>{let v=_.currentSnapshot;Object.keys(v).forEach(C=>u[C]=v[C])});const f=gS(t,e=tS(t,e=e.map(_=>Sr(_,!1)),u));return new SS(t,e,d,f)}}function ES(){return jx()&&Element.prototype.animate||{}}let s5=(()=>{class i extends Fx{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ji.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Nx(e):e;return kS(this._renderer,null,n,"register",[r]),new o5(n,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(D(Ha),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class o5 extends class $3{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new a5(this._id,t,e||{},this._renderer)}}class a5{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return kS(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function kS(i,t,e,n,r){return i.setProperty(t,`@@${e}:${n}`,r)}const TS="@.disabled";let l5=(()=>{class i{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let d=this._rendererCache.get(s);return d||(d=new AS("",s,this.engine),this._rendererCache.set(s,d)),d}const o=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(o,a,e,d.name,d)};return n.data.animation.forEach(l),new c5(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(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([n,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 i.\u0275fac=function(e){return new(e||i)(D(Ha),D(hu),D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();class AS{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==TS?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class c5 extends AS{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==TS?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function d5(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function u5(i){const t=i.indexOf(".");return[i.substring(0,t),i.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(t,e,n)}}let h5=(()=>{class i extends hu{constructor(e,n,r){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(cg),D(Cg))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const Ft=new S("AnimationModuleType"),IS=[{provide:Fx,useClass:s5},{provide:Cg,useFactory:function f5(){return new _z}},{provide:hu,useClass:h5},{provide:Ha,useFactory:function m5(i,t,e){return new l5(i,t,e)},deps:[_d,hu,te]}],RS=[{provide:cg,useFactory:function p5(){return function r5(){return"function"==typeof ES()}()?new n5:new MS}},{provide:Ft,useValue:"BrowserAnimations"},...IS],g5=[{provide:cg,useClass:qx},{provide:Ft,useValue:"NoopAnimations"},...IS];let _5=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?g5:RS}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:RS,imports:[kw]}),i})();function v5(i,t){if(1&i&&U(0,"mat-pseudo-checkbox",4),2&i){const e=ce();E("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function y5(i,t){if(1&i&&(m(0,"span",5),y(1),g()),2&i){const e=ce();b(1),Ze("(",e.group.label,")")}}const b5=["*"],D5=new S("mat-sanity-checks",{providedIn:"root",factory:function C5(){return!0}});let H=(()=>{class i{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Vm()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(D(Px),D(D5,8),D(ie))},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Io],Io]}),i})();function _s(i){return class extends i{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Y(t)}}}function Er(i,t){return class extends i{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function rr(i){return class extends i{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Y(t)}}}function vs(i,t=0){return class extends i{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qt(e):this.defaultTabIndex}}}function Rg(i){return class extends i{constructor(...t){super(...t),this.stateChanges=new O,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}const w5=new S("MAT_DATE_LOCALE",{providedIn:"root",factory:function M5(){return Dc(Wn)}});class Rn{constructor(){this._localeChanges=new O,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),r=this.isValid(e);return n&&r?!this.compareDate(t,e):n==r}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Og=new S("mat-date-formats"),x5=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Pg(i,t){const e=Array(i);for(let n=0;n{class i extends Rn{constructor(e,n){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Pg(12,r=>this._format(n,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Pg(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){const n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Pg(7,r=>this._format(n,new Date(2017,0,r+1)))}getYearName(e){const n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,r){let s=this._createDateWithOverflow(e,n,r);return s.getMonth(),s}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},n),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,12*n)}addCalendarMonths(e,n){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+n)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(x5.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,n,r){const s=new Date;return s.setFullYear(e,n,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_format(e,n){const r=new Date;return r.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),r.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(D(w5,8),D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})();const E5={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let k5=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[{provide:Rn,useClass:S5}],imports:[[To]]}),i})(),T5=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[{provide:Og,useValue:E5}],imports:[[k5]]}),i})(),Lo=(()=>{class i{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),mu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})();class R5{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const PS={enterDuration:225,exitDuration:150},Fg=rn({passive:!0}),FS=["mousedown","touchstart"],NS=["mouseup","mouseleave","touchend","touchcancel"];class LS{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=dt(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},PS),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=n.radius||function F5(i,t,e){const n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-o+"px",d.style.top=l-o+"px",d.style.height=2*o+"px",d.style.width=2*o+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d),function P5(i){window.getComputedStyle(i).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new R5(this,d,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const h=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!h||!this._isPointerDown)&&u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,r=Object.assign(Object.assign({},PS),t.config.animation);n.style.transitionDuration=`${r.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=dt(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(FS))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(NS),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Zm(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,Fg)})})}_removeTriggerEvents(){this._triggerElement&&(FS.forEach(t=>{this._triggerElement.removeEventListener(t,this,Fg)}),this._pointerUpEventsRegistered&&NS.forEach(t=>{this._triggerElement.removeEventListener(t,this,Fg)}))}}const BS=new S("mat-ripple-global-options");let On=(()=>{class i{constructor(e,n,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new LS(this,n,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(te),p(_t),p(BS,8),p(Ft,8))},i.\u0275dir=x({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Ce("mat-ripple-unbounded",n.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"]}),i})(),on=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H,To],H]}),i})(),VS=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,n){2&e&&Ce("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,n){},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}),i})(),Ng=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H]]}),i})();const HS=new S("MAT_OPTION_PARENT_COMPONENT"),jS=new S("MatOptgroup");let N5=0;class zS{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let L5=(()=>{class i{constructor(e,n,r,s){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+N5++,this.onSelectionChange=new q,this._stateChanges=new O}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(e){this._disabled=Y(e)}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(e,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ii(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new zS(this,e))}}return i.\u0275fac=function(e){qr()},i.\u0275dir=x({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Lg=(()=>{class i extends L5{constructor(e,n,r,s){super(e,n,r,s)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(st),p(HS,8),p(jS,8))},i.\u0275cmp=re({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,n){1&e&&R("click",function(){return n._selectViaInteraction()})("keydown",function(s){return n._handleKeydown(s)}),2&e&&(Ai("id",n.id),X("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),Ce("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[I],ngContentSelectors:b5,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(e,n){1&e&&(Ot(),K(0,v5,1,2,"mat-pseudo-checkbox",0),m(1,"span",1),Ne(2),g(),K(3,y5,2,1,"span",2),U(4,"div",3)),2&e&&(E("ngIf",n.multiple),b(3),E("ngIf",n.group&&n.group._inert),b(1),E("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[Qn,On,VS],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}),i})();function Bg(i,t,e){if(e.length){let n=t.toArray(),r=e.toArray(),s=0;for(let o=0;o{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[on,Mt,H,Ng]]}),i})();function B5(i,t){}class Vg{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const V5={dialogContainer:Je("dialogContainer",[de("void, exit",V({opacity:0,transform:"scale(0.7)"})),de("enter",V({transform:"none"})),be("* => enter",Me("150ms cubic-bezier(0, 0, 0.2, 1)",V({transform:"none",opacity:1}))),be("* => void, * => exit",Me("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",V({opacity:0})))])};let H5=(()=>{class i extends Wd{constructor(e,n,r,s,o,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=n,this._changeDetectorRef=r,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._focusMonitor=c,this._animationStateChanged=new q,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(d)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const n=Bm(),r=this._elementRef.nativeElement;(!n||n===this._document.body||n===r||r.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Bm())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=Bm();return e===n||e.contains(n)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(N3),p(st),p(ie,8),p(Vg),p(Ex),p(te),p(ir))},i.\u0275dir=x({type:i,viewQuery:function(e,n){if(1&e&&Be(qd,7),2&e){let r;$(r=G())&&(n._portalOutlet=r.first)}},features:[I]}),i})(),j5=(()=>{class i extends H5{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:n}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}_onAnimationStart({toState:e,totalTime:n}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:n})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275cmp=re({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,n){1&e&&Vc("@dialogContainer.start",function(s){return n._onAnimationStart(s)})("@dialogContainer.done",function(s){return n._onAnimationDone(s)}),2&e&&(Ai("id",n._id),X("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),jc("@dialogContainer",n._state))},features:[I],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&K(0,B5,0,0,"ng-template",0)},directives:[qd],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[V5.dialogContainer]}}),i})(),z5=0;class kr{constructor(t,e,n="mat-dialog-"+z5++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new O,this._afterClosed=new O,this._beforeClosed=new O,this._state=0,e._id=n,e._animationStateChanged.pipe(xt(r=>"opened"===r.state),We(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(xt(r=>"closed"===r.state),We(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(xt(r=>27===r.keyCode&&!this.disableClose&&!ii(r))).subscribe(r=>{r.preventDefault(),Hg(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Hg(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(xt(e=>"closing"===e.state),We(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Hg(i,t,e){return void 0!==i._containerInstance&&(i._containerInstance._closeInteractionType=t),i.close(e)}const Bo=new S("MatDialogData"),U5=new S("mat-dialog-default-options"),$S=new S("mat-dialog-scroll-strategy"),G5={provide:$S,deps:[Ni],useFactory:function $5(i){return()=>i.scrollStrategies.block()}};let W5=(()=>{class i{constructor(e,n,r,s,o,a,l,c,d,u){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=d,this._animationMode=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O,this._afterOpenedAtThisLevel=new O,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=tl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(nn(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,n){if(n=function q5(i,t){return Object.assign(Object.assign({},t),i)}(n,this._defaultOptions||new Vg),n.id&&this.getDialogById(n.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(n),s=this._attachDialogContainer(r,n);if("NoopAnimations"!==this._animationMode){const a=s._animationStateChanged.subscribe(l=>{"opening"===l.state&&(this._dialogAnimatingOpen=!0),"opened"===l.state&&(this._dialogAnimatingOpen=!1,a.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Te),this._animationStateSubscriptions.add(a)}const o=this._attachDialogContent(e,s,r,n);return this._lastDialogRef=o,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),s._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const n=this._getOverlayConfig(e);return this._overlay.create(n)}_getOverlayConfig(e){const n=new yl({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachDialogContainer(e,n){const s=Ge.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Vg,useValue:n}]}),o=new gl(this._dialogContainerType,n.viewContainerRef,s,n.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,n,r,s){const o=new this._dialogRefConstructor(r,n,s.id);if(e instanceof at)n.attachTemplatePortal(new _l(e,null,{$implicit:s.data,dialogRef:o}));else{const a=this._createInjector(s,o,n),l=n.attachComponentPortal(new gl(e,s.viewContainerRef,a));o.componentInstance=l.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,n,r){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:n}];return e.direction&&(!s||!s.get(sn,null,ae.Optional))&&o.push({provide:sn,useValue:{value:e.direction,change:Q()}}),Ge.create({parent:s||this._injector,providers:o})}_removeOpenDialog(e){const n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){let s=n[r];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return i.\u0275fac=function(e){qr()},i.\u0275dir=x({type:i}),i})(),Vo=(()=>{class i extends W5{constructor(e,n,r,s,o,a,l,c){super(e,n,s,a,l,o,kr,j5,Bo,c)}}return i.\u0275fac=function(e){return new(e||i)(D(Ni),D(Ge),D(Do,8),D(U5,8),D($S),D(i,12),D(qm),D(Ft,8))},i.\u0275prov=A({token:i,factory:i.\u0275fac}),i})(),Y5=0,_u=(()=>{class i{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=GS(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){Hg(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return i.\u0275fac=function(e){return new(e||i)(p(kr,8),p(W),p(Vo))},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&R("click",function(s){return n._onButtonClick(s)}),2&e&&X("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ye]}),i})(),xl=(()=>{class i{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-dialog-title-"+Y5++}ngOnInit(){this._dialogRef||(this._dialogRef=GS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(p(kr,8),p(W),p(Vo))},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,n){2&e&&Ai("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),Sl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),El=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),i})();function GS(i,t){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(n=>n.id===e.id):null}let Q5=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Vo,G5],imports:[[tr,er,H],H]}),i})();const WS=["mat-button",""],qS=["*"],X5=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],J5=Er(_s(rr(class{constructor(i){this._elementRef=i}})));let Pn=(()=>{class i extends J5{constructor(e,n,r){super(e),this._focusMonitor=n,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of X5)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,n){e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(n=>this._getHostElement().hasAttribute(n))}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(ir),p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,n){if(1&e&&Be(On,5),2&e){let r;$(r=G())&&(n.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,n){2&e&&(X("disabled",n.disabled||null),Ce("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[I],attrs:WS,ngContentSelectors:qS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,n){1&e&&(Ot(),m(0,"span",0),Ne(1),g(),U(2,"span",1),U(3,"span",2)),2&e&&(b(2),Ce("mat-button-ripple-round",n.isRoundButton||n.isIconButton),E("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[On],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),i})(),jg=(()=>{class i extends Pn{constructor(e,n,r){super(n,e,r)}_haltDisabledEvents(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}return i.\u0275fac=function(e){return new(e||i)(p(ir),p(W),p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,n){1&e&&R("click",function(s){return n._haltDisabledEvents(s)}),2&e&&(X("tabindex",n.disabled?-1:n.tabIndex||0)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),Ce("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[I],attrs:WS,ngContentSelectors:qS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,n){1&e&&(Ot(),m(0,"span",0),Ne(1),g(),U(2,"span",1),U(3,"span",2)),2&e&&(b(2),Ce("mat-button-ripple-round",n.isRoundButton||n.isIconButton),E("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[On],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),i})(),Ho=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[on,H],H]}),i})();function eU(i,t){if(1&i&&(m(0,"div"),m(1,"div"),y(2),g(),g()),2&i){const e=t.$implicit;b(2),Pe(e)}}let zg=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Bo))},i.\u0275cmp=re({type:i,selectors:[["confirm-dialog"]],decls:9,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","warn",3,"mat-dialog-close"],["mat-button","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1),g(),m(2,"div",1),K(3,eU,3,1,"div",2),g(),m(4,"div",3),m(5,"button",4),y(6,"Confirm"),g(),m(7,"button",5),y(8,"Cancel"),g(),g()),2&e&&(b(1),Pe(n.data.title),b(2),E("ngForOf",n.data.messages),b(2),E("mat-dialog-close",!0),b(2),E("mat-dialog-close",!1))},directives:[xl,Sl,Xr,El,Pn,_u],styles:[""]}),i})();const YS=new Set;let jo,tU=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nU}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function iU(i){if(!YS.has(i))try{jo||(jo=document.createElement("style"),jo.setAttribute("type","text/css"),document.head.appendChild(jo)),jo.sheet&&(jo.sheet.insertRule(`@media ${i} {body{ }}`,0),YS.add(i))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(D(_t))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function nU(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let rU=(()=>{class i{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new O}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return QS(Bd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=Pw(QS(Bd(e)).map(o=>this._registerQuery(o).observable));return s=el(s.pipe(We(1)),s.pipe(vx(1),Ym(0))),s.pipe(ue(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),s={observable:new Ie(o=>{const a=l=>this._zone.run(()=>o.next(l));return n.addListener(a),()=>{n.removeListener(a)}}).pipe(nn(n),ue(({matches:o})=>({query:e,matches:o})),Re(this._destroySubject)),mql:n};return this._queries.set(e,s),s}}return i.\u0275fac=function(e){return new(e||i)(D(tU),D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function QS(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function oU(i,t){if(1&i){const e=Yi();m(0,"div",1),m(1,"button",2),R("click",function(){return li(e),ce().action()}),y(2),g(),g()}if(2&i){const e=ce();b(2),Pe(e.data.action)}}function aU(i,t){}const KS=new S("MatSnackBarData");class vu{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const lU=Math.pow(2,31)-1;class Ug{constructor(t,e){this._overlayRef=e,this._afterDismissed=new O,this._afterOpened=new O,this._onAction=new O,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,lU))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let cU=(()=>{class i{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return i.\u0275fac=function(e){return new(e||i)(p(Ug),p(KS))},i.\u0275cmp=re({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,n){1&e&&(m(0,"span"),y(1),g(),K(2,oU,3,1,"div",0)),2&e&&(b(1),Pe(n.data.message),b(1),E("ngIf",n.hasAction))},directives:[Qn,Pn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),i})();const dU={snackBarState:Je("state",[de("void, hidden",V({transform:"scale(0.8)",opacity:0})),de("visible",V({transform:"scale(1)",opacity:1})),be("* => visible",Me("150ms cubic-bezier(0, 0, 0.2, 1)")),be("* => void, * => hidden",Me("75ms cubic-bezier(0.4, 0.0, 1, 1)",V({opacity:0})))])};let uU=(()=>{class i extends Wd{constructor(e,n,r,s,o){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=s,this.snackBarConfig=o,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new O,this._onExit=new O,this._onEnter=new O,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),this._live="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:n,toState:r}=e;if(("void"===r&&"void"!==n||"hidden"===r)&&this._completeExit(),"visible"===r){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(We(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(r=>e.classList.add(r)):e.classList.add(n)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return i.\u0275fac=function(e){return new(e||i)(p(te),p(W),p(st),p(_t),p(vu))},i.\u0275cmp=re({type:i,selectors:[["snack-bar-container"]],viewQuery:function(e,n){if(1&e&&Be(qd,7),2&e){let r;$(r=G())&&(n._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,n){1&e&&Vc("@state.done",function(s){return n.onAnimationEnd(s)}),2&e&&jc("@state",n._animationState)},features:[I],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(m(0,"div",0),K(1,aU,0,0,"ng-template",1),g(),U(2,"div")),2&e&&(b(2),X("aria-live",n._live)("role",n._role))},directives:[qd],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[dU.snackBarState]}}),i})(),ZS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[tr,er,Mt,Ho,H],H]}),i})();const hU=new S("mat-snack-bar-default-options",{providedIn:"root",factory:function pU(){return new vu}});let kl=(()=>{class i{constructor(e,n,r,s,o,a){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=s,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=cU,this.snackBarContainerComponent=uU,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){const s=Object.assign(Object.assign({},this._defaultConfig),r);return s.data={message:e,action:n},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){const s=Ge.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:vu,useValue:n}]}),o=new gl(this.snackBarContainerComponent,n.viewContainerRef,s),a=e.attach(o);return a.instance.snackBarConfig=n,a.instance}_attach(e,n){const r=Object.assign(Object.assign(Object.assign({},new vu),this._defaultConfig),n),s=this._createOverlay(r),o=this._attachSnackBarContainer(s,r),a=new Ug(o,s);if(e instanceof at){const l=new _l(e,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new gl(e,void 0,l),d=o.attachComponentPortal(c);a.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Re(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){const n=new yl;n.direction=e.direction;let r=this._overlay.position().global();const s="rtl"===e.direction,o="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!s||"end"===e.horizontalPosition&&s,a=!o&&"center"!==e.horizontalPosition;return o?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){return Ge.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Ug,useValue:n},{provide:KS,useValue:e.data}]})}}return i.\u0275fac=function(e){return new(e||i)(D(Ni),D(Ix),D(Ge),D(rU),D(i,12),D(hU))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:ZS}),i})();const fU=["*",[["mat-card-footer"]]],mU=["*","mat-card-footer"];let $g=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),i})(),yu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),i})(),bu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),i})(),Gg=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,n){2&e&&Ce("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),i})(),Cu=(()=>{class i{constructor(e){this._animationMode=e}}return i.\u0275fac=function(e){return new(e||i)(p(Ft,8))},i.\u0275cmp=re({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,n){2&e&&Ce("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:mU,decls:2,vars:0,template:function(e,n){1&e&&(Ot(fU),Ne(0),Ne(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),i})(),XS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})(),gU=0;const _U=_s(class{}),JS="mat-badge-content";let vU=(()=>{class i extends _U{constructor(e,n,r,s,o){super(),this._ngZone=e,this._elementRef=n,this._ariaDescriber=r,this._renderer=s,this._animationMode=o,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=gU++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Y(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Y(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),n="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(JS),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(n)})}):e.classList.add(n),e}_updateRenderedContent(e){const n=`${null!=e?e:""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),e&&n.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${JS}`);for(const n of Array.from(e))n!==this._badgeElement&&n.remove()}}return i.\u0275fac=function(e){return new(e||i)(p(te),p(W),p(w3),p(Cn),p(Ft,8))},i.\u0275dir=x({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,n){2&e&&Ce("mat-badge-overlap",n.overlap)("mat-badge-above",n.isAbove())("mat-badge-below",!n.isAbove())("mat-badge-before",!n.isAfter())("mat-badge-after",n.isAfter())("mat-badge-small","small"===n.size)("mat-badge-medium","medium"===n.size)("mat-badge-large","large"===n.size)("mat-badge-hidden",n.hidden||!n.content)("mat-badge-disabled",n.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[I]}),i})(),yU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Cl,H],H]}),i})();const bU=["connectionContainer"],CU=["inputContainer"],DU=["label"];function wU(i,t){1&i&&(lo(0),m(1,"div",14),U(2,"div",15),U(3,"div",16),U(4,"div",17),g(),m(5,"div",18),U(6,"div",15),U(7,"div",16),U(8,"div",17),g(),co())}function MU(i,t){if(1&i){const e=Yi();m(0,"div",19),R("cdkObserveContent",function(){return li(e),ce().updateOutlineGap()}),Ne(1,1),g()}2&i&&E("cdkObserveContentDisabled","outline"!=ce().appearance)}function xU(i,t){if(1&i&&(lo(0),Ne(1,2),m(2,"span"),y(3),g(),co()),2&i){const e=ce(2);b(3),Pe(e._control.placeholder)}}function SU(i,t){1&i&&Ne(0,3,["*ngSwitchCase","true"])}function EU(i,t){1&i&&(m(0,"span",23),y(1," *"),g())}function kU(i,t){if(1&i){const e=Yi();m(0,"label",20,21),R("cdkObserveContent",function(){return li(e),ce().updateOutlineGap()}),K(2,xU,4,1,"ng-container",12),K(3,SU,1,0,"ng-content",12),K(4,EU,2,0,"span",22),g()}if(2&i){const e=ce();Ce("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),E("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),X("for",e._control.id)("aria-owns",e._control.id),b(2),E("ngSwitchCase",!1),b(1),E("ngSwitchCase",!0),b(1),E("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function TU(i,t){1&i&&(m(0,"div",24),Ne(1,4),g())}function AU(i,t){if(1&i&&(m(0,"div",25),U(1,"span",26),g()),2&i){const e=ce();b(1),Ce("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function IU(i,t){1&i&&(m(0,"div"),Ne(1,5),g()),2&i&&E("@transitionMessages",ce()._subscriptAnimationState)}function RU(i,t){if(1&i&&(m(0,"div",30),y(1),g()),2&i){const e=ce(2);E("id",e._hintLabelId),b(1),Pe(e.hintLabel)}}function OU(i,t){if(1&i&&(m(0,"div",27),K(1,RU,2,2,"div",28),Ne(2,6),U(3,"div",29),Ne(4,7),g()),2&i){const e=ce();E("@transitionMessages",e._subscriptAnimationState),b(1),E("ngIf",e.hintLabel)}}const PU=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],FU=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],NU=new S("MatError"),LU={transitionMessages:Je("transitionMessages",[de("enter",V({opacity:1,transform:"translateY(0%)"})),be("void => enter",[V({opacity:0,transform:"translateY(-5px)"}),Me("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Tl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i}),i})();const BU=new S("MatHint");let Tr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-label"]]}),i})(),VU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["mat-placeholder"]]}),i})();const HU=new S("MatPrefix"),jU=new S("MatSuffix");let eE=0;const UU=Er(class{constructor(i){this._elementRef=i}},"primary"),$U=new S("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Al=new S("MatFormField");let zo=(()=>{class i extends UU{constructor(e,n,r,s,o,a,l){super(e),this._changeDetectorRef=n,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new O,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+eE++,this._labelId="mat-form-field-label-"+eE++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const n=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&n!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Y(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(nn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Re(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Re(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),jt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(nn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(nn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Re(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,os(this._label.nativeElement,"transitionend").pipe(We(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let n=0,r=0;const s=this._connectionContainerRef.nativeElement,o=s.querySelectorAll(".mat-form-field-outline-start"),a=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=s.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),d=e.children,u=this._getStartEnd(d[0].getBoundingClientRect());let h=0;for(let f=0;f0?.75*h+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,bl],H]}),i})();function iE(...i){const t=uv(i),{args:e,keys:n}=Rw(i),r=new Ie(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||s.next(n?Ow(n,a):a),s.complete())}))}});return t?r.pipe(nm(t)):r}let nE=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(p(Cn),p(W))},i.\u0275dir=x({type:i}),i})(),ys=(()=>{class i extends nE{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275dir=x({type:i,features:[I]}),i})();const kt=new S("NgValueAccessor"),WU={provide:kt,useExisting:_e(()=>Ar),multi:!0},YU=new S("CompositionEventMode");let Ar=(()=>{class i extends nE{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qU(){const i=Mn()?Mn().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(p(Cn),p(W),p(YU,8))},i.\u0275dir=x({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&R("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},features:[z([WU]),I]}),i})();function Ir(i){return null==i||0===i.length}function sE(i){return null!=i&&"number"==typeof i.length}const St=new S("NgValidators"),Rr=new S("NgAsyncValidators"),QU=/^(?=.{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 wu{static min(t){return oE(t)}static max(t){return aE(t)}static required(t){return lE(t)}static requiredTrue(t){return function cE(i){return!0===i.value?null:{required:!0}}(t)}static email(t){return function dE(i){return Ir(i.value)||QU.test(i.value)?null:{email:!0}}(t)}static minLength(t){return function uE(i){return t=>Ir(t.value)||!sE(t.value)?null:t.value.lengthsE(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}(t)}static pattern(t){return function pE(i){if(!i)return Il;let t,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(Ir(n.value))return null;const r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return yE(t)}static composeAsync(t){return bE(t)}}function oE(i){return t=>{if(Ir(t.value)||Ir(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Ir(t.value)||Ir(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function lE(i){return Ir(i.value)?{required:!0}:null}function Il(i){return null}function fE(i){return null!=i}function mE(i){const t=Pa(i)?vt(i):i;return Jp(t),t}function gE(i){let t={};return i.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function _E(i,t){return t.map(e=>e(i))}function vE(i){return i.map(t=>function KU(i){return!i.validate}(t)?t:e=>t.validate(e))}function yE(i){if(!i)return null;const t=i.filter(fE);return 0==t.length?null:function(e){return gE(_E(e,t))}}function Wg(i){return null!=i?yE(vE(i)):null}function bE(i){if(!i)return null;const t=i.filter(fE);return 0==t.length?null:function(e){return iE(_E(e,t).map(mE)).pipe(ue(gE))}}function qg(i){return null!=i?bE(vE(i)):null}function CE(i,t){return null===i?[t]:Array.isArray(i)?[...i,t]:[i,t]}function DE(i){return i._rawValidators}function wE(i){return i._rawAsyncValidators}function Yg(i){return i?Array.isArray(i)?i:[i]:[]}function Mu(i,t){return Array.isArray(i)?i.includes(t):i===t}function ME(i,t){const e=Yg(t);return Yg(i).forEach(r=>{Mu(e,r)||e.push(r)}),e}function xE(i,t){return Yg(t).filter(e=>!Mu(i,e))}class SE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Wg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=qg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class an extends SE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kt extends SE{get formDirective(){return null}get path(){return null}}let Uo=(()=>{class i extends class EE{constructor(t){this._cd=t}is(t){var e,n,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(p(an,2))},i.\u0275dir=x({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Ce("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[I]}),i})();function Rl(i,t){Zg(i,t),t.valueAccessor.writeValue(i.value),function o4(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&TE(i,t)})}(i,t),function l4(i,t){const e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,t),function a4(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&TE(i,t),"submit"!==i.updateOn&&i.markAsTouched()})}(i,t),function s4(i,t){if(t.valueAccessor.setDisabledState){const e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,t)}function Eu(i,t,e=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Tu(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ku(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Zg(i,t){const e=DE(i);null!==t.validator?i.setValidators(CE(e,t.validator)):"function"==typeof e&&i.setValidators([e]);const n=wE(i);null!==t.asyncValidator?i.setAsyncValidators(CE(n,t.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);const r=()=>i.updateValueAndValidity();ku(t._rawValidators,r),ku(t._rawAsyncValidators,r)}function Tu(i,t){let e=!1;if(null!==i){if(null!==t.validator){const r=DE(i);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(null!==t.asyncValidator){const r=wE(i);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}const n=()=>{};return ku(t._rawValidators,n),ku(t._rawAsyncValidators,n),e}function TE(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function AE(i,t){Zg(i,t)}function IE(i,t){i._syncPendingControls(),t.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Au(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}const Ol="VALID",Iu="INVALID",$o="PENDING",Pl="DISABLED";function t_(i){return(n_(i)?i.validators:i)||null}function RE(i){return Array.isArray(i)?Wg(i):i||null}function i_(i,t){return(n_(t)?t.asyncValidators:i)||null}function OE(i){return Array.isArray(i)?qg(i):i||null}function n_(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}const PE=i=>i instanceof o_,r_=i=>i instanceof a_;function FE(i){return PE(i)?i.value:i.getRawValue()}function NE(i,t){const e=r_(i),n=i.controls;if(!(e?Object.keys(n):n).length)throw new Nt(1e3,"");if(!n[t])throw new Nt(1001,"")}function LE(i,t){r_(i),i._forEachChild((n,r)=>{if(void 0===t[r])throw new Nt(1002,"")})}class s_{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=RE(this._rawValidators),this._composedAsyncValidatorFn=OE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ol}get invalid(){return this.status===Iu}get pending(){return this.status==$o}get disabled(){return this.status===Pl}get enabled(){return this.status!==Pl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=RE(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=OE(t)}addValidators(t){this.setValidators(ME(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ME(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(xE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(xE(t,this._rawAsyncValidators))}hasValidator(t){return Mu(this._rawValidators,t)}hasAsyncValidator(t){return Mu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=$o,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Pl,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ol,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ol||this.status===$o)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pl:Ol}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=$o,this._hasOwnPendingAsyncValidator=!0;const e=mE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function h4(i,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let n=i;return t.forEach(r=>{n=r_(n)?n.controls.hasOwnProperty(r)?n.controls[r]:null:(i=>i instanceof f4)(n)&&n.at(r)||null}),n}(this,t,".")}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?Pl:this.errors?Iu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($o)?$o:this._anyControlsHaveStatus(Iu)?Iu:Ol}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){n_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class o_ extends s_{constructor(t=null,e,n){super(t_(e),i_(n,e)),this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Au(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Au(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class a_ extends s_{constructor(t,e,n){super(t_(e),i_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){LE(this,t),Object.keys(t).forEach(n=>{NE(this,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=FE(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class f4 extends s_{constructor(t,e,n){super(t_(e),i_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){LE(this,t),t.forEach((n,r)=>{NE(this,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>FE(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const m4={provide:Kt,useExisting:_e(()=>Go)},Fl=(()=>Promise.resolve(null))();let Go=(()=>{class i extends Kt{constructor(e,n){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new q,this.form=new a_({},Wg(e),qg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Fl.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Rl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Fl.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),Au(this._directives,e)})}addFormGroup(e){Fl.then(()=>{const n=this._findContainer(e.path),r=new a_({});AE(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Fl.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Fl.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,IE(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(p(St,10),p(Rr,10))},i.\u0275dir=x({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&R("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[z([m4]),I]}),i})();const _4={provide:an,useExisting:_e(()=>bs)},HE=(()=>Promise.resolve(null))();let bs=(()=>{class i extends an{constructor(e,n,r,s){super(),this.control=new o_,this._registered=!1,this.update=new q,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function Jg(i,t){if(!t)return null;let e,n,r;return Array.isArray(t),t.forEach(s=>{s.constructor===Ar?e=s:function u4(i){return Object.getPrototypeOf(i.constructor)===ys}(s)?n=s:r=s}),r||n||e||null}(0,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function Xg(i,t){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function Su(i,t){return[...t.path,i]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Rl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){HE.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;HE.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return i.\u0275fac=function(e){return new(e||i)(p(Kt,9),p(St,10),p(Rr,10),p(kt,10))},i.\u0275dir=x({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[z([_4]),I,Ye]}),i})();const y4={provide:kt,useExisting:_e(()=>l_),multi:!0};let l_=(()=>{class i extends ys{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275dir=x({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&R("input",function(s){return n.onChange(s.target.value)})("blur",function(){return n.onTouched()})},features:[z([y4]),I]}),i})(),jE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const c_=new S("NgModelWithFormControlWarning"),M4={provide:Kt,useExisting:_e(()=>Wo)};let Wo=(()=>{class i extends Kt{constructor(e,n){super(),this.validators=e,this.asyncValidators=n,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new q,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const n=this.form.get(e.path);return Rl(n,e),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Eu(e.control||null,e,!1),Au(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,IE(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(Eu(n||null,e),PE(r)&&(Rl(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);AE(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function c4(i,t){return Tu(i,t)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zg(this.form,this),this._oldForm&&Tu(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(p(St,10),p(Rr,10))},i.\u0275dir=x({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&R("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[z([M4]),I,Ye]}),i})();function KE(i){return"number"==typeof i?i:parseFloat(i)}let Ru=(()=>{class i{constructor(){this._validator=Il}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Il,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,features:[Ye]}),i})();const P4={provide:St,useExisting:_e(()=>f_),multi:!0};let f_=(()=>{class i extends Ru{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>KE(e),this.createValidator=e=>aE(e)}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275dir=x({type:i,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&X("max",n._enabled?n.max:null)},inputs:{max:"max"},features:[z([P4]),I]}),i})();const F4={provide:St,useExisting:_e(()=>m_),multi:!0};let m_=(()=>{class i extends Ru{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>KE(e),this.createValidator=e=>oE(e)}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275dir=x({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&X("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[z([F4]),I]}),i})();const N4={provide:St,useExisting:_e(()=>Nl),multi:!0};let Nl=(()=>{class i{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?lE(e):null}registerOnValidatorChange(e){this._onChange=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=x({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&X("required",n.required?"":null)},inputs:{required:"required"},features:[z([N4])]}),i})(),tk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[jE]]}),i})(),z4=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[tk]}),i})(),U4=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:c_,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[tk]}),i})();const ik=rn({passive:!0});let $4=(()=>{class i{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return cn;const n=dt(e),r=this._monitoredElements.get(n);if(r)return r.subject;const s=new O,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&n.classList.contains(o)&&(n.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(n.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",a,ik),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:s,unlisten:()=>{n.removeEventListener("animationstart",a,ik)}}),s}stopMonitoring(e){const n=dt(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}}return i.\u0275fac=function(e){return new(e||i)(D(_t),D(te))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[To]]}),i})();const rk=new S("MAT_INPUT_VALUE_ACCESSOR"),G4=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let W4=0;const q4=Rg(class{constructor(i,t,e,n){this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=e,this.ngControl=n}});let qo=(()=>{class i extends q4{constructor(e,n,r,s,o,a,l,c,d,u){super(a,s,o,r),this._elementRef=e,this._platform=n,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+W4++,this.focused=!1,this.stateChanges=new O,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(_=>nx().has(_));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",_=>{const v=_.target;!v.value&&0===v.selectionStart&&0===v.selectionEnd&&(v.setSelectionRange(1,1),v.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Y(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,n,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(n=this.ngControl)||void 0===n?void 0:n.control)||void 0===r?void 0:r.hasValidator(wu.required))&&void 0!==s&&s}set required(e){this._required=Y(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&nx().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Y(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,n;const r=(null===(n=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===n?void 0:n.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){G4.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(_t),p(an,10),p(Go,8),p(Wo,8),p(Lo),p(rk,10),p($4),p(te),p(Al,8))},i.\u0275dir=x({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,n){1&e&&R("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(Ai("disabled",n.disabled)("required",n.required),X("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),Ce("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[z([{provide:Tl,useExisting:i}]),I,Ye]}),i})(),Y4=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Lo],imports:[[nk,Du,H],nk,Du]}),i})();class Ll{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new O,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const K4=["trigger"],Z4=["panel"];function X4(i,t){if(1&i&&(m(0,"span",8),y(1),g()),2&i){const e=ce();b(1),Pe(e.placeholder)}}function J4(i,t){if(1&i&&(m(0,"span",12),y(1),g()),2&i){const e=ce(2);b(1),Pe(e.triggerValue)}}function e8(i,t){1&i&&Ne(0,0,["*ngSwitchCase","true"])}function t8(i,t){1&i&&(m(0,"span",9),K(1,J4,2,1,"span",10),K(2,e8,1,0,"ng-content",11),g()),2&i&&(E("ngSwitch",!!ce().customTrigger),b(2),E("ngSwitchCase",!0))}function n8(i,t){if(1&i){const e=Yi();m(0,"div",13),m(1,"div",14,15),R("@transformPanel.done",function(r){return li(e),ce()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return li(e),ce()._handleKeydown(r)}),Ne(3,1),g(),g()}if(2&i){const e=ce();E("@transformPanelWrap",void 0),b(1),JC("mat-select-panel ",e._getPanelTheme(),""),Wt("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),E("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const r8=[[["mat-select-trigger"]],"*"],s8=["mat-select-trigger","*"],ak={transformPanelWrap:Je("transformPanelWrap",[be("* => void",Bx("@transformPanel",[Lx()],{optional:!0}))]),transformPanel:Je("transformPanel",[de("void",V({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),de("showing",V({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),de("showing-multiple",V({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),be("void => *",Me("120ms cubic-bezier(0, 0, 0.2, 1)")),be("* => void",Me("100ms 25ms linear",V({opacity:0})))])};let lk=0;const dk=new S("mat-select-scroll-strategy"),c8=new S("MAT_SELECT_CONFIG"),d8={provide:dk,deps:[Ni],useFactory:function l8(i){return()=>i.scrollStrategies.reposition()}};class u8{constructor(t,e){this.source=t,this.value=e}}const h8=rr(vs(_s(Rg(class{constructor(i,t,e,n,r){this._elementRef=i,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}})))),p8=new S("MatSelectTrigger");let f8=(()=>{class i extends h8{constructor(e,n,r,s,o,a,l,c,d,u,h,f,_,v){var C,M,w;super(o,s,l,c,u),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=a,this._parentFormField=d,this._liveAnnouncer=_,this._defaultOptions=v,this._panelOpen=!1,this._compareWith=(T,P)=>T===P,this._uid="mat-select-"+lk++,this._triggerAriaLabelledBy=null,this._destroy=new O,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+lk++,this._panelDoneAnimatingStream=new O,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(w=null===(M=this._defaultOptions)||void 0===M?void 0:M.disableOptionCentering)&&void 0!==w&&w,this.ariaLabel="",this.optionSelectionChanges=tl(()=>{const T=this.options;return T?T.changes.pipe(nn(T),tn(()=>jt(...T.map(P=>P.onSelectionChange)))):this._ngZone.onStable.pipe(We(1),tn(()=>this.optionSelectionChanges))}),this.openedChange=new q,this._openedStream=this.openedChange.pipe(xt(T=>T),ue(()=>{})),this._closedStream=this.openedChange.pipe(xt(T=>!T),ue(()=>{})),this.selectionChange=new q,this.valueChange=new q,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,n,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(n=this.ngControl)||void 0===n?void 0:n.control)||void 0===r?void 0:r.hasValidator(wu.required))&&void 0!==s&&s}set required(e){this._required=Y(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Y(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Y(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qt(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Ll(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(yx(),Re(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Re(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(nn(null),Re(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,n;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(n=this._selectionModel)||void 0===n?void 0:n.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const n=e.keyCode,r=40===n||38===n||37===n||39===n,s=13===n||32===n,o=this._keyManager;if(!o.isTyping()&&s&&!ii(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,r=e.keyCode,s=40===r||38===r,o=n.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!n.activeItem||ii(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=n.activeItemIndex;n.onKeydown(e),this._multiple&&s&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==a&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(We(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectValue(n)),this._sortValues();else{const n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(s){return!1}});return n&&this._selectionModel.select(n),n}_initKeyManager(){this._keyManager=new M3(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Re(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Re(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=jt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Re(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),jt(...this.options.map(n=>n._stateChanges)).pipe(Re(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,n){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const n=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(n?n+" ":"")+this.ariaLabelledby:n}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const n=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(n?n+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(p(Ro),p(st),p(te),p(Lo),p(W),p(sn,8),p(Go,8),p(Wo,8),p(Al,8),p(an,10),At("tabindex"),p(dk),p(Ix),p(c8,8))},i.\u0275dir=x({type:i,viewQuery:function(e,n){if(1&e&&(Be(K4,5),Be(Z4,5),Be(gx,5)),2&e){let r;$(r=G())&&(n.trigger=r.first),$(r=G())&&(n.panel=r.first),$(r=G())&&(n._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[I,Ye]}),i})(),uk=(()=>{class i extends f8{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,n,r){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-n+s/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Re(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(We(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const n=Bg(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===n?0:function US(i,t,e,n){return ie+n?Math.max(0,i-n+t):e}((e+n)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new u8(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),s=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let c=this._selectionModel.selected[0]||this.options.first;o=c&&c.group?32:16}r||(o*=-1);const a=0-(e.left+o-(r?s:0)),l=e.right+o-n.width+(r?0:s);a>0?o+=a+8:l>0&&(o-=l+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,n,r){const s=this._getItemHeight(),o=(s-this._triggerRect.height)/2,a=Math.floor(256/s);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*s:this._scrollTop===r?(e-(this._getItemCount()-a))*s+(s-(this._getItemCount()*s-256)%s):n-s/2,Math.round(-1*l-o))}_checkOverlayWithinViewport(e){const n=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,o=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*n,256)-a-this._triggerRect.height;c>o?this._adjustPanelUp(c,o):a>s?this._adjustPanelDown(a,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,n){const r=Math.round(e-n);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,n,r){const s=Math.round(e-n);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),n=this._getItemCount(),r=Math.min(n*e,256),o=n*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=Bg(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,o),this._offsetY=this._calculateOverlayOffsetY(a,l,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),n=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-n+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=ge(i)))(n||i)}}(),i.\u0275cmp=re({type:i,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(Se(r,p8,5),Se(r,Lg,5),Se(r,jS,5)),2&e){let s;$(s=G())&&(n.customTrigger=s.first),$(s=G())&&(n.options=s),$(s=G())&&(n.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,n){1&e&&R("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(X("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),Ce("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[z([{provide:Tl,useExisting:i},{provide:HS,useExisting:i}]),I],ngContentSelectors:s8,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,n){if(1&e&&(Ot(r8),m(0,"div",0,1),R("click",function(){return n.toggle()}),m(3,"div",2),K(4,X4,2,1,"span",3),K(5,t8,3,2,"span",4),g(),m(6,"div",5),U(7,"div",6),g(),g(),K(8,n8,4,14,"ng-template",7),R("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=vn(1);X("aria-owns",n.panelOpen?n.id+"-panel":null),b(3),E("ngSwitch",n.empty),X("id",n._valueId),b(1),E("ngSwitchCase",!0),b(1),E("ngSwitchCase",!1),b(3),E("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[mx,Jr,Za,gx,dw,Ka],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ak.transformPanelWrap,ak.transformPanel]},changeDetection:0}),i})(),g_=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[d8],imports:[[Mt,tr,gu,H],Tn,Du,gu,H]}),i})();const m8=function(i){return{"expired-ca":i}};function g8(i,t){if(1&i){const e=Yi();m(0,"div",8),m(1,"mat-card",9),m(2,"mat-card-title",10),y(3),g(),m(4,"mat-card-subtitle"),y(5),g(),m(6,"mat-card-content"),y(7," CA ID: "),m(8,"strong",11),y(9),g(),U(10,"p"),y(11," Valid from "),m(12,"strong"),y(13),Dn(14,"date"),g(),y(15," -> "),m(16,"strong"),y(17),Dn(18,"date"),g(),U(19,"p"),y(20," Algorithms: "),m(21,"strong"),y(22),g(),U(23,"p"),g(),m(24,"mat-card-actions",12),m(25,"a",13),y(26,"Open"),g(),m(27,"button",14),R("click",function(){const s=li(e).$implicit;return ce().deleteCA(s.id,s.subject)}),y(28,"Delete"),g(),g(),g(),g()}if(2&i){const e=t.$implicit,n=ce();b(1),tf("matBadge",e.certCount),E("ngClass",Qr(16,m8,n.caService.expired(e))),b(2),Ze(" CN=",e.commonName," "),b(2),Pe(e.subject),b(4),Pe(e.id),b(4),Pe(wn(14,10,e.issueTime,"yyyy-MM-dd")),b(4),Pe(wn(18,13,36e5*e.validDays*24+e.issueTime,"yyyy-MM-dd")),b(5),ho("RSA",e.keyLength,"Bits with ",e.digestAlgorithm,""),b(3),Qi("routerLink","/cadetail/",e.id,"")}}function _8(i,t){1&i&&(m(0,"div",8),m(1,"mat-card"),m(2,"mat-card-title",10),y(3,"No Certificate Authorities Yet!"),g(),m(4,"mat-card-subtitle"),y(5,"Why don't you create one?"),g(),m(6,"mat-card-content"),y(7,' Just click the "Create New Certificate Authority" button above. '),g(),g(),g())}const Nu=".small-card[_ngcontent-%COMP%]{width:700px;padding:30px}.small-card-title[_ngcontent-%COMP%]{padding-left:30px;padding-top:30px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.expired-ca[_ngcontent-%COMP%]{background-color:#f2913d}.active-ca[_ngcontent-%COMP%]{background-color:#bef7dd}mat-form-field[_ngcontent-%COMP%]{padding:5px}";function v8(i,t){1&i&&(m(0,"div"),y(1,"Certificate Information"),g())}function y8(i,t){if(1&i&&(m(0,"div",9),m(1,"mat-card"),m(2,"mat-card-title",10),y(3),g(),m(4,"mat-card-subtitle"),m(5,"label",11),y(6),g(),g(),g(),g()),2&i){const e=t.$implicit;b(3),Pe(e.key),b(3),Pe(e.value)}}let b8=(()=>{class i{constructor(e,n,r,s,o){this.route=e,this.caService=n,this.location=r,this.dialog=s,this._snackBar=o,this.importCAData={cert:"",key:"",password:"changeit"},this.viewCertData={cert:"",info:new Map},this.createCAData={commonName:"",countryCode:"",state:"",city:"",organization:"",organizationUnit:"",validDays:"365",digestAlgorithm:"sha512",keyLength:"4096",password:"changeit"},this.calist=[]}ngOnInit(){this.getCAList()}deleteCA(e,n){this.dialog.open(zg,{width:"500px",data:{title:"Are you sure?",messages:["You are about to delete Certicate Authority with:",`Subject: ${n}`,`ID: ${e}`,"---------","This can't be undone."]}}).afterClosed().subscribe(s=>{s&&(console.log(`Deleting CA ${e}`),Pi(()=>this.caService.deleteCA(e),o=>rs(this._snackBar,"Failed to delete CA","Dismiss")).subscribe(o=>{o.id&&ss(this._snackBar,"Successfully deleted CA","Dismiss"),this.getCAList()}))})}openViewCertDialog(){this.dialog.open(w8,{width:"80%",data:this.viewCertData})}openImportDialog(){this.dialog.open(D8,{width:"800px",data:this.importCAData}).afterClosed().subscribe(n=>{n&&(console.log("The dialog was closed"),this.importCAData=n,console.log(JSON.stringify(n)),Pi(()=>this.caService.importCA(n),r=>rs(this._snackBar,"Failed to import CA","Dismiss")).subscribe(r=>{r.id&&ss(this._snackBar,"Successfully imported CA","Dismiss"),this.getCAList()}))})}openCreateDialog(){this.dialog.open(C8,{width:"500px",data:this.createCAData}).afterClosed().subscribe(n=>{n&&(console.log("The dialog was closed"),this.createCAData=n,console.log(JSON.stringify(n)),Pi(()=>this.caService.createCA(n),r=>rs(this._snackBar,"Failed to create CA","Dismiss")).subscribe(r=>{r.id&&ss(this._snackBar,"Successfully created CA","Dismiss"),this.getCAList()}))})}getCAList(){Pi(()=>this.caService.getCAList()).subscribe(e=>this.calist=e)}}return i.\u0275fac=function(e){return new(e||i)(p(Jn),p(Ld),p(Do),p(Vo),p(kl))},i.\u0275cmp=re({type:i,selectors:[["app-calist"]],decls:18,vars:2,consts:[[1,"small-card-title"],["routerLink","/"],["align","start"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","secondary",3,"click"],[1,"flex-container"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngFor","ngForOf"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngIf"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","fxFlex","20",1,"small-card"],["matBadgeSize","large",3,"ngClass","matBadge"],[2,"font-size","16px"],[2,"color","green"],["align","end"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click"]],template:function(e,n){1&e&&(m(0,"div"),m(1,"div",0),m(2,"a",1),y(3,"Home"),g(),g(),U(4,"p"),m(5,"div",0),m(6,"h1"),y(7,"Available Certificate Authorities"),g(),m(8,"mat-card-actions",2),m(9,"button",3),R("click",function(){return n.openCreateDialog()}),y(10,"Create New Certificate Authority"),g(),m(11,"button",3),R("click",function(){return n.openImportDialog()}),y(12,"Import Existing Certificate Authority"),g(),m(13,"button",4),R("click",function(){return n.openViewCertDialog()}),y(14,"Inspect Certificate Info"),g(),g(),g(),g(),m(15,"div",5),K(16,g8,29,18,"div",6),K(17,_8,8,0,"div",7),g()),2&e&&(b(16),E("ngForOf",n.calist),b(1),E("ngIf",0==n.calist.length))},directives:[Eo,Gg,Pn,Xr,Qn,Cu,Ka,vU,yu,bu,$g,jg],pipes:[hd],styles:[Nu]}),i})(),C8=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n}onNoClick(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Bo))},i.\u0275cmp=re({type:i,selectors:[["create-ca-dialog"]],decls:58,vars:11,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["matInput","","required","",3,"ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["required","",3,"value","valueChange"],["value","2048"],["value","4096"],["value","8192"],["value","sha256"],["value","sha512"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"mat-dialog-close"],["mat-button","",3,"click"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1,"Create a new CA"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Common Name"),g(),m(6,"input",3),R("ngModelChange",function(s){return n.data.commonName=s}),g(),g(),m(7,"mat-form-field",2),m(8,"mat-label"),y(9,"Country Code"),g(),m(10,"input",3),R("ngModelChange",function(s){return n.data.countryCode=s}),g(),g(),m(11,"mat-form-field",2),m(12,"mat-label"),y(13,"State"),g(),m(14,"input",4),R("ngModelChange",function(s){return n.data.state=s}),g(),g(),m(15,"mat-form-field",2),m(16,"mat-label"),y(17,"City"),g(),m(18,"input",4),R("ngModelChange",function(s){return n.data.city=s}),g(),g(),m(19,"mat-form-field",2),m(20,"mat-label"),y(21,"Organization"),g(),m(22,"input",3),R("ngModelChange",function(s){return n.data.organization=s}),g(),g(),m(23,"mat-form-field",2),m(24,"mat-label"),y(25,"Organization Unit"),g(),m(26,"input",4),R("ngModelChange",function(s){return n.data.organizationUnit=s}),g(),g(),m(27,"mat-form-field",2),m(28,"mat-label"),y(29,"Valid Days"),g(),m(30,"input",3),R("ngModelChange",function(s){return n.data.validDays=s}),g(),g(),m(31,"mat-form-field",2),m(32,"mat-label"),y(33,"Keystore Password(optional)"),g(),m(34,"input",4),R("ngModelChange",function(s){return n.data.password=s}),g(),g(),m(35,"mat-form-field",2),m(36,"mat-label"),y(37,"Key Length"),g(),m(38,"mat-select",5),R("valueChange",function(s){return n.data.keyLength=s}),m(39,"mat-option",6),y(40," RSA2048 Bit "),g(),m(41,"mat-option",7),y(42," RSA4096 Bit "),g(),m(43,"mat-option",8),y(44," RSA8192 Bit "),g(),g(),g(),m(45,"mat-form-field",2),m(46,"mat-label"),y(47,"Digest Algorithm"),g(),m(48,"mat-select",5),R("valueChange",function(s){return n.data.digestAlgorithm=s}),m(49,"mat-option",9),y(50," sha256 "),g(),m(51,"mat-option",10),y(52," sha512 "),g(),g(),g(),g(),m(53,"div",11),m(54,"button",12),y(55,"Create"),g(),m(56,"button",13),R("click",function(){return n.onNoClick()}),y(57,"Cancel"),g(),g()),2&e&&(b(6),E("ngModel",n.data.commonName),b(4),E("ngModel",n.data.countryCode),b(4),E("ngModel",n.data.state),b(4),E("ngModel",n.data.city),b(4),E("ngModel",n.data.organization),b(4),E("ngModel",n.data.organizationUnit),b(4),E("ngModel",n.data.validDays),b(4),E("ngModel",n.data.password),b(4),E("value",n.data.keyLength),b(10),E("value",n.data.digestAlgorithm),b(6),E("mat-dialog-close",n.data))},directives:[xl,Sl,zo,Tr,qo,Ar,Nl,Uo,bs,uk,Lg,El,Pn,_u],styles:[Nu]}),i})(),D8=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n}onNoClick(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Bo))},i.\u0275cmp=re({type:i,selectors:[["import-ca-dialog"]],decls:20,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["matInput","",3,"ngModel","ngModelChange"],["appearance","fill",2,"width","100%"],["matInput","","cols","200","rows","30",2,"font-family","Courier",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"mat-dialog-close"],["mat-button","",3,"click"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1,"Import Existing CA"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Keystore Password()"),g(),m(6,"input",3),R("ngModelChange",function(s){return n.data.password=s}),g(),g(),m(7,"mat-form-field",4),m(8,"mat-label"),y(9,"Certificate"),g(),m(10,"textarea",5),R("ngModelChange",function(s){return n.data.cert=s}),g(),g(),m(11,"mat-form-field",4),m(12,"mat-label"),y(13,"Private Key"),g(),m(14,"textarea",5),R("ngModelChange",function(s){return n.data.key=s}),g(),g(),g(),m(15,"div",6),m(16,"button",7),y(17,"Create"),g(),m(18,"button",8),R("click",function(){return n.onNoClick()}),y(19,"Cancel"),g(),g()),2&e&&(b(6),E("ngModel",n.data.password),b(4),E("ngModel",n.data.cert),b(4),E("ngModel",n.data.key),b(2),E("mat-dialog-close",n.data))},directives:[xl,Sl,zo,Tr,qo,Ar,Uo,bs,El,Pn,_u],styles:[Nu]}),i})(),w8=(()=>{class i{constructor(e,n,r,s){this.dialogRef=e,this.data=n,this.caService=r,this._snackBar=s}onNoClick(){this.data.cert="",this.data.info=new Map,this.dialogRef.close()}asIsOrder(e,n){return 1}decodeCert(){console.log(this.data.cert),Pi(()=>this.caService.inspectCert(this.data),e=>rs(this._snackBar,"Failed to inspect cert","Dismiss")).subscribe(e=>{e.info&&(ss(this._snackBar,"Successfully inspected cert","Dismiss"),console.log(JSON.stringify(e)),this.data.info=e.info)})}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Bo),p(Ld),p(kl))},i.\u0275cmp=re({type:i,selectors:[["view-cert-dialog"]],decls:15,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill",2,"width","100%"],["matInput","","cols","200","rows","30",2,"font-family","Courier",3,"ngModel","ngModelChange"],[4,"ngIf"],["style","padding:5px",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"click"],["mat-button","",3,"click"],[2,"padding","5px"],[2,"font-size","12px"],[2,"color","green"]],template:function(e,n){1&e&&(m(0,"h1",0),y(1,"View Cert Info"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Certificate"),g(),m(6,"textarea",3),R("ngModelChange",function(s){return n.data.cert=s}),g(),g(),K(7,v8,2,0,"div",4),K(8,y8,7,2,"div",5),Dn(9,"keyvalue"),g(),m(10,"div",6),m(11,"button",7),R("click",function(){return n.decodeCert()}),y(12,"Decode"),g(),m(13,"button",8),R("click",function(){return n.onNoClick()}),y(14,"Cancel"),g(),g()),2&e&&(b(6),E("ngModel",n.data.cert),b(1),E("ngIf",n.data.info.size>0),b(1),E("ngForOf",wn(9,3,n.data.info,n.asIsOrder)))},directives:[xl,Sl,zo,Tr,qo,Ar,Uo,bs,Qn,Xr,El,Pn,Cu,yu,bu],pipes:[pw],styles:[Nu]}),i})();class M8{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){const t=this._textarea;t&&(t.remove(),this._textarea=void 0)}}let x8=(()=>{class i{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),r=n.copy();return n.destroy(),r}beginCopy(e){return new M8(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const S8=new S("CDK_COPY_TO_CLIPBOARD_CONFIG");let hk=(()=>{class i{constructor(e,n,r){this._clipboard=e,this._ngZone=n,this.text="",this.attempts=1,this.copied=new q,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let n=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const s=()=>{const o=r.copy();o||!--n||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(o)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(s,1))};s()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return i.\u0275fac=function(e){return new(e||i)(p(x8),p(te),p(S8,8))},i.\u0275dir=x({type:i,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,n){1&e&&R("click",function(){return n.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),i})(),E8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const k8=["*"],pk=new S("MatChipRemove"),fk=new S("MatChipAvatar"),mk=new S("MatChipTrailingIcon");class T8{constructor(t){this._elementRef=t}}const A8=vs(Er(rr(T8),"primary"),-1);let Lu=(()=>{class i extends A8{constructor(e,n,r,s,o,a,l,c){super(e),this._ngZone=n,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new O,this._onBlur=new O,this.selectionChange=new q,this.destroyed=new q,this.removed=new q,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new LS(this,n,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const n=Y(e);n!==this._selected&&(this._selected=n,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Y(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Y(e)}get removable(){return this._removable}set removable(e){this._removable=Y(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",n=this._elementRef.nativeElement;n.hasAttribute(e)||n.tagName.toLowerCase()===e?n.classList.add(e):n.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled?e.preventDefault():e.stopPropagation()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(We(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(te),p(_t),p(BS,8),p(st),p(ie),p(Ft,8),At("tabindex"))},i.\u0275dir=x({type:i,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,n,r){if(1&e&&(Se(r,fk,5),Se(r,mk,5),Se(r,pk,5)),2&e){let s;$(s=G())&&(n.avatar=s.first),$(s=G())&&(n.trailingIcon=s.first),$(s=G())&&(n.removeIcon=s.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,n){1&e&&R("click",function(s){return n._handleClick(s)})("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&e&&(X("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),Ce("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[I]}),i})(),gk=(()=>{class i{constructor(e,n){this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}_handleClick(e){const n=this._parentChip;n.removable&&!n.disabled&&n.remove(),e.stopPropagation()}}return i.\u0275fac=function(e){return new(e||i)(p(Lu),p(W))},i.\u0275dir=x({type:i,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,n){1&e&&R("click",function(s){return n._handleClick(s)})},features:[z([{provide:pk,useExisting:i}])]}),i})();const _k=new S("mat-chips-default-options");let O8=0,vk=(()=>{class i{constructor(e,n){this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new q,this.placeholder="",this.id="mat-chip-list-input-"+O8++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Y(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=Y(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!ii(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!ii(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(_k))},i.\u0275dir=x({type:i,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,n){1&e&&R("keydown",function(s){return n._keydown(s)})("keyup",function(s){return n._keyup(s)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&e&&(Ai("id",n.id),X("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ye]}),i})();const P8=Rg(class{constructor(i,t,e,n){this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=e,this.ngControl=n}});let F8=0;class N8{constructor(t,e){this.source=t,this.value=e}}let yk=(()=>{class i extends P8{constructor(e,n,r,s,o,a,l){super(a,s,o,l),this._elementRef=e,this._changeDetectorRef=n,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new O,this._uid="mat-chip-list-"+F8++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,d)=>c===d,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new q,this.valueChange=new q,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,n;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(n=this._selectionModel)||void 0===n?void 0:n.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=Y(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,n,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(n=this.ngControl)||void 0===n?void 0:n.control)||void 0===r?void 0:r.hasValidator(wu.required))&&void 0!==s&&s}set required(e){this._required=Y(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Y(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Y(e),this.chips&&this.chips.forEach(n=>n.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return jt(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return jt(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return jt(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return jt(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new Sx(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Re(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Re(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(nn(null),Re(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Ll(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const n=e.target;n&&n.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,n)),this._sortValues();else{const r=this._selectValue(e,n);r&&n&&this._keyManager.setActiveItem(r)}}_selectValue(e,n=!0){const r=this.chips.find(s=>null!=s.value&&this._compareWith(s.value,e));return r&&(n?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(n=>{n!==e&&n.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let n=null;n=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.change.emit(new N8(this,n)),this.valueChange.emit(n),this._onChange(n),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(n=>{!this._selectionModel.isSelected(n)&&n.selected&&n.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let n=this.chips.toArray().indexOf(e.chip);this._isValidIndex(n)&&this._keyManager.updateActiveItem(n),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const n=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&n._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let n=e.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-chip"))return!0;n=n.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(st),p(sn,8),p(Go,8),p(Wo,8),p(Lo),p(an,10))},i.\u0275cmp=re({type:i,selectors:[["mat-chip-list"]],contentQueries:function(e,n,r){if(1&e&&Se(r,Lu,5),2&e){let s;$(s=G())&&(n.chips=s)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,n){1&e&&R("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(s){return n._keydown(s)}),2&e&&(Ai("id",n._uid),X("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),Ce("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[z([{provide:Tl,useExisting:i}]),I],ngContentSelectors:k8,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,n){1&e&&(Ot(),m(0,"div",0),Ne(1),g())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),i})(),L8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Lo,{provide:_k,useValue:{separatorKeyCodes:[13]}}],imports:[[H]]}),i})();const V8=["*"];let Bu;function Hl(i){var t;return(null===(t=function H8(){if(void 0===Bu&&(Bu=null,"undefined"!=typeof window)){const i=window;void 0!==i.trustedTypes&&(Bu=i.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Bu}())||void 0===t?void 0:t.createHTML(i))||i}function bk(i){return Error(`Unable to find icon with the name "${i}"`)}function Ck(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Dk(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class Cs{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Vu=(()=>{class i{constructor(e,n,r,s){this._httpClient=e,this._sanitizer=n,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,s){return this._addSvgIconConfig(e,n,new Cs(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,s){const o=this._sanitizer.sanitize(Oe.HTML,r);if(!o)throw Dk(r);const a=Hl(o);return this._addSvgIconConfig(e,n,new Cs("",a,s))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new Cs(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const s=this._sanitizer.sanitize(Oe.HTML,n);if(!s)throw Dk(n);const o=Hl(s);return this._addSvgIconSetConfig(e,new Cs("",o,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(Oe.RESOURCE_URL,e);if(!n)throw Ck(e);const r=this._cachedIconsByUrl.get(n);return r?Q(Hu(r)):this._loadSvgIconFromConfig(new Cs(e,null)).pipe(Fe(s=>this._cachedIconsByUrl.set(n,s)),ue(s=>Hu(s)))}getNamedSvgIcon(e,n=""){const r=wk(n,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(n,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(n);return o?this._getSvgFromIconSetConfigs(e,o):function B8(i,t){const e=xe(i)?i:()=>i,n=r=>r.error(e());return new Ie(t?r=>t.schedule(n,0,r):n)}(bk(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(Hu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ue(n=>Hu(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?Q(r):iE(n.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(xn(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Oe.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})))).pipe(ue(()=>{const o=this._extractIconWithNameFromAnySet(e,n);if(!o)throw bk(e);return o}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const s=n[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Fe(n=>e.svgText=n),ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Fe(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const s=e.querySelector(`[id="${n}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(Hl(""));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString(Hl("")),r=e.attributes;for(let s=0;sHl(d)),yd(()=>this._inProgressUrlFetches.delete(a)),mv());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(wk(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;rt?t.pathname+t.search:""}}}),Mk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],q8=Mk.map(i=>`[${i}]`).join(", "),Y8=/^url\(['"]?#(.*?)['"]?\)$/;let Q8=(()=>{class i extends $8{constructor(e,n,r,s,o){super(e),this._iconRegistry=n,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Te.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Y(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=e.querySelectorAll("style");for(let s=0;s{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(q8),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=n[s],l=a.getAttribute(o),c=l?l.match(Y8):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(We(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${s.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(Vu),At("aria-hidden"),p(G8),p(zn))},i.\u0275cmp=re({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,n){2&e&&(X("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet),Ce("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[I],ngContentSelectors:V8,decls:1,vars:0,template:function(e,n){1&e&&(Ot(),Ne(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),i})(),xk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})();function K8(i,t){1&i&&(m(0,"label"),m(1,"strong",15),y(2,"Invalid: Expired"),g(),g())}function Z8(i,t){1&i&&(m(0,"label"),m(1,"strong",16),y(2,"Valid"),g(),g())}const X8=function(i){return{"expired-ca":i}};function J8(i,t){if(1&i){const e=Yi();m(0,"mat-card",5),m(1,"h1"),y(2,"Certificate Authority Details"),g(),m(3,"mat-card-actions",6),m(4,"button",7),R("click",function(){return li(e),ce().openCreateDialog()}),y(5,"Create New Certificate"),g(),g(),m(6,"mat-card-title",8),y(7),g(),m(8,"mat-card-subtitle"),y(9),g(),m(10,"mat-card-content"),y(11," Valid from "),m(12,"strong"),y(13),Dn(14,"date"),g(),y(15," -> "),m(16,"strong"),y(17),Dn(18,"date"),g(),U(19,"p"),y(20," Algorithm: "),m(21,"strong"),y(22),g(),U(23,"p"),g(),K(24,K8,3,0,"label",9),K(25,Z8,3,0,"label",9),U(26,"p"),m(27,"button",10),y(28,"Copy CA Cert"),g(),y(29," \xa0 "),m(30,"button",10),y(31,"Copy CA Key"),g(),m(32,"div",11),m(33,"mat-form-field",12),m(34,"mat-label"),y(35,"CA Certificate"),g(),m(36,"textarea",13),y(37),g(),g(),m(38,"mat-form-field",12),m(39,"mat-label"),y(40,"CA Private Key"),g(),m(41,"textarea",13),y(42),g(),g(),g(),y(43," Download CA: \xa0 "),m(44,"a",14),y(45,"Cert"),g(),y(46," \xa0 "),m(47,"a",14),y(48,"Key"),g(),y(49," \xa0 "),m(50,"a",14),y(51,"PKCS12"),g(),y(52," \xa0 "),m(53,"a",14),y(54,"Trust Store (JKS Format)"),g(),y(55," \xa0 "),m(56,"a",14),y(57,"Keystore And Trust Store Password (Same)"),g(),g()}if(2&i){const e=ce();E("ngClass",Qr(24,X8,e.caService.expired(e.cadetail))),b(7),Ze("CN=",e.cadetail.commonName,""),b(2),Pe(e.cadetail.subject),b(4),Pe(wn(14,18,e.cadetail.issueTime,"yyyy-MM-dd")),b(4),Pe(wn(18,21,36e5*e.cadetail.validDays*24+e.cadetail.issueTime,"yyyy-MM-dd")),b(5),ho("RSA",e.cadetail.keyLength,"Bits with ",e.cadetail.digestAlgorithm,""),b(2),E("ngIf",e.caService.expired(e.cadetail)),b(1),E("ngIf",!e.caService.expired(e.cadetail)),b(2),E("cdkCopyToClipboard",e.cadetail.cert),b(3),E("cdkCopyToClipboard",e.cadetail.key),b(7),Pe(e.cadetail.cert),b(5),Pe(e.cadetail.key),b(2),Qi("href","/ca/download/",e.cadetail.id,"/cert",It),b(3),Qi("href","/ca/download/",e.cadetail.id,"/key",It),b(3),Qi("href","/ca/download/",e.cadetail.id,"/pkcs12",It),b(3),Qi("href","/ca/download/",e.cadetail.id,"/truststore",It),b(3),Qi("href","/ca/download/",e.cadetail.id,"/password",It)}}function e$(i,t){1&i&&(m(0,"div",0),m(1,"mat-card"),m(2,"mat-card-title",8),y(3,"No Certificates Yet!"),g(),m(4,"mat-card-subtitle"),y(5,"Why don't you create one?"),g(),m(6,"mat-card-content"),y(7,' Just click the "Create New Certificate" button above. '),g(),g(),g())}const t$=function(i,t){return{expired:i,active:t}};function i$(i,t){if(1&i){const e=Yi();m(0,"div",0),m(1,"mat-card",5),m(2,"mat-card-title",8),y(3),g(),m(4,"mat-card-content"),y(5),U(6,"p"),y(7),U(8,"p"),y(9),U(10,"p"),y(11),U(12,"p"),y(13),U(14,"p"),y(15),U(16,"p"),y(17," Valid from "),m(18,"strong"),y(19),Dn(20,"date"),g(),y(21," -> "),m(22,"strong"),y(23),Dn(24,"date"),g(),U(25,"p"),y(26," Algorithm: "),m(27,"strong"),y(28),g(),U(29,"p"),g(),m(30,"mat-card-actions",19),m(31,"a",20),y(32,"View"),g(),m(33,"button",21),R("click",function(){const s=li(e).$implicit,o=ce(2);return o.deleteCert(o.cadetail,s)}),y(34,"Delete"),g(),g(),g(),g()}if(2&i){const e=t.$implicit,n=ce(2);b(1),E("ngClass",function G0(i,t,e,n,r){return q0(k(),Ut(),i,t,e,n,r)}(20,t$,n.caService.expiredCert(e),!n.caService.expiredCert(e))),b(2),Ze("CN=",e.commonName,""),b(2),Ze(" Cert ID: ",e.id," "),b(2),Ze(" Country: ",e.countryCode," "),b(2),Ze(" State: ",e.state," "),b(2),Ze(" Locality: ",e.city," "),b(2),Ze(" Organization: ",e.organization," "),b(2),Ze(" Organization Unit: ",e.organizationUnit," "),b(4),Pe(wn(20,14,e.issueTime,"yyyy-MM-dd")),b(4),Pe(wn(24,17,36e5*e.validDays*24+e.issueTime,"yyyy-MM-dd")),b(5),ho("RSA",e.keyLength,"Bits with ",e.digestAlgorithm,""),b(3),fi("routerLink","/certdetail/",n.cadetail.id,"/",e.id,"")}}function n$(i,t){if(1&i&&(m(0,"div",11),K(1,e$,8,0,"div",17),K(2,i$,35,23,"div",18),g()),2&i){const e=ce();b(1),E("ngIf",0==e.certList.length),b(1),E("ngForOf",e.certList)}}function r$(i,t){if(1&i){const e=Yi();m(0,"mat-chip",21),R("removed",function(){const s=li(e).$implicit;return ce().removeDNS(s)}),y(1),m(2,"button",22),m(3,"mat-icon"),y(4,"cancel"),g(),g(),g()}if(2&i){const e=t.$implicit;b(1),Ze(" ",e," ")}}function s$(i,t){if(1&i){const e=Yi();m(0,"mat-chip",21),R("removed",function(){const s=li(e).$implicit;return ce().removeIP(s)}),y(1),m(2,"button",22),m(3,"mat-icon"),y(4,"cancel"),g(),g(),g()}if(2&i){const e=t.$implicit;b(1),Ze(" ",e," ")}}const Sk=".small-card[_ngcontent-%COMP%]{padding:30px}.cakeys[_ngcontent-%COMP%]{padding-right:20px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.active[_ngcontent-%COMP%]{background-color:#bef7dd}mat-form-field[_ngcontent-%COMP%]{padding:5px}";let o$=(()=>{class i{constructor(e,n,r,s){this.route=e,this.caService=n,this.dialog=r,this._snackBar=s,this.id="",this.createCertData={commonName:"",countryCode:"",state:"",city:"",organization:"",organizationUnit:"",validDays:"365",digestAlgorithm:"sha512",keyLength:"4096",password:"changeit",dnsList:[],ipList:[]},this.certList=[],this.disableSelect=new o_(!1)}ngOnInit(){this.route.params.forEach(e=>{this.id=e.id}),this.id&&this.reloadData()}deleteCert(e,n){this.dialog.open(zg,{width:"500px",data:{title:"Are you sure?",messages:["You are about to delete Certicate with:",`Subject: ${n.subject}`,`ID: ${n.id}`,`from CA ${e.commonName}, CAID ${e.id}`,"---------","This can't be undone."]}}).afterClosed().subscribe(s=>{s&&(console.log(`Deleting Cert ${n.id}`),Pi(()=>this.caService.deleteCert(e.id,n.id),o=>rs(this._snackBar,"Failed to delete Certificate","Dismiss")).subscribe(o=>{o.id&&ss(this._snackBar,"Successfully created cert","Dismiss"),this.reloadData()}))})}reloadData(){this.id&&(Pi(()=>this.caService.getCAById(`${this.id}`)).subscribe(e=>this.cadetail=e),Pi(()=>this.caService.getCertsByCAId(`${this.id}`)).subscribe(e=>this.certList=e))}openCreateDialog(){this.dialog.open(a$,{width:"500px",data:this.createCertData}).afterClosed().subscribe(n=>{this.cadetail&&n&&(console.log("The dialog was closed"),this.createCertData=n,console.log(JSON.stringify(n)),Pi(()=>this.caService.createCert(this.cadetail.id,n),r=>rs(this._snackBar,"Failed to create cert","Dismiss")).subscribe(r=>{r.id&&ss(this._snackBar,"Successfully created cert","Dismiss"),this.reloadData()}))})}}return i.\u0275fac=function(e){return new(e||i)(p(Jn),p(Ld),p(Vo),p(kl))},i.\u0275cmp=re({type:i,selectors:[["app-cadetail"]],decls:9,vars:4,consts:[["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","fxFlex","20",1,"small-card"],["routerLink","/"],[3,"routerLink"],[3,"ngClass",4,"ngIf"],["class","flex-container",4,"ngIf"],[3,"ngClass"],["align","start"],["mat-raised-button","","color","primary",3,"click"],[2,"font-size","16px"],[4,"ngIf"],["mat-raised-button","","color","secondary",3,"cdkCopyToClipboard"],[1,"flex-container"],["appearance","fill",1,"cakeys",2,"width","48%"],["matInput","","disabled","","cols","200","rows","30",2,"font-family","Courier"],["mat-raised-button","","color","primary",3,"href"],[2,"color","red"],[2,"color","green"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngIf"],["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","class","small-card","fxFlex","20",4,"ngFor","ngForOf"],["align","end"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click"]],template:function(e,n){1&e&&(m(0,"div"),m(1,"div",0),m(2,"a",1),y(3,"Home"),g(),y(4," > "),m(5,"a",2),y(6),g(),K(7,J8,58,26,"mat-card",3),g(),K(8,n$,3,2,"div",4),g()),2&e&&(b(5),Qi("routerLink","/cadetail/",null==n.cadetail?null:n.cadetail.id,""),b(1),Ze("CN=",null==n.cadetail?null:n.cadetail.commonName,""),b(1),E("ngIf",n.cadetail),b(1),E("ngIf",n.cadetail))},directives:[Eo,Qn,Cu,Ka,Gg,Pn,yu,bu,$g,hk,zo,Tr,qo,jg,Xr],pipes:[hd],styles:[Sk]}),i})(),a$=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n,this.separatorKeysCodes=[13,188],this.addOnBlur=!0}addDNS(e){const n=(e.value||"").trim();n&&this.data.dnsList.push(n),e.chipInput.clear()}removeDNS(e){const n=this.data.dnsList.indexOf(e);n>=0&&this.data.dnsList.splice(n,1)}addIP(e){const n=(e.value||"").trim();n&&this.data.ipList.push(n),e.chipInput.clear()}removeIP(e){const n=this.data.ipList.indexOf(e);n>=0&&this.data.ipList.splice(n,1)}onNoClick(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(p(kr),p(Bo))},i.\u0275cmp=re({type:i,selectors:[["create-cert-dialog"]],decls:72,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["matInput","","required","",3,"ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["required","",3,"value","valueChange"],["value","2048"],["value","4096"],["value","8192"],["value","sha256"],["value","sha512"],["aria-label","DNS Name selection"],["dnsList",""],[3,"removed",4,"ngFor","ngForOf"],["placeholder","New DNS...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["aria-label","IP Addresses selection"],["ipList",""],["placeholder","New IP Address...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","","color","primary",3,"mat-dialog-close"],["mat-button","",3,"click"],[3,"removed"],["matChipRemove",""]],template:function(e,n){if(1&e&&(m(0,"h1",0),y(1,"Create a new Cert"),g(),m(2,"div",1),m(3,"mat-form-field",2),m(4,"mat-label"),y(5,"Common Name"),g(),m(6,"input",3),R("ngModelChange",function(s){return n.data.commonName=s}),g(),g(),m(7,"mat-form-field",2),m(8,"mat-label"),y(9,"Country Code"),g(),m(10,"input",3),R("ngModelChange",function(s){return n.data.countryCode=s}),g(),g(),m(11,"mat-form-field",2),m(12,"mat-label"),y(13,"State"),g(),m(14,"input",4),R("ngModelChange",function(s){return n.data.state=s}),g(),g(),m(15,"mat-form-field",2),m(16,"mat-label"),y(17,"City"),g(),m(18,"input",4),R("ngModelChange",function(s){return n.data.city=s}),g(),g(),m(19,"mat-form-field",2),m(20,"mat-label"),y(21,"Organization"),g(),m(22,"input",3),R("ngModelChange",function(s){return n.data.organization=s}),g(),g(),m(23,"mat-form-field",2),m(24,"mat-label"),y(25,"Organization Unit"),g(),m(26,"input",4),R("ngModelChange",function(s){return n.data.organizationUnit=s}),g(),g(),m(27,"mat-form-field",2),m(28,"mat-label"),y(29,"Valid Days"),g(),m(30,"input",3),R("ngModelChange",function(s){return n.data.validDays=s}),g(),g(),m(31,"mat-form-field",2),m(32,"mat-label"),y(33,"Key Length"),g(),m(34,"mat-select",5),R("valueChange",function(s){return n.data.keyLength=s}),m(35,"mat-option",6),y(36," RSA2048 Bit "),g(),m(37,"mat-option",7),y(38," RSA4096 Bit "),g(),m(39,"mat-option",8),y(40," RSA8192 Bit "),g(),g(),g(),m(41,"mat-form-field",2),m(42,"mat-label"),y(43,"Digest Algorithm"),g(),m(44,"mat-select",5),R("valueChange",function(s){return n.data.digestAlgorithm=s}),m(45,"mat-option",9),y(46," sha256 "),g(),m(47,"mat-option",10),y(48," sha512 "),g(),g(),g(),m(49,"mat-form-field",2),m(50,"mat-label"),y(51,"Keystore Password(optional)"),g(),m(52,"input",4),R("ngModelChange",function(s){return n.data.password=s}),g(),g(),m(53,"mat-form-field",2),m(54,"mat-label"),y(55,"DNS Names"),g(),m(56,"mat-chip-list",11,12),K(58,r$,5,1,"mat-chip",13),m(59,"input",14),R("matChipInputTokenEnd",function(s){return n.addDNS(s)}),g(),g(),g(),m(60,"mat-form-field",2),m(61,"mat-label"),y(62,"IP Addresses"),g(),m(63,"mat-chip-list",15,16),K(65,s$,5,1,"mat-chip",13),m(66,"input",17),R("matChipInputTokenEnd",function(s){return n.addIP(s)}),g(),g(),g(),g(),m(67,"div",18),m(68,"button",19),y(69,"Create"),g(),m(70,"button",20),R("click",function(){return n.onNoClick()}),y(71,"Cancel"),g(),g()),2&e){const r=vn(57),s=vn(64);b(6),E("ngModel",n.data.commonName),b(4),E("ngModel",n.data.countryCode),b(4),E("ngModel",n.data.state),b(4),E("ngModel",n.data.city),b(4),E("ngModel",n.data.organization),b(4),E("ngModel",n.data.organizationUnit),b(4),E("ngModel",n.data.validDays),b(4),E("value",n.data.keyLength),b(10),E("value",n.data.digestAlgorithm),b(8),E("ngModel",n.data.password),b(6),E("ngForOf",n.data.dnsList),b(1),E("matChipInputFor",r)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",n.addOnBlur),b(6),E("ngForOf",n.data.ipList),b(1),E("matChipInputFor",s)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",n.addOnBlur),b(2),E("mat-dialog-close",n.data)}},directives:[xl,Sl,zo,Tr,qo,Ar,Nl,Uo,bs,uk,Lg,yk,Xr,vk,El,Pn,_u,Lu,gk,Q8],styles:[Sk]}),i})();function l$(i,t){1&i&&(m(0,"label"),m(1,"strong",15),y(2,"Invalid: Expired"),g(),g())}function c$(i,t){1&i&&(m(0,"label"),m(1,"strong",16),y(2,"Valid"),g(),g())}function d$(i,t){if(1&i&&(m(0,"label"),m(1,"strong"),y(2),g(),y(3,"; \xa0 "),g()),2&i){const e=t.$implicit;b(2),Pe(e)}}function u$(i,t){if(1&i&&(m(0,"div"),y(1," Valid for these DNS names: "),K(2,d$,4,1,"label",17),g()),2&i){const e=ce(2);b(2),E("ngForOf",e.certdetail.dnsList)}}function h$(i,t){1&i&&(m(0,"label"),y(1," No DNS names configured. "),g())}function p$(i,t){if(1&i&&(m(0,"label"),m(1,"strong"),y(2),g(),y(3,"; \xa0 "),g()),2&i){const e=t.$implicit;b(2),Pe(e)}}function f$(i,t){if(1&i&&(m(0,"div"),y(1," Valid for these IP Addresses: "),K(2,p$,4,1,"label",17),g()),2&i){const e=ce(2);b(2),E("ngForOf",e.certdetail.ipList)}}function m$(i,t){1&i&&(m(0,"label"),y(1," No IP Addresses configured. "),g())}const g$=function(i){return{expired:i}};function _$(i,t){if(1&i){const e=Yi();m(0,"mat-card",4),m(1,"h1"),y(2,"Certificate Detail"),g(),m(3,"mat-card-title",5),y(4),g(),m(5,"mat-card-subtitle"),y(6),g(),m(7,"mat-card-content"),y(8," Valid from: "),m(9,"strong"),y(10),Dn(11,"date"),g(),y(12," -> "),m(13,"strong"),y(14),Dn(15,"date"),g(),U(16,"p"),y(17," Algorithm: "),m(18,"strong"),y(19),g(),U(20,"p"),g(),y(21," Status: "),K(22,l$,3,0,"label",6),K(23,c$,3,0,"label",6),U(24,"p"),K(25,u$,3,1,"div",6),K(26,h$,2,0,"label",6),K(27,f$,3,1,"div",6),K(28,m$,2,0,"label",6),U(29,"p"),m(30,"button",7),y(31,"Copy Cert"),g(),y(32," \xa0 "),m(33,"button",7),y(34,"Copy Key"),g(),m(35,"div",8),m(36,"mat-form-field",9),m(37,"mat-label"),y(38,"Certificate"),g(),m(39,"textarea",10),y(40),g(),g(),m(41,"mat-form-field",9),m(42,"mat-label"),y(43,"Private Key"),g(),m(44,"textarea",10),y(45),g(),g(),g(),m(46,"div"),m(47,"mat-card-actions",11),m(48,"a",12),y(49,"Download Everything"),g(),m(50,"a",12),y(51,"Cert"),g(),m(52,"a",12),y(53,"Cert Request"),g(),m(54,"a",12),y(55,"Key"),g(),m(56,"a",12),y(57,"KeyStore in JKS"),g(),m(58,"a",12),y(59,"KeyStore in PKCS12"),g(),m(60,"a",12),y(61,"KeyStore Password"),g(),m(62,"a",12),y(63,"Trust Store"),g(),m(64,"a",12),y(65,"Trust Store Password"),g(),g(),g(),m(66,"div"),m(67,"mat-form-field"),m(68,"mat-label"),y(69,"Days to renew (1~7350 only)"),g(),m(70,"input",13),R("ngModelChange",function(r){return li(e),ce().renewDays=r}),g(),g(),m(71,"mat-card-actions",11),m(72,"a",14),R("click",function(){return li(e),ce().doRenew()}),y(73,"Renew certificate"),g(),g(),g(),g()}if(2&i){const e=ce();E("ngClass",Qr(42,g$,e.caService.expiredCert(e.certdetail))),b(4),Ze("CN=",e.certdetail.commonName,""),b(2),Pe(e.certdetail.subject),b(4),Pe(wn(11,36,e.certdetail.issueTime,"yyyy-MM-dd")),b(4),Pe(wn(15,39,36e5*e.certdetail.validDays*24+e.certdetail.issueTime,"yyyy-MM-dd")),b(5),ho("RSA",e.certdetail.keyLength,"Bits with ",e.certdetail.digestAlgorithm,""),b(3),E("ngIf",e.caService.expiredCert(e.certdetail)),b(1),E("ngIf",!e.caService.expiredCert(e.certdetail)),b(2),E("ngIf",e.certdetail.dnsList.length>0),b(1),E("ngIf",0==e.certdetail.dnsList.length),b(1),E("ngIf",e.certdetail.ipList.length>0),b(1),E("ngIf",0==e.certdetail.ipList.length),b(2),E("cdkCopyToClipboard",e.certdetail.cert),b(3),E("cdkCopyToClipboard",e.certdetail.key),b(7),Pe(e.certdetail.cert),b(5),Pe(e.certdetail.key),b(3),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/bundle",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/cert",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/csr",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/key",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/jks",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/pkcs12",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/password",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/truststore",It),b(2),fi("href","/ca/download/",null==e.cadetail?null:e.cadetail.id,"/cert/",null==e.certdetail?null:e.certdetail.id,"/truststorePassword",It),b(6),E("ngModel",e.renewDays)}}const v$=[{path:"",redirectTo:"/calist",pathMatch:"full"},{matcher:i=>(console.log(i),1===i.length&&"cadetail"===i[0].path?{consumed:i,posParams:{id:new Zn("",{})}}:2===i.length&&"cadetail"===i[0].path?{consumed:i,posParams:{id:new Zn(i[1].path,{})}}:null),component:o$},{matcher:i=>(console.log(JSON.stringify(i)),3===i.length&&"certdetail"===i[0].path?{consumed:i,posParams:{caid:new Zn(i[1].path,{}),certid:new Zn(i[2].path,{})}}:null),component:(()=>{class i{constructor(e,n,r,s){this.route=e,this.caService=n,this._snackBar=r,this.dialog=s,this.caid="",this.certid="",this.renewDays=365}ngOnInit(){this.route.params.forEach(e=>{this.caid=e.caid,this.certid=e.certid}),this.refreshData()}refreshData(){this.caid&&this.certid&&(Pi(()=>this.caService.getCAById(`${this.caid}`)).subscribe(e=>this.cadetail=e),Pi(()=>this.caService.getCertByCAAndCertId(`${this.caid}`,`${this.certid}`)).subscribe(e=>this.certdetail=e))}doRenew(){console.log("Doing renew!");const e=this.dialog.open(zg,{width:"500px",data:{title:"Are you sure?",messages:[`You are about to renew Certificate by ${this.renewDays} days from now. `,"The private key remain as is.","The certificate will be replaced.","---------","This can't be undone."]}});let n=this.caid.toString(),r=this.certid.toString();e.afterClosed().subscribe(s=>{s&&(console.log(`Renewing Cert ${this.certid} (${this.caid})`),Pi(()=>this.caService.renewCert(n,r,this.renewDays),o=>rs(this._snackBar,"Failed to renew Certificate","Dismiss")).subscribe(o=>{o.id&&ss(this._snackBar,"Successfully renewed cert","Dismiss"),this.refreshData()}))})}}return i.\u0275fac=function(e){return new(e||i)(p(Jn),p(Ld),p(kl),p(Vo))},i.\u0275cmp=re({type:i,selectors:[["app-certdetail"]],decls:11,vars:6,consts:[["fxLayout","wrap","fxLayoutAlign","start center","fxLayoutGap","1px","fxFlex","20",1,"small-card"],["routerLink","/"],[3,"routerLink"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[2,"font-size","16px"],[4,"ngIf"],["mat-raised-button","","color","secondary",3,"cdkCopyToClipboard"],[1,"flex-container"],["appearance","fill",1,"cakeys",2,"width","48%"],["matInput","","disabled","","cols","200","rows","30",2,"font-family","Courier"],["align","start"],["mat-raised-button","","color","primary",3,"href"],["matInput","","name","days","type","number","min","1","max","7350",3,"ngModel","ngModelChange"],["mat-raised-button","","color","accent",3,"click"],[2,"color","red"],[2,"color","green"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(m(0,"div"),m(1,"div",0),m(2,"a",1),y(3,"Home"),g(),y(4," > "),m(5,"a",2),y(6),g(),y(7," > "),m(8,"a",2),y(9),g(),K(10,_$,74,44,"mat-card",3),g(),g()),2&e&&(b(5),Qi("routerLink","/cadetail/",null==n.cadetail?null:n.cadetail.id,""),b(1),Ze("CN=",null==n.cadetail?null:n.cadetail.commonName,""),b(2),fi("routerLink","/certdetail/",null==n.cadetail?null:n.cadetail.id,"/",null==n.certdetail?null:n.certdetail.id,""),b(1),Ze("CN=",null==n.certdetail?null:n.certdetail.commonName,""),b(1),E("ngIf",n.certdetail))},directives:[Eo,Qn,Cu,Ka,yu,bu,$g,Pn,hk,zo,Tr,qo,Gg,jg,m_,f_,l_,Ar,Uo,bs,Xr],pipes:[hd],styles:[".small-card[_ngcontent-%COMP%]{padding:30px}.cakeys[_ngcontent-%COMP%]{padding-right:20px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.active[_ngcontent-%COMP%]{background-color:#bef7dd}"]}),i})()},{path:"calist",component:b8}];let y$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mm.forRoot(v$)],Mm]}),i})();function b$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=ce();Wt("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}function C$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=ce();Wt("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}function D$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=ce();Wt("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}function w$(i,t){if(1&i&&(gr(),U(0,"circle",3)),2&i){const e=ce();Wt("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),X("r",e._getCircleRadius())}}const S$=Er(class{constructor(i){this._elementRef=i}},"primary"),Ek=new S("mat-progress-spinner-default-options",{providedIn:"root",factory:function E$(){return{diameter:100}}});class sr extends S${constructor(t,e,n,r,s){super(t),this._document=n,this._diameter=100,this._value=0,this.mode="determinate";const o=sr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Qt(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Qt(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Qt(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=$d(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,n=sr._diameters;let r=n.get(t);if(!r||!r.has(e)){const s=this._document.createElement("style");s.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),s.textContent=this._getAnimationText(),t.appendChild(s),r||(r=new Set,n.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}sr._diameters=new WeakMap,sr.\u0275fac=function(t){return new(t||sr)(p(W),p(_t),p(ie,8),p(Ft,8),p(Ek))},sr.\u0275cmp=re({type:sr,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(X("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Wt("width",e.diameter,"px")("height",e.diameter,"px"),Ce("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[I],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(gr(),m(0,"svg",0),K(1,b$,1,9,"circle",1),K(2,C$,1,7,"circle",2),g()),2&t&&(Wt("width",e.diameter,"px")("height",e.diameter,"px"),E("ngSwitch","indeterminate"===e.mode),X("viewBox",e._getViewBox()),b(1),E("ngSwitchCase",!0),b(1),E("ngSwitchCase",!1))},directives:[Jr,Za],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let T$=(()=>{class i extends sr{constructor(e,n,r,s,o){super(e,n,r,s,o),this.mode="indeterminate"}}return i.\u0275fac=function(e){return new(e||i)(p(W),p(_t),p(ie,8),p(Ft,8),p(Ek))},i.\u0275cmp=re({type:i,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,n){2&e&&(Wt("width",n.diameter,"px")("height",n.diameter,"px"),Ce("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color"},features:[I],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,n){1&e&&(gr(),m(0,"svg",0),K(1,D$,1,9,"circle",1),K(2,w$,1,7,"circle",2),g()),2&e&&(Wt("width",n.diameter,"px")("height",n.diameter,"px"),E("ngSwitch","indeterminate"===n.mode),X("viewBox",n._getViewBox()),b(1),E("ngSwitchCase",!0),b(1),E("ngSwitchCase",!1))},directives:[Jr,Za],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),i})(),A$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H,Mt],H]}),i})(),I$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=re({type:i,selectors:[["app-spinner"]],decls:2,vars:0,consts:[[1,"loading"],[1,"overlay"]],template:function(e,n){1&e&&(m(0,"div",0),U(1,"mat-spinner",1),g())},directives:[T$],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;top:20%;left:50%;z-index:100;text-align:center}.loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;display:block;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}"]}),i})(),R$=(()=>{class i{constructor(e){this._snackBar=e}say(e,n){this._snackBar.open(e,n)}}return i.\u0275fac=function(e){return new(e||i)(p(kl))},i.\u0275cmp=re({type:i,selectors:[["app-toaster"]],decls:0,vars:0,template:function(e,n){},styles:[""]}),i})(),O$=(()=>{class i{constructor(){this.title="minca-ui"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=re({type:i,selectors:[["app-root"]],decls:3,vars:0,consts:[["id","loading-layer",2,"display","none"],["id","toaster007"]],template:function(e,n){1&e&&(U(0,"router-outlet"),U(1,"app-spinner",0),U(2,"app-toaster",1))},directives:[_m,I$,R$],styles:[""]}),i})(),kk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();function v_(i,t,e){for(let n in t)if(t.hasOwnProperty(n)){const r=t[n];r?i.setProperty(n,r,(null==e?void 0:e.has(n))?"important":""):i.removeProperty(n)}return i}function Qo(i,t){const e=t?"":"none";v_(i.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Tk(i,t,e){v_(i.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function ju(i,t){return t&&"none"!=t?i+" "+t:i}function Ak(i){const t=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*t}function y_(i,t){return i.getPropertyValue(t).split(",").map(n=>n.trim())}function b_(i){const t=i.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function C_(i,t,e){const{top:n,bottom:r,left:s,right:o}=i;return e>=n&&e<=r&&t>=s&&t<=o}function jl(i,t,e){i.top+=t,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function Ik(i,t,e,n){const{top:r,right:s,bottom:o,left:a,width:l,height:c}=i,d=l*t,u=c*t;return n>r-u&&na-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:b_(e)})})}handleScroll(t){const e=Fi(t),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let s,o;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();s=c.top,o=c.left}else s=e.scrollTop,o=e.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&e!==d&&e.contains(d)&&jl(c.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}}function Ok(i){const t=i.cloneNode(!0),e=t.querySelectorAll("[id]"),n=i.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._handles.find(c=>a.target&&(a.target===c||c.contains(a.target)));l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),_=this._dropContainer;if(!f)return void this._endDragSequence(a);(!_||!_.isDragging()&&!_.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const d=this._activeTransform;d.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Rk(n,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Y(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(n=>Qo(n,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(n=>dt(n)),this._handles.forEach(n=>Qo(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=dt(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Bk),e.addEventListener("touchstart",this._pointerDown,Lk)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?dt(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){var t,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(t=this._rootElement)||void 0===t||t.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Qo(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Qo(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var t,e;null===(t=this._preview)||void 0===t||t.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var t,e;null===(t=this._placeholder)||void 0===t||t.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){zl(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,s=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(o,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),Tk(n,!1,D_),this._document.body.appendChild(r.replaceChild(s,n)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=zl(e),s=!r&&0!==e.button,o=this._rootElement,a=Fi(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Xm(e):Zm(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),n||s||l||c)return;if(this._handles.length){const h=o.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=b_(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Tk(this._rootElement,!0,D_),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),s=this._getDragDistance(r),o=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:s,dropPoint:r}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:r}),e.drop(this,n,this._initialIndex,this._initialContainer,o,s,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:r}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let r;if(n&&t){const s=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(n,t.context);o.detectChanges(),r=Hk(o,this._document),this._previewRef=o,t.matchSize?jk(r,s):r.style.transform=zu(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const s=this._rootElement;r=Ok(s),jk(r,s.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return v_(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},D_),Qo(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(s=>r.classList.add(s)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function F$(i){const t=getComputedStyle(i),e=y_(t,"transition-property"),n=e.find(a=>"transform"===a||"all"===a);if(!n)return 0;const r=e.indexOf(n),s=y_(t,"transition-duration"),o=y_(t,"transition-delay");return Ak(s[r])+Ak(o[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=o=>{var a;(!o||Fi(o)===this._preview&&"transform"===o.propertyName)&&(null===(a=this._preview)||void 0===a||a.removeEventListener("transitionend",r),n(),clearTimeout(s))},s=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=Hk(this._placeholderRef,this._document)):n=Ok(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),r=t===this._rootElement?null:t,s=r?r.getBoundingClientRect():n,o=zl(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:s.left-n.left+(o.pageX-s.left-a.left),y:s.top-n.top+(o.pageY-s.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=zl(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=n.pageX-e.left,s=n.pageY-e.top;if(this._ownerSVGElement){const o=this._ownerSVGElement.getScreenCTM();if(o){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=s,a.matrixTransform(o.inverse())}}return{x:r,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:s,y:o}=this._pickupPositionInElement,a=this._boundaryRect,l=this._previewRect,c=a.top+o,d=a.bottom-(l.height-o);n=Vk(n,a.left+s,a.right-(l.width-s)),r=Vk(r,c,d)}return{x:n,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,r=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),a=Math.abs(n-s.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=e>s.x?1:-1,s.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=n>s.y?1:-1,s.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Qo(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Bk),t.removeEventListener("touchstart",this._pointerDown,Lk)}_applyRootElementTransform(t,e){const n=zu(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=ju(n,this._initialTransform)}_applyPreviewTransform(t,e){var n;const r=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,s=zu(t,e);this._preview.style.transform=ju(s,r)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===r.width&&0===r.height)return;const s=n.left-r.left,o=r.right-n.right,a=n.top-r.top,l=r.bottom-n.bottom;n.width>r.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,n.height>r.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:zl(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=Fi(t);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&jl(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=$d(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const n=this._previewContainer||"global";if("parent"===n)return t;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return dt(n)}}function zu(i,t){return`translate3d(${Math.round(i)}px, ${Math.round(t)}px, 0)`}function Vk(i,t,e){return Math.max(t,Math.min(e,i))}function zl(i){return"t"===i.type[0]}function Hk(i,t){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const n=t.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function jk(i,t){i.style.width=`${t.width}px`,i.style.height=`${t.height}px`,i.style.transform=zu(t.left,t.top)}function Ul(i,t){return Math.max(0,Math.min(t,i))}class H${constructor(t,e,n,r,s){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new O,this.entered=new O,this.exited=new O,this.dropped=new O,this.sorted=new O,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Te.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new O,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function P$(i=0,t=zd){return i<0&&(i=0),Fm(i,i,t)}(0,XM).pipe(Re(this._stopScrollTimers)).subscribe(()=>{const o=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?o.scrollBy(0,-a):2===this._verticalScrollDirection&&o.scrollBy(0,a),1===this._horizontalScrollDirection?o.scrollBy(-a,0):2===this._horizontalScrollDirection&&o.scrollBy(a,0)})},this.element=dt(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Rk(n,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,n,r){let s;this._draggingStarted(),null==r?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,n))):s=r;const o=this._activeDraggables,a=o.indexOf(t),l=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),!c&&(null==s||-1===s||s-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const d=c.getRootElement();d.parentElement.insertBefore(l,d),o.splice(s,0,t)}else dt(this.element).appendChild(l),o.push(t);l.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,r,s,o,a){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:s,distance:o,dropPoint:a})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=dt(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,r){if(this.sortingDisabled||!this._clientRect||!Ik(this._clientRect,.05,e,n))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,n,r);if(-1===o&&s.length>0)return;const a="horizontal"===this._orientation,l=s.findIndex(C=>C.drag===t),c=s[o],u=c.clientRect,h=l>o?1:-1,f=this._getItemOffsetPx(s[l].clientRect,u,h),_=this._getSiblingOffsetPx(l,s,h),v=s.slice();(function V$(i,t,e){const n=Ul(t,i.length-1),r=Ul(e,i.length-1);if(n===r)return;const s=i[n],o=r{if(v[M]===C)return;const w=C.drag===t,T=w?f:_,P=w?t.getPlaceholderElement():C.drag.getRootElement();C.offset+=T,a?(P.style.transform=ju(`translate3d(${Math.round(C.offset)}px, 0, 0)`,C.initialTransform),jl(C.clientRect,0,T)):(P.style.transform=ju(`translate3d(0, ${Math.round(C.offset)}px, 0)`,C.initialTransform),jl(C.clientRect,T,0))}),this._previousSwap.overlaps=C_(u,e,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,r=0,s=0;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||n||Ik(o.clientRect,.05,t,e)&&([r,s]=function j$(i,t,e,n){const r=$k(t,n),s=Gk(t,e);let o=0,a=0;if(r){const l=i.scrollTop;1===r?l>0&&(o=1):i.scrollHeight-l>i.clientHeight&&(o=2)}if(s){const l=i.scrollLeft;1===s?l>0&&(a=1):i.scrollWidth-l>i.clientWidth&&(a=2)}return[o,a]}(a,o.clientRect,t,e),(r||s)&&(n=a))}),!r&&!s){const{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};r=$k(l,e),s=Gk(l,t),n=window}n&&(r!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=s,this._scrollNode=n,(r||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=dt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=dt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:b_(n)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=dt(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var n;const r=e.getRootElement();if(r){const s=null===(n=this._itemPositions.find(o=>o.drag===e))||void 0===n?void 0:n.initialTransform;r.style.transform=s||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,n){const r="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*n];let a=s[r?"width":"height"]*n;if(o){const l=r?"left":"top",c=r?"right":"bottom";-1===n?a-=o.clientRect[l]-s[c]:a+=s[l]-o.clientRect[c]}return a}_getItemOffsetPx(t,e,n){const r="horizontal"===this._orientation;let s=r?e.left-t.left:e.top-t.top;return-1===n&&(s+=r?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const o=n[n.length-1].clientRect;return r?t>=o.right:e>=o.bottom}{const o=n[0].clientRect;return r?t<=o.left:e<=o.top}}_getItemIndexFromPointerPosition(t,e,n,r){const s="horizontal"===this._orientation,o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=s?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return s?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&nr._canReceive(t,e,n))}_canReceive(t,e,n){if(!this._clientRect||!C_(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const s=dt(this.element);return r===s||s.contains(r)}_startReceiving(t,e){const n=this._activeSiblings;!n.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:n})=>{jl(n,e.top,e.left)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=$d(dt(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function $k(i,t){const{top:e,bottom:n,height:r}=i,s=.05*r;return t>=e-s&&t<=e+s?1:t>=n-s&&t<=n+s?2:0}function Gk(i,t){const{left:e,right:n,width:r}=i,s=.05*r;return t>=e-s&&t<=e+s?1:t>=n-s&&t<=n+s?2:0}const Uu=rn({passive:!1,capture:!0});let z$=(()=>{class i{constructor(e,n){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new O,this.pointerUp=new O,this.scroll=new O,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=n}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Uu)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Uu)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:s=>this.pointerUp.next(s),options:!0}).set("scroll",{handler:s=>this.scroll.next(s),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Uu}),r||this._globalListeners.set("mousemove",{handler:s=>this.pointerMove.next(s),options:Uu}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((s,o)=>{this._document.addEventListener(o,s.handler,s.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new Ie(r=>this._ngZone.runOutsideAngular(()=>{const o=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",o,!0),()=>{e.removeEventListener("scroll",o,!0)}}))),jt(...n)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(D(te),D(ie))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const U$={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let $$=(()=>{class i{constructor(e,n,r,s){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=s}createDrag(e,n=U$){return new B$(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new H$(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(D(ie),D(te),D(Ro),D(z$))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),G$=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[$$],imports:[Tn]}),i})(),Wk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Io]]}),i})(),Xk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Gd]]}),i})(),Jk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})();const mG={provide:new S("mat-autocomplete-scroll-strategy"),deps:[Ni],useFactory:function fG(i){return()=>i.scrollStrategies.reposition()}};let yG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[mG],imports:[[tr,gu,H,Mt],Tn,gu,H]}),i})(),bG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[tr,H,er],H]}),i})(),EG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H,on],H]}),i})(),lT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),VG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[on,H,bl,lT],H,lT]}),i})(),L_=(()=>{class i{constructor(){this.changes=new O,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const KG={provide:L_,deps:[[new Ct,new di,L_]],useFactory:function QG(i){return i||new L_}};let ZG=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[KG,Lo],imports:[[H,Mt,er,Ho,Wk,xk,on],H]}),i})(),l6=(()=>{class i{constructor(){this.changes=new O,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,n){return`${e} \u2013 ${n}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const u6={provide:new S("mat-datepicker-scroll-strategy"),deps:[Ni],useFactory:function d6(i){return()=>i.scrollStrategies.reposition()}};let g6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[l6,u6],imports:[[Mt,Ho,tr,Cl,er,H],Tn]}),i})(),pT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})(),_6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,kk,er]]}),i})(),b6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[mu,H],mu,H]}),i})(),P6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[mu,on,H,Ng,Mt],mu,H,Ng,pT]}),i})();const B6={provide:new S("mat-menu-scroll-strategy"),deps:[Ni],useFactory:function L6(i){return()=>i.scrollStrategies.reposition()}};let V6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[B6],imports:[[Mt,H,on,tr],Tn,H]}),i})();const U6={provide:new S("mat-tooltip-scroll-strategy"),deps:[Ni],useFactory:function z6(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}};let vT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[U6],imports:[[Cl,Mt,tr,H],H,Tn]}),i})(),B_=(()=>{class i{constructor(){this.changes=new O,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,n,r)=>{if(0==r||0==n)return`0 of ${r}`;const s=e*n;return`${s+1} \u2013 ${s<(r=Math.max(r,0))?Math.min(s+n,r):s+n} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Q6={provide:B_,deps:[[new Ct,new di,B_]],useFactory:function Y6(i){return i||new B_}};let K6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[Q6],imports:[[Mt,Ho,g_,vT,H]]}),i})(),X6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H],H]}),i})(),uW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[on,H],H]}),i})(),pW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,To,Tn],Tn,H]}),i})(),MW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H],H]}),i})(),wT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({}),i})(),BW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[wT,on,H,bl],wT,H]}),i})(),H_=(()=>{class i{constructor(){this.changes=new O}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const HW={provide:H_,deps:[[new Ct,new di,H_]],useFactory:function VW(i){return i||new H_}};let jW=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({providers:[HW],imports:[[Mt,H]]}),i})(),rq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Xk,H],H]}),i})(),dq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Mt,H,er,on,bl,Cl],H]}),i})(),uq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[H],H]}),i})(),yq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[[Jk,H],H]}),i})(),bq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i}),i.\u0275inj=F({imports:[Cl,kk,E8,Wk,Xk,Jk,G$,yG,yU,bG,Ho,EG,XS,VG,L8,ZG,g6,Q5,pT,_6,b6,xk,Y4,P6,V6,T5,K6,X6,A$,uW,on,g_,pW,MW,BW,ZS,jW,rq,dq,uq,vT,yq,tr,er,Gd]}),i})(),Cq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=N({type:i,bootstrap:[O$]}),i.\u0275inj=F({providers:[],imports:[[kw,y$,aj,_5,Mm,XS,Ho,Du,z4,U4,g_,bq]]}),i})();(function tL(){FD=!1})(),y2().bootstrapModule(Cq).catch(i=>console.error(i))}},xe=>{xe(xe.s=348)}]); \ No newline at end of file